aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tomek_n@o2.pl>2019-04-01 19:25:44 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2019-04-06 14:48:46 +0200
commit09fe18f04290a000edf1dd7792e8d845e05a74e6 (patch)
tree304b74c18a2a257cfdb7ce21392b6bedd9768cbd /target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
parentbba0c012b824c8281b16e120126e3d6f8c09b01f (diff)
downloadupstream-09fe18f04290a000edf1dd7792e8d845e05a74e6.tar.gz
upstream-09fe18f04290a000edf1dd7792e8d845e05a74e6.tar.bz2
upstream-09fe18f04290a000edf1dd7792e8d845e05a74e6.zip
tegra: add kernel 4.19 support
Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
Diffstat (limited to 'target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch')
-rw-r--r--target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch b/target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
new file mode 100644
index 0000000000..ae48e8d862
--- /dev/null
+++ b/target/linux/tegra/patches-4.19/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch
@@ -0,0 +1,46 @@
+--- a/arch/arm/boot/dts/tegra20-trimslice.dts
++++ b/arch/arm/boot/dts/tegra20-trimslice.dts
+@@ -200,16 +200,17 @@
+ conf_ata {
+ nvidia,pins = "ata", "atc", "atd", "ate",
+ "crtp", "dap2", "dap3", "dap4", "dta",
+- "dtb", "dtc", "dtd", "dte", "gmb",
+- "gme", "i2cp", "pta", "slxc", "slxd",
+- "spdi", "spdo", "uda";
++ "dtb", "dtc", "dtd", "gmb", "gme",
++ "i2cp", "pta", "slxc", "slxd", "spdi",
++ "spdo", "uda";
+ nvidia,pull = <TEGRA_PIN_PULL_NONE>;
+ nvidia,tristate = <TEGRA_PIN_ENABLE>;
+ };
+ conf_atb {
+ nvidia,pins = "atb", "cdev1", "cdev2", "dap1",
+- "gma", "gmc", "gmd", "gpu", "gpu7",
+- "gpv", "sdio1", "slxa", "slxk", "uac";
++ "dte", "gma", "gmc", "gmd", "gpu",
++ "gpu7", "gpv", "sdio1", "slxa", "slxk",
++ "uac";
+ nvidia,pull = <TEGRA_PIN_PULL_NONE>;
+ nvidia,tristate = <TEGRA_PIN_DISABLE>;
+ };
+@@ -402,6 +403,20 @@
+ };
+ };
+
++ gpio-leds {
++ compatible = "gpio-leds";
++
++ ds2 {
++ label = "trimslice:green:right";
++ gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>;
++ };
++
++ ds3 {
++ label = "trimslice:green:left";
++ gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>;
++ };
++ };
++
+ poweroff {
+ compatible = "gpio-poweroff";
+ gpios = <&gpio TEGRA_GPIO(X, 7) GPIO_ACTIVE_LOW>;