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