codec : Remove codec dts From rk312x.dtsi To rk3128-box.dtsi
[firefly-linux-kernel-4.4.55.git] / arch / arm / boot / dts / rk3128-box.dts
1 #include "rk312x-sdk.dtsi"
2 #include "lcd-box.dtsi"
3
4 / {
5          compatible = "rockchip,rk3128";
6         wireless-wlan {
7                 compatible = "wlan-platdata";
8
9                 wifi_chip_type = "";
10                 sdio_vref = <0>; //1800mv or 3300mv
11
12                 //power_ctrl_by_pmu;
13                 //power_pmu_regulator = "act_ldo3";
14                 //power_pmu_enable_level = <1>; //1->HIGH, 0->LOW
15
16                 //vref_ctrl_enable;
17                 //vref_ctrl_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
18                 //vref_pmu_regulator = "act_ldo3";
19                 //vref_pmu_enable_level = <1>; //1->HIGH, 0->LOW
20
21                 WIFI,poweren_gpio = <&gpio0 GPIO_D6 GPIO_ACTIVE_HIGH>;
22                 WIFI,host_wake_irq = <&gpio0 GPIO_A2 GPIO_ACTIVE_HIGH>;
23                 //WIFI,reset_gpio = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
24
25                 status = "okay";
26     };
27
28     wireless-bluetooth {
29         compatible = "bluetooth-platdata";
30
31         //wifi-bt-power-toggle;
32
33         uart_rts_gpios = <&gpio0 GPIO_C2 GPIO_ACTIVE_LOW>;
34         pinctrl-names = "default","rts_gpio";
35         pinctrl-0 = <&uart0_rts>;
36         pinctrl-1 = <&uart0_rts_gpio>;
37
38         //BT,power_gpio = <&gpio4 GPIO_D3 GPIO_ACTIVE_HIGH>;
39         BT,reset_gpio = <&gpio3 GPIO_C5 GPIO_ACTIVE_HIGH>;
40         BT,wake_gpio = <&gpio1 GPIO_B4 GPIO_ACTIVE_HIGH>;
41         BT,wake_host_irq = <&gpio0 GPIO_A2 GPIO_ACTIVE_LOW>;
42
43         status = "disabled";
44     };
45         usb_control {
46                 compatible = "rockchip,rk3126-usb-control";
47                 host_drv_gpio = <&gpio3 GPIO_C4 GPIO_ACTIVE_LOW>;
48                 otg_drv_gpio = <&gpio3 GPIO_C1 GPIO_ACTIVE_LOW>;
49
50                 rockchip,remote_wakeup;
51                 rockchip,usb_irq_wakeup;
52         };
53
54         codec: codec@20030000 {
55                 compatible = "rk312x-codec";
56                 reg = <0x20030000 0x1000>;
57                 spk_ctl_io = <&gpio1 GPIO_A3 0>;
58                 //pinctrl-names = "default";
59                 //pinctrl-0 = <&i2s_gpio>;
60
61                 boot_depop = <1>;
62                 pa_enable_time = <1000>;
63                 clocks = <&clk_gates5 14>;
64                 clock-names = "g_pclk_acodec";
65         };
66 };
67
68
69 &clk_core_dvfs_table {
70         operating-points = <
71                 /* KHz    uV */
72                 /*408000 1250000
73                 600000 1250000
74                 696000 1250000
75                 */
76                 816000 1250000
77                 1008000 1250000
78                 >;
79         status="okay";
80 };
81
82 &clk_gpu_dvfs_table {
83         operating-points = <
84                 /* KHz    uV */
85                 200000 1250000
86                 300000 1250000
87                 >;
88         status="okay";
89 };
90
91 &clk_ddr_dvfs_table {
92         operating-points = <
93                 /* KHz    uV */
94                 200000 950000
95                 300000 950000
96                 400000 1000000
97                 533000 1050000
98                 >;
99
100         freq-table = <
101                 /*status                freq(KHz)*/
102                 SYS_STATUS_NORMAL       400000
103                 SYS_STATUS_SUSPEND      200000
104                 SYS_STATUS_VIDEO_1080P  240000
105                 SYS_STATUS_VIDEO_4K     400000
106                 SYS_STATUS_PERFORMANCE  528000
107                 SYS_STATUS_DUALVIEW     400000
108                 SYS_STATUS_BOOST        324000
109                 SYS_STATUS_ISP          533000
110                 >;
111         auto-freq-table = <
112                 240000
113                 324000
114                 396000
115                 528000
116                 >;
117         auto-freq=<0>;
118         status="disable";
119 };
120
121 &pwm_regulator1 {
122         status = "okay";
123 };
124
125 &pwm_regulator2 {
126         status = "okay";
127 };
128
129 &pwm1 {
130         status = "okay";
131 };
132
133 &pwm2 {
134         status = "okay";
135 };
136
137 &rk_screen {
138         display-timings = <&disp_timings>;
139 };
140
141 &lcdc {
142         status = "okay";
143 };
144
145 &tve {
146         status = "disabled";
147 };
148
149 &i2c2 {
150         status = "disabled";
151 };
152
153 &gmac {
154         //pmu_regulator = "act_ldo5";
155         //pmu_enable_level = <1>; //1->HIGH, 0->LOW
156         //power-gpio = <&gpio0 GPIO_A6 GPIO_ACTIVE_HIGH>;
157         reset-gpio = <&gpio2 GPIO_D0 GPIO_ACTIVE_LOW>;
158 };