ath79: TP-Link EAP245 v3: convert radios to nvmem-cells
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_dlink_dir-842-c.dtsi
index 2482874c99af6c0f39be634e05a4def8001c423f..a42deaddafd37c3646561cf58a0e20b567cb995b 100644 (file)
@@ -1,13 +1,16 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
 
+#include "qca956x.dtsi"
+
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
 
-#include "qca956x.dtsi"
-
 / {
-       chosen {
-               bootargs = "console=ttyS0,115200n8";
+       aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
        };
 
        keys {
                };
        };
 
-       // Pull up on boot - otherwise the reset button won't work
-       reset-button {
-               gpio-hog;
-               output-high;
-               gpios = <11 GPIO_ACTIVE_LOW>;
-               line-name = "reset-button";
-       };
-};
+       leds {
+               compatible = "gpio-leds";
 
-&uart {
-       status = "okay";
+               led_power: power {
+                       label = "green:power";
+                       gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
+               };
+
+               wps {
+                       label = "green:wps";
+                       gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+               };
+
+               wlan {
+                       label = "green:wlan";
+                       gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
+                       linux,default-trigger = "phy0tpt";
+               };
+       };
 };
 
 &pcie {
 
 &spi {
        status = "okay";
-       num-cs = <1>;
 
        flash@0 {
                compatible = "jedec,spi-nor";
                reg = <0>;
-               spi-max-frequency = <30000000>;
+               spi-max-frequency = <50000000>;
 
                partitions {
                        compatible = "fixed-partitions";
 &mdio0 {
        status = "okay";
 
-       phy-mask = <0>;
-
        phy0: ethernet-phy@0 {
                reg = <0>;
                qca,mib-poll-interval = <500>;
+               reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
 
                qca,ar8327-initvals = <
                        0x04 0x00080080 /* PORT0 PAD MODE CTRL */
-                       0x10 0x81000080 /* POWER_ON_STRIP */
+                       0x10 0x81000080 /* POWER_ON_STRAP */
                        0x50 0xcc35cc35 /* LED_CTRL0 */
                        0x54 0xcb37cb37 /* LED_CTRL1 */
                        0x58 0x00000000 /* LED_CTRL2 */
 
 &wmac {
        status = "okay";
+
        qca,no-eeprom;
 };