From 73ca1a73777e272819183b2ee717b92a10bc2aff Mon Sep 17 00:00:00 2001 From: Tomasz Maciej Nowak Date: Sun, 13 Aug 2023 15:57:39 +0200 Subject: [PATCH] tegra: refresh 6.1 patches Adjust LED patch to changes in LED subsystem and remove all the fuzz. Signed-off-by: Tomasz Maciej Nowak --- ...interrupts-due-to-tegra2-silicon-bug.patch | 2 +- ...enable-front-panel-leds-in-TrimSlice.patch | 26 ++++++++++++++----- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/target/linux/tegra/patches-6.1/100-serial8250-on-tegra-hsuart-recover-from-spurious-interrupts-due-to-tegra2-silicon-bug.patch b/target/linux/tegra/patches-6.1/100-serial8250-on-tegra-hsuart-recover-from-spurious-interrupts-due-to-tegra2-silicon-bug.patch index 8f01f73eb2..08ed9d441c 100644 --- a/target/linux/tegra/patches-6.1/100-serial8250-on-tegra-hsuart-recover-from-spurious-interrupts-due-to-tegra2-silicon-bug.patch +++ b/target/linux/tegra/patches-6.1/100-serial8250-on-tegra-hsuart-recover-from-spurious-interrupts-due-to-tegra2-silicon-bug.patch @@ -36,7 +36,7 @@ David --- a/drivers/tty/serial/8250/8250_core.c +++ b/drivers/tty/serial/8250/8250_core.c -@@ -134,6 +134,38 @@ static irqreturn_t serial8250_interrupt( +@@ -133,6 +133,38 @@ static irqreturn_t serial8250_interrupt( if (l == i->head && pass_counter++ > PASS_LIMIT) break; diff --git a/target/linux/tegra/patches-6.1/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch b/target/linux/tegra/patches-6.1/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch index b1e210b212..ce038fbec4 100644 --- a/target/linux/tegra/patches-6.1/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch +++ b/target/linux/tegra/patches-6.1/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch @@ -1,6 +1,14 @@ --- a/arch/arm/boot/dts/tegra20-trimslice.dts +++ b/arch/arm/boot/dts/tegra20-trimslice.dts -@@ -201,16 +201,17 @@ +@@ -2,6 +2,7 @@ + /dts-v1/; + + #include ++#include + #include "tegra20.dtsi" + #include "tegra20-cpu-opp.dtsi" + +@@ -201,16 +202,17 @@ conf_ata { nvidia,pins = "ata", "atc", "atd", "ate", "crtp", "dap2", "dap3", "dap4", "dta", @@ -23,20 +31,24 @@ nvidia,pull = ; nvidia,tristate = ; }; -@@ -396,6 +397,20 @@ +@@ -396,6 +398,24 @@ }; }; -+ gpio-leds { ++ leds { + compatible = "gpio-leds"; + -+ ds2 { -+ label = "trimslice:green:right"; ++ led-ds2 { ++ label = "green:right"; ++ color = ; ++ function = LED_FUNCTION_STATUS; + gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>; + }; + -+ ds3 { -+ label = "trimslice:green:left"; ++ led-ds3 { ++ label = "green:left"; ++ color = ; ++ function = LED_FUNCTION_STATUS; + gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>; + }; + }; -- 2.30.2