Skip to content

Commit 1908837

Browse files
wzyy2rkhuangtao
authored andcommitted
ARM: dts: sync tinker board dts
Sync our kernel with asus to reduce rebase work. origin: https://github.com/TinkerBoard/debian_kernel/blob/linux4.4-rk3288/arch/arm/boot/dts/rk3288-miniarm.dts with dmc and camera nodes deleted Change-Id: I7e699ca57465c03f41acb4ae47e5e70794118489 Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
1 parent a9aba6a commit 1908837

1 file changed

Lines changed: 137 additions & 5 deletions

File tree

arch/arm/boot/dts/rk3288-miniarm.dts

Lines changed: 137 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
*/
4040

4141
/dts-v1/;
42+
#include <dt-bindings/clock/rockchip,rk808.h>
4243
#include "rk3288.dtsi"
4344

4445
/ {
@@ -49,13 +50,51 @@
4950
reg = <0x0 0x0 0x0 0x80000000>;
5051
};
5152

53+
wireless-bluetooth {
54+
compatible = "bluetooth-platdata";
55+
uart_rts_gpios = <&gpio4 19 GPIO_ACTIVE_LOW>;
56+
pinctrl-names = "default","rts_gpio";
57+
pinctrl-0 = <&uart0_rts>;
58+
pinctrl-1 = <&uart0_gpios>;
59+
BT,reset_gpio = <&gpio4 29 GPIO_ACTIVE_HIGH>;
60+
BT,wake_gpio = <&gpio4 26 GPIO_ACTIVE_HIGH>;
61+
BT,wake_host_irq = <&gpio4 31 GPIO_ACTIVE_HIGH>;
62+
status = "okay";
63+
};
64+
65+
wireless-wlan {
66+
compatible = "wlan-platdata";
67+
rockchip,grf = <&grf>;
68+
wifi_chip_type = "ap6212";
69+
sdio_vref = <1800>;
70+
WIFI,host_wake_irq = <&gpio4 30 GPIO_ACTIVE_HIGH>;
71+
status = "okay";
72+
};
73+
5274
ext_gmac: external-gmac-clock {
5375
compatible = "fixed-clock";
5476
clock-frequency = <125000000>;
5577
clock-output-names = "ext_gmac";
5678
#clock-cells = <0>;
5779
};
5880

81+
sdio_pwrseq: sdio-pwrseq {
82+
compatible = "mmc-pwrseq-simple";
83+
clocks = <&rk808 RK808_CLKOUT1>;
84+
clock-names = "ext_clock";
85+
pinctrl-names = "default";
86+
pinctrl-0 = <&chip_enable_h>, <&wifi_enable_h>;
87+
88+
/*
89+
* On the module itself this is one of these (depending
90+
* on the actual card populated):
91+
* - SDIO_RESET_L_WL_REG_ON
92+
* - PDN (power down when low)
93+
*/
94+
reset-gpios = <&gpio4 28 GPIO_ACTIVE_LOW>,
95+
<&gpio4 27 GPIO_ACTIVE_LOW>;
96+
};
97+
5998
gpio-keys {
6099
compatible = "gpio-keys";
61100
#address-cells = <1>;
@@ -79,14 +118,19 @@
79118
compatible = "gpio-leds";
80119

81120
pwr-led {
82-
gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
121+
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
83122
linux,default-trigger = "default-on";
84123
};
85124

86125
act-led {
87-
gpios=<&gpio2 3 GPIO_ACTIVE_LOW>;
126+
gpios=<&gpio1 24 GPIO_ACTIVE_HIGH>;
88127
linux,default-trigger="mmc0";
89128
};
129+
130+
led1-led {
131+
gpios=<&gpio1 25 GPIO_ACTIVE_HIGH>;
132+
linux,default-trigger="default-off";
133+
};
90134
};
91135

92136
sound {
@@ -149,6 +193,15 @@
149193
status = "ok";
150194
};
151195

