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