projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ath79: create common DTSI for Senao ar934x APs
[openwrt/openwrt.git]
/
target
/
linux
/
ath79
/
dts
/
qca9563_tplink_archer-c2-v3.dts
diff --git
a/target/linux/ath79/dts/qca9563_tplink_archer-c2-v3.dts
b/target/linux/ath79/dts/qca9563_tplink_archer-c2-v3.dts
index 9686290e738be09aa75473b21ab8179798bd833f..6c4b04b81ce8af6bd5c521146aadedd2dc444010 100644
(file)
--- a/
target/linux/ath79/dts/qca9563_tplink_archer-c2-v3.dts
+++ b/
target/linux/ath79/dts/qca9563_tplink_archer-c2-v3.dts
@@
-1,79
+1,74
@@
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include "qca956x.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
-#include "qca956x.dtsi"
-
/ {
compatible = "tplink,archer-c2-v3", "qca,qca9563";
/ {
compatible = "tplink,archer-c2-v3", "qca,qca9563";
- model = "TP-Link Archer C2 Version 3";
-
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
+ model = "TP-Link Archer C2 v3";
aliases {
aliases {
- led-boot = &system;
- led-failsafe = &system;
- led-running = &system;
- led-upgrade = &system;
+ led-boot = &
led_
system;
+ led-failsafe = &
led_
system;
+ led-running = &
led_
system;
+ led-upgrade = &
led_
system;
};
};
-
gpio_leds:
leds {
+ leds {
compatible = "gpio-leds";
compatible = "gpio-leds";
- system: system {
- label = "
tp-link:
green:system";
+
led_
system: system {
+ label = "green:system";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wifi2g {
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "on";
};
wifi2g {
- label = "
tp-link:
green:wifi2g";
+ label = "green:wifi2g";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wifi5g {
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy1tpt";
};
wifi5g {
- label = "
tp-link:
green:wifi5g";
+ label = "green:wifi5g";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi_wps {
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
wifi_wps {
- label = "
tp-link:
green:wps";
+ label = "green:wps";
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wan {
gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
};
wan {
- label = "
tp-link:
green:wan";
+ label = "green:wan";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan_fail {
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
wan_fail {
- label = "
tp-link:
orange:wan";
+ label = "orange:wan";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan1 {
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
};
lan1 {
- label = "
tp-link:
green:lan1";
+ label = "green:lan1";
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
lan2 {
gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
};
lan2 {
- label = "
tp-link:
green:lan2";
+ label = "green:lan2";
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
lan3 {
gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
};
lan3 {
- label = "
tp-link:
green:lan3";
+ label = "green:lan3";
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan4 {
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
};
lan4 {
- label = "
tp-link:
green:lan4";
+ label = "green:lan4";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
};
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
};
@@
-97,13
+92,8
@@
};
};
};
};
-&uart {
- status = "okay";
-};
-
&spi {
status = "okay";
&spi {
status = "okay";
- num-cs = <1>;
flash@0 {
compatible = "jedec,spi-nor";
flash@0 {
compatible = "jedec,spi-nor";
@@
-124,6
+114,7
@@
partition@20000 {
label = "uboot";
reg = <0x020000 0x10000>;
partition@20000 {
label = "uboot";
reg = <0x020000 0x10000>;
+ read-only;
};
partition@30000 {
};
partition@30000 {
@@
-133,13
+124,13
@@
};
info: partition@7e0000 {
};
info: partition@7e0000 {
- label = "
product-
info";
+ label = "info";
reg = <0x7e0000 0x010000>;
read-only;
};
art: partition@7f0000 {
reg = <0x7e0000 0x010000>;
read-only;
};
art: partition@7f0000 {
- label = "
ART
";
+ label = "
art
";
reg = <0x7f0000 0x010000>;
read-only;
};
reg = <0x7f0000 0x010000>;
read-only;
};
@@
-147,10
+138,6
@@
};
};
};
};
-&gpio {
- status = "okay";
-};
-
&mdio0 {
status = "okay";
&mdio0 {
status = "okay";
@@
-158,6
+145,7
@@
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
+ qca,mib-poll-interval = <500>;
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
qca,ar8327-initvals = <
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
@@
-180,6
+168,7
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x8>;
};
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x8>;
};