196+
&dsi0 {
197+
status = "disabled";
198+
mipi_panel: mipi-panel {
199+
compatible ="asus,tc358762";
200+
reg = <0>;
201+
status = "okay";
202+
};
203+
};
204+
152205
&gpu {
153206
mali-supply = <&vdd_gpu>;
154207
status = "okay";
@@ -208,7 +261,7 @@
208261
regulator-always-on;
209262
regulator-boot-on;
210263
regulator-min-microvolt = <750000>;
211-
regulator-max-microvolt = <1350000>;
264+
regulator-max-microvolt = <1450000>;
212265
regulator-name = "vdd_arm";
213266
regulator-ramp-delay = <6000>;
214267
regulator-state-mem {
@@ -368,6 +421,49 @@
368421

369422
&i2c2 {
370423
status = "okay";
424+
425+
m24c08@50 {
426+
compatible = "at,24c08";
427+
reg = <0x50>;
428+
};
429+
};
430+
431+
&i2c1 {
432+
status = "okay";
433+
434+
pcm5122: pcm5122@4c {
435+
#sound-dai-cells = <0>;
436+
compatible = "ti,pcm5122";
437+
reg = <0x4c>;
438+
status = "disabled";
439+
};
440+
};
441+
442+
&i2c3 {
443+
status = "okay";
444+
};
445+
446+
&i2c4 {
447+
status = "okay";
448+
};
449+
450+
&spi2 {
451+
status = "okay";
452+
max-freq = <50000000>;
453+
454+
spidev@0 {
455+
compatible = "rockchip,spi_tinker";
456+
reg = <0>;
457+
spi-max-frequency = <50000000>;
458+
spi-cpha = <1>;
459+
};
460+
461+
spidev@1 {
462+
compatible = "rockchip,spi_tinker";
463+
reg = <1>;
464+
spi-max-frequency = <50000000>;
465+
spi-cpha = <1>;
466+
};
371467
};
372468

373469
&i2s {
@@ -379,13 +475,28 @@
379475
status = "okay";
380476

381477
sdcard-supply = <&vccio_sd>;
478+
wifi-supply = <&vcc_18>;
382479
};
383480

384-
&pwm0 {
481+
&sdio0 {
385482
status = "okay";
483+
clock-frequency = <50000000>;
484+
clock-freq-min-max = <200000 50000000>;
485+
bus-width = <4>;
486+
cap-sd-highspeed;
487+
cap-sdio-irq;
488+
disable-wp;
489+
keep-power-in-suspend;
490+
mmc-pwrseq = <&sdio_pwrseq>;
491+
non-removable;
492+
num-slots = <1>;
493+
pinctrl-names = "default";
494+
pinctrl-0 = <&sdio0_bus4 &sdio0_cmd &sdio0_clk>;
495+
sd-uhs-sdr104;
496+
supports-sdio;
386497
};
387498

388-
&rga {
499+
&pwm0 {
389500
status = "okay";
390501
};
391502

@@ -398,6 +509,10 @@
398509
bus-width = <4>;
399510
cap-mmc-highspeed;
400511
cap-sd-highspeed;
512+
sd-uhs-sdr12;
513+
sd-uhs-sdr25;
514+
sd-uhs-sdr50;
515+
sd-uhs-sdr104;
401516
card-detect-delay = <200>;
402517
disable-wp; /* wp not hooked up */
403518
num-slots = <1>;
@@ -416,6 +531,8 @@
416531
};
417532

418533
&uart0 {
534+
pinctrl-names = "default";
535+
pinctrl-0 = <&uart0_xfer>, <&uart0_cts>;
419536
status = "okay";
420537
};
421538

@@ -522,6 +639,15 @@
522639
};
523640
};
524641

642+
sdio-pwrseq {
643+
wifi_enable_h: wifi-enable-h {
644+
rockchip,pins = <4 28 RK_FUNC_GPIO &pcfg_pull_none>;
645+
};
646+
chip_enable_h: chip-enable-h {
647+
rockchip,pins = <4 27 RK_FUNC_GPIO &pcfg_pull_none>;
648+
};
649+
};
650+
525651
sdmmc {
526652
/*
527653
* Default drive strength isn't enough to achieve even
@@ -556,4 +682,10 @@
556682
rockchip,pins = <7 8 RK_FUNC_GPIO &pcfg_pull_none>;
557683
};
558684
};
685+
686+
wireless-bluetooth {
687+
uart0_gpios: uart0-gpios {
688+
rockchip,pins = <4 19 RK_FUNC_GPIO &pcfg_pull_none>;
689+
};
690+
};
559691
};

0 commit comments

Comments
 (0)