rk3036: add tv encoder code.
[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     wireless-bluetooth {
60         compatible = "bluetooth-platdata";
61
62         //wifi-bt-power-toggle;
63
64         //uart_rts_gpios = <&gpio4 GPIO_C3 GPIO_ACTIVE_LOW>;
65         //pinctrl-names = "default","rts_gpio";
66         //pinctrl-0 = <&uart0_rts>;
67         //pinctrl-1 = <&uart0_rts_gpio>;
68
69         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
70         //BT,reset_gpio = <&gpio4 GPIO_D5 GPIO_ACTIVE_HIGH>;
71         //BT,wake_gpio = <&gpio4 GPIO_D2 GPIO_ACTIVE_HIGH>;
72         //BT,wake_host_irq = <&gpio4 GPIO_D7 GPIO_ACTIVE_LOW>;
73
74         status = "okay";
75
76     };
77 };
78
79 &nandc {
80         status = "disabled"; // used nand set "disabled" ,used emmc set "okay"
81 };  
82
83 &emmc {
84         clock-frequency = <100000000>;
85         clock-freq-min-max = <400000 100000000>;
86
87         supports-highspeed;
88         supports-emmc;
89         bootpart-no-access;
90
91         //supports-DDR_MODE; //you should set the two value in your project. only close in RK3288-SDK board.
92         //caps2-mmc-hs200;
93
94         ignore-pm-notify;
95         keep-power-in-suspend;
96         
97         //poll-hw-reset 
98         status = "okay";
99 };
100     
101 &sdmmc {
102                 clock-frequency = <50000000>;
103                 clock-freq-min-max = <400000 50000000>;
104                 supports-highspeed;
105                 supports-sd;
106                 broken-cd;
107                 card-detect-delay = <200>;
108
109                 ignore-pm-notify;
110                 keep-power-in-suspend;
111         
112                 //vmmc-supply = <&rk808_ldo5_reg>;
113                 status = "okay";
114 };
115                 
116 &sdio {
117                 clock-frequency = <50000000>;
118                 clock-freq-min-max = <200000 50000000>;
119                 supports-highspeed;
120                 supports-sdio;
121                 ignore-pm-notify;
122                 keep-power-in-suspend;
123                 //cap-sdio-irq;
124                 status = "okay";
125 };
126
127 &uart0 {
128         status = "okay";
129         dma-names = "!tx", "!rx";
130         //pinctrl-0 = <&uart0_xfer &uart0_cts>;
131 };
132
133 &i2c1 {
134         status = "okay";
135         rtc@51 {
136                 compatible = "rtc,hym8563";
137                 reg = <0x51>;
138                 //irq_gpio = <&gpio0 GPIO_A4 IRQ_TYPE_EDGE_FALLING>;
139         };
140 };
141
142
143 &rk_screen {
144          display-timings = <&disp_timings>;
145 };
146
147 &lcdc {
148         status = "okay";
149 };