Commit Graph

52 Commits

Author SHA1 Message Date
Caesar Wang e31f1b672c arm64: dts: rockchip: use SPDX-License-Identifier
Update all 64bit rockchip devicetree files to use SPDX-License-Identifiers.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ie983cca0d54cae8b5ad6d322d51eb7bbd265aa0a
2022-08-01 14:20:46 +08:00
Shawn Lin 78f9ac0daa treewide: Migrate rockchip dts file to use new host type tags
supports-* stuff were used for rockchip platforms to speed up booting
if we know what exactly the host was used for. As we have upstreamed all
these with some very similar ways, now it's the time we migrate our dts
files to use new properties.

They were converted by:

sed -i "s/supports-emmc;/no-sdio;\n\tno-sd;/g" `grep supports-emmc -rl arch/*`
sed -i "s/supports-sd;/no-sdio;\n\tno-mmc;/g" `grep supports-sd -rl arch/*`
sed -i "s/supports-sdio;/no-sd;\n\tno-mmc;/g" `grep supports-sdio -rl arch/*`

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I33e5317ee5c7305803cf18ff4a370658abf555b0
2021-04-13 14:40:36 +08:00
Tao Huang 77bcbf172b arm64: dts: rockchip: bulk convert gpios to their constant counterparts (v2)
According to upstream commit d64420e816 ("arm64: dts: rockchip:
bulk convert gpios to their constant counterparts") replace
RK_FUNC_x -> x and RK_GPIOx -> x.

sed -i -e "
/rockchip,pins *=/bcheck
b # to end of script
:append-next-line
N
:check
/^[^;]*$/bappend-next-line
s/<RK_GPIO\([0-9]\) /<\1 /g
s/<\([^ ][^ ]*  *\)0 /<\1RK_PA0 /g
s/<\([^ ][^ ]*  *\)1 /<\1RK_PA1 /g
s/<\([^ ][^ ]*  *\)2 /<\1RK_PA2 /g
s/<\([^ ][^ ]*  *\)3 /<\1RK_PA3 /g
s/<\([^ ][^ ]*  *\)4 /<\1RK_PA4 /g
s/<\([^ ][^ ]*  *\)5 /<\1RK_PA5 /g
s/<\([^ ][^ ]*  *\)6 /<\1RK_PA6 /g
s/<\([^ ][^ ]*  *\)7 /<\1RK_PA7 /g
s/<\([^ ][^ ]*  *\)8 /<\1RK_PB0 /g
s/<\([^ ][^ ]*  *\)9 /<\1RK_PB1 /g
s/<\([^ ][^ ]*  *\)10 /<\1RK_PB2 /g
s/<\([^ ][^ ]*  *\)11 /<\1RK_PB3 /g
s/<\([^ ][^ ]*  *\)12 /<\1RK_PB4 /g
s/<\([^ ][^ ]*  *\)13 /<\1RK_PB5 /g
s/<\([^ ][^ ]*  *\)14 /<\1RK_PB6 /g
s/<\([^ ][^ ]*  *\)15 /<\1RK_PB7 /g
s/<\([^ ][^ ]*  *\)16 /<\1RK_PC0 /g
s/<\([^ ][^ ]*  *\)17 /<\1RK_PC1 /g
s/<\([^ ][^ ]*  *\)18 /<\1RK_PC2 /g
s/<\([^ ][^ ]*  *\)19 /<\1RK_PC3 /g
s/<\([^ ][^ ]*  *\)20 /<\1RK_PC4 /g
s/<\([^ ][^ ]*  *\)21 /<\1RK_PC5 /g
s/<\([^ ][^ ]*  *\)22 /<\1RK_PC6 /g
s/<\([^ ][^ ]*  *\)23 /<\1RK_PC7 /g
s/<\([^ ][^ ]*  *\)24 /<\1RK_PD0 /g
s/<\([^ ][^ ]*  *\)25 /<\1RK_PD1 /g
s/<\([^ ][^ ]*  *\)26 /<\1RK_PD2 /g
s/<\([^ ][^ ]*  *\)27 /<\1RK_PD3 /g
s/<\([^ ][^ ]*  *\)28 /<\1RK_PD4 /g
s/<\([^ ][^ ]*  *\)29 /<\1RK_PD5 /g
s/<\([^ ][^ ]*  *\)30 /<\1RK_PD6 /g
s/<\([^ ][^ ]*  *\)31 /<\1RK_PD7 /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)0 /<\1RK_FUNC_GPIO /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)RK_FUNC_\([1-9]\) /<\1\2 /g
" *.dts *.dtsi

