compatible = "tplink,archer-c7-v4", "qca,qca9563";
model = "TP-Link Archer C7 v4";
- chosen {
- bootargs = "console=ttyS0,115200n8";
- };
-
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;
+ label-mac-device = ð0;
};
led_spi {
#address-cells = <1>;
#size-cells = <0>;
- gpio-sck = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
- gpio-mosi = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
+ sck-gpios = <&gpio 15 GPIO_ACTIVE_HIGH>; // 74HC595 SRCLK (Serial Clock)
+ mosi-gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; // 74HC595 SER (Serial)
cs-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>; // 74HC595 RCLK (Register Clock)
num-chipselects = <1>;
leds {
compatible = "gpio-leds";
- system: system {
+ led_system: system {
label = "tp-link:green:system";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "on";
usb1 {
label = "tp-link:green:usb1";
- gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
- trigger-sources = <&hub_port0>;
+ gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&hub_port1>;
linux,default-trigger = "usbport";
};
usb2 {
label = "tp-link:green:usb2";
- gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
- trigger-sources = <&hub_port1>;
+ gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
+ trigger-sources = <&hub_port0>;
linux,default-trigger = "usbport";
};
debounce-interval = <60>;
};
};
-
};
&pcie {
&spi {
status = "okay";
+
num-cs = <1>;
flash@0 {
};
info: partition@f00000 {
- label = "config";
+ label = "info";
reg = <0xf00000 0x0f0000>;
read-only;
};
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "sgmii";
+ qca,mib-poll-interval = <500>;
qca,ar8327-initvals = <
0x04 0x80080080 /* PORT0 PAD MODE CTRL */
&wmac {
status = "okay";
+
mtd-cal-data = <&art 0x1000>;
mtd-mac-address = <&info 0x8>;
};