// SPDX-License-Identifier: GPL-2.0-or-later OR MIT /dts-v1/; #include #include #include "qca956x.dtsi" / { compatible = "tplink,tl-wdr6500-v2", "qca,qca9561"; model = "TP-Link TL-WDR6500 v2"; aliases { led-boot = &led_system; led-failsafe = &led_system; led-running = &led_system; led-upgrade = &led_system; label-mac-device = ð1; }; keys { compatible = "gpio-keys"; reset { label = "Reset button"; linux,code = ; gpios = <&gpio 1 GPIO_ACTIVE_LOW>; }; }; leds { compatible = "gpio-leds"; lan4 { label = "tp-link:green:lan4"; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; }; lan3 { label = "tp-link:green:lan3"; gpios = <&gpio 15 GPIO_ACTIVE_LOW>; }; lan2 { label = "tp-link:green:lan2"; gpios = <&gpio 16 GPIO_ACTIVE_LOW>; }; lan1 { label = "tp-link:green:lan1"; gpios = <&gpio 17 GPIO_ACTIVE_LOW>; }; wan { label = "tp-link:green:wan"; gpios = <&gpio 18 GPIO_ACTIVE_LOW>; }; led_system: system { label = "tp-link:white:system"; gpios = <&gpio 21 GPIO_ACTIVE_HIGH>; default-state = "on"; }; }; }; &spi { status = "okay"; num-cs = <1>; flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <25000000>; partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; uboot: partition@0 { label = "u-boot"; reg = <0x000000 0x010000>; read-only; }; partition@10000 { compatible = "tplink,firmware"; label = "firmware"; reg = <0x010000 0x7d0000>; }; partition@7e0000 { label = "mib0"; reg = <0x7e0000 0x010000>; read-only; }; art: partition@7f0000 { label = "art"; reg = <0x7f0000 0x010000>; read-only; }; }; }; }; &uart { status = "okay"; }; &pcie { status = "okay"; }; ð0 { status = "okay"; phy-handle = <&swphy4>; mtd-mac-address = <&uboot 0x0fc00>; mtd-mac-address-increment = <1>; }; ð1 { status = "okay"; mtd-mac-address = <&uboot 0x0fc00>; }; &wmac { status = "okay"; mtd-cal-data = <&art 0x1000>; mtd-mac-address = <&uboot 0x0fc00>; mtd-mac-address-increment = <(-1)>; }; &usb0 { status = "okay"; }; &usb_phy0 { status = "okay"; };