Change-Id: I789e702620a4d0331d54474d48aaf68133795859
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-03-25 20:30:22 +08:00
XiaoTan Luo b666ebc49f arm64: dts: rockchip: rename rk_headset to rk_headset: rk-headset
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I58dc0f16c61daeff3e03442eae620965552c5f43
2020-06-19 19:40:27 +08:00
Jianing Ren 8bd34d5e1a arm64: dts: rk3399: fix the extcon property of usb
In kernel 4.4, we use the extcon notification function in dwc3-rockchip.c
to perform the drd mode switch. Kernel 4.19 implements the same
functionality in drd.c and writes the extcon notification function in
core.c. So we need to move extcon to the subnode of dwc3.

Besides, I deleted some useless code which is wrongly copied.

Change-Id: I1096e64d5a29f01c94a10027b846676033c7985d
Signed-off-by: Jianing Ren <jianing.ren@rock-chips.com>
2019-11-06 14:22:21 +08:00
David Wu 99c28b5be0 arm64: dts: rockchip: Set pwm pin default pull setting when used for pwm regulator
As a second global reset, the GRF is not reset, the iomux and
pull of PWM pin is still keeping, but PWM controller is reset,
PWM pin goes into input mode. However, the pull is still none
changed in kernel, which can cause voltage problems, so should
always keep the PWM pin pull down mode, with 0~50 μA power
increase.

Change-Id: Ibb1cbb5f5371d7838783264e23d5160c0757aaa6
Signed-off-by: David Wu <david.wu@rock-chips.com>
2019-10-31 15:21:02 +08:00
Nickey Yang 7d4444f71c arm64: dts: rockchip: rk3399: don't enable edp_hpd pin by default on soc dtsi
Not all the rk3399 boards use gpio4_c7 pin for edp_hpd.
So this pin should be specified in the board dts.
Without this patch we see below pin conflict when hdmi-cec and edp enabled.

[    0.969331] rockchip-pinctrl pinctrl: pin gpio4-23 already requested by
ff940000.hdmi; cannot claim for ff970000.edp
[    0.969350] rockchip-pinctrl pinctrl: pin-151 (ff970000.edp) status -22
[    0.969361] rockchip-pinctrl pinctrl: could not request pin 151 (gpio4-23)
from group edp-hpd on device rockchip-pinctrl

Change-Id: I324f28ea9f995ee4b84869ac369ab63e0c141cfa
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
2018-12-26 15:10:36 +08:00
Guochun Huang 029d0dfc86 arm64: dts: rockchip: rk3399: separate android firmware
- Split DT source files to separate out android firmware specific DT
bindings
- Add an alias for firmware_android in rk3399-android.dtsi

Change-Id: If3ae952c61ff01903ea990c6430255af27f5a432
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2018-10-29 09:02:38 +08:00
Finley Xiao 846fbdc826 arm64: dts: rockchip: rk3399: Change vdd_log to 900000uV
As 900000uV is enough for vdd_log.

