3036: add sdk ,rk88 dts file
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3036-sdk.dts
1 /dts-v1/;
2
3 #include "rk3036.dtsi"
4
5 / {
6
7         fiq-debugger {
8                 status = "okay";
9         };
10
11     wireless-wlan {
12         compatible = "wlan-platdata";
13
14         wifi_chip_type = "";
15         sdio_vref = <1800>; //1800mv or 3300mv
16
17         //power_ctrl_by_pmu;
18         //power_pmu_regulator = "act_ldo3";
19         //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
20
21         //vref_ctrl_enable;
22         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
23         //vref_pmu_regulator = "act_ldo3";
24         //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
25
26         //WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
27         //WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
28         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
29
30         status = "okay";
31     };
32
33     wireless-bluetooth {
34         compatible = "bluetooth-platdata";
35
36         //wifi-bt-power-toggle;
37
38         //uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
39         //pinctrl-names = "default","rts_gpio";
40         //pinctrl-0 = <&uart0_rts>;
41         //pinctrl-1 = <&uart0_rts_gpio>;
42
43         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
44         //BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
45         //BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
46         //BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
47
48         status = "okay";
49
50     };
51 };
52
53 &nandc {
54         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
55 };  
56
57 &emmc {
58         clock-frequency = <100000000>;
59         clock-freq-min-max = <400000 100000000>;
60
61         supports-highspeed;
62         supports-emmc;
63         bootpart-no-access;
64
65         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
66         //caps2-mmc-hs200;
67
68         ignore-pm-notify;
69         keep-power-in-suspend;
70         
71         //poll-hw-reset 
72         status = "okay";
73 };
74     
75 &sdmmc {
76                 clock-frequency = <50000000>;
77                 clock-freq-min-max = <400000 50000000>;
78                 supports-highspeed;
79                 supports-sd;
80                 broken-cd;
81                 card-detect-delay = <200>;
82
83                 ignore-pm-notify;
84                 keep-power-in-suspend;
85         
86                 //vmmc-supply = <&rk808_ldo5_reg>;
87                 status = "okay";
88 };
89                 
90 &sdio {
91                 clock-frequency = <50000000>;
92                 clock-freq-min-max = <200000 50000000>;
93                 supports-highspeed;
94                 supports-sdio;
95                 ignore-pm-notify;
96                 keep-power-in-suspend;
97                 //cap-sdio-irq;
98                 status = "okay";
99 };
100
101 &spi0 {
102         status = "okay";
103         max-freq = <48000000>;  
104         /*
105         spi_test@00 {
106                 compatible = "rockchip,spi_test_bus0_cs0";
107                 reg = <0>;
108                 spi-max-frequency = <24000000>;
109                 //spi-cpha;
110                 //spi-cpol;
111                 poll_mode = <0>;
112                 type = <0>;
113                 enable_dma = <0>;
114
115         };
116
117         spi_test@01 {
118                 compatible = "rockchip,spi_test_bus0_cs1";
119                 reg = <1>;
120                 spi-max-frequency = <24000000>;
121                 spi-cpha;
122                 spi-cpol;
123                 poll_mode = <0>;
124                 type = <0>;
125                 enable_dma = <0>;               
126         };
127         */
128 };
129
130 &uart0 {
131         status = "okay";
132         dma-names = "!tx", "!rx";
133         //pinctrl-0 = <&uart0_xfer &uart0_cts>;
134 };
135
136 &i2c0 {
137         status = "okay";
138 };
139
140 &i2c1 {
141         status = "okay";
142 };
143
144 &i2c2 {
145         status = "okay";
146 };