Commit d3cf9eb2d87c8961408ec5aa6ebe0c54f2c13724
Committed by
Simon Glass
1 parent
b644354a7c
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
rockchip: pmic: Enable RK808 for rk3399 evb
For using mipi display, we need to enable lcd3v3 which supplied by rk808,so enable rk808 first. Signed-off-by: Eric Gao <eric.gao@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
Showing 2 changed files with 44 additions and 0 deletions Side-by-side Diff
arch/arm/dts/rk3399-evb.dts
... | ... | @@ -30,6 +30,13 @@ |
30 | 30 | status = "okay"; |
31 | 31 | }; |
32 | 32 | |
33 | + vccsys: vccsys { | |
34 | + compatible = "regulator-fixed"; | |
35 | + regulator-name = "vccsys"; | |
36 | + regulator-boot-on; | |
37 | + regulator-always-on; | |
38 | + }; | |
39 | + | |
33 | 40 | vcc3v3_sys: vcc3v3-sys { |
34 | 41 | compatible = "regulator-fixed"; |
35 | 42 | regulator-name = "vcc3v3_sys"; |
... | ... | @@ -51,6 +58,7 @@ |
51 | 58 | regulator-name = "vcc5v0_host"; |
52 | 59 | gpio = <&gpio4 25 GPIO_ACTIVE_HIGH>; |
53 | 60 | }; |
61 | + | |
54 | 62 | }; |
55 | 63 | |
56 | 64 | &emmc_phy { |
... | ... | @@ -110,6 +118,37 @@ |
110 | 118 | &dwc3_typec1 { |
111 | 119 | rockchip,vbus-gpio = <&gpio1 4 GPIO_ACTIVE_HIGH>; |
112 | 120 | status = "okay"; |
121 | +}; | |
122 | + | |
123 | +&i2c0 { | |
124 | + status = "okay"; | |
125 | + clock-frequency = <400000>; | |
126 | + i2c-scl-falling-time-ns = <50>; | |
127 | + i2c-scl-rising-time-ns = <100>; | |
128 | + u-boot,dm-pre-reloc; | |
129 | + | |
130 | + rk808: pmic@1b { | |
131 | + compatible = "rockchip,rk808"; | |
132 | + clock-output-names = "xin32k", "wifibt_32kin"; | |
133 | + interrupt-parent = <&gpio0>; | |
134 | + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; | |
135 | + pinctrl-names = "default"; | |
136 | + pinctrl-0 = <&pmic_int_l>; | |
137 | + reg = <0x1b>; | |
138 | + rockchip,system-power-controller; | |
139 | + #clock-cells = <1>; | |
140 | + u-boot,dm-pre-reloc; | |
141 | + status = "okay"; | |
142 | + | |
143 | + vcc12-supply = <&vcc3v3_sys>; | |
144 | + regulators { | |
145 | + vcc33_lcd: SWITCH_REG2 { | |
146 | + regulator-always-on; | |
147 | + regulator-boot-on; | |
148 | + regulator-name = "vcc33_lcd"; | |
149 | + }; | |
150 | + }; | |
151 | + }; | |
113 | 152 | }; |
114 | 153 | |
115 | 154 | &pinctrl { |
configs/evb-rk3399_defconfig