ipq806x: clean up DTS file for TP-Link AD7200
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Tue, 5 Jan 2021 23:50:09 +0000 (00:50 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Wed, 6 Jan 2021 13:43:12 +0000 (14:43 +0100)
This does several cosmetic adjustments for AD7200's DTS:

 - Make node name, DT label and label property consistent
 - Drop wrong and unused spi4 label
 - Use generic flash@0 node name

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ipq806x/files/arch/arm/boot/dts/qcom-ipq8064-ad7200.dts

index 48dc116e9979f7230d0604135338c555c0a84f9d..bd50d2d0fc2f2419c079fbe3617495926336fcc1 100644 (file)
        aliases {
                mdio-gpio0 = &mdio0;
 
-               led-boot = &power;
-               led-failsafe = &power;
-               led-running = &power;
-               led-upgrade = &power;
+               led-boot = &led_status;
+               led-failsafe = &led_status;
+               led-running = &led_status;
+               led-upgrade = &led_status;
                label-mac-device = &gmac2;
        };
 
@@ -45,7 +45,7 @@
                        linux,code = <KEY_WPS_BUTTON>;
                };
 
-               ledgeneral {
+               led_enable {
                        label = "led-enable";
                        gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_LIGHTS_TOGGLE>;
                        gpios = <&qcom_pinmux 56 GPIO_ACTIVE_HIGH>;
                };
 
-               power: status {
+               led_status: status {
                        label = "blue:status";
                        gpios = <&qcom_pinmux 66 GPIO_ACTIVE_HIGH>;
                };
        qcom,mode = <GSBI_PROT_SPI>;
        status = "okay";
 
-       spi4: spi@1a280000 {
+       spi@1a280000 {
                status = "okay";
 
                pinctrl-0 = <&spi_pins>;
 
                cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
 
-               m25p80@0 {
+               flash@0 {
                        compatible = "jedec,spi-nor";
                        #address-cells = <1>;
                        #size-cells = <1>;