Commit Graph

844293 Commits

Author SHA1 Message Date
Elaine Zhang
cf11cb15dd ARM: dts: rockchip: remove the regulator-initial-mode for vcc_ddr
The driver does not match the dts, pmic driver is update to 4.19 kernel,
but the dts node is not update,make the vcc_ddr regulator init failed:
[    2.126351] rk808 0-001a: chip id: 0x8160
[    2.134083] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    2.134229] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    2.134347] DCDC_REG1: supplied by vcc_sys
[    2.136769] DCDC_REG2: supplied by vcc_sys
[    2.138759] DCDC_REG3: supplied by vcc_sys
[    2.139064] vcc_ddr: no set_mode operation
[    2.139110] rk808 0-001a: failed to register 2 regulator
[    2.140110] rk808-regulator: probe of rk808-regulator failed with error -22

Change-Id: Ieecd8678345202db0be5ac4c669c890283793d42
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2019-10-18 14:04:30 +08:00
Wang Panzhenzhuan
4b28c34a8e arm64: dts: rockchip: rk3399-sapphire-excavator-edp: enable ov13850 & module attached vcm & flash
Change-Id: I3d62df5dd2dce4919314c30f7f4652e8f6e59fd2
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-10-18 09:21:05 +08:00
Wang Panzhenzhuan
48957476c9 arm64: configs: rockchip_defconfig: enable ov13850 & vcm149c & SGM3784
OV13850 Camera Module used by rk3399 & rk3399pro excavator board

Change-Id: Ieb06cc519609392475db1d4f0103a89d22110fd4
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
2019-10-18 09:20:40 +08:00
Bian Jin chen
a2c4ea38c3 arm64: dts: rockchip: enabled rng default for px30-android
Change-Id: I4d892e5856c3c22c8ecbdbebc3f18c0cab20cf8a
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2019-10-18 09:14:28 +08:00
Yifeng Zhao
c1886ed7a3 drivers: rk_nand: support Micron B05A and B16A
include commit:
1.f7468ce49e84: drivers: rk_nand: fix the exception of f2fs execution discard function
2.6dfc7913e70b: drivers: rk_nand: support SKHynix 14nm 2D 16GB Nand Flash
3.c76939e892ef: drivers: rk_nand: fix ota update loader fail issue
4.d44aa2f187e4: drivers: rk_nand: add zftl for arm32

Change-Id: Ie430a7388c9b2a21b32fca91e5197e5f035b5ac1
Signed-off-by: Yifeng Zhao <zyf@rock-chips.com>
2019-10-17 18:07:32 +08:00
Simon Xue
bac8464303 PCI: rockchip: support remove dma_trx_obj
When PCIe link broken, remove pcie dev and reprobe may repair the link,
also need to remove the dma_trx_obj

Change-Id: If0a243d7c39bef5763c22fa53d5e7a6d515412f5
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-10-17 16:00:38 +08:00
Simon Xue
61e3540d6e arm64: dts: rockchip: rk1808: update softreset about pcie
Delete SRST_PCIEPHY_POR, SRST_PCIEPHY_P, SRST_PCIEPHY_PIPE from PCIe
node, combo phy node already include these softreset

Change-Id: I7f1c739fbbb9b8c43ecb620b5d0655d0e1d221cb
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-10-17 10:18:37 +08:00
Simon Xue
f6a80248e3 phy: rockchip-inno-combphy: support low power consumption mode
Support low power consumption mode when PCIe suspend.

