From c74dacd186051bca4b44a9ae197d04976cd1a673 Mon Sep 17 00:00:00 2001 From: zyk <“zyk@rock-chips.com”> Date: Fri, 14 Mar 2014 15:06:14 +0800 Subject: [PATCH] ARM: rockchip: update rk3288-tb.dts --- arch/arm/boot/dts/rk3288-tb.dts | 320 +++++++++++++++++++++++++++++++- 1 file changed, 314 insertions(+), 6 deletions(-) mode change 100644 => 100755 arch/arm/boot/dts/rk3288-tb.dts diff --git a/arch/arm/boot/dts/rk3288-tb.dts b/arch/arm/boot/dts/rk3288-tb.dts old mode 100644 new mode 100755 index c2ffbce0e605..1cab102c1481 --- a/arch/arm/boot/dts/rk3288-tb.dts +++ b/arch/arm/boot/dts/rk3288-tb.dts @@ -1,19 +1,327 @@ /dts-v1/; #include "rk3288.dtsi" +#include "lcd-b101ew05.dtsi" / { - fiq-debugger { - status = "okay"; - }; -/* - backlight { +fiq-debugger { + status = "okay"; + }; +backlight { compatible = "pwm-backlight"; pwms = <&pwm0 0 25000>; brightness-levels = <0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255>; default-brightness-level = <128>; enable-gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>; }; -*/ + +codec_hdmi_i2s: codec-hdmi-i2s { + compatible = "hdmi-i2s"; + }; + + codec_hdmi_spdif: codec-hdmi-spdif { + compatible = "hdmi-spdif"; + }; +} + +&i2c0 { + status = "okay"; + rk808: rk808@1b { + reg = <0x1b>; + status = "okay"; + }; + + bq24296: bq24296@6b { + compatible = "ti,bq24296"; + reg = <0x6b>; +/* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */ + bq24296,chg_current = <1000 500 2000>; + status = "disable"; + }; + bq27320: bq27320@55 { + compatible = "ti,bq27320"; + reg = <0x55>; +/* gpios = <&gpio0 GPIO_A7 GPIO_ACTIVE_HIGH>; */ + status = "disable"; + }; +}; + +&i2c1 { + status = "okay"; + rtc@51 { + compatible = "nxp,pcf8563"; + reg = <0x51>; + }; + + sensor@1d { + compatible = "gs_mma8452"; + reg = <0x1d>; + type = ; + irq-gpio = <&gpio8 GPIO_A0 IRQ_TYPE_EDGE_FALLING>; + irq_enable = <1>; + poll_delay_ms = <30>; + layout = <1>; + }; + sensor@19 { + compatible = "gs_lis3dh"; + reg = <0x19>; + type = ; + irq-gpio = <&gpio0 GPIO_A0 IRQ_TYPE_LEVEL_LOW>; + irq_enable = <1>; + poll_delay_ms = <30>; + layout = <1>; + }; + sensor@0d { + compatible = "ak8963"; + reg = <0x0d>; + type = ; + irq-gpio = <&gpio8 GPIO_A2 IRQ_TYPE_EDGE_RISING>; + irq_enable = <1>; + poll_delay_ms = <30>; + layout = <1>; + }; + + sensor@6b { + compatible = "l3g20d_gyro"; + reg = <0x6b>; + type = ; + irq-gpio = <&gpio8 GPIO_A3 IRQ_TYPE_LEVEL_LOW>; + irq_enable = <1>; + poll_delay_ms = <30>; + layout = <1>; + }; + +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; + ts@55 { + compatible = "goodix,gt8xx"; + reg = <0x55>; + touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>; + reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_LOW>; + //power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>; + max-x = <1280>; + max-y = <800>; + }; + + ts@01 { + compatible = "ct,ct36x"; + reg = <0x01>; + ct-model = <365>; + touch-gpio = <&gpio7 GPIO_A6 IRQ_TYPE_LEVEL_LOW>; + reset-gpio = <&gpio7 GPIO_A5 GPIO_ACTIVE_HIGH>; + max-x = <1280>; + max-y = <800>; + orientation=<1 0 0 1>; + }; +}; + +&i2c5 { + status = "okay"; +}; + +&fb { + rockchip,disp-mode = ; +}; + +&rk_screen { + display-timings = <&disp_timings>; +}; + +&lcdc0 { + status = "okay"; + power_ctr: power_ctr { + rockchip,debug = <0>; + lcd_en:lcd_en { + rockchip,power_type = ; + gpios = <&gpio7 GPIO_A3 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + bl_en:bl_en { + rockchip,power_type = ; + gpios = <&gpio7 GPIO_A2 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + /* + bl_ctr:bl_ctr { + rockchip,power_type = ; + gpios = <&gpio3 GPIO_D6 GPIO_ACTIVE_HIGH>; + rockchip,delay = <10>; + }; + + lcd_rst:lcd_rst { + rockchip,power_type = ; + rockchip,delay = <5>; + };*/ + + }; +}; + +&lcdc1 { + status = "okay"; +}; + + +&adc { + status = "okay"; + + key { + compatible = "rockchip,key"; + io-channels = <&adc 1>; + + vol-up-key { + linux,code = <115>; + label = "volume up"; + rockchip,adc_value = <1>; + }; + + vol-down-key { + linux,code = <114>; + label = "volume down"; + rockchip,adc_value = <170>; + }; + + power-key { + gpios = <&gpio0 GPIO_A4 GPIO_ACTIVE_LOW>; + linux,code = <116>; + label = "power"; + gpio-key,wakeup; + }; + + menu-key { + linux,code = <139>; + label = "menu"; + rockchip,adc_value = <355>; + }; + + home-key { + linux,code = <102>; + label = "home"; + rockchip,adc_value = <746>; + }; + + back-key { + linux,code = <158>; + label = "back"; + rockchip,adc_value = <560>; + }; + + camera-key { + linux,code = <212>; + label = "camera"; + rockchip,adc_value = <450>; + }; + }; +}; + + +/include/ "rk808.dtsi" +&rk808 { + gpios =<&gpio0 GPIO_B3 GPIO_ACTIVE_HIGH>,<&gpio0 GPIO_A1 GPIO_ACTIVE_LOW>; + + regulators { + + rk808_dcdc1_reg: regulator@0{ + regulator-name= "vdd_arm"; + regulator-always-on; + regulator-boot-on; + }; + + rk808_dcdc2_reg: regulator@1 { + regulator-name= "vdd_logic"; + regulator-always-on; + regulator-boot-on; + }; + + rk808_dcdc3_reg: regulator@2 { + regulator-name= "rk_dcdc3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_dcdc4_reg: regulator@3 { + regulator-name= "vccio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo1_reg: regulator@4 { + regulator-name= "rk_ldo1"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo2_reg: regulator@5 { + regulator-name= "rk_ldo2"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo3_reg: regulator@6 { + regulator-name= "rk_ldo3"; + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <1000000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo4_reg:regulator@7 { + regulator-name= "rk_ldo4"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo5_reg: regulator@8 { + regulator-name= "rk_ldo5"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo6_reg: regulator@9 { + regulator-name= "rk_ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo7_reg: regulator@10 { + regulator-name= "rk_ldo7"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + + rk808_ldo8_reg: regulator@11 { + regulator-name= "rk_ldo8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + regulator-boot-on; + }; + }; }; -- 2.34.1