ramips: fix whitespace and comment issues in dts
authorMathias Kresin <dev@kresin.me>
Sun, 22 Jul 2018 08:33:42 +0000 (10:33 +0200)
committerMathias Kresin <dev@kresin.me>
Sat, 4 Aug 2018 06:39:35 +0000 (08:39 +0200)
Fix space vs. tabs issue and trainling whitespaces. Use C style
comments or drop the comments if they explain what is already to see in
the devicetree parameters.

Signed-off-by: Mathias Kresin <dev@kresin.me>
28 files changed:
target/linux/ramips/dts/11ACNAS.dts
target/linux/ramips/dts/AP-MT7621A-V60.dts
target/linux/ramips/dts/ArcherC20v4.dts
target/linux/ramips/dts/BR-6475ND.dts
target/linux/ramips/dts/FREESTATION5.dts
target/linux/ramips/dts/GL-MT300A.dts
target/linux/ramips/dts/GL-MT300N-V2.dts
target/linux/ramips/dts/GL-MT300N.dts
target/linux/ramips/dts/GL-MT750.dts
target/linux/ramips/dts/JHR-N805R.dts
target/linux/ramips/dts/NIXCORE.dtsi
target/linux/ramips/dts/RB750Gr3.dts
target/linux/ramips/dts/RBM33G.dts
target/linux/ramips/dts/RT5350F-OLINUXINO.dtsi
target/linux/ramips/dts/SK-WB8.dts
target/linux/ramips/dts/TEW-714TRU.dts
target/linux/ramips/dts/UBNT-ER-e50.dtsi
target/linux/ramips/dts/W2914NSV2.dts
target/linux/ramips/dts/WD03.dts
target/linux/ramips/dts/WIZFI630A.dts
target/linux/ramips/dts/WNDR3700V5.dts
target/linux/ramips/dts/WRC-1167GHBK2-S.dts
target/linux/ramips/dts/WRC-2533GST.dts
target/linux/ramips/dts/WRTNODE2P.dts
target/linux/ramips/dts/WRTNODE2R.dts
target/linux/ramips/dts/Y1.dtsi
target/linux/ramips/dts/Y1S.dts
target/linux/ramips/dts/mt7621.dtsi

