Skip to content

Commit a256d96

Browse files
committed
ayufan: dts: pinebook-pro: update according to latest linux changes
Change-Id: I9b27b4cbdeac7dfe7303e65136876250b3a6c907
1 parent 0671753 commit a256d96

File tree

1 file changed

+17
-72
lines changed

1 file changed

+17
-72
lines changed

arch/arm/dts/rk3399-pinebook-pro.dts

Lines changed: 17 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323

2424
backlight: backlight {
2525
compatible = "pwm-backlight";
26-
enable-gpios = <&gpio1 RK_PB5 GPIO_ACTIVE_HIGH>;
27-
pwms = <&pwm0 0 25000 0>;
26+
enable-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
27+
pwms = <&pwm0 0 740740 0>;
2828
brightness-levels = <
2929
0 1 2 3 4 5 6 7
3030
8 9 10 11 12 13 14 15
@@ -61,28 +61,6 @@
6161
default-brightness-level = <200>;
6262
};
6363

64-
leds {
65-
status = "okay";
66-
compatible = "gpio-leds";
67-
68-
power-led {
69-
label = "power";
70-
gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
71-
};
72-
73-
standby-led {
74-
label = "standby";
75-
gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
76-
};
77-
};
78-
79-
clkin_gmac: external-gmac-clock {
80-
compatible = "fixed-clock";
81-
clock-frequency = <125000000>;
82-
clock-output-names = "clkin_gmac";
83-
#clock-cells = <0>;
84-
};
85-
8664
sdio_pwrseq: sdio-pwrseq {
8765
compatible = "mmc-pwrseq-simple";
8866
clocks = <&rk808 1>;
@@ -137,23 +115,20 @@
137115

138116
vcc5v0_host: vcc5v0-host-regulator {
139117
compatible = "regulator-fixed";
140-
gpio = <&gpio4 RK_PD2 GPIO_ACTIVE_HIGH>;
118+
gpio = <&gpio4 RK_PC5 GPIO_ACTIVE_HIGH>;
141119
pinctrl-names = "default";
142120
pinctrl-0 = <&host_vbus_drv>;
143121
regulator-name = "vcc5v0_host";
144122
};
145123

146-
vcc5v0_typec0: vcc5v0-typec0-en {
147-
compatible = "regulator-fixed";
148-
regulator-name = "vcc5v0_typec0";
149-
gpio = <&gpio1 3 GPIO_ACTIVE_HIGH>;
150-
};
151-
152-
vcc_phy: vcc-phy-regulator {
124+
vcc5v0_usb3_host: vcc5v0-usb3-host-regulator {
153125
compatible = "regulator-fixed";
154-
regulator-name = "vcc_phy";
126+
enable-active-high;
127+
gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>;
128+
pinctrl-names = "default";
129+
pinctrl-0 = <&host_usb3_drv>;
130+
regulator-name = "vcc5v0_usb3_host";
155131
regulator-always-on;
156-
regulator-boot-on;
157132
};
158133

159134
vdd_log: vdd-log {
@@ -188,22 +163,6 @@
188163
status = "okay";
189164
};
190165

191-
&gmac {
192-
assigned-clocks = <&cru SCLK_RMII_SRC>;
193-
assigned-clock-parents = <&clkin_gmac>;
194-
clock_in_out = "input";
195-
phy-supply = <&vcc_phy>;
196-
phy-mode = "rgmii";
197-
pinctrl-names = "default";
198-
pinctrl-0 = <&rgmii_pins>;
199-
snps,reset-gpio = <&gpio3 RK_PB7 GPIO_ACTIVE_LOW>;
200-
snps,reset-active-low;
201-
snps,reset-delays-us = <0 10000 50000>;
202-
tx_delay = <0x28>;
203-
rx_delay = <0x20>;
204-
status = "okay";
205-
};
206-
207166
&i2c0 {
208167
clock-frequency = <400000>;
209168
i2c-scl-rising-time-ns = <168>;
@@ -240,7 +199,7 @@
240199
regulator-name = "vdd_center";
241200
regulator-always-on;
242201
regulator-boot-on;
243-
regulator-min-microvolt = <750000>;
202+
regulator-min-microvolt = <900000>;
244203
regulator-max-microvolt = <1350000>;
245204
regulator-ramp-delay = <6001>;
246205
regulator-state-mem {
@@ -395,18 +354,6 @@
395354
};
396355
};
397356

398-
&i2c1 {
399-
i2c-scl-rising-time-ns = <300>;
400-
i2c-scl-falling-time-ns = <15>;
401-
status = "okay";
402-
};
403-
404-
&i2c3 {
405-
i2c-scl-rising-time-ns = <450>;
406-
i2c-scl-falling-time-ns = <15>;
407-
status = "okay";
408-
};
409-
410357
&i2c4 {
411358
i2c-scl-rising-time-ns = <600>;
412359
i2c-scl-falling-time-ns = <20>;
@@ -416,8 +363,8 @@
416363
&io_domains {
417364
status = "okay";
418365

419-
bt656-supply = <&vcc1v8_s0>;
420-
audio-supply = <&vcc1v8_s0>;
366+
bt656-supply = <&vcc1v8_dvp>;
367+
audio-supply = <&vcca1v8_codec>;
421368
sdmmc-supply = <&vcc_sd>;
422369
gpio1830-supply = <&vcc_3v0>;
423370
};
@@ -452,7 +399,11 @@
452399

453400
usb2 {
454401
host_vbus_drv: host-vbus-drv {
455-
rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>;
402+
rockchip,pins = <4 RK_PC5 RK_FUNC_GPIO &pcfg_pull_none>;
403+
};
404+
405+
host_usb3_drv: host-usb3-drv {
406+
rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
456407
};
457408
};
458409
};
@@ -526,12 +477,6 @@
526477
};
527478
};
528479

529-
&uart0 {
530-
pinctrl-names = "default";
531-
pinctrl-0 = <&uart0_xfer &uart0_cts>;
532-
status = "okay";
533-
};
534-
535480
&uart2 {
536481
u-boot,dm-pre-reloc;
537482
status = "okay";

0 commit comments

Comments
 (0)