2016-08-14 21:30:44 +00:00
|
|
|
#include "rt3883.dtsi"
|
|
|
|
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include <dt-bindings/input/input.h>
|
2024-02-07 13:48:43 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2016-08-14 21:30:44 +00:00
|
|
|
|
|
|
|
/ {
|
2017-07-29 02:14:07 +00:00
|
|
|
compatible = "sitecom,wlr-6000", "ralink,rt3883-soc";
|
2016-08-14 21:30:44 +00:00
|
|
|
model = "Sitecom WLR-6000";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
aliases {
|
2018-08-28 04:54:27 +00:00
|
|
|
led-boot = &led_power;
|
|
|
|
led-failsafe = &led_power;
|
|
|
|
led-running = &led_power;
|
|
|
|
led-upgrade = &led_power;
|
2018-07-16 08:27:22 +00:00
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2016-08-14 21:30:44 +00:00
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
poll-interval = <20>;
|
|
|
|
|
|
|
|
reset {
|
|
|
|
label = "reset";
|
|
|
|
gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-08-14 21:30:44 +00:00
|
|
|
compatible = "gpio-leds";
|
|
|
|
|
2018-07-16 08:27:22 +00:00
|
|
|
led_power: power {
|
2024-02-07 13:48:43 +00:00
|
|
|
function = LED_FUNCTION_POWER;
|
|
|
|
color = <LED_COLOR_ID_RED>;
|
2016-08-14 21:30:44 +00:00
|
|
|
gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ops {
|
2020-09-27 17:40:51 +00:00
|
|
|
label = "white:ops";
|
2016-08-14 21:30:44 +00:00
|
|
|
gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
gpio_export {
|
|
|
|
compatible = "gpio-export";
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
|
|
|
usb {
|
|
|
|
gpio-export,name = "usb";
|
|
|
|
gpio-export,output = <1>;
|
|
|
|
gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&gpio1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2019-12-22 20:26:01 +00:00
|
|
|
&state_default {
|
|
|
|
gpio {
|
2020-04-12 12:58:29 +00:00
|
|
|
groups = "i2c", "jtag", "uartf";
|
|
|
|
function = "gpio";
|
2016-08-14 21:30:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
ðernet {
|
|
|
|
status = "okay";
|
2023-11-24 01:40:09 +00:00
|
|
|
nvmem-cells = <&macaddr_factory_8004 1>;
|
2021-04-02 21:50:02 +00:00
|
|
|
nvmem-cell-names = "mac-address";
|
2016-08-14 21:30:44 +00:00
|
|
|
|
|
|
|
port@0 {
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
};
|
|
|
|
|
|
|
|
mdio-bus {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
reg = <0>;
|
|
|
|
phy-mode = "rgmii";
|
|
|
|
|
|
|
|
qca,ar8327-initvals = <
|
|
|
|
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
|
|
|
|
0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
|
|
|
|
0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
|
|
|
|
0x50 0xc437c437 /* LED Control Register 0 */
|
|
|
|
0x54 0xc337c337 /* LED Control Register 1 */
|
|
|
|
0x58 0x00000000 /* LED Control Register 2 */
|
|
|
|
0x5c 0x03ffff00 /* LED Control Register 3 */
|
|
|
|
0x7c 0x0000007e /* PORT0_STATUS */
|
|
|
|
0x94 0x0000007e /* PORT6 STATUS */
|
|
|
|
>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&spi0 {
|
|
|
|
status = "okay";
|
|
|
|
|
2020-05-07 14:15:27 +00:00
|
|
|
flash@0 {
|
2016-08-14 21:30:44 +00:00
|
|
|
compatible = "jedec,spi-nor";
|
|
|
|
reg = <0>;
|
|
|
|
spi-max-frequency = <8600000>;
|
|
|
|
m25p,fast-read;
|
|
|
|
|
2018-08-01 20:32:34 +00:00
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x0 0x30000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@30000 {
|
|
|
|
label = "u-boot-env";
|
|
|
|
reg = <0x30000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
2024-02-17 14:10:10 +00:00
|
|
|
partition@40000 {
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "factory";
|
|
|
|
reg = <0x40000 0x10000>;
|
|
|
|
read-only;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-22 23:48:24 +00:00
|
|
|
nvmem-layout {
|
|
|
|
compatible = "fixed-layout";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-22 23:48:24 +00:00
|
|
|
eeprom_factory_0: eeprom@0 {
|
|
|
|
reg = <0x0 0x200>;
|
|
|
|
};
|
|
|
|
|
|
|
|
eeprom_factory_8000: eeprom@8000 {
|
|
|
|
reg = <0x8000 0x200>;
|
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
|
2023-11-22 23:48:24 +00:00
|
|
|
macaddr_factory_8004: macaddr@8004 {
|
2023-11-24 01:40:09 +00:00
|
|
|
compatible = "mac-base";
|
2023-11-22 23:48:24 +00:00
|
|
|
reg = <0x8004 0x6>;
|
2023-11-24 01:40:09 +00:00
|
|
|
#nvmem-cell-cells = <1>;
|
2023-11-22 23:48:24 +00:00
|
|
|
};
|
2023-10-02 02:12:02 +00:00
|
|
|
};
|
2018-08-01 20:32:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
partition@50000 {
|
2018-11-28 03:28:35 +00:00
|
|
|
compatible = "denx,uimage";
|
2018-08-01 20:32:34 +00:00
|
|
|
label = "firmware";
|
|
|
|
reg = <0x50000 0x713000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@763000 {
|
|
|
|
label = "manufacture";
|
|
|
|
reg = <0x763000 0x7D000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@7E0000 {
|
|
|
|
label = "backup";
|
|
|
|
reg = <0x7E0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@7F0000 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x7F0000 0x10000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2016-08-14 21:30:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&pci {
|
|
|
|
status = "okay";
|
2018-07-21 14:19:46 +00:00
|
|
|
};
|
2016-08-14 21:30:44 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
&pci1 {
|
|
|
|
status = "okay";
|
2016-08-14 21:30:44 +00:00
|
|
|
|
2018-07-21 14:19:46 +00:00
|
|
|
wifi@0,0 {
|
|
|
|
compatible = "pci1814,3091";
|
|
|
|
reg = <0x10000 0 0 0 0>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_8000>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2016-08-14 21:30:44 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&wmac {
|
|
|
|
ralink,2ghz = <0>;
|
2023-10-02 02:12:02 +00:00
|
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
|
|
nvmem-cell-names = "eeprom";
|
2016-08-14 21:30:44 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
&ehci {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&ohci {
|
|
|
|
status = "okay";
|
|
|
|
};
|