index b8c326889c56a87509c885185b1d1d23092bfacc..f66bee6363a29abb23ed88c4cc4eac4fdcb69cc8 100644 (file)
        gpio-leds {
                compatible = "gpio-leds";
 
-               // Only USB LED is connected to GPIO.
-               // All of other LEDs are connected directly to
-               // switch, WiFi chip, Vcc, so they are not controllable
-               // via GPIO
-
                usb {
                        label = "11acnas:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
index a98d8a64678a5c0962166f12dd1145758460070a..8209922fd9fac981256534769990d755a95deda6 100644 (file)
@@ -21,7 +21,7 @@
                simple-audio-card,format = "i2s";
                simple-audio-card,bitclock-master = <&dailink0_master>;
                simple-audio-card,frame-master = <&dailink0_master>;
-               simple-audio-card,widgets = 
+               simple-audio-card,widgets =
                        "Microphone", "Microphone Jack",
                        "Headphone", "Headphone Jack";
                simple-audio-card,routing =
index 0466e046af97fc9207a7dd9cc6123418d3352680..49f9dc9a0f0e3d075ec9275d6048a74a13b5fe7f 100644 (file)
@@ -35,7 +35,7 @@
                        label = "c20-v4:orange:wan";
                        gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
-               
+
                wlan5g {
                        label = "c20-v4:green:wlan5g";
                        gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
index c9e8d2894a595359e1322c4932ce75ddb11d2d55..e0505eabaa51f11ecfaf12e817b97be6524d2d42 100644 (file)
                realtek,extif0 = <1 0 1 1 1 1 1 1 2>;
        };
 
-       /* Unclear if this is the correct gpio setup; the USB ports are
-          unpopulated on a stock BR-6475nD, even though the hardware exists
-          and the headers are there. */
+       /*
+        * Unclear if this is the correct gpio setup; the USB ports are
+        * unpopulated on a stock BR-6475nD, even though the hardware exists
+        * and the headers are there.
+        */
        /*
        gpio_export {
                compatible = "gpio-export";
index 38f058dfa23a3aba73107197e83819f4617e55f0..807cfc4f642eeff6fdb5699405e1a276cd2f6607 100644 (file)
        gpio-export {
                compatible = "gpio-export";
 
-               // Used to enable power-over-ethernet passthrough from port0 to port1.
-               // Disable passthrough by default to prevent accidental equipment damage.
+               /*
+                * Used to enable power-over-ethernet passthrough from port0 to port1.
+                * Disable passthrough by default to prevent accidental equipment damage.
+                */
                poe {
                        gpio-export,name = "poe-passthrough";
-                       gpio-export,output = <1>; // OUT_INIT_HIGH
-                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;    // GPIO 11, ACTIVE_LOW
+                       gpio-export,output = <1>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
                };
        };
 
        gpio-leds {
                compatible = "gpio-leds";
 
-               // The following leds are defined in the ArcOS firmware, but reportedly
-               // not present in the Freestation5 device.
+               /*
+                * The following leds are defined in the ArcOS firmware, but reportedly
+                * not present in the Freestation5 device.
+                */
                wifi {
                        label = "freestation5:unknown:wifi";
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
index f6ab3e453714bf6d05d742d71014e339626cee62..589b95ad3ecd1514d22c3ae69ede8ddef0991799 100644 (file)
@@ -53,7 +53,7 @@
                        linux,code = <BTN_0>;
                };
 
-           BTN_1 {
+               BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
@@ -72,7 +72,7 @@
 &gpio2 {
        status = "okay";
 };
-               
+
 &gpio3 {
        status = "okay";
 };
index 56cd92d6ff22e4e3a1a9b001eecc87f99ceb62a1..35ad4cc38c55936ad1aefce1cf1cc19476a827d1 100644 (file)
                };
 
                factory: partition@40000 {
-                        label = "factory";
-                        reg = <0x40000 0x10000>;
-                        read-only;
+                       label = "factory";
+                       reg = <0x40000 0x10000>;
+                       read-only;
                };
 
                partition@50000 {
-                        label = "firmware";
-                        reg = <0x50000 0xfb0000>;
+                       label = "firmware";
+                       reg = <0x50000 0xfb0000>;
                };
        };
 };
index 5dad8f845e2252385466d99cb8eb774050e87d25..91064abe327d1b83ae81bd3e145844158c8b9d31 100644 (file)
@@ -48,7 +48,7 @@
                        linux,code = <BTN_0>;
                };
 
-           BTN_1 {
+               BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
@@ -67,7 +67,7 @@
 &gpio2 {
        status = "okay";
 };
-               
+
 &gpio3 {
        status = "okay";
 };
index 73257abdb00fe894171301be441adc770ab6669e..c89deb19b455bea6d701ae160327f84c3697bcad 100644 (file)
@@ -48,7 +48,7 @@
                        linux,code = <BTN_0>;
                };
 
-           BTN_1 {
+               BTN_1 {
                        label = "BTN_1";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                        linux,code = <BTN_1>;
@@ -67,7 +67,7 @@
 &gpio2 {
        status = "okay";
 };
-               
+
 &gpio3 {
        status = "okay";
 };
index 32e6ab1aaf9fdda66749241593b81f0dbd139a39..92b8eac4c15a67ce262f083393b618a0a5cafda6 100644 (file)
                };
        };
 
-    gpio-keys-polled {
-            compatible = "gpio-keys-polled";
-            poll-interval = <20>;
-
-            reset {
-                    label = "reset";
-                    gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
-                    linux,code = <KEY_RESTART>;
-            };
+       gpio-keys-polled {
+               compatible = "gpio-keys-polled";
+               poll-interval = <20>;
+
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
        };
 };
 
