Skip to content

Commit

Permalink
asus: add transformer t30 board support
Browse files Browse the repository at this point in the history
Board derives from Cardhu board.

Signed-off-by: Svyatoslav Ryhel <[email protected]>
  • Loading branch information
clamor-s committed Oct 18, 2022
1 parent 38b369c commit c62cc62
Show file tree
Hide file tree
Showing 10 changed files with 941 additions and 0 deletions.
84 changes: 84 additions & 0 deletions arch/arm/dts/tegra30-asus-transformer.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// SPDX-License-Identifier: GPL-2.0-or-later

#include "tegra30.dtsi"

/ {
compatible = "asus,transformer", "nvidia,tegra30";

chosen {
stdout-path = &uarta;
};

aliases {
i2c0 = &pmic_i2c;
i2c1 = &lcd_ddc;

mmc0 = &sdmmc4; /* eMMC */
mmc1 = &sdmmc1; /* uSD slot */

rtc0 = &pmic;
rtc1 = "/rtc@7000e000";

usb0 = &usb1;
usb1 = &usb3; /* Dock USB */
};

memory {
device_type = "memory";
reg = <0x80000000 0x40000000>;
};

uarta: serial@70006000 {
status = "okay";
};

pwm: pwm@7000a000 {
status = "okay";
};

lcd_ddc: i2c@7000c000 {
status = "okay";
clock-frequency = <100000>;
};

sdmmc1: sdhci@78000000 {
status = "okay";
bus-width = <4>;

cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
power-gpios = <&gpio TEGRA_GPIO(D, 7) GPIO_ACTIVE_HIGH>;

vmmc-supply = <&vdd_usd>;
vqmmc-supply = <&vddio_usd>;
};

sdmmc4: sdhci@78000600 {
status = "okay";
bus-width = <8>;
non-removable;
};

/* USB via ASUS connector */
usb1: usb@7d000000 {
status = "okay";
dr_mode = "otg";
};

/* Dock's USB port */
usb3: usb@7d008000 {
status = "okay";
};

clocks {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;

clk32k_in: clock@0 {
compatible = "fixed-clock";
reg = <0>;
#clock-cells = <0>;
clock-frequency = <32768>;
};
};
};
5 changes: 5 additions & 0 deletions arch/arm/mach-tegra/tegra30/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ config TARGET_TEC_NG
bool "Avionic Design TEC-NG board"
select BOARD_LATE_INIT

config TARGET_TRANSFORMER_T30
bool "Asus Tegra30 Transformer board"
select BOARD_LATE_INIT

endchoice

config SYS_SOC
default "tegra30"

source "board/asus/transformer-t30/Kconfig"
source "board/toradex/apalis_t30/Kconfig"
source "board/nvidia/beaver/Kconfig"
source "board/nvidia/cardhu/Kconfig"
Expand Down
27 changes: 27 additions & 0 deletions board/asus/transformer-t30/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
if TARGET_TRANSFORMER_T30

config SYS_BOARD
default "transformer-t30"

config SYS_VENDOR
default "asus"

config SYS_CONFIG_NAME
default "transformer-t30"

config TRANSFORMER_SPI_BOOT
bool "Enable support for SPI based flash"
default n
help
Tegra 3 based Transformers with Windows RT have core
boot sequence (BCT, PT, EBT) on separate SPI FLASH
memory with 4MB size.

config TRANSFORMER_TF700T_MIPI
bool "Enable support for TF700T MIPI panel configuration"
default n
help
TF700T has different panel configuration then other
Transformers and uses I2C bridge.

endif
6 changes: 6 additions & 0 deletions board/asus/transformer-t30/MAINTAINERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TRANSFORMER BOARD
M: Svyatoslav Ryhel <[email protected]>
S: Maintained
F: board/asus/transformer-t30/
F: include/configs/transformer-t30.h
F: configs/transformer_t30_defconfig
11 changes: 11 additions & 0 deletions board/asus/transformer-t30/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# SPDX-License-Identifier: GPL-2.0-or-later
#
# (C) Copyright 2010-2012
# NVIDIA Corporation <www.nvidia.com>
#
# (C) Copyright 2021
# Svyatoslav Ryhel <[email protected]>

obj-$(CONFIG_SPL_BUILD) += transformer-t30-spl.o

obj-y += transformer-t30.o
Loading

0 comments on commit c62cc62

Please sign in to comment.