1 // SPDX-License-Identifier: GPL-2.0 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/gpio/gpio.h> 2 #include <dt-bindings/gpio/gpio.h> 3 #include <dt-bindings/input/input.h> 3 #include <dt-bindings/input/input.h> 4 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h 4 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 5 5 6 #include "qcom-apq8064-v2.0.dtsi" 6 #include "qcom-apq8064-v2.0.dtsi" 7 #include "pm8821.dtsi" 7 #include "pm8821.dtsi" 8 #include "pm8921.dtsi" 8 #include "pm8921.dtsi" 9 9 10 / { 10 / { 11 model = "Asus Nexus7(flo)"; 11 model = "Asus Nexus7(flo)"; 12 compatible = "asus,nexus7-flo", "qcom, 12 compatible = "asus,nexus7-flo", "qcom,apq8064"; 13 chassis-type = "tablet"; 13 chassis-type = "tablet"; 14 14 15 aliases { 15 aliases { 16 serial0 = &gsbi7_serial; 16 serial0 = &gsbi7_serial; 17 serial1 = &gsbi6_serial; 17 serial1 = &gsbi6_serial; 18 }; 18 }; 19 19 20 chosen { 20 chosen { 21 stdout-path = "serial0:115200n 21 stdout-path = "serial0:115200n8"; 22 }; 22 }; 23 23 24 reserved-memory { 24 reserved-memory { 25 #address-cells = <1>; 25 #address-cells = <1>; 26 #size-cells = <1>; 26 #size-cells = <1>; 27 ranges; 27 ranges; 28 28 29 ramoops@88d00000 { 29 ramoops@88d00000 { 30 compatible = "ramoops" 30 compatible = "ramoops"; 31 reg = <0x88d00000 0x10 31 reg = <0x88d00000 0x100000>; 32 record-size = <0x00020 32 record-size = <0x00020000>; 33 console-size = <0x0002 33 console-size = <0x00020000>; 34 ftrace-size = <0x00020 34 ftrace-size = <0x00020000>; 35 }; 35 }; 36 }; 36 }; 37 37 38 ext_3p3v: regulator-ext-3p3v { 38 ext_3p3v: regulator-ext-3p3v { 39 compatible = "regulator-fixed" 39 compatible = "regulator-fixed"; 40 regulator-min-microvolt = <330 40 regulator-min-microvolt = <3300000>; 41 regulator-max-microvolt = <330 41 regulator-max-microvolt = <3300000>; 42 regulator-name = "ext_3p3v"; 42 regulator-name = "ext_3p3v"; 43 startup-delay-us = <0>; 43 startup-delay-us = <0>; 44 gpio = <&tlmm_pinmux 77 GPIO_A 44 gpio = <&tlmm_pinmux 77 GPIO_ACTIVE_HIGH>; 45 enable-active-high; 45 enable-active-high; 46 regulator-boot-on; 46 regulator-boot-on; 47 }; 47 }; 48 48 49 gpio-keys { 49 gpio-keys { 50 compatible = "gpio-keys"; 50 compatible = "gpio-keys"; 51 key-volume-up { 51 key-volume-up { 52 label = "Volume Up"; 52 label = "Volume Up"; 53 gpios = <&pm8921_gpio 53 gpios = <&pm8921_gpio 4 GPIO_ACTIVE_HIGH>; 54 linux,code = <KEY_VOLU 54 linux,code = <KEY_VOLUMEUP>; 55 }; 55 }; 56 key-volume-down { 56 key-volume-down { 57 label = "Volume Down"; 57 label = "Volume Down"; 58 gpios = <&pm8921_gpio 58 gpios = <&pm8921_gpio 38 GPIO_ACTIVE_HIGH>; 59 linux,code = <KEY_VOLU 59 linux,code = <KEY_VOLUMEDOWN>; 60 }; 60 }; 61 }; 61 }; 62 62 63 soc { 63 soc { 64 sram@2a03f000 { 64 sram@2a03f000 { 65 compatible = "qcom,apq 65 compatible = "qcom,apq8064-imem", "syscon", "simple-mfd"; 66 reg = <0x2a03f000 0x10 66 reg = <0x2a03f000 0x1000>; 67 67 68 reboot-mode { 68 reboot-mode { 69 compatible = " 69 compatible = "syscon-reboot-mode"; 70 offset = <0x65 70 offset = <0x65c>; 71 71 72 mode-normal = 72 mode-normal = <0x77665501>; 73 mode-bootloade 73 mode-bootloader = <0x77665500>; 74 mode-recovery 74 mode-recovery = <0x77665502>; 75 }; 75 }; 76 }; 76 }; 77 }; 77 }; 78 }; 78 }; 79 79 80 &dsi0 { 80 &dsi0 { 81 vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 81 vdda-supply = <&pm8921_l2>;/*VDD_MIPI1 to 4*/ 82 vdd-supply = <&pm8921_l8>; 82 vdd-supply = <&pm8921_l8>; 83 vddio-supply = <&pm8921_lvs7>; 83 vddio-supply = <&pm8921_lvs7>; 84 avdd-supply = <&pm8921_l11>; 84 avdd-supply = <&pm8921_l11>; 85 status = "okay"; 85 status = "okay"; 86 86 87 panel@0 { 87 panel@0 { 88 reg = <0>; 88 reg = <0>; 89 compatible = "jdi,lt070me05000 89 compatible = "jdi,lt070me05000"; 90 90 91 vddp-supply = <&pm8921_l17>; 91 vddp-supply = <&pm8921_l17>; 92 iovcc-supply = <&pm8921_lvs7>; 92 iovcc-supply = <&pm8921_lvs7>; 93 93 94 enable-gpios = <&pm8921_gpio 3 94 enable-gpios = <&pm8921_gpio 36 GPIO_ACTIVE_HIGH>; 95 reset-gpios = <&tlmm_pinmux 54 95 reset-gpios = <&tlmm_pinmux 54 GPIO_ACTIVE_LOW>; 96 dcdc-en-gpios = <&pm8921_gpio 96 dcdc-en-gpios = <&pm8921_gpio 23 GPIO_ACTIVE_HIGH>; 97 97 98 port { 98 port { 99 panel_in: endpoint { 99 panel_in: endpoint { 100 remote-endpoin 100 remote-endpoint = <&dsi0_out>; 101 }; 101 }; 102 }; 102 }; 103 }; 103 }; 104 }; 104 }; 105 105 106 &dsi0_in { 106 &dsi0_in { 107 remote-endpoint = <&mdp_dsi1_out>; 107 remote-endpoint = <&mdp_dsi1_out>; 108 }; 108 }; 109 109 110 &dsi0_out { 110 &dsi0_out { 111 remote-endpoint = <&panel_in>; 111 remote-endpoint = <&panel_in>; 112 data-lanes = <0 1 2 3>; 112 data-lanes = <0 1 2 3>; 113 }; 113 }; 114 114 115 &dsi0_phy { 115 &dsi0_phy { 116 vddio-supply = <&pm8921_lvs7>;/*VDD_PL 116 vddio-supply = <&pm8921_lvs7>;/*VDD_PLL2_1 to 7*/ 117 status = "okay"; 117 status = "okay"; 118 }; 118 }; 119 119 120 &gsbi1 { 120 &gsbi1 { 121 qcom,mode = <GSBI_PROT_I2C>; 121 qcom,mode = <GSBI_PROT_I2C>; 122 status = "okay"; 122 status = "okay"; 123 }; 123 }; 124 124 125 &gsbi1_i2c { 125 &gsbi1_i2c { 126 status = "okay"; 126 status = "okay"; 127 clock-frequency = <200000>; 127 clock-frequency = <200000>; >> 128 pinctrl-0 = <&i2c1_pins>; >> 129 pinctrl-names = "default"; 128 130 129 eeprom@52 { 131 eeprom@52 { 130 compatible = "atmel,24c128"; 132 compatible = "atmel,24c128"; 131 reg = <0x52>; 133 reg = <0x52>; 132 pagesize = <32>; 134 pagesize = <32>; 133 }; 135 }; 134 136 135 bq27541@55 { 137 bq27541@55 { 136 compatible = "ti,bq27541"; 138 compatible = "ti,bq27541"; 137 reg = <0x55>; 139 reg = <0x55>; 138 }; 140 }; 139 141 140 }; 142 }; 141 143 142 &gsbi3 { 144 &gsbi3 { 143 qcom,mode = <GSBI_PROT_I2C>; 145 qcom,mode = <GSBI_PROT_I2C>; 144 status = "okay"; 146 status = "okay"; 145 }; 147 }; 146 148 147 &gsbi3_i2c { 149 &gsbi3_i2c { 148 clock-frequency = <200000>; 150 clock-frequency = <200000>; >> 151 pinctrl-0 = <&i2c3_pins>; >> 152 pinctrl-names = "default"; 149 status = "okay"; 153 status = "okay"; 150 154 151 trackpad@10 { 155 trackpad@10 { 152 compatible = "elan,ekth3500"; 156 compatible = "elan,ekth3500"; 153 reg = <0x10>; 157 reg = <0x10>; 154 interrupt-parent = <&tlmm_pinm 158 interrupt-parent = <&tlmm_pinmux>; 155 interrupts = <6 IRQ_TYPE_EDGE_ 159 interrupts = <6 IRQ_TYPE_EDGE_FALLING>; 156 }; 160 }; 157 }; 161 }; 158 162 159 &gsbi6 { 163 &gsbi6 { 160 qcom,mode = <GSBI_PROT_I2C_UART>; 164 qcom,mode = <GSBI_PROT_I2C_UART>; 161 status = "okay"; 165 status = "okay"; 162 }; 166 }; 163 167 164 &gsbi6_serial { 168 &gsbi6_serial { 165 pinctrl-names = "default"; 169 pinctrl-names = "default"; 166 pinctrl-0 = <&gsbi6_uart_4pins>; 170 pinctrl-0 = <&gsbi6_uart_4pins>; 167 status = "okay"; 171 status = "okay"; 168 }; 172 }; 169 173 170 &gsbi7 { 174 &gsbi7 { 171 qcom,mode = <GSBI_PROT_I2C_UART>; 175 qcom,mode = <GSBI_PROT_I2C_UART>; 172 status = "okay"; 176 status = "okay"; 173 }; 177 }; 174 178 175 &gsbi7_serial { 179 &gsbi7_serial { 176 status = "okay"; 180 status = "okay"; 177 }; 181 }; 178 182 179 &mdp { 183 &mdp { 180 status = "okay"; 184 status = "okay"; 181 }; 185 }; 182 186 183 &mdp_dsi1_out { 187 &mdp_dsi1_out { 184 remote-endpoint = <&dsi0_in>; 188 remote-endpoint = <&dsi0_in>; 185 }; 189 }; 186 190 187 &pm8821 { 191 &pm8821 { 188 interrupts-extended = <&tlmm_pinmux 76 192 interrupts-extended = <&tlmm_pinmux 76 IRQ_TYPE_LEVEL_LOW>; 189 }; 193 }; 190 194 191 &pm8921 { 195 &pm8921 { 192 interrupts-extended = <&tlmm_pinmux 74 196 interrupts-extended = <&tlmm_pinmux 74 IRQ_TYPE_LEVEL_LOW>; 193 }; 197 }; 194 198 195 &rpm { 199 &rpm { 196 regulators { 200 regulators { 197 compatible = "qcom,rpm-pm8921- 201 compatible = "qcom,rpm-pm8921-regulators"; 198 202 199 vdd_l1_l2_l12_l18-supply = <&p 203 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>; 200 vin_lvs1_3_6-supply = <&pm8921 204 vin_lvs1_3_6-supply = <&pm8921_s4>; 201 vin_lvs4_5_7-supply = <&pm8921 205 vin_lvs4_5_7-supply = <&pm8921_s4>; 202 206 203 vdd_l24-supply = <&pm8921_s1>; 207 vdd_l24-supply = <&pm8921_s1>; 204 vdd_l25-supply = <&pm8921_s1>; 208 vdd_l25-supply = <&pm8921_s1>; 205 vin_lvs2-supply = <&pm8921_s1> 209 vin_lvs2-supply = <&pm8921_s1>; 206 210 207 vdd_l26-supply = <&pm8921_s7>; 211 vdd_l26-supply = <&pm8921_s7>; 208 vdd_l27-supply = <&pm8921_s7>; 212 vdd_l27-supply = <&pm8921_s7>; 209 vdd_l28-supply = <&pm8921_s7>; 213 vdd_l28-supply = <&pm8921_s7>; 210 214 211 vdd_ncp-supply = <&pm8921_l6>; 215 vdd_ncp-supply = <&pm8921_l6>; 212 216 213 /* Buck SMPS */ 217 /* Buck SMPS */ 214 pm8921_s1: s1 { 218 pm8921_s1: s1 { 215 regulator-always-on; 219 regulator-always-on; 216 regulator-min-microvol 220 regulator-min-microvolt = <1225000>; 217 regulator-max-microvol 221 regulator-max-microvolt = <1225000>; 218 qcom,switch-mode-frequ 222 qcom,switch-mode-frequency = <3200000>; 219 bias-pull-down; 223 bias-pull-down; 220 }; 224 }; 221 225 222 /* msm otg HSUSB_VDDCX */ 226 /* msm otg HSUSB_VDDCX */ 223 pm8921_s3: s3 { 227 pm8921_s3: s3 { 224 regulator-min-microvol 228 regulator-min-microvolt = <500000>; 225 regulator-max-microvol 229 regulator-max-microvolt = <1150000>; 226 qcom,switch-mode-frequ 230 qcom,switch-mode-frequency = <4800000>; 227 }; 231 }; 228 232 229 /* 233 /* 230 * msm_sdcc.1-sdc-vdd_io 234 * msm_sdcc.1-sdc-vdd_io 231 * tabla2x-slim-CDC_VDDA_RX 235 * tabla2x-slim-CDC_VDDA_RX 232 * tabla2x-slim-CDC_VDDA_TX 236 * tabla2x-slim-CDC_VDDA_TX 233 * tabla2x-slim-CDC_VDD_CP 237 * tabla2x-slim-CDC_VDD_CP 234 * tabla2x-slim-VDDIO_CDC 238 * tabla2x-slim-VDDIO_CDC 235 */ 239 */ 236 pm8921_s4: s4 { 240 pm8921_s4: s4 { 237 regulator-min-microvol 241 regulator-min-microvolt = <1800000>; 238 regulator-max-microvol 242 regulator-max-microvolt = <1800000>; 239 qcom,switch-mode-frequ 243 qcom,switch-mode-frequency = <3200000>; 240 regulator-always-on; 244 regulator-always-on; 241 }; 245 }; 242 246 243 pm8921_s7: s7 { 247 pm8921_s7: s7 { 244 regulator-min-microvol 248 regulator-min-microvolt = <1300000>; 245 regulator-max-microvol 249 regulator-max-microvolt = <1300000>; 246 qcom,switch-mode-frequ 250 qcom,switch-mode-frequency = <3200000>; 247 }; 251 }; 248 252 249 /* mipi_dsi.1-dsi1_pll_vdda */ 253 /* mipi_dsi.1-dsi1_pll_vdda */ 250 pm8921_l2: l2 { 254 pm8921_l2: l2 { 251 regulator-min-microvol 255 regulator-min-microvolt = <1200000>; 252 regulator-max-microvol 256 regulator-max-microvolt = <1200000>; 253 regulator-always-on; 257 regulator-always-on; 254 }; 258 }; 255 259 256 /* msm_otg-HSUSB_3p3 */ 260 /* msm_otg-HSUSB_3p3 */ 257 pm8921_l3: l3 { 261 pm8921_l3: l3 { 258 regulator-min-microvol 262 regulator-min-microvolt = <3075000>; 259 regulator-max-microvol 263 regulator-max-microvolt = <3075000>; 260 bias-pull-down; 264 bias-pull-down; 261 }; 265 }; 262 266 263 /* msm_otg-HSUSB_1p8 */ 267 /* msm_otg-HSUSB_1p8 */ 264 pm8921_l4: l4 { 268 pm8921_l4: l4 { 265 regulator-min-microvol 269 regulator-min-microvolt = <1800000>; 266 regulator-max-microvol 270 regulator-max-microvolt = <1800000>; 267 bias-pull-down; 271 bias-pull-down; 268 }; 272 }; 269 273 270 /* msm_sdcc.1-sdc_vdd */ 274 /* msm_sdcc.1-sdc_vdd */ 271 pm8921_l5: l5 { 275 pm8921_l5: l5 { 272 regulator-min-microvol 276 regulator-min-microvolt = <2950000>; 273 regulator-max-microvol 277 regulator-max-microvolt = <2950000>; 274 regulator-always-on; 278 regulator-always-on; 275 bias-pull-down; 279 bias-pull-down; 276 }; 280 }; 277 281 278 pm8921_l6: l6 { 282 pm8921_l6: l6 { 279 regulator-min-microvol 283 regulator-min-microvolt = <2950000>; 280 regulator-max-microvol 284 regulator-max-microvolt = <2950000>; 281 }; 285 }; 282 286 283 pm8921_l8: l8 { 287 pm8921_l8: l8 { 284 }; 288 }; 285 289 286 /* mipi_dsi.1-dsi1_avdd */ 290 /* mipi_dsi.1-dsi1_avdd */ 287 pm8921_l11: l11 { 291 pm8921_l11: l11 { 288 regulator-min-microvol 292 regulator-min-microvolt = <3000000>; 289 regulator-max-microvol 293 regulator-max-microvolt = <3000000>; 290 bias-pull-down; 294 bias-pull-down; 291 regulator-always-on; 295 regulator-always-on; 292 }; 296 }; 293 297 294 /* pwm_power for backlight */ 298 /* pwm_power for backlight */ 295 pm8921_l17: l17 { 299 pm8921_l17: l17 { 296 regulator-min-microvol 300 regulator-min-microvolt = <3000000>; 297 regulator-max-microvol 301 regulator-max-microvolt = <3000000>; 298 regulator-always-on; 302 regulator-always-on; 299 }; 303 }; 300 304 301 /* camera, qdsp6 */ 305 /* camera, qdsp6 */ 302 pm8921_l23: l23 { 306 pm8921_l23: l23 { 303 regulator-min-microvol 307 regulator-min-microvolt = <1800000>; 304 regulator-max-microvol 308 regulator-max-microvolt = <1800000>; 305 bias-pull-down; 309 bias-pull-down; 306 }; 310 }; 307 311 308 /* 312 /* 309 * tabla2x-slim-CDC_VDDA_A_1P2 313 * tabla2x-slim-CDC_VDDA_A_1P2V 310 * tabla2x-slim-VDDD_CDC_D 314 * tabla2x-slim-VDDD_CDC_D 311 */ 315 */ 312 pm8921_l25: l25 { 316 pm8921_l25: l25 { 313 regulator-min-microvol 317 regulator-min-microvolt = <1250000>; 314 regulator-max-microvol 318 regulator-max-microvolt = <1250000>; 315 bias-pull-down; 319 bias-pull-down; 316 }; 320 }; 317 321 318 pm8921_lvs1: lvs1 { 322 pm8921_lvs1: lvs1 { 319 bias-pull-down; 323 bias-pull-down; 320 }; 324 }; 321 325 322 pm8921_lvs4: lvs4 { 326 pm8921_lvs4: lvs4 { 323 bias-pull-down; 327 bias-pull-down; 324 }; 328 }; 325 329 326 pm8921_lvs5: lvs5 { 330 pm8921_lvs5: lvs5 { 327 bias-pull-down; 331 bias-pull-down; 328 }; 332 }; 329 333 330 pm8921_lvs6: lvs6 { 334 pm8921_lvs6: lvs6 { 331 bias-pull-down; 335 bias-pull-down; 332 }; 336 }; 333 /* 337 /* 334 * mipi_dsi.1-dsi1_vddio 338 * mipi_dsi.1-dsi1_vddio 335 * pil_riva-pll_vdd 339 * pil_riva-pll_vdd 336 */ 340 */ 337 pm8921_lvs7: lvs7 { 341 pm8921_lvs7: lvs7 { 338 bias-pull-down; 342 bias-pull-down; 339 }; 343 }; 340 }; 344 }; 341 }; 345 }; 342 346 343 /* eMMC */ 347 /* eMMC */ 344 &sdcc1 { 348 &sdcc1 { 345 vmmc-supply = <&pm8921_l5>; 349 vmmc-supply = <&pm8921_l5>; 346 vqmmc-supply = <&pm8921_s4>; 350 vqmmc-supply = <&pm8921_s4>; 347 status = "okay"; 351 status = "okay"; 348 }; 352 }; 349 353 350 &usb_hs1_phy { 354 &usb_hs1_phy { 351 v3p3-supply = <&pm8921_l3>; 355 v3p3-supply = <&pm8921_l3>; 352 v1p8-supply = <&pm8921_l4>; 356 v1p8-supply = <&pm8921_l4>; 353 }; 357 }; 354 358 355 /* OTG */ 359 /* OTG */ 356 &usb1 { 360 &usb1 { 357 dr_mode = "otg"; 361 dr_mode = "otg"; 358 status = "okay"; 362 status = "okay"; 359 }; 363 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.