mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
d276b4c91a
This reverts commit70e41d0205
. "ethaddr" is stored into the "u-boot-env" (stock: "Config") partition and it's quoted with double-quotations, but that format is not supported by the current NVMEM u-boot-env driver (and mac_pton() function) and the MAC address won't be parsed to byte array. This causes random MAC addresses on the adapters, so revert the above commit. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com> Link: https://github.com/openwrt/openwrt/pull/17116 (cherry picked from commitaf611bce44
) Link: https://github.com/openwrt/openwrt/pull/17117 Signed-off-by: Robert Marko <robimarko@gmail.com>
258 lines
4.3 KiB
Plaintext
258 lines
4.3 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "qca955x.dtsi"
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
|
|
/ {
|
|
aliases {
|
|
led-boot = &led_status;
|
|
led-failsafe = &led_status;
|
|
led-upgrade = &led_status;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led-0 {
|
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_WLAN;
|
|
function-enumerator = <24>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
led_status: led-1 {
|
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
|
color = <LED_COLOR_ID_RED>;
|
|
function = LED_FUNCTION_STATUS;
|
|
};
|
|
|
|
led-2 {
|
|
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
function = LED_FUNCTION_USB;
|
|
trigger-sources = <&usb_port1>;
|
|
linux,default-trigger = "usbport";
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
button-wps {
|
|
label = "wps";
|
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
button-reset {
|
|
label = "reset";
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
debounce-interval = <60>;
|
|
};
|
|
|
|
button-eject {
|
|
label = "eject";
|
|
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_EJECTCD>;
|
|
debounce-interval = <60>;
|
|
};
|
|
};
|
|
|
|
beeper {
|
|
compatible = "gpio-beeper";
|
|
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
|
};
|
|
|
|
reg_usb_vbus: regulator {
|
|
compatible = "regulator-fixed";
|
|
regulator-name = "usb-vbus";
|
|
regulator-min-microvolt = <5000000>;
|
|
regulator-max-microvolt = <5000000>;
|
|
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
|
enable-active-high;
|
|
regulator-always-on;
|
|
};
|
|
|
|
watchdog {
|
|
compatible = "linux,wdt-gpio";
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
hw_algo = "toggle";
|
|
hw_margin_ms = <300>;
|
|
always-running;
|
|
};
|
|
};
|
|
|
|
&mdio0 {
|
|
status = "okay";
|
|
|
|
ethphy4: ethernet-phy@4 {
|
|
compatible = "ethernet-phy-id004d,d072",
|
|
"ethernet-phy-ieee802.3-c22";
|
|
reg = <0x4>;
|
|
eee-broken-100tx;
|
|
eee-broken-1000t;
|
|
};
|
|
};
|
|
|
|
ð0 {
|
|
status = "okay";
|
|
|
|
phy-handle = <ðphy4>;
|
|
phy-mode = "rgmii-rxid";
|
|
pll-data = <0xae000000 0x80000101 0x80001313>;
|
|
|
|
gmac-config {
|
|
device = <&gmac>;
|
|
|
|
rxdv-delay = <3>;
|
|
rxd-delay = <3>;
|
|
txen-delay = <0>;
|
|
txd-delay = <0>;
|
|
rgmii-enabled = <1>;
|
|
};
|
|
};
|
|
|
|
&mdio1 {
|
|
status = "okay";
|
|
|
|
ethphy1: ethernet-phy@1 {
|
|
compatible = "ethernet-phy-id004d,d074",
|
|
"ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
at803x-override-sgmii-link-check;
|
|
};
|
|
};
|
|
|
|
ð1 {
|
|
status = "okay";
|
|
|
|
phy-handle = <ðphy1>;
|
|
pll-data = <0x03000000 0x00000101 0x00001313>;
|
|
|
|
qca955x-sgmii-fixup;
|
|
};
|
|
|
|
&pcie0 {
|
|
status = "okay";
|
|
|
|
wifi@0,0 {
|
|
compatible = "qcom,ath10k";
|
|
reg = <0x0000 0 0 0 0>;
|
|
nvmem-cells = <&cal_art_5000>;
|
|
nvmem-cell-names = "calibration";
|
|
};
|
|
};
|
|
|
|
&spi {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <25000000>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0 0x40000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@40000 {
|
|
label = "u-boot-env";
|
|
reg = <0x40000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@50000 {
|
|
label = "art";
|
|
reg = <0x50000 0x10000>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
cal_art_1000: calibration@1000 {
|
|
reg = <0x1000 0x440>;
|
|
};
|
|
|
|
cal_art_5000: calibration@5000 {
|
|
reg = <0x5000 0x844>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@60000 {
|
|
label = "art2";
|
|
reg = <0x60000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@70000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x70000 0xe00000>;
|
|
};
|
|
|
|
partition@e70000 {
|
|
label = "manufacture";
|
|
reg = <0xe70000 0x100000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@f70000 {
|
|
label = "backup";
|
|
reg = <0xf70000 0x10000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@f80000 {
|
|
label = "storage";
|
|
reg = <0xf80000 0x80000>;
|
|
read-only;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&usb_phy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb0 {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
status = "okay";
|
|
|
|
dr_mode = "host";
|
|
vbus-supply = <®_usb_vbus>;
|
|
|
|
usb_port1: port@1 {
|
|
reg = <1>;
|
|
#trigger-source-cells = <0>;
|
|
};
|
|
};
|
|
|
|
&wdt {
|
|
status = "disabled";
|
|
};
|
|
|
|
&wmac {
|
|
status = "okay";
|
|
|
|
nvmem-cells = <&cal_art_1000>;
|
|
nvmem-cell-names = "calibration";
|
|
};
|