]> Git Repo - linux.git/commitdiff
ARM: dts: BCM5301X: Conform to DTS Coding Style on ASUS RT-AC3100 & AC88U
authorArınç ÜNAL <[email protected]>
Tue, 23 Apr 2024 09:50:49 +0000 (12:50 +0300)
committerFlorian Fainelli <[email protected]>
Wed, 24 Apr 2024 17:59:43 +0000 (10:59 -0700)
Reorder the nodes and properties to conform to the Devicetree Sources (DTS)
Coding Style.

Signed-off-by: Arınç ÜNAL <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Link: https://lore.kernel.org/r/20240423-for-soc-asus-rt-ac3200-ac5300-v3-5-23d33cfafe7a@arinc9.com
Signed-off-by: Florian Fainelli <[email protected]>
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac3100.dtsi
arch/arm/boot/dts/broadcom/bcm47094-asus-rt-ac88u.dts

index 9c7efb1c44f1664e5fe4ede978649d5a1cc08693..2cfaaabc7a6a827c03b50be097627d972141ab40 100644 (file)
@@ -10,9 +10,9 @@
 
 / {
        memory@0 {
-               device_type = "memory";
                reg = <0x00000000 0x08000000>,
                      <0x88000000 0x18000000>;
+               device_type = "memory";
        };
 
        nvram@1c080000 {
                reg = <0x1c080000 0x00180000>;
        };
 
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               button-led {
+                       label = "Backlight";
+                       linux,code = <KEY_BRIGHTNESS_ZERO>;
+                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
+               };
+
+               button-reset {
+                       label = "Reset";
+                       linux,code = <KEY_RESTART>;
+                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+               };
+
+               button-wifi {
+                       label = "Wi-Fi";
+                       linux,code = <KEY_RFKILL>;
+                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+               };
+
+               button-wps {
+                       label = "WPS";
+                       linux,code = <KEY_WPS_BUTTON>;
+                       gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
+               };
+       };
+
        leds {
                compatible = "gpio-leds";
 
                        gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
                };
        };
+};
 
-       gpio-keys {
-               compatible = "gpio-keys";
-
-               button-led {
-                       label = "Backlight";
-                       linux,code = <KEY_BRIGHTNESS_ZERO>;
-                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
-               };
+&nandcs {
+       partitions {
+               compatible = "fixed-partitions";
+               #address-cells = <1>;
+               #size-cells = <1>;
 
-               button-reset {
-                       label = "Reset";
-                       linux,code = <KEY_RESTART>;
-                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
+               partition@0 {
+                       reg = <0x00000000 0x00080000>;
+                       label = "boot";
+                       read-only;
                };
 
-               button-wifi {
-                       label = "Wi-Fi";
-                       linux,code = <KEY_RFKILL>;
-                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
+               partition@80000 {
+                       reg = <0x00080000 0x00180000>;
+                       label = "nvram";
                };
 
-               button-wps {
-                       label = "WPS";
-                       linux,code = <KEY_WPS_BUTTON>;
-                       gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
+               partition@200000 {
+                       compatible = "brcm,trx";
+                       reg = <0x00200000 0x07e00000>;
+                       label = "firmware";
                };
        };
 };
 &usb3_phy {
        status = "okay";
 };
-
-&nandcs {
-       partitions {
-               compatible = "fixed-partitions";
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               partition@0 {
-                       label = "boot";
-                       reg = <0x00000000 0x00080000>;
-                       read-only;
-               };
-
-               partition@80000 {
-                       label = "nvram";
-                       reg = <0x00080000 0x00180000>;
-               };
-
-               partition@200000 {
-                       label = "firmware";
-                       reg = <0x00200000 0x07e00000>;
-                       compatible = "brcm,trx";
-               };
-       };
-};
index c78f0c7b137d2902c8db15979cdb83178f7dd417..a197f447fd97f8704235e629753156ec386f698e 100644 (file)
 
        switch {
                compatible = "realtek,rtl8365mb";
-               /* 7 = MDIO (has input reads), 6 = MDC (clock, output only) */
                mdc-gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
                mdio-gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
                reset-gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
                realtek,disable-leds;
                dsa,member = <1 0>;
 
+               mdio {
+                       compatible = "realtek,smi-mdio";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       ethphy0: ethernet-phy@0 {
+                               reg = <0>;
+                       };
+
+                       ethphy1: ethernet-phy@1 {
+                               reg = <1>;
+                       };
+
+                       ethphy2: ethernet-phy@2 {
+                               reg = <2>;
+                       };
+
+                       ethphy3: ethernet-phy@3 {
+                               reg = <3>;
+                       };
+               };
+
                ports {
                        #address-cells = <1>;
                        #size-cells = <0>;
                                };
                        };
                };
+       };
+};
 
-               mdio {
-                       compatible = "realtek,smi-mdio";
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-
-                       ethphy0: ethernet-phy@0 {
-                               reg = <0>;
-                       };
-
-                       ethphy1: ethernet-phy@1 {
-                               reg = <1>;
-                       };
+&gmac0 {
+       status = "disabled";
+};
 
-                       ethphy2: ethernet-phy@2 {
-                               reg = <2>;
-                       };
+&gmac1 {
+       nvmem-cells = <&et1macaddr 0>;
+       nvmem-cell-names = "mac-address";
+};
 
-                       ethphy3: ethernet-phy@3 {
-                               reg = <3>;
-                       };
-               };
-       };
+&gmac2 {
+       nvmem-cells = <&et1macaddr 1>;
+       nvmem-cell-names = "mac-address";
 };
 
 &srab {
                };
        };
 };
-
-&gmac0 {
-       status = "disabled";
-};
-
-&gmac1 {
-       nvmem-cells = <&et1macaddr 0>;
-       nvmem-cell-names = "mac-address";
-};
-
-&gmac2 {
-       nvmem-cells = <&et1macaddr 1>;
-       nvmem-cell-names = "mac-address";
-};
This page took 0.056257 seconds and 4 git commands to generate.