Skip to content

Commit 1ff24b5

Browse files
committed
asus: add transformer t30 board support
Board derives from Cardhu board. Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
1 parent a870dfe commit 1ff24b5

File tree

10 files changed

+947
-0
lines changed

10 files changed

+947
-0
lines changed
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// SPDX-License-Identifier: GPL-2.0-or-later
2+
3+
#include "tegra30.dtsi"
4+
5+
/ {
6+
compatible = "asus,transformer", "nvidia,tegra30";
7+
8+
chosen {
9+
stdout-path = &uarta;
10+
};
11+
12+
aliases {
13+
i2c0 = &pmic_i2c;
14+
i2c1 = &lcd_ddc;
15+
16+
mmc0 = &sdmmc4; /* eMMC */
17+
mmc1 = &sdmmc1; /* uSD slot */
18+
19+
rtc0 = &pmic;
20+
rtc1 = "/rtc@7000e000";
21+
22+
usb0 = &usb1;
23+
usb1 = &usb3; /* Dock USB */
24+
};
25+
26+
memory {
27+
device_type = "memory";
28+
reg = <0x80000000 0x40000000>;
29+
};
30+
31+
uarta: serial@70006000 {
32+
status = "okay";
33+
};
34+
35+
pwm: pwm@7000a000 {
36+
status = "okay";
37+
};
38+
39+
lcd_ddc: i2c@7000c000 {
40+
status = "okay";
41+
clock-frequency = <100000>;
42+
};
43+
44+
sdmmc1: sdhci@78000000 {
45+
status = "okay";
46+
bus-width = <4>;
47+
48+
cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
49+
power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;
50+
51+
vmmc-supply = <&vdd_usd>;
52+
vqmmc-supply = <&vddio_usd>;
53+
};
54+
55+
sdmmc4: sdhci@78000600 {
56+
status = "okay";
57+
bus-width = <8>;
58+
non-removable;
59+
};
60+
61+
/* USB via ASUS connector */
62+
usb1: usb@7d000000 {
63+
status = "okay";
64+
dr_mode = "otg";
65+
};
66+
67+
/* Dock's USB port */
68+
usb3: usb@7d008000 {
69+
status = "okay";
70+
};
71+
72+
clocks {
73+
compatible = "simple-bus";
74+
#address-cells = <1>;
75+
#size-cells = <0>;
76+
77+
clk32k_in: clock@0 {
78+
compatible = "fixed-clock";
79+
reg = <0>;
80+
#clock-cells = <0>;
81+
clock-frequency = <32768>;
82+
};
83+
};
84+
};

arch/arm/mach-tegra/tegra30/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@ config TARGET_TEC_NG
2424
bool "Avionic Design TEC-NG board"
2525
select BOARD_LATE_INIT
2626

27+
config TARGET_TRANSFORMER_T30
28+
bool "Asus Tegra30 Transformer board"
29+
select BOARD_LATE_INIT
30+
2731
endchoice
2832

2933
config SYS_SOC
3034
default "tegra30"
3135

36+
source "board/asus/transformer-t30/Kconfig"
3237
source "board/toradex/apalis_t30/Kconfig"
3338
source "board/nvidia/beaver/Kconfig"
3439
source "board/nvidia/cardhu/Kconfig"

board/asus/transformer-t30/Kconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
if TARGET_TRANSFORMER_T30
2+
3+
config SYS_BOARD
4+
default "transformer-t30"
5+
6+
config SYS_VENDOR
7+
default "asus"
8+
9+
config SYS_CONFIG_NAME
10+
default "transformer-t30"
11+
12+
config TRANSFORMER_SPI_BOOT
13+
bool "Enable support for SPI based flash"
14+
default n
15+
help
16+
Tegra 3 based Transformers with Windows RT have core
17+
boot sequence (BCT, PT, EBT) on separate SPI FLASH
18+
memory with 4MB size.
19+
20+
config TRANSFORMER_TF700T_MIPI
21+
bool "Enable support for TF700T MIPI panel configuration"
22+
default n
23+
help
24+
TF700T has different panel configuration then other
25+
Transformers and uses I2C bridge.
26+
27+
endif
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
TRANSFORMER BOARD
2+
M: Svyatoslav Ryhel <clamor95@gmail.com>
3+
S: Maintained
4+
F: board/asus/transformer-t30/
5+
F: include/configs/transformer-t30.h
6+
F: configs/transformer_t30_defconfig
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
#
3+
# (C) Copyright 2010-2012
4+
# NVIDIA Corporation <www.nvidia.com>
5+
#
6+
# (C) Copyright 2021
7+
# Svyatoslav Ryhel <clamor95@gmail.com>
8+
9+
obj-$(CONFIG_SPL_BUILD) += transformer-t30-spl.o
10+
11+
obj-y += transformer-t30.o

0 commit comments

Comments
 (0)