Change-Id: I05194a4071aba066683f48e04c1d467f54bc77dc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2018-08-02 19:20:43 +08:00
Elaine Zhang 66aa9cdc5b ARM64: dts: rockchip: rk3399: mark xin32k clk as fixed clk
Change-Id: Ia9e0af6242a20c62e4042afe4d99dedcfbeb753b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2018-05-21 09:42:56 +08:00
Wyon Bi c04b581894 arm64: dts: rockchip: specify a 'bpc' property for the 6bit edp panel
Change-Id: Ifdd366eb9c2566f5b9b402a7041af539a5460944
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2018-05-11 14:48:41 +08:00
Bin Yang a43e4e60c8 arm64: dts: rockchip: gpu vd always on for rk3399 mid board
Add the 'regulator-always-on' property for vdd_gpu on rk3399-tve1030g/
rk3399-tve1205g/rk3399-mid-818-android

Change-Id: I22938c7041bc56b53983447a00e83144411b4cca
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2018-05-10 10:45:15 +08:00
Tao Huang efe187c0d4 arm64: dts: rockchip: include dt-bindings/pinctrl/rockchip.h for rk3399-tve1205g
we should not use dt-bindings/pinctrl/rk.h

Change-Id: Idb86c360ea005a48fc3e0ed6a824139eb2afa2ff
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2018-03-05 18:33:15 +08:00
Shawn Lin 1701f276af arm64: dts: rockchip: correct vqmmc voltage for rk3399 platforms
The vcc_sd is used for IO voltage for sdmmc interface on rk3399
platform have a limitation that it can't be larger than 3.0v, otherwise
it has a potential risk for the chip. Correct all of them.

Change-Id: I8d4ee2202fb32d30734c98a3b514c315e62859b4
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-10-17 14:40:27 +08:00
Sugar Zhang 721e28dd91 arm64: dts: rockchip: split i2s mclk pinctrl from i2s bus
because currently mclk is handled by codec side, so the
associated pinctrl should be handled by codec too.

Change-Id: I55db6e9a0181cae0cb414b9dcacae7ff0214b50c
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-09-22 15:03:03 +08:00
Jerry Xu fef67c9f79 ARM64: dts: rockchip: modify the name of the delay time for panel
Change-Id: Ia5be1987321873273f5ebbe79270bb66375acba6
Signed-off-by: Jerry Xu <xbl@rock-chips.com>
2017-08-03 20:19:11 +08:00
WeiYong Bi b2046b12f2 arm64: dts: rockchip: rename mipi to dsi for rk3399
Change-Id: I6c6fb4e0399b805dfa012cc5562ad71103aa85e9
Signed-off-by: WeiYong Bi <bivvy.bi@rock-chips.com>
2017-07-28 17:53:18 +08:00
wlq 3f217d60ae ARM64: dts: rk3399: config rockchip_suspend
Change-Id: I41e7e77b1cc903200c7e1711bae15c629a616564
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2017-03-13 14:58:29 +08:00
Elaine Zhang 054a12a3c0 ARM64: dts: rockchip: rk3399: invert the pwm polarity
invert the pwm polarity for new pwm interface

Change-Id: I8dfde14fbc4fd4aa907722f260ce72fdb4d7d3bb
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2017-03-06 18:45:12 +08:00
Huang, Tao 94380f7852 arm64: dts: rockchip: cleanup rk3399-android.dtsi
default enable rkvdec and vpu.
rga is default on, remove duplicate configuration.

Change-Id: I8375b2202a81977238e8120e1c2d60f2130844b5
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-02-27 20:56:10 +08:00
Zhou weixin fbf97c9bc4 ARM64: dts: rk3399-tve1205g: set fixed clock timing of panel
Change-Id: I1872ddc5d386b6707ec9ac4e1843b8346a5b36e7
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-02-22 14:31:55 +08:00
zhangjun bc52a6c2dd ARM64: dts: rk3399-tve1205g: turn off codec power when suspend
Change-Id: I3c4c841ae576e2c1aa016b915f53384ab167a4eb
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
2017-02-21 10:36:36 +08:00
Huang, Tao 40dc9d0bec arm64: dts: rk3399: rename android-next to android
The md5sum is identical after rename, so this commit is safe.

Change-Id: I97cb5faecebaad9d2e9c39f67f19f662642cc5e8
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-02-20 16:48:18 +08:00
zhangjun 7e8da6e70c arm64: dts: rockchip: Add bt sco audio support for rk3399-tve1205g
disable spdif support which is useless meanwhile