1. Add missing Kconfig and Makefile
2. Add usb3phy_grf_p reset
3. Turn off PCIe phy pd
4. Write some more MAGIC registers to enter low power mode like following:
	/* enter PCIe phy low power mode */
	writel(0x36, priv->mmio + 0x2150);
	writel(0x36, priv->mmio + 0x3150);
	writel(0x02, priv->mmio + 0x21e8);
	writel(0x02, priv->mmio + 0x31e8);
	writel(0x0c, priv->mmio + 0x2080);
	writel(0x0c, priv->mmio + 0x3080);
	writel(0x08, priv->mmio + 0x20c0);
	writel(0x08, priv->mmio + 0x30c0);
	writel(0x08, priv->mmio + 0x2058);

	writel(0x10, priv->mmio + 0x2044);
	writel(0x10, priv->mmio + 0x21a8);
	writel(0x10, priv->mmio + 0x31a8);
	writel(0x08, priv->mmio + 0x2058);
	writel(0x08, priv->mmio + 0x3058);
	writel(0x40, priv->mmio + 0x205c);
	writel(0x40, priv->mmio + 0x305c);
	writel(0x08, priv->mmio + 0x2184);
	writel(0x08, priv->mmio + 0x3184);
	writel(0x00, priv->mmio + 0x2150);
	writel(0x00, priv->mmio + 0x3150);
	writel(0x10, priv->mmio + 0x20e0);
	writel(0x00, priv->mmio + 0x21e8);
	writel(0x00, priv->mmio + 0x31e8);

Change-Id: I2dc7f99e54d336f45a13b2842bde1a02300311fc
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-10-17 10:18:17 +08:00
Wu Liangqing
f4b51e5712 arm64: dts: rockchip: enabled rng default for rk3399-android
Change-Id: I7d895feb2c6d41d0560f083736462854a2224e89
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2019-10-17 10:10:59 +08:00
Lin Jinhan
0d70be3bb5 ARM: dts: rockchip: add rng node for rk3288
rng node is compflict with crypto node, so default disable

rng node and crypto node.

Change-Id: I9a28108a5667f88c15d5cc9916d927115cdb8918
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-17 10:08:51 +08:00
Lin Jinhan
e5f89c5233 arm64: dts: rockchip: rk3328: add rng node
Change-Id: Ic443f0e08ac427654008a2225eb9a8565b20fda5
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-17 10:07:53 +08:00
Lin Jinhan
27fcf8bea2 ARM: dts: rk312x: add rng node
Change-Id: I1ce01820a13d5cf3bc6fdf22c192c0a8ce92f700
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-17 10:07:36 +08:00
Finley Xiao
32948d8b86 PM / devfreq: Add new device link for sysfs
As the device name has been changed to devfreq(X), but user should find
devfreq driver with their parent device name, so add a new link named
with parent name.

Change-Id: I5077ddecbcc8db8d59cb6f16f2be5107b391677d
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-10-17 08:52:12 +08:00
Lin Jinhan
0ab296d5cf arm: rockchip_defconfig: enable CONFIG_HW_RANDOM_ROCKCHIP
enable CONFIG_HW_RANDOM & CONFIG_HW_RANDOM_ROCKCHIP

Change-Id: Ieb1bfa78ef62fa8998e13cb4e55f1d3559e88532
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-16 19:20:59 +08:00
William Wu
955bb70bf1 phy: add cp_test callback
There are several SoCs (e.g. rk3228h and rk3328) that integrated
with Inno USB3 PHY, they can't toggle CP test pattern when do
USB3 compliance test by default.

This patch add a cp_test callback for USB3 controller to enable
the special USB3 PHY to toggle the CP test pattern.

Change-Id: I2d603202723a4c044d4231af10cfe2c60ec0e988
Signed-off-by: William Wu <wulf@rock-chips.com>
2019-10-16 17:35:55 +08:00
Simon Xue
72dd89e1ca PCI: rockchip: Add Rockchip DW PCIe controller support
1. Add support for DW PCIe controller found on RK1808 SoC platform
2. Add support PCIe udma transfer

Change-Id: Ic6d638782d1f55f965d663f73eee14bafa392740
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-10-16 17:34:16 +08:00
Shawn Lin
61ba789f0c PCI: dwc: Skip allocating own MSI domain if using external MSI domain
On some platform, external MSI domain is using instead of the one
created by designware driver. For instance, if using GIC-V3-ITS
as a MSI domain, we only need set msi-map in the devicetree but
never need any bit in the designware driver to handle MSI stuff.
So skip allocating its own MSI domain for that case.