index 4d2a82d242ae9d60e2bf51df71004b55b2b22769..1702d74db7f25cbef0f8f4f5c9617cc1e7960479 100644 (file)
 };
 
 &gpio0 {
-    status = "okay";
+       status = "okay";
 };
 
 &gpio1 {
-    status = "okay";
+       status = "okay";
 };
 
 &i2c {
-    status = "okay";
+       status = "okay";
 };
 
 &uart {
-    status = "okay";
-    reset-names = "gpio uartf";
+       status = "okay";
+       reset-names = "gpio uartf";
 };
 
 &pinctrl {
index e32fd45bcec4c2bcb192fa9ff8f94f1a67b19ce8..bb4697eadfab1a3738679cd9f3ce79aca9b6202c 100644 (file)
                        label = "firmware";
                        reg = <0x50000 0xfb0000>;
                };
-
        };
 };
 
index ca8fb87d8cf8dddaa383b3506548a466ca27b997..98a9d57e51382368ab07971c33b09f7da3432cb5 100644 (file)
                        reg = <0xf000 0x71000>;
                        read-only;
                };
-
        };
 
        w25q128@1 {
index 629dab8934c7a9f526b524450b3a39658f5d9283..10819aff0476cabc2af03522f75200ee88addfc3 100644 (file)
@@ -3,10 +3,10 @@
 / {
        compatible = "olimex,rt5350f-olinuxino", "ralink,rt5350-soc";
 
-    aliases {
-        serial0 = &uartlite;
-        serial1 = &uart;
-    };
+       aliases {
+               serial0 = &uartlite;
+               serial1 = &uart;
+       };
 };
 
 
index f38f7272acc601695099f99fb3d4db1a9c5232cc..de7a544bd65aeec048b325ef3bcd9c4d421bd7c5 100644 (file)
@@ -83,7 +83,6 @@
                        label = "firmware";
                        reg = <0x50000 0xfb0000>;
                };
-
        };
 };
 
index 5a38ce62627e3ccc9c048ea9fc48072da85d0e01..4e04bb3e79306ee0a64cabe3f5433b4d208f3229 100644 (file)
                compatible = "gpio-keys-polled";
                poll-interval = <20>;
 