Change-Id: Ib116bac82d5d3d13392be2fb62eaf978a08592a0
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
2017-02-20 14:29:00 +08:00
Zhou weixin a553c1afed ARM64: dts: rk3399-tve1205g: fix gpio set error for hall sensor
Change-Id: I39a0be31cf56106efdd11f3ea00234004b7e420c
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-02-14 14:45:37 +08:00
Bin Yang d9e6f0183f arm64: dts: rockchip: add dp audio support for rk3399-tve1205g
Change-Id: I63c3faa8d6218d77f29776035ac8098695f65629
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2017-02-09 10:09:41 +08:00
Bin Yang 3dfb2425af arm64: dts: rockchip: add dual port dp support for rk3399-tve1205g
Change-Id: I6212cf1f829374ef2dac7ecda5ac5f0033ff5ba0
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2017-02-08 09:28:53 +08:00
Mark Yao 0ddcc75666 arm64: dts: rk3399-android-next: add cdn display node
Change-Id: I3c940e330ceab488da3d4351de3a3f9500a6fb5e
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-02-05 14:25:00 +08:00
Zhou weixin ca0d1296f2 ARM64: dts: rk3399-tve1205g: add some config for uboot charge
1. add charge ic support max input voltage and current for fusb302 pd.
2. set uboot-exit-charge-level to 2.

Change-Id: I41558bd3d72c4ad8cd4392c6cbedb4b1ebf6b28c
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-01-20 15:04:43 +08:00
Zhou weixin e385126730 ARM64: dts: rk3399-tve1205g: add config for uboot charge with fusb302 sink
Change-Id: Ie1a54a1c05f0db2b16851728bdf442699b69f277
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-01-20 15:04:35 +08:00
Shunqing Chen 9ae5e98dce ARM64: dts: rk3399-tve1205g: disable android charge
1. disable android charge
2. disable uboot charge brightness

Change-Id: Id9c4d7d2c9ef52ab319d009fe883595fc7181c0e
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2017-01-17 20:22:35 +08:00
Shawn Lin 903ea980cf arm64: dts: rockchip: replace clkreqn with cpm GPIO for rk3399-tve1205g
We should convert to use cpm mode instead of L1 substate.
Fix it anyway.

Change-Id: I5d997d53b2151ba9b1d29bd07272894a377c2eda
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-01-16 17:36:27 +08:00
Shawn Lin 753765272e arm64: dts: rockchip: enable PCIe for rk3399-tve1205g
Change-Id: I8492ea9deb6ba517bcd7a8b4bf97494368904f67
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-01-16 17:35:16 +08:00
Zhou weixin cc0af0c51d ARM64: dts: rk3399-tve1205g: add power delay for panel and correct lcd_en gpio
Change-Id: I90d701e98cf383a073b0b1c7f9bb48c8ef77a5c6
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2017-01-09 10:55:21 +08:00
Shunqing Chen e79a8a2982 ARM64: dts: rk3399-tve1205g: enable uboot charge
Change-Id: Id2ce7bc4f754f15e8fa7f45217e6eb1f8948a6f6
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2017-01-06 18:35:44 +08:00
Bin Yang 5f0302a8a1 arm64: dts: rockchip: modify vbus-5v-gpios flag to GPIO_ACTIVE_HIGH for rk3399-tve1205g
Change-Id: I43e5760b32679afd250406b1f8ddb7355c69e6b9
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2017-01-06 18:28:22 +08:00
Bin Yang 94cb162404 arm64: dts: rockchip: add discharge-gpios for rk3399-tve1205g
Change-Id: Id7f887e2d8848f0bf5c8c9d5310417cb4bc950e3
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2017-01-06 14:38:29 +08:00
Shawn Lin ab7f9662c2 arm64: dts: rockchip: add PCIe stuff for rk3399-tve1205g
Add PCIe dt-bindings for rk3399-tve1205g and keep them as
disabled status currently.