Change-Id: Ic4f5f0a1a1833c778c4e4750cb88f34a5b37a198
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2019-10-16 17:33:00 +08:00
Lin Jinhan
67e7bc4cc0 arm64: dts: rockchip: add rng node for rk3399
use rng of crypto1

Change-Id: Ic8cd339d43012a356d981284726ac4d8158a2316
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-16 15:30:36 +08:00
Lin Jinhan
689282bdce hwrng: rockchip: fix bugs on read trng output regs
memcpy_fromio requrie 8 byte align on arm64 while crypto v1 trng output
regs offset is 0x204.

Change-Id: Ida2239a3d493bd9910c63ae4c4be1c23f9cc1212
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-16 15:29:35 +08:00
Lin Jinhan
f80caf71dd hwrng: rockchip - add support for Rockchip CRYPTO V1 HW RNG
Change-Id: Ic01b8d40730506a9deee301bccbbe9b91b1dd6a8
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-16 15:29:11 +08:00
Lin Jinhan
45f41e9f7f dt-bindings: rng: Document the Rockchip CRYPTO V1 HW RNG bindings
Change-Id: Ie266005701812b96647ea7835e6d4bdf035ba0f9
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2019-10-16 15:28:55 +08:00
Simon Xue
4ea884cd60 phy: add PCIE_EP and PCIE_RC modes
Innosilicon combophy for PCIe still need different
configuration between EP and RC mode.

Change-Id: Ie1f14e63785f44d84a2b3a154990c6a54eb1156e
Signed-off-by: Simon Xue <xxm@rock-chips.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2019-10-16 15:26:13 +08:00
Tao Huang
8de6f25db1 arm64: rockchip_defconfig: remove nonexistent config
-CONFIG_DEFAULT_USE_ENERGY_AWARE
-CONFIG_MEMORY_STATE_TIME
-CONFIG_GPIO_RK8XX
-CONFIG_MMC_BLOCK_BOUNCE
-CONFIG_ANDROID_TIMED_GPIO
-CONFIG_ANDROID_LOW_MEMORY_KILLER
-CONFIG_SYNC
-CONFIG_SW_SYNC_USER
-CONFIG_ION_ROCKCHIP
-CONFIG_TIMER_STATS
-CONFIG_DEBUG_SET_MODULE_RONX

Change-Id: I2bf328e70a54878e28084becb9de1f791cc12b1e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-16 10:39:18 +08:00
Tao Huang
d2460b1714 arm64: rockchip_defconfig: disable CC_OPTIMIZE_FOR_SIZE
For better performance.

Change-Id: I7f4a64644078140f5882dac655ec34e25a4b648d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
d767344a13 power: supply: rk818_charger: fix gcc warning
drivers/power/supply/rk818_charger.c: In function 'rk818_cg_usb_get_property':
drivers/power/supply/rk818_charger.c:448:11: warning: 'fake_offline' may be used uninitialized in this function [-Wmaybe-uninitialized]
   else if (fake_offline)
           ^

Change-Id: I07ccf6e136d47c75db56004de1c78436e570a356
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
7b74e8b780 power: supply: rk818_battery: fix gcc warning
drivers/power/supply/rk818_battery.c: In function 'rk818_bat_calc_zero_linek':
drivers/power/supply/rk818_battery.c:1582:6: warning: 'cnt' may be used uninitialized in this function [-Wmaybe-uninitialized]
   cnt++;
   ~~~^~
drivers/power/supply/rk818_battery.c: In function 'rk818_battery_resume':
drivers/power/supply/rk818_battery.c:3465:20: warning: 'time_step' may be used uninitialized in this function [-Wmaybe-uninitialized]
  int interval_sec, time_step, pwroff_vol;
                    ^~~~~~~~~

