3036: update rtc dts
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3036-sdk.dts
1 /dts-v1/;
2
3 #include "rk3036.dtsi"
4 #include "rk3036-pinctrl.dtsi"
5 / {
6
7         fiq-debugger {
8                 status = "okay";
9         };
10
11         pwm_regulator {
12                 compatible = "rockchip_pwm_regulator";
13                 pwms = <&pwm2 0 25000>;
14                 rockchip,pwm_id= <2>;
15                 rockchip,pwm_voltage_map= <950000 975000 1000000 1025000 1050000 1075000 1100000 1125000 1150000 1175000 1200000 1225000 1250000 1275000 1300000 1325000 1350000 1375000 1400000 1425000 1450000>;
16                 rockchip,pwm_voltage= <1250000>;
17                 rockchip,pwm_min_voltage= <950000>;
18                 rockchip,pwm_max_voltage= <1450000>;
19                 rockchip,pwm_suspend_voltage= <1250000>;
20                 rockchip,pwm_coefficient= <500>;
21                 status = "disabled";
22                 regulators {
23                         #address-cells = <1>;
24                         #size-cells = <0>;
25                         pwm_reg0: regulator@0 {
26                                 regulator-compatible = "pwm_dcdc1";
27                                 regulator-name= "vdd_arm";
28                                 regulator-min-microvolt = <950000>;
29                                 regulator-max-microvolt = <1450000>;
30                                 regulator-always-on;
31                                 regulator-boot-on;
32                         };
33                 };
34         };
35
36     wireless-wlan {
37         compatible = "wlan-platdata";
38
39         wifi_chip_type = "";
40         sdio_vref = <1800>; //1800mv or 3300mv
41
42         //power_ctrl_by_pmu;
43         //power_pmu_regulator = "act_ldo3";
44         //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
45
46         //vref_ctrl_enable;
47         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
48         //vref_pmu_regulator = "act_ldo3";
49         //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
50
51         //WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
52         //WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
53         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
54
55         status = "okay";
56     };
57
58     wireless-bluetooth {
59         compatible = "bluetooth-platdata";
60
61         //wifi-bt-power-toggle;
62
63         //uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
64         //pinctrl-names = "default","rts_gpio";
65         //pinctrl-0 = <&uart0_rts>;
66         //pinctrl-1 = <&uart0_rts_gpio>;
67
68         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
69         //BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
70         //BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
71         //BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
72
73         status = "okay";
74
75     };
76 };
77
78 &nandc {
79         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
80 };  
81
82 &emmc {
83         clock-frequency = <100000000>;
84         clock-freq-min-max = <400000 100000000>;
85
86         supports-highspeed;
87         supports-emmc;
88         bootpart-no-access;
89
90         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
91         //caps2-mmc-hs200;
92
93         ignore-pm-notify;
94         keep-power-in-suspend;
95         
96         //poll-hw-reset 
97         status = "okay";
98 };
99     
100 &sdmmc {
101                 clock-frequency = <50000000>;
102                 clock-freq-min-max = <400000 50000000>;
103                 supports-highspeed;
104                 supports-sd;
105                 broken-cd;
106                 card-detect-delay = <200>;
107
108                 ignore-pm-notify;
109                 keep-power-in-suspend;
110         
111                 //vmmc-supply = <&rk808_ldo5_reg>;
112                 status = "okay";
113 };
114                 
115 &sdio {
116                 clock-frequency = <50000000>;
117                 clock-freq-min-max = <200000 50000000>;
118                 supports-highspeed;
119                 supports-sdio;
120                 ignore-pm-notify;
121                 keep-power-in-suspend;
122                 //cap-sdio-irq;
123                 status = "okay";
124 };
125
126 &spi0 {
127         status = "okay";
128         max-freq = <48000000>;  
129         /*
130         spi_test@00 {
131                 compatible = "rockchip,spi_test_bus0_cs0";
132                 reg = <0>;
133                 spi-max-frequency = <24000000>;
134                 //spi-cpha;
135                 //spi-cpol;
136                 poll_mode = <0>;
137                 type = <0>;
138                 enable_dma = <0>;
139
140         };
141
142         spi_test@01 {
143                 compatible = "rockchip,spi_test_bus0_cs1";
144                 reg = <1>;
145                 spi-max-frequency = <24000000>;
146                 spi-cpha;
147                 spi-cpol;
148                 poll_mode = <0>;
149                 type = <0>;
150                 enable_dma = <0>;               
151         };
152         */
153 };
154
155 &uart0 {
156         status = "okay";
157         dma-names = "!tx", "!rx";
158         //pinctrl-0 = <&uart0_xfer &uart0_cts>;
159 };
160
161 &i2c1 {
162         status = "okay";
163         rtc@51 {
164                 compatible = "rtc,hym8563";
165                 reg = <0x51>;
166                 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
167         };
168 };