Commit Graph

53 Commits

Author SHA1 Message Date
XiaoTan Luo
bc1ebbaed7 arm64: dts: rockchip: set 128 mclk-fs for spdiftx
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I170bb55c9e093693c642a8b750971362c2a7de3f
2023-02-20 10:32:23 +08:00
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/<\([^ ][^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K_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
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
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
Algea Cao
e951fcc3f7 arm64: dts: rockchip: rk3399-box: Add cec pinctrl
Only box enable cec function by default.

Change-Id: Iec1c67a3570b123feb60ba12fdcee6336e791357
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2018-08-21 11:34:39 +08:00
Rocky Hao
90d074f764 arm: dts: rockchip: thermal: update soc's sw/hw over temperature power off degree
to cope with Wide Temperature Range test, we maxamize
soc's sw/hw over temperature power off degree.

fow now, 115 degree Celsius is set to trigger sw powering off.
if sw function does not work and temperature is continuing to
grow up, and till 120 degree Celsius, hw powering off/reset
is triggered.

Change-Id: I751e9ea754f434bc20df39fdbdb40216a1582c39
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
2018-06-04 17:17:38 +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
David Wu
7e0f993c89 dts: rockchip: Set pwm pin pull down when used for negative 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: Ibbb9465f7c550d49d416bc3438c5199434df6eba
Signed-off-by: David Wu <david.wu@rock-chips.com>
2018-05-07 14:52:01 +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
Zhangbin Tong
509d57bbcf arm64: dts: rockchip: rk3399-box: enable remote_support_psci
Change-Id: Icd60b10ebb65f1f181bc8ff916051c9e863809b9
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2017-08-17 18:25:34 +08:00
Mark Yao
09eb60c109 arm64: dts: rk3399-box: fix dp and hdmi dclk parents
Change-Id: Iebe0bfe248bf4ca6f61dafe1eb86a34dc6346e6f
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
2017-03-25 09:06:17 +08:00
Sugar Zhang
96d9f37fa5 ARM64: dts: rk3399 box: enable hdmi_dp_sound
Change-Id: I04bdec75510b3e47a62a5093fdbd6ec66926e282
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2017-03-09 18:07:01 +08:00
Huang zhibao
266e09781e arm64: dts: rockchip: rk3399: set ir irq handle on cpu1
Change-Id: I89f75184af810a050f6ca09daeba17774af4465e
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2017-03-08 14:25:15 +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
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
Huang, Tao
e7dfb803ed arm64: dts: rk3399: rename android to android-6.0
Except dts of VR.
The md5sum is identical after rename, so this commit is safe.

Change-Id: I9ec324355ae67bbe2bb626090402ae797de13d92
Signed-off-by: Huang, Tao <huangtao@rock-chips.com>
2017-02-20 16:47:54 +08:00
Zhangbin Tong
b33f15bdb2 ARM64: dts: rk3399-box: Add a new infrared remote control button
Change-Id: Idd384a9c8635772f3c53a0a1f60739998db1704a
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2017-02-10 15:28:06 +08:00
Zhangbin Tong
63814bda57 ARM64: dts: rk3399: enable rockchip-suspend for box
Change-Id: Ibfaee3b898dc77673b806e6a46570320918b9a5e
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2017-02-10 15:27:58 +08:00
Shawn Lin
17f6cd3459 arm64: dts: rockchip: clean up emmc_phy
freq-sel, dr-sel and opdelay are obsolete now, so we
should remove them from the DT files to prevent the
spread of unused code.

Change-Id: Ibfa4fa225231a004913aa31aac475eb252e329c6
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2017-01-11 09:28:27 +08:00
Zhangbin Tong
57e81d9f6c ARM64: dts: rk3399-box: Use gpio control for enable/disable of syr82x buck
Change-Id: I9e03084c93ffff5d8ea79ed037656ce8d6615226
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2016-12-29 11:44:09 +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
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
Jianqun Xu
949eacf000 ARM64: dts: rockchip: move rk3399 io-domain nodes to the grf
Afer the "PM / AVS: rockchip-io: make io-domains a child of the GRF",
the io-domains should be a sub-node of the grf simple-mfd.

Change-Id: Ic2a40726bccee8b795b5249e07f2537fd30b3f7b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2016-12-13 19:26:18 +08:00
Jianqun Xu
910f9d73a1 ARM64: dts: rk3399: move opp tables to rk3399-opp.dtsi
Add a new dtsi file - rk3399-opp.dtsi, to configure opp-tables
for cpu, gpu and dmc.

Add rk3399-early-opp.dtsi for board with ES1, which need limit
frequency for cpu, gpu and dmc.

Change-Id: Ib57761fd5f405b0e79039d7a01e6e023d6f5dc2c
Reviewed-by: Finley Xiao <finley.xiao@rock-chips.com>
Reviewed-by: Huang, Tao <huangtao@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2016-11-30 11:24:23 +08:00
Chen Liang
8ab24059e3 ARM64: dts: rk3399: add clock-latency-ns for each opp
We may miss clock-latency-ns when disable some opps, then cpufreq
will fallback to performance governor, so add clock-latency-ns for
each opp to make disable opp easy.

code as below:
drivers/cpufreq/cpufreq.c:2010
if (policy->governor->max_transition_latency &&
    policy->cpuinfo.transition_latency >
    policy->governor->max_transition_latency) {
	if (!gov)
        	return -EINVAL;
	else {
      		pr_warn("%s governor failed, too long transition latency of HW,
			fallback to %s governor\n",
                	policy->governor->name, gov->name);
        	policy->governor = gov;
	}
}

Change-Id: I93cff667deb487baa0115b7af0206f0803010d37
Signed-off-by: Chen Liang <cl@rock-chips.com>
2016-11-24 16:48:13 +08:00
Finley Xiao
a352c9c98a arm64: dts: rockchip: add pvtm node for rk3399
Change-Id: Ic7becefeb7e7a1000b259c21fedda76794b7115c
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2016-11-11 14:54:27 +08:00
xuhuicong
c3fb09b100 arm64: dts: rk3399-box: adjust hdmi phy_table for physical signal test
Change-Id: I4184d26dd26ccfa786d1147ec73caae006e32343
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2016-10-28 18:57:21 +08:00
xuhuicong
fff5110835 arm64: dts: rk3399-box: dp: select vopl for dp as vop0 for hdmi
Change-Id: I8ee8a2d7e5f441e765c7d3f6c805c5a0e3666e59
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2016-10-28 11:35:05 +08:00
xiaoyao
3aba2997c9 arm64: dts: rk3399: workaround: remove sd-uhs-sdr104 for sd cards
Change-Id: Ic9d1f6f0e1ff81025b8b8d8d04f98026301c900f
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2016-10-14 10:10:39 +08:00
Wu Liang feng
3300229ada arm64: dts: rockchip: add USB3 an DP child nodes for tcphy
Since the commit a2be4bc ('FIXUP: UPSTREAM: phy: Add USB
Type-C PHY driver for rk3399') has created 2 PHY devices
separately for tcphy USB3 and DisplyPort, and registered
them under the child node, we should also add the USB3
and DP child nodes to dts.

Change-Id: Iffe5dc961dc96b2b41476b1db2949e95c275e19f
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-10-13 14:21:11 +08:00
Elaine Zhang
742fcbd0cf ARM64: dts: rk3399: add regulator-ramp-delay for dcdc
used to calculate the delay time for change dcdc voltage.

Change-Id: I6bb462ef087b9ce6aa98991a1b961ed5f57bb3c8
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2016-10-11 09:22:32 +08:00
xiaoyao
e025a03fdc ARM64: dts: rk3399-box: add card-detect-delay property
Practice shows :
	The sd cards are easier to be identified after increase delay

Change-Id: I48912e2d184902fab8b27edba70281f0bf19b9ab
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2016-10-10 21:08:32 +08:00
Wu Liang feng
c9db0eeafd arm64: dts: rockchip: set dwc3 dr_mode as otg for rk3399-box
rk3399-box Type-C0 USB needs to support peripheral mode
and host mode, so we set dr_mode as otg.

Change-Id: If94cdca3ec1d018c3f9aad14bb2c1e15e10e9c51
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-10-08 11:46:13 +08:00
David Wu
9e5ea06cc7 arm64: dts: rockchip: pull down rst-gpio of gmac-phy at suspend for rk3399-box
Some phys would not enter low power mode by writing 'power down'
bit into phy common register0 such as RTL8211E. And pulling down
reset gpio is also a common way to make phy get low consumption,
if the supplied regulator of phy could not be disabled at suspend.

Change-Id: Ib01f48ec8c0bdec633868bb79e4155561ca6c471
Signed-off-by: David Wu <david.wu@rock-chips.com>
2016-09-12 14:00:36 +08:00
Meng Dongyang
d6b7f5c5ed arm64: dts: rockchip: enable Type-C1 phy for rk3399 box USB3 Host
There is an USB3 Standard-A receptacle on the rk3399 box platform
with Type-C1 phy, this patch enalbe Type-C1 phy for the USB3 port.

Change-Id: I77074823e713b8a4c5e4ff693746d1bd2c3c139c
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-09-12 11:35:15 +08:00
Hans Yang
dc83065e72 arm64: dts: rk3399-box: adjust cpul opp table
Adjust voltage of 1512M to 1.125v

Change-Id: I7da47f0df8b45cb769e5f273d334ce9056347235
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2016-09-07 13:58:24 +08:00
xuhuicong
96d2abbde3 ARM64: dts: rk3399: enable cdn_dp_fb for box
Change-Id: Idf28d25381b20e1a92193a3a825405a6ef41dfa5
Signed-off-by: xuhuicong <xhc@rock-chips.com>
2016-09-02 10:22:49 +08:00
Zhangbin Tong
f3c4a8082b arm64: dts: rk3399-box: vdd_gpu force PWM mode via regulator mode
Change-Id: I20552fb4896cc6de20b7729a6ec42447c447c01c
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
2016-09-01 11:28:42 +08:00
Jianhong Chen
45730d2cb8 arm64: dts: rk3399-box: add test-power
Change-Id: Id06771f84b07c3b943362369269274a41cabb279
Signed-off-by: Jianhong Chen <chenjh@rock-chips.com>
2016-08-19 11:01:51 +08:00
xxh
5dc07f995b arm64: dts: rk3399-box: and 32.768K clk node for BT
Change-Id: I7288d8e7a20aba17dca9cdb699da24af745e5567
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2016-08-18 18:26:40 +08:00
Wu Liang feng
46d830bccd arm64: dts: rockchip: use extcon for usb2/usb3 on rk3399 evb/box
Change-Id: I582381af1dfc5c7bb06736d3a92d2636b1523863
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-08-17 18:49:54 +08:00
Wu Liang feng
c91cc0944a arm64: dts: rockchip: enable Type-C phy for rk3399 evb/box
Change-Id: Idb2f919e008c37aa030c114c9a11df2d69126e99
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
2016-08-17 18:45:01 +08:00
Meng Dongyang
b83ef92fba ARM64: dts: rk3399: support fusb302 for box rev1/2
Change-Id: Iea3f9e673a08bc959b3f57d169fff738ce746645
Signed-off-by: Meng Dongyang <daniel.meng@rock-chips.com>
2016-08-09 17:30:57 +08:00
buluess.li
146d659a6e ARM64: dts: rk3399: adjust box temperature patameters
Change-Id: I24982ee8ccb0fc9cbc92f357661d3b07ca275920
Signed-off-by: buluess.li <buluess.li@rock-chips.com>
2016-08-09 10:18:54 +08:00
xiaoyao
c6293f935e arm64: dts: rockchip: modify sd minimum frequency for rk3399-box
The host can issue continuous clock in the frequency range
of 100KHz-400KHz for card identification mode.

Change-Id: I4e6a96a5ec49ee102a3b24c3f7f9b74d6bc8fd5f
Signed-off-by: xiaoyao <xiaoyao@rock-chips.com>
2016-08-03 17:47:43 +08:00
Hans Yang
ab1746d445 ARM64: dts: rk3399-box: adjust gpu opp table
Adjust voltage of 500M to 0.9v

Change-Id: I21ac14f27cc7aaddfea6280e76decc28c8b1182a
Signed-off-by: Hans Yang <yhx@rock-chips.com>
2016-08-03 13:17:48 +08:00
Jianqun Xu
c9c55f25e8 ARM64: dts: rk3399-box: ajust gpu opp table
Ajust voltage of 800M to 1v, and remove 700M.

Change-Id: Iabcdcee4f84693c9db53fbaf885e946bc8ca4212
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2016-07-29 14:51:07 +08:00