Change-Id: I405e7c1b3a3b567693244b40acdf8ed924331cf7
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
20e4b440ce power: supply: rk817_battery: fix gcc warning
drivers/power/supply/rk817_battery.c: In function 'rk817_bat_pm_resume':
drivers/power/supply/rk817_battery.c:3290:34: warning: 'time_step' may be used uninitialized in this function [-Wmaybe-uninitialized]
      (battery->sleep_dischrg_sec > time_step)) {
      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~

Change-Id: I5ca86f00471e467448145bcb001d17b0ed242c49
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
3854c061b9 net: rockchip_wlan: bcmdhd: fix gcc warning
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc.c: In function 'sdioh_request_packet_chain':
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc.c:1291:77: warning: '*((void *)&before+8)' may be used uninitialized in this function [-Wmaybe-uninitialized]
    write, ttl_len, now.tv_sec-before.tv_sec, now.tv_nsec/1000-before.tv_nsec/1000));
                                                                             ^
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/bcmsdh_sdmmc.c:1107:23: note: 'before' was declared here
  struct timespec now, before;
                       ^~~~~~

Change-Id: I34e1b7132ad2771932e53475788dd4f3607f0233
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
6664bfef49 input: sensors: mc3230: fix gcc warning
drivers/input/sensors/accel/mc3230.c: In function 'sensor_report_value':
drivers/input/sensors/accel/mc3230.c:602:4: warning: 'result' may be used uninitialized in this function [-Wmaybe-uninitialized]
  x = mc3230_convert_to_int(buffer[0]) * g_value;
  ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/input/sensors/accel/mc3230.c:521:6: note: 'result' was declared here
  int result;
      ^~~~~~

Change-Id: I817bbd56a2a194388bde705cbfa350f8d33b6efa
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Tao Huang
8959d2a951 thermal: rk3368: fix gcc warning
drivers/thermal/rk3368_thermal.c: In function 'rk3368_thermal_get_temp':
drivers/thermal/rk3368_thermal.c:580:12: warning: 'val_cpu' may be used uninitialized in this function [-Wmaybe-uninitialized]
   old_data = tsadc_data;
   ~~~~~~~~~^~~~~~~~~~~~
drivers/thermal/rk3368_thermal.c:529:6: note: 'val_cpu' was declared here
  int val_cpu;
      ^~~~~~~

Change-Id: I365441507082cbbd0f7be01e5f0a09674af6230d
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 18:08:43 +08:00
Jon Lin
e2a024e1cc drivers: rkflash: remove using memzero func
Change-Id: I4310c9f0aa75c5d1b0abbd31ba84746a74e1f655
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2019-10-15 16:13:55 +08:00
Tao Huang
52d7b98f85 ARM: rockchip_defconfig: enable HZ_1000
For save boot time.

Change-Id: Id7c7db00f23a528445ffc651679d6efac65673fe
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 14:48:55 +08:00
Tao Huang
9a883c648a arm64: rockchip_defconfig: enable HZ_1000
For save boot time.

Change-Id: I46496ae86e462882cfd3e357a3b0ee3cfc3117da
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2019-10-15 14:35:16 +08:00
Bian Jin chen
985ebcf8d2 arm64: rockchip_defconfig: enable CONFIG_HW_RANDOM
Enable the Rockchip HW random driver to prevent Android init
from hang due to low entropy.

Change-Id: I0f2c2c1c27c4c91002a42c8cb77e44809815bd03
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
2019-10-15 14:19:06 +08:00
Zhen Chen
de4888b119 MALI: bifrost: Add necessary calling of dev_pm_opp_put()
According to
commit 8a31d9d942 ("PM / OPP: Update OPP users to put reference")

Fixes: b0ad177659 ("MALI: rockchip: upgrade Bifrost DDK to r20p0-01rel0, from r12p0-01rel0")
Change-Id: I2df7c7ddab0ae740e75579a0f620c3d918f0eed5
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2019-10-15 12:02:31 +08:00
Liang Chen
70537fcbc1 Revert "FROMLIST: sched/topology: Make Energy Aware Scheduling depend on schedutil"
We use cpufreq_interactive governor with Energ Aware Scheduling.

