|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
| 2 | +/dts-v1/; |
| 3 | + |
| 4 | +#include <dt-bindings/input/gpio-keys.h> |
| 5 | +#include <dt-bindings/input/linux-event-codes.h> |
| 6 | + |
| 7 | +#include "tegra30-asus-transformer.dtsi" |
| 8 | + |
| 9 | +/ { |
| 10 | + model = "Asus Transformer Infinity TF700T"; |
| 11 | + |
| 12 | + i2c@7000d000 { |
| 13 | + status = "okay"; |
| 14 | + clock-frequency = <400000>; |
| 15 | + |
| 16 | + /* Texas Instruments TPS659110 PMIC */ |
| 17 | + pmic: tps65911@2d { |
| 18 | + compatible = "ti,tps65911"; |
| 19 | + reg = <0x2d>; |
| 20 | + |
| 21 | + interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; |
| 22 | + #interrupt-cells = <2>; |
| 23 | + interrupt-controller; |
| 24 | + |
| 25 | + ti,system-power-controller; |
| 26 | + |
| 27 | + #gpio-cells = <2>; |
| 28 | + gpio-controller; |
| 29 | + |
| 30 | + regulators { |
| 31 | + /* eMMC VDD */ |
| 32 | + vcore_emmc: ldo1 { |
| 33 | + regulator-name = "vdd_emmc_core"; |
| 34 | + regulator-min-microvolt = <1000000>; |
| 35 | + regulator-max-microvolt = <3300000>; |
| 36 | + regulator-always-on; |
| 37 | + }; |
| 38 | + |
| 39 | + /* uSD slot VDD */ |
| 40 | + vdd_usd: ldo2 { |
| 41 | + regulator-name = "vdd_usd"; |
| 42 | + regulator-min-microvolt = <3100000>; |
| 43 | + regulator-max-microvolt = <3100000>; |
| 44 | + regulator-always-on; |
| 45 | + }; |
| 46 | + |
| 47 | + /* uSD slot VDDIO */ |
| 48 | + vddio_usd: ldo3 { |
| 49 | + regulator-name = "vddio_usd"; |
| 50 | + regulator-min-microvolt = <1800000>; |
| 51 | + regulator-max-microvolt = <3100000>; |
| 52 | + }; |
| 53 | + }; |
| 54 | + }; |
| 55 | + }; |
| 56 | + |
| 57 | + backlight: backlight { |
| 58 | + compatible = "pwm-backlight"; |
| 59 | + |
| 60 | + enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>; |
| 61 | + power-supply = <&vdd_5v0_bl>; |
| 62 | + pwms = <&pwm 0 4000000>; |
| 63 | + |
| 64 | + brightness-levels = <0 4 8 16 32 64 128 255>; |
| 65 | + default-brightness-level = <6>; |
| 66 | + }; |
| 67 | + |
| 68 | + gpio-keys { |
| 69 | + compatible = "gpio-keys"; |
| 70 | + interrupt-parent = <&gpio>; |
| 71 | + |
| 72 | + power { |
| 73 | + label = "Power"; |
| 74 | + gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>; |
| 75 | + linux,code = <KEY_POWER>; |
| 76 | + }; |
| 77 | + |
| 78 | + volume-up { |
| 79 | + label = "VolUp"; |
| 80 | + gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>; |
| 81 | + linux,code = <KEY_VOLUMEUP>; |
| 82 | + }; |
| 83 | + |
| 84 | + volume-down { |
| 85 | + label = "VolDown"; |
| 86 | + gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>; |
| 87 | + linux,code = <KEY_VOLUMEDOWN>; |
| 88 | + }; |
| 89 | + }; |
| 90 | + |
| 91 | + regulators { |
| 92 | + compatible = "simple-bus"; |
| 93 | + #address-cells = <1>; |
| 94 | + #size-cells = <0>; |
| 95 | + |
| 96 | + vdd_pnl_reg: regulator@0 { |
| 97 | + compatible = "regulator-fixed"; |
| 98 | + reg = <0>; |
| 99 | + regulator-name = "vdd_panel"; |
| 100 | + regulator-min-microvolt = <3300000>; |
| 101 | + regulator-max-microvolt = <3300000>; |
| 102 | + gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>; |
| 103 | + enable-active-high; |
| 104 | + }; |
| 105 | + |
| 106 | + vdd_5v0_bl: regulator@1 { |
| 107 | + compatible = "regulator-fixed"; |
| 108 | + reg = <1>; |
| 109 | + regulator-name = "vdd_5v0_bl"; |
| 110 | + regulator-min-microvolt = <5000000>; |
| 111 | + regulator-max-microvolt = <5000000>; |
| 112 | + regulator-boot-on; |
| 113 | + gpio = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>; |
| 114 | + enable-active-high; |
| 115 | + }; |
| 116 | + }; |
| 117 | +}; |
0 commit comments