1// SPDX-License-Identifier: GPL-2.0 2/dts-v1/; 3 4#include <dt-bindings/input/input.h> 5#include "tegra114.dtsi" 6 7/ { 8 model = "Tegra Note 7"; 9 compatible = "nvidia,tn7", "nvidia,tegra114"; 10 11 chosen { 12 /* TN7's bootloader's arguments need to be overridden */ 13 bootargs = "console=ttyS0,115200n8 console=tty1 gpt fbcon=rotate:2"; 14 /* TN7's bootloader will place initrd at this address */ 15 linux,initrd-start = <0x82000000>; 16 linux,initrd-end = <0x82800000>; 17 }; 18 19 aliases { 20 serial0 = &uartd; 21 }; 22 23 firmware { 24 trusted-foundations { 25 compatible = "tlm,trusted-foundations"; 26 tlm,version-major = <2>; 27 tlm,version-minor = <8>; 28 }; 29 }; 30 31 memory@80000000 { 32 /* memory >= 0x37e00000 is reserved for firmware usage */ 33 reg = <0x80000000 0x37e00000>; 34 }; 35 36 host1x@50000000 { 37 dsi@54300000 { 38 status = "okay"; 39 40 avdd-dsi-csi-supply = <&vdd_1v2_ap>; 41 42 panel@0 { 43 compatible = "lg,ld070wx3-sl01"; 44 reg = <0>; 45 46 vdd-supply = <&avdd_lcd>; 47 vcc-supply = <&dvdd_lcd>; 48 49 backlight = <&backlight>; 50 }; 51 }; 52 }; 53 54 serial@70006300 { 55 /delete-property/ dmas; 56 /delete-property/ dma-names; 57 status = "okay"; 58 }; 59 60 pwm@7000a000 { 61 status = "okay"; 62 }; 63 64 i2c@7000d000 { 65 status = "okay"; 66 clock-frequency = <400000>; 67 68 palmas: pmic@58 { 69 compatible = "ti,tps65913", "ti,palmas"; 70 reg = <0x58>; 71 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 72 73 #interrupt-cells = <2>; 74 interrupt-controller; 75 76 ti,system-power-controller; 77 78 palmas_gpio: gpio { 79 compatible = "ti,palmas-gpio"; 80 gpio-controller; 81 #gpio-cells = <2>; 82 }; 83 84 pmic { 85 compatible = "ti,tps65913-pmic", "ti,palmas-pmic"; 86 87 ldoln-in-supply = <&vdd_smps10_out2>; 88 89 regulators { 90 smps123 { 91 regulator-name = "vd-cpu"; 92 regulator-min-microvolt = <1000000>; 93 regulator-max-microvolt = <1000000>; 94 regulator-always-on; 95 regulator-boot-on; 96 }; 97 98 smps45 { 99 regulator-name = "vd-soc"; 100 regulator-min-microvolt = <1100000>; 101 regulator-max-microvolt = <1100000>; 102 regulator-always-on; 103 regulator-boot-on; 104 }; 105 106 avdd_lcd: smps6 { 107 regulator-name = "va-lcd-hv"; 108 regulator-min-microvolt = <3160000>; 109 regulator-max-microvolt = <3160000>; 110 regulator-boot-on; 111 }; 112 113 smps7 { 114 regulator-name = "vd-ddr"; 115 regulator-min-microvolt = <1350000>; 116 regulator-max-microvolt = <1350000>; 117 regulator-always-on; 118 regulator-boot-on; 119 }; 120 121 vdd_1v8: smps8 { 122 regulator-name = "vs-pmu-1v8"; 123 regulator-min-microvolt = <1800000>; 124 regulator-max-microvolt = <1800000>; 125 regulator-always-on; 126 regulator-boot-on; 127 }; 128 129 vdd_2v9_sys: smps9 { 130 regulator-name = "vs-sys-2v9"; 131 regulator-min-microvolt = <2900000>; 132 regulator-max-microvolt = <2900000>; 133 regulator-always-on; 134 regulator-boot-on; 135 }; 136 137 vdd_smps10_out1: smps10_out1 { 138 regulator-name = "vd-smps10-out1"; 139 regulator-min-microvolt = <5000000>; 140 regulator-max-microvolt = <5000000>; 141 regulator-always-on; 142 regulator-boot-on; 143 }; 144 145 vdd_smps10_out2: smps10_out2 { 146 regulator-name = "vd-smps10-out2"; 147 regulator-min-microvolt = <5000000>; 148 regulator-max-microvolt = <5000000>; 149 regulator-always-on; 150 regulator-boot-on; 151 }; 152 153 ldo1 { 154 regulator-name = "va-pllx"; 155 regulator-min-microvolt = <1050000>; 156 regulator-max-microvolt = <1050000>; 157 regulator-always-on; 158 regulator-boot-on; 159 }; 160 161 vdd_1v2_ap: ldo2 { 162 regulator-name = "va-ap-1v2"; 163 regulator-min-microvolt = <1200000>; 164 regulator-max-microvolt = <1200000>; 165 regulator-always-on; 166 regulator-boot-on; 167 }; 168 169 ldo3 { 170 regulator-name = "vd-fuse"; 171 regulator-min-microvolt = <1800000>; 172 regulator-max-microvolt = <1800000>; 173 regulator-always-on; 174 regulator-boot-on; 175 }; 176 177 ldo4 { 178 regulator-name = "vd-ts-hv"; 179 regulator-min-microvolt = <3200000>; 180 regulator-max-microvolt = <3200000>; 181 regulator-always-on; 182 regulator-boot-on; 183 }; 184 185 ldo5 { 186 regulator-name = "va-cam2-hv"; 187 regulator-min-microvolt = <2700000>; 188 regulator-max-microvolt = <2700000>; 189 }; 190 191 ldo6 { 192 regulator-name = "va-sns-hv"; 193 regulator-min-microvolt = <2850000>; 194 regulator-max-microvolt = <2850000>; 195 }; 196 197 ldo7 { 198 regulator-name = "va-cam1-hv"; 199 regulator-min-microvolt = <2700000>; 200 regulator-max-microvolt = <2700000>; 201 }; 202 203 ldo8 { 204 regulator-name = "va-ap-rtc"; 205 regulator-min-microvolt = <1100000>; 206 regulator-max-microvolt = <1100000>; 207 ti,enable-ldo8-tracking; 208 regulator-always-on; 209 regulator-boot-on; 210 }; 211 212 ldo9 { 213 regulator-name = "vi-sdcard"; 214 regulator-min-microvolt = <2900000>; 215 regulator-max-microvolt = <2900000>; 216 }; 217 218 ldousb { 219 regulator-name = "avdd-usb"; 220 regulator-min-microvolt = <3300000>; 221 regulator-max-microvolt = <3300000>; 222 regulator-always-on; 223 regulator-boot-on; 224 }; 225 226 ldoln { 227 regulator-name = "va-hdmi"; 228 regulator-min-microvolt = <3300000>; 229 regulator-max-microvolt = <3300000>; 230 }; 231 }; 232 }; 233 234 rtc { 235 compatible = "ti,palmas-rtc"; 236 interrupt-parent = <&palmas>; 237 interrupts = <8 0>; 238 }; 239 240 }; 241 }; 242 243 pmc@7000e400 { 244 nvidia,invert-interrupt; 245 }; 246 247 /* eMMC */ 248 mmc@78000600 { 249 status = "okay"; 250 bus-width = <8>; 251 non-removable; 252 }; 253 254 usb@7d000000 { 255 status = "okay"; 256 }; 257 258 usb-phy@7d000000 { 259 status = "okay"; 260 nvidia,xcvr-setup = <7>; 261 nvidia,xcvr-lsfslew = <2>; 262 nvidia,xcvr-lsrslew = <2>; 263 interrupts = <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>; 264 /* Should be changed to "otg" once we have vbus_supply */ 265 /* As of now, USB devices need to be powered externally */ 266 dr_mode = "host"; 267 }; 268 269 backlight: backlight { 270 compatible = "pwm-backlight"; 271 pwms = <&pwm 1 40000>; 272 273 brightness-levels = <0 4 8 16 32 64 128 255>; 274 default-brightness-level = <6>; 275 276 power-supply = <&lcd_bl_en>; 277 }; 278 279 clk32k_in: clock-32k { 280 compatible = "fixed-clock"; 281 clock-frequency = <32768>; 282 #clock-cells = <0>; 283 }; 284 285 gpio-keys { 286 compatible = "gpio-keys"; 287 288 key-power { 289 label = "Power"; 290 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>; 291 linux,code = <KEY_POWER>; 292 wakeup-source; 293 }; 294 295 key-volume-down { 296 label = "Volume Down"; 297 gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>; 298 linux,code = <KEY_VOLUMEDOWN>; 299 }; 300 301 key-volume-up { 302 label = "Volume Up"; 303 gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>; 304 linux,code = <KEY_VOLUMEUP>; 305 }; 306 }; 307 308 /* FIXME: output of BQ24192 */ 309 vs_sys: regulator-vs { 310 compatible = "regulator-fixed"; 311 regulator-name = "VS_SYS"; 312 regulator-min-microvolt = <4200000>; 313 regulator-max-microvolt = <4200000>; 314 regulator-always-on; 315 regulator-boot-on; 316 }; 317 318 lcd_bl_en: regulator-lcden { 319 compatible = "regulator-fixed"; 320 regulator-name = "VDD_LCD_BL"; 321 regulator-min-microvolt = <16500000>; 322 regulator-max-microvolt = <16500000>; 323 gpio = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; 324 enable-active-high; 325 vin-supply = <&vs_sys>; 326 regulator-boot-on; 327 }; 328 329 dvdd_lcd: regulator-lcd { 330 compatible = "regulator-fixed"; 331 regulator-name = "VD_LCD_1V8"; 332 regulator-min-microvolt = <1800000>; 333 regulator-max-microvolt = <1800000>; 334 gpio = <&palmas_gpio 4 GPIO_ACTIVE_HIGH>; 335 enable-active-high; 336 vin-supply = <&vdd_1v8>; 337 regulator-boot-on; 338 }; 339}; 340