This reverts commit 1e6b1214f1.

Change-Id: I782bed880c858537a89e8928921cbecaeb31d593
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-10-15 11:14:27 +08:00
Liang Chen
0543e06990 arm64: rockchip_defconfig: enable ENERGY_MODEL and CPU_FREQ_GOV_SCHEDUTIL
Change-Id: Id6205d8e81c0250ca486465c8236f4c54a0f14bf
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-10-15 11:14:18 +08:00
Liang Chen
7af7d04714 cpufreq: interactive: New 'interactive' governor
Change-Id: I23b6b07b5dc44f51e18bd6430d4908b49c1c1813
Signed-off-by: Liang Chen <cl@rock-chips.com>
2019-10-15 11:10:31 +08:00
Jianqun Xu
2fb26d6cd9 arm64: dts: rockchip: rk1808: pick commits about rk1808 dtsi from v4.4
This patch do these operation:

42a2c3610d88 Revert "Revert "arm64: dts: rockchip: update iommu clk name from "hclk" to "iface"""
ca40255ac827 arm64: dts: rockchip: adjust dmc opp-table for rk1808
3c867de9a7f3 arm64: dts: rockchip: rk1808: set PCIe as RC default
5eab28bdf11e arm64: dts: rockchip: rk1808: add usb3phy_grf_p for combo phy
a3bb2719be95 arm64: dts: rockchip: rk1808: set min voltage for dmc when low temperature
e0d40e1af1dd arm64: dts: rockchip: limit vdd_npu to 0.88V for rk1808 SoCs
ccffc153ed72 arm64: dts: rockchip: rk1808: add mipi csi dts config
ca3c7ea638a7 arm64: dts: rockchip: rk1808: Add wide-temperature configure
6d4c56b8202a arm64: dts: rockchip: Add system monitor node
77cd099b752f arm64: dts: rockchip: rk1808: disable peri ms and sram auto CS
f4eb4471e1c2 arm64: dts: rockchip: rk1808: Correct the drive strength for rgmii/rmii
302df1d57c63 arm64: dts: rockchip: modify io driver strength for rk1808
6a8dfe606a0a arm64: dts: rockchip: rk1808: assigned-clock-parents for clk_32k_ioe
c2901bf3f30e soc: rockchip: Change the parameter of power model for cpu and npu
71812e7394a4 arm64: dts: rockchip: add soc_bus support for rk1808
2463e3323cd7 arm64: dts: rockchip: adjust opp-table for rk1808 SoCs
4c3b6ea9751c arm64: dts: rockchip: rk1808: support cpu idle
e2037aa67f8f Revert "arm64: dts: rockchip: rk1808: Correct the drive strength for rgmii/rmii"
bca7a337bb60 Revert "soc: rockchip: Change the parameter of power model for cpu and npu"
63f5e887d360 Revert "arm64: dts: rockchip: Add system monitor node"
d691a5bf4b5f Revert "arm64: dts: rockchip: update iommu clk name from "hclk" to "iface""

Change-Id: Ic5915c50019710b57d28e6d1833a6132af57c870
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-10-15 10:46:29 +08:00
Zhen Chen
b0ad177659 MALI: rockchip: upgrade Bifrost DDK to r20p0-01rel0, from r12p0-01rel0
I replace "sg_dma_len" with "MALI_SG_DMA_LEN"
and rename configs which have duplicated names in midgard/, as before.

Note that drivers/gpu/arm/bifrost on DDK r20
depends on drivers/base/memory_group_manager.

Change-Id: Ie51fda035a98b5151f25a0fcf7294b88d4ecc978
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2019-10-15 10:10:21 +08:00
Zhen Chen
14a1d81065 arm64: configs: rockchip_defconfig: enable CONFIG_MALI_MEMORY_GROUP_MANAGER
Change-Id: Ie62e63c7222da4da289e8fd9767f6237de1dcbf8
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2019-10-15 10:10:21 +08:00
Zhen Chen
2ec8b27024 Add memory_group_manager introduced by Bifrost DDK r20p0-01rel0
drivers/gpu/arm/bifrost on DDK r20 depends on this module.