-                reset {
-                        label = "reset";
-                        gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
-                        linux,code = <KEY_RESTART>;
-                };
-
-                wps {
-                        label = "wps";
-                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
-                        linux,code = <KEY_WPS_BUTTON>;
-                };
+               reset {
+                       label = "reset";
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_RESTART>;
+               };
+
+               wps {
+                       label = "wps";
+                       gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_WPS_BUTTON>;
+               };
        };
 
        gpio_export {
index 05d0ec6b8fae6e2ab956ed66d6ebf0b09ccd0364..1bf889e1412e9157b43e5213d56c21f9344a73d4 100644 (file)
 };
 
 &spi0 {
-       /* This board has 2Mb spi flash soldered in and visible
-          from manufacturer's firmware.
-          But this SoC shares spi and nand pins,
-          and current driver does't handle this sharing well */
+       /*
+        * This board has 2Mb spi flash soldered in and visible
+        * from manufacturer's firmware.
+        * But this SoC shares spi and nand pins,
+        * and current driver doesn't handle this sharing well
+        */
        status = "disabled";
 
        m25p80@0 {
index ac26dbe75d9b00090083a86ccc7496dfd65ea5d4..e1a9c41626535ba0f72c8dd155401a830cee45e8 100644 (file)
        gpio-leds {
                compatible = "gpio-leds";
 
-               // Only USB LED is connected to GPIO.
-               // All of other LEDs are connected directly to
-               // switch, WiFi chip, Vcc, so they are not controllable
-               // via GPIO
-
                usb {
                        label = "w2914nsv2:green:usb";
                        gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
index d66867ea971d20076c53e5f3c70ee50b121d2a43..dbc1c79678bd71cd179c94fff20c002abbaf6932 100644 (file)
@@ -49,7 +49,7 @@
 };
 
 &i2c {
-        status = "okay";
+       status = "okay";
 };
 
 &spi0 {
index 69575e955616636e898b015917e988dac7978604..8ee457c4ba24ac750e9d8b3152ac9c0513f1f601 100644 (file)
@@ -56,7 +56,7 @@
                        gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
-               
+
                scm1 {
                        label = "SCM1";
                        gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
index fea81a14356b6f878632ae7bff4b8e4396f1afa6..184a04e3dcc7416b49af39790f2fd2a344f11c8b 100644 (file)
 &pinctrl {
        state_default: pinctrl0 {
                gpio {
-                       ralink,group =  "rgmii2", "mdio", "wdt";
+                       ralink,group = "rgmii2", "mdio", "wdt";
                        ralink,function = "gpio";
                };
        };
index 73e1d45c1fe0dd312f331579eba0b0e2f2271cfd..5c9fe5f22af2507e98003f2ffadc0224af664fda 100644 (file)
 
 &pcie {
        status = "okay";
-       // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
-       // but it's not supported in OpenWrt.
+       /*
+        * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
+        * but it's not supported in OpenWrt.
+        */
 };
 
 &xhci {
index 74f8bb91e3437316cb09d435549f7c6f96dd680c..e61fc9600bde711c7ed66a80d38ca5e85b9e9608 100644 (file)
 
 &pcie {
        status = "okay";
-       // WRC-2533GST has MT7615 for 2.4/5 GHz wifi,
-       // but it's not supported in OpenWrt.
+       /* WRC-2533GST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
 };
 
 &xhci {
index d3f8fe7e32b5def327f91e1ba67bf6c34628a02f..f9cc1e97f2849dcda9150dddaaf0e3f26a54ea80 100644 (file)
@@ -17,7 +17,7 @@
                        label = "wrtnode:blue:indicator";
                        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
                };
-       }; 
+       };
 };
 
 &pinctrl {
index 469d65c35000bc971f31b5d6336b70f320e503cb..79f65e0594d361e3849bcb08d89435c861b88201 100644 (file)
@@ -17,7 +17,7 @@
                        label = "wrtnode:blue:indicator";
                        gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
                };
-       }; 
+       };
 };
 
 &pinctrl {
index 6e0b254f2cb57f02e3ae55ef56345f664e29b691..4efbc3d395781bd2e566418e2e086c1526a42d94 100644 (file)
@@ -21,7 +21,7 @@
                };
        };
 };
-       
+
 &gpio0 {
        status = "okay";
 };
@@ -88,7 +88,7 @@
                ieee80211-freq-limit = <5000000 6000000>;
        };
 };
-       
+
 &wmac {
        ralink,mtd-eeprom = <&factory 0>;
        pinctrl-names = "default";
index 95e2aea084b5baae51fd56dfb9afee857d0d55a2..51bd10d75ab703032947c12a9015c8550de10c92 100644 (file)
        gpio_export {
                compatible = "gpio-export";
                #size-cells = <0>;
-               /* GPIO 54、55、56 USB1、2、3 */
+
                usb0 {
                        gpio-export,name = "usb0";
-                       gpio-export,output = <1>; // GPIOF_OUT_INIT_HIGH
-                       gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>; // GPIO2:40+14=GPIO 54
+                       gpio-export,output = <1>;
+                       gpios = <&gpio2 14 GPIO_ACTIVE_HIGH>;
                };
                usb1 {
                        gpio-export,name = "usb1";
index 7c19ff4643b748f9c3a989c0639a4efbe5234163..207fd3bf1fbde5b583b2a844dddbb88d1ffcf3ac 100644 (file)
                };
 
                cpc: cpc@1fbf0000 {
-                            compatible = "mtk,mt7621-cpc";
-                            reg = <0x1fbf0000 0x8000>;
+                       compatible = "mtk,mt7621-cpc";
+                       reg = <0x1fbf0000 0x8000>;
                };
 
                mc: mc@1fbf8000 {
-                           compatible = "mtk,mt7621-mc";
-                           reg = <0x1fbf8000 0x8000>;
+                       compatible = "mtk,mt7621-mc";
+                       reg = <0x1fbf8000 0x8000>;
                };
 
                uartlite: uartlite@c00 {