mmc: rk_sdmmc:
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3036-sdk.dts
1 /dts-v1/;
2 #include <dt-bindings/rkfb/rk_fb.h>
3 #include "rk3036.dtsi"
4 #include "rk3036-pinctrl.dtsi"
5 #include "lcd-box.dtsi"
6 / {
7
8         fiq-debugger {
9                 status = "okay";
10         };
11
12         pwm_regulator {
13                 compatible = "rockchip_pwm_regulator";
14                 pwms = <&pwm2 0 25000>;
15                 rockchip,pwm_id= <2>;
16                 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>;
17                 rockchip,pwm_voltage= <1250000>;
18                 rockchip,pwm_min_voltage= <950000>;
19                 rockchip,pwm_max_voltage= <1450000>;
20                 rockchip,pwm_suspend_voltage= <1250000>;
21                 rockchip,pwm_coefficient= <500>;
22                 status = "disabled";
23                 regulators {
24                         #address-cells = <1>;
25                         #size-cells = <0>;
26                         pwm_reg0: regulator@0 {
27                                 regulator-compatible = "pwm_dcdc1";
28                                 regulator-name= "vdd_arm";
29                                 regulator-min-microvolt = <950000>;
30                                 regulator-max-microvolt = <1450000>;
31                                 regulator-always-on;
32                                 regulator-boot-on;
33                         };
34                 };
35         };
36
37     wireless-wlan {
38         compatible = "wlan-platdata";
39
40         wifi_chip_type = "";
41         sdio_vref = <1800>; //1800mv or 3300mv
42
43         //power_ctrl_by_pmu;
44         //power_pmu_regulator = "act_ldo3";
45         //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
46
47         //vref_ctrl_enable;
48         //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
49         //vref_pmu_regulator = "act_ldo3";
50         //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
51
52         //WIFI,poweren_gpio = <&gpio4 GPIO_D4 GPIO_ACTIVE_HIGH>;
53         //WIFI,host_wake_irq = <&gpio4 GPIO_D6 GPIO_ACTIVE_HIGH>;
54         //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
55
56         status = "okay";
57     };
58
59         usb_control {
60                 compatible = "rockchip,rk3036-usb-control";
61                 host_drv_gpio = <&gpio2 GPIO_C7 GPIO_ACTIVE_LOW>;
62                 otg_drv_gpio = <&gpio0 GPIO_D2 GPIO_ACTIVE_LOW>;
63
64                 rockchip,remote_wakeup;
65                 rockchip,usb_irq_wakeup;
66         };
67 };
68
69 &nandc {
70         status = "okay"; // used nand set "okay" ,used emmc set "disabled"
71 };  
72
73 &nandc0reg {
74         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
75 };
76
77 &emmc {
78         clock-frequency = <100000000>;
79         clock-freq-min-max = <400000 100000000>;
80
81         supports-highspeed;
82         supports-emmc;
83         bootpart-no-access;
84
85         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
86         //caps2-mmc-hs200;
87
88         ignore-pm-notify;
89         keep-power-in-suspend;
90         
91         //poll-hw-reset 
92         status = "disabled";
93 };
94     
95 &sdmmc {
96                 clock-frequency = <50000000>;
97                 clock-freq-min-max = <400000 50000000>;
98                 supports-highspeed;
99                 supports-sd;
100                 broken-cd;
101                 card-detect-delay = <200>;
102
103                 ignore-pm-notify;
104                 keep-power-in-suspend;
105         
106                 //vmmc-supply = <&rk808_ldo5_reg>;
107                 status = "okay";
108 };
109                 
110 &sdio {
111                 clock-frequency = <50000000>;
112                 clock-freq-min-max = <200000 50000000>;
113                 supports-highspeed;
114                 supports-sdio;
115                 ignore-pm-notify;
116                 keep-power-in-suspend;
117                 //cap-sdio-irq;
118                 status = "okay";
119 };
120
121
122 &i2c1 {
123         status = "okay";
124         rtc@51 {
125                 compatible = "rtc,hym8563";
126                 reg = <0x51>;
127                 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
128         };
129 };
130
131
132 &rk_screen {
133          display-timings = <&disp_timings>;
134 };
135
136 &lcdc {
137         status = "okay";
138 };
139
140 &tve {
141         status = "disabled";
142 };
143
144 &hdmi {
145         status = "okay";
146         //rockchips,hdmi_audio_source = <0>;
147 };