Skip to content

Commit 97a25a2

Browse files
committed
asus: transformer: add t30 based device family
Includes 7 ASUS devices: - Transformer Prime TF201 - Transformer Pad TF300T/TF300TG/TF300TL - VivoTab RT TF600T (Windows RT based) - Transformer Infinity TF700T - Transformer AiO P1801-T Tested-by: Andreas Westman Dorcsak <hedmoo@yahoo.com> # all devices Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
1 parent 1ff24b5 commit 97a25a2

15 files changed

+925
-0
lines changed

arch/arm/dts/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,13 @@ dtb-$(CONFIG_ARCH_TEGRA) += \
220220
tegra20-colibri.dtb \
221221
tegra20-qemu.dtb \
222222
tegra30-apalis.dtb \
223+
tegra30-asus-p1801-t.dtb \
224+
tegra30-asus-tf201.dtb \
225+
tegra30-asus-tf300t.dtb \
226+
tegra30-asus-tf300tg.dtb \
227+
tegra30-asus-tf300tl.dtb \
228+
tegra30-asus-tf600t.dtb \
229+
tegra30-asus-tf700t.dtb \
223230
tegra30-beaver.dtb \
224231
tegra30-cardhu.dtb \
225232
tegra30-colibri.dtb \
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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 AiO P1801-T";
11+
12+
pmic_i2c: 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+
};
45+
46+
/* uSD slot VDDIO */
47+
vddio_usd: ldo3 {
48+
regulator-name = "vddio_usd";
49+
regulator-min-microvolt = <1800000>;
50+
regulator-max-microvolt = <3100000>;
51+
};
52+
};
53+
};
54+
};
55+
56+
gpio-keyboard {
57+
compatible = "gpio-kbd";
58+
59+
power {
60+
label = "Power";
61+
gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
62+
linux,code = <KEY_ENTER>;
63+
};
64+
65+
volume-up {
66+
label = "Volume Up";
67+
gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
68+
linux,code = <KEY_UP>;
69+
};
70+
71+
volume-down {
72+
label = "Volume Down";
73+
gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>;
74+
linux,code = <KEY_DOWN>;
75+
};
76+
77+
mode {
78+
label = "Mode";
79+
gpios = <&gpio TEGRA_GPIO(K, 2) GPIO_ACTIVE_LOW>;
80+
linux,code = <KEY_MODE>;
81+
};
82+
};
83+
};
Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
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 Prime TF201";
11+
12+
host1x@50000000 {
13+
status = "okay";
14+
dc@54200000 {
15+
status = "okay";
16+
rgb {
17+
status = "okay";
18+
19+
nvidia,panel = <&panel>;
20+
21+
display-timings {
22+
timing@0 {
23+
/* 1280x800@60Hz */
24+
clock-frequency = <68000000>;
25+
hactive = <1280>;
26+
vactive = <800>;
27+
hfront-porch = <48>;
28+
hback-porch = <18>;
29+
hsync-len = <30>;
30+
vsync-len = <5>;
31+
vfront-porch = <3>;
32+
vback-porch = <12>;
33+
hsync-active = <1>;
34+
};
35+
};
36+
};
37+
};
38+
};
39+
40+
pmic_i2c: i2c@7000d000 {
41+
status = "okay";
42+
clock-frequency = <400000>;
43+
44+
/* Texas Instruments TPS659110 PMIC */
45+
pmic: tps65911@2d {
46+
compatible = "ti,tps65911";
47+
reg = <0x2d>;
48+
49+
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
50+
#interrupt-cells = <2>;
51+
interrupt-controller;
52+
53+
ti,system-power-controller;
54+
55+
#gpio-cells = <2>;
56+
gpio-controller;
57+
58+
regulators {
59+
/* eMMC VDD */
60+
vcore_emmc: ldo1 {
61+
regulator-name = "vdd_emmc_core";
62+
regulator-min-microvolt = <1000000>;
63+
regulator-max-microvolt = <3300000>;
64+
regulator-always-on;
65+
};
66+
67+
/* uSD slot VDD */
68+
vdd_usd: ldo2 {
69+
regulator-name = "vdd_usd";
70+
regulator-min-microvolt = <3100000>;
71+
regulator-max-microvolt = <3100000>;
72+
};
73+
74+
/* uSD slot VDDIO */
75+
vddio_usd: ldo3 {
76+
regulator-name = "vddio_usd";
77+
regulator-min-microvolt = <1800000>;
78+
regulator-max-microvolt = <3100000>;
79+
};
80+
};
81+
};
82+
};
83+
84+
backlight: backlight {
85+
compatible = "pwm-backlight";
86+
87+
enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
88+
power-supply = <&vdd_5v0_bl>;
89+
pwms = <&pwm 0 4000000>;
90+
91+
brightness-levels = <0 4 8 16 32 64 128 255>;
92+
default-brightness-level = <6>;
93+
};
94+
95+
gpio-keyboard {
96+
compatible = "gpio-kbd";
97+
98+
power {
99+
label = "Power";
100+
gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
101+
linux,code = <KEY_ENTER>;
102+
};
103+
104+
volume-up {
105+
label = "Volume Up";
106+
gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
107+
linux,code = <KEY_UP>;
108+
};
109+
110+
volume-down {
111+
label = "Volume Down";
112+
gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>;
113+
linux,code = <KEY_DOWN>;
114+
};
115+
};
116+
117+
panel: panel {
118+
compatible = "simple-panel";
119+
120+
power-supply = <&vdd_pnl_reg>;
121+
enable-gpios = <&gpio TEGRA_GPIO(N, 6) GPIO_ACTIVE_HIGH>;
122+
123+
backlight = <&backlight>;
124+
};
125+
126+
regulators {
127+
compatible = "simple-bus";
128+
#address-cells = <1>;
129+
#size-cells = <0>;
130+
131+
vdd_pnl_reg: regulator@0 {
132+
compatible = "regulator-fixed";
133+
reg = <0>;
134+
regulator-name = "vdd_panel";
135+
regulator-min-microvolt = <3300000>;
136+
regulator-max-microvolt = <3300000>;
137+
gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>;
138+
enable-active-high;
139+
};
140+
141+
vdd_5v0_bl: regulator@1 {
142+
compatible = "regulator-fixed";
143+
reg = <1>;
144+
regulator-name = "vdd_5v0_bl";
145+
regulator-min-microvolt = <5000000>;
146+
regulator-max-microvolt = <5000000>;
147+
regulator-boot-on;
148+
gpio = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
149+
enable-active-high;
150+
};
151+
};
152+
};

0 commit comments

Comments
 (0)