Skip to content

Commit

Permalink
pegatron: t30: add Pegatron Chagall devices support
Browse files Browse the repository at this point in the history
Signed-off-by: Svyatoslav Ryhel <[email protected]>
  • Loading branch information
clamor-s committed Oct 3, 2023
1 parent 2865e3d commit a342aec
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions arch/arm/dts/tegra30-pegatron-chagall.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/dts-v1/;

#include "tegra30-asus-transformer.dtsi"

/ {
model = "Pegatron Chagall";
compatible = "pegatron,chagall", "nvidia,tegra30";

gpio-keys {
key-volume-up {
label = "Volume Up";
gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
linux,code = <KEY_UP>;
};

key-volume-down {
label = "Volume Down";
gpios = <&gpio TEGRA_GPIO(Q, 1) GPIO_ACTIVE_LOW>;
linux,code = <KEY_DOWN>;
};
};

vdd_5v0_bl: regulator-bl {
gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
};
};
5 changes: 5 additions & 0 deletions configs/chagall.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CONFIG_DEFAULT_DEVICE_TREE="tegra30-pegatron-chagall"
CONFIG_SYS_PROMPT="Tegra30 (Chagall) # "
CONFIG_BOOTCOMMAND="setenv skip_boot 0; setenv gpio_button 129; if run check_button; then bootmenu; fi; if test ${skip_boot} -eq 1; then; else run bootcmd_usb0; run bootcmd_mmc1; run bootcmd_mmc0; poweroff; fi"
CONFIG_USB_GADGET_MANUFACTURER="Pegatron"
CONFIG_USB_GADGET_PRODUCT_NUM=0x4d00

0 comments on commit a342aec

Please sign in to comment.