Change-Id: I175fbd2429aa1b8a658c431ce71503c67976db3d
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2019-10-15 10:10:21 +08:00
Marc Zyngier
0f1d09351e UPSTREAM: arm64: dts: rockchip: Add capacity-dmips-mhz attributes to rk3399
The RK3399 has the interesting property to be a so called "big-little"
system, where not all the CPUs are equal (the A53s are much weaker
than the A72s).

So far, we're not telling the OS that there is such a difference in
processing capacity, and Linux assumes that they are equal. Too bad.

Let's tell the OS about this by using the capacity-dmips-mhz
property. The values used here are those used on the Juno platform,
which is quite similar. This leads to the scheduler knowing that
it can pack more tasks on the A72s, and leads to a better interactive
experience.

Tested-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
(cherry picked from commit 97df3aa76b)
Signed-off-by: Liang Chen <cl@rock-chips.com>

Change-Id: I778b5decfbee73c8f78d9f746c9546ecff065039
2019-10-15 09:45:01 +08:00
Jianqun Xu
02a77f287b pinctrl: rockchip: add support for rk1808 SoCs
Add support for pinctrl on RK1808 SoCs.

Squash these patches:
'b2828bc4417c pinctrl: rockchip: add support for rk1808 SoCs'
'12db436a6307 pinctrl: rockchip: add rk1808 mux route'
'9fe8305b6824 pinctrl: rockchip: Fix the register offset of drive for rk1808'
'fb4f9d860bcd pinctrl: rockchip: fix rk1808_mux_route_data'
'0d9f037d8219 picntrl: rockchip: fix pull register offset for rk1808'
'56850f2349be pinctrl: rockchip: Add spi1/spi2 route select function for rk1808'

Change-Id: I0688a61af139cc24363b7515036c80d25ff6a738
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2019-10-15 09:44:02 +08:00
Shengfei Xu
647c53f05e power: battery: setup_timer() -> timer_setup()
Change-Id: I4980d5665d2465ddba0df8a078f44a83037ce285
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2019-10-15 09:41:07 +08:00
Shengfei Xu
833f9df6a7 power: charger: replace the extcon API
This patch replaces the deprecated extcon API as following:
- extcon_get_cable_state_() -> extcon_get_state()

Change-Id: Id800b939bad8695f23841d5534c285b51dd60fb0
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2019-10-15 09:41:07 +08:00
Shengfei Xu
74f151bae8 power: battery/charger: move battery/charger drivers to power/supply
Change-Id: I70092715368a9d5c7241258a97dc51e55659499b
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2019-10-15 09:41:07 +08:00
Faiz Abbas
c79c899dea FROMLIST: mmc: cqhci: commit descriptors before setting the doorbell
Add a write memory barrier to make sure that descriptors are actually
written to memory before ringing the doorbell.

Change-Id: Ia9e6b72d49969c3fff49386a3a6c0d2fd5d88237
Signed-off-by: Faiz Abbas <faiz_abbas@ti.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
(cherry picked from https://patchwork.kernel.org/patch/11189311/)
2019-10-15 08:58:15 +08:00
Shengfei xu
c17beee83e mfd: RK808: update the "pm_power_off" initalization conditons
Only the powerofff callback feature is supported through the
rockchip,system-power-controller.

Change-Id: I55e73c05a749edab6c3710e304ee86c03812ab6f
Signed-off-by: Shengfei xu <xsf@rock-chips.com>
2019-10-14 10:24:41 +08:00
shengfei Xu
39eba75127 rtc: rk808: check the rtc is available for rk816
Change-Id: I383c08cd5ad7cb282c0ec0aa12e9e84c9df52ba3
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
2019-10-14 10:24:41 +08:00