Change-Id: Ie92c6e330a6588ff88d69306674429d69b971b58
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-01-03 16:25:49 +08:00
Zhou weixin f8d1e3ce92 ARM64: dts: rk3399-tve1205g: retain battery led state in suspend
Change-Id: Ie605d3d3e0275812f5a360bbcd533c8b954a9159
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2016-12-29 10:35:55 +08:00
zhangjun f30d9c25a8 arm64: dts: rk3399-tve1205g: deploy audio configurations
Change-Id: I41ebc8a11c74536ed51720c07fbfe1817342907d
Signed-off-by: zhangjun <zhangjun@rock-chips.com>
2016-12-26 18:07:36 +08:00
Bin Yang 7b2ee306c7 arm64: dts: rockchip: add usb camera pd pin control for rk3399-tve1205g
Change-Id: Iee039f3085832861dee5a99da2cbbbec2a08f509
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
2016-12-26 17:54:03 +08:00
Shunqing Chen 2718b444f3 ARM64: dts: rk3399-tve1205g: host state notify ec module through gpio
Change-Id: I3716de0618394de010000a0497de1b3c83cd88ab
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2016-12-26 17:45:22 +08:00
Zhou weixin ff541f79f1 ARM64: dts: rk3399-tve1205g: add wakeup support for hid keyboard
Change-Id: I21d0f6dac30f64b90c68f98c11c0cc7012e2b1b6
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2016-12-22 18:12:45 +08:00
Zhou weixin 739d11dee7 ARM64: dts: rk3399-tve1205g: add leds gpio control
Change-Id: I89b0c1a2ee631b133f81494063b6cb4a57a1daca
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2016-12-22 10:14:31 +08:00
Frank Wang c2428419e7 arm64: dts: rockchip: keep vbus always on for usb2.0 host of rk3399
One basic condition of usb remote wakeup is vbus on, so we add
regulator-always-on property for vcc5v0_host regulator in this adds.

In the previous codes, ehci/ohci-platform did not power off
vcc5v0_host regulator due to some oddish codes, and we have fixed it
at commit b5a0a9e8794d.

Change-Id: I95c225c9c3aeec6e346d62e61fdcde5e5e02d143
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2016-12-21 11:05:41 +08:00
Shunqing Chen eb75fab10b ARM64: dts: rk3399: add bq25700 support for tve1205g
Change-Id: I74119a51d2557e86f3c579645db2b2b8dc71989c
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
2016-12-19 17:16:30 +08:00
Zhou weixin 59f1ccf234 ARM64: dts: rk3399: add some device support for tve1205g
1.add hid i2c toucpad
2.add hid i2c keyboard
3.add battery fuel gauge
4.add hall sensor
5.modify backlight polarity

Change-Id: I648d568a595324505f08684308197350a73d763e
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2016-12-15 17:48:47 +08:00
Mark Yao 0f0d7c9d07 ARM64: dts: rk3399-tve1205g: use simple-panel for edp panel
Edp controller support get timing from edid, so we can simple use
a dummy panel for display, so bootloader and kernel all can use same
timing from edid

Change-Id: I0cf19817aa1c38cae25603814c3605e6c16fe0f6
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2016-12-15 10:36:29 +08:00
Zhou weixin 14c54b8c5e ARM64: dts: rk3399: fix coding style for tve1205g
Change-Id: I88ec89d500142f4292fba6cd94fb8802d960dcc1
Signed-off-by: Zhou weixin <zwx@rock-chips.com>
2016-12-14 19:15:57 +08:00
Jianqun Xu 6573833677 ARM64: dts: rockchip: move rk3399 pmu-io-domain nodes to the pmugrf
Afer the "PM / AVS: rockchip-io: make io-domains a child of the GRF",
the pmu-io-domains should be a sub-node of the pmugrf simple-mfd.

Change-Id: Iebfe9041a604580ce3e5b028d7a143fcdbbdff25
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2016-12-13 19:53:25 +08:00