mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblk
[openwrt/staging/jow.git] / target / linux / mediatek / patches-6.1 / 113-dts-fix-bpi64-leds-and-buttons.patch
index f88dbc71955a0288acc1f1a44266c42929ac6eee..1cca6f353410f211264cffa0c486fd74038d33e2 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
-@@ -19,6 +19,10 @@
+@@ -21,6 +21,12 @@
        aliases {
                serial0 = &uart0;
                ethernet0 = &gmac0;
@@ -8,13 +8,15 @@
 +              led-failsafe = &led_system_blue;
 +              led-running = &led_system_green;
 +              led-upgrade = &led_system_blue;
++              mmc0 = &mmc0;
++              mmc1 = &mmc1;
        };
  
        chosen {
-@@ -42,8 +46,8 @@
+@@ -44,8 +50,8 @@
                compatible = "gpio-keys";
  
-               factory {
+               factory-key {
 -                      label = "factory";
 -                      linux,code = <BTN_0>;
 +                      label = "reset";
                        gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
                };
  
-@@ -57,17 +61,25 @@
+@@ -59,17 +65,17 @@
        leds {
                compatible = "gpio-leds";
  
--              green {
--                      label = "bpi-r64:pio:green";
--                      gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
-+              led_system_blue: blue {
-+                      label = "bpi-r64:pio:blue";
-+                      gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
+-              led-0 {
++              led_system_green: led-0 {
+                       label = "bpi-r64:pio:green";
+                       color = <LED_COLOR_ID_GREEN>;
+                       gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
  
--              red {
+-              led-1 {
 -                      label = "bpi-r64:pio:red";
+-                      color = <LED_COLOR_ID_RED>;
 -                      gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
-+              led_system_green: green {
-+                      label = "bpi-r64:pio:green";
-+                      gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
++              led_system_blue: led-1 {
++                      label = "bpi-r64:pio:blue";
++                      color = <LED_COLOR_ID_BLUE>;
++                      gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
                        default-state = "off";
                };
-+
-+/*
-+ *            red {
-+ *                    label = "bpi-r64:pio:red";
-+ *                    gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
-+ *                    default-state = "off";
-+ *            };
-+ */
        };
-       memory {