tegra: refresh 6.1 patches
authorTomasz Maciej Nowak <tmn505@gmail.com>
Sun, 13 Aug 2023 13:57:39 +0000 (15:57 +0200)
committerKoen Vandeputte <koen.vandeputte@citymesh.com>
Mon, 22 Apr 2024 08:15:34 +0000 (10:15 +0200)
Adjust LED patch to changes in LED subsystem and remove all the fuzz.

Signed-off-by: Tomasz Maciej Nowak <tmn505@gmail.com>
target/linux/tegra/patches-6.1/100-serial8250-on-tegra-hsuart-recover-from-spurious-interrupts-due-to-tegra2-silicon-bug.patch
target/linux/tegra/patches-6.1/101-ARM-dtc-tegra-enable-front-panel-leds-in-TrimSlice.patch

index 8f01f73eb24a9803db55ea59e651f54892d087ad..08ed9d441c5ff5d233b476f8401f4d7c4e51bbcc 100644 (file)
@@ -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;
index b1e210b212de3abfcf4a287cdc773a8d0dc02383..ce038fbec46479d50f5c6f459caa53b3271fb8f9 100644 (file)
@@ -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 <dt-bindings/input/input.h>
++#include <dt-bindings/leds/common.h>
+ #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",
                                nvidia,pull = <TEGRA_PIN_PULL_NONE>;
                                nvidia,tristate = <TEGRA_PIN_DISABLE>;
                        };
-@@ -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 = <LED_COLOR_ID_GREEN>;
++                      function = LED_FUNCTION_STATUS;
 +                      gpios = <&gpio TEGRA_GPIO(D, 2) GPIO_ACTIVE_LOW>;
 +              };
 +
-+              ds3 {
-+                      label = "trimslice:green:left";
++              led-ds3 {
++                      label = "green:left";
++                      color = <LED_COLOR_ID_GREEN>;
++                      function = LED_FUNCTION_STATUS;
 +                      gpios = <&gpio TEGRA_GPIO(BB, 5) GPIO_ACTIVE_LOW>;
 +              };
 +      };