mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
179 lines
3.1 KiB
Plaintext
179 lines
3.1 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
|
||
|
#include "qca956x.dtsi"
|
||
|
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
#include <dt-bindings/leds/common.h>
|
||
|
#include <dt-bindings/mtd/partitions/uimage.h>
|
||
|
|
||
|
/ {
|
||
|
model = "KuWFi N650";
|
||
|
compatible = "kuwfi,n650", "qca,qca9563";
|
||
|
|
||
|
aliases {
|
||
|
label-mac-device = ð0;
|
||
|
led-boot = &led_green;
|
||
|
led-running = &led_green;
|
||
|
led-failsafe = &led_blue;
|
||
|
led-upgrade = &led_blue;
|
||
|
};
|
||
|
|
||
|
virtual_flash {
|
||
|
compatible = "mtd-concat";
|
||
|
devices = <&fwconcat0 &fwconcat1>;
|
||
|
|
||
|
partitions {
|
||
|
compatible = "fixed-partitions";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <1>;
|
||
|
|
||
|
partition@0 {
|
||
|
reg = <0x0 0x0>;
|
||
|
label = "firmware";
|
||
|
compatible = "openwrt,uimage", "denx,uimage";
|
||
|
openwrt,ih-magic = <IH_MAGIC_OKLI>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
keys {
|
||
|
compatible = "gpio-keys";
|
||
|
|
||
|
reset {
|
||
|
label = "Reset button";
|
||
|
linux,code = <KEY_RESTART>;
|
||
|
gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
|
||
|
debounce-interval = <60>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
led_blue: blue {
|
||
|
function = LED_FUNCTION_DEBUG;
|
||
|
color = <LED_COLOR_ID_BLUE>;
|
||
|
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
|
||
|
led_green: green {
|
||
|
function = LED_FUNCTION_POWER;
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&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 = <0x000000 0x030000>;
|
||
|
read-only;
|
||
|
};
|
||
|
|
||
|
partition@30000 {
|
||
|
label = "u-boot-env";
|
||
|
reg = <0x030000 0x010000>;
|
||
|
};
|
||
|
|
||
|
fwconcat0: partition@40000 {
|
||
|
label = "fwconcat0";
|
||
|
reg = <0x040000 0xd40000>;
|
||
|
};
|
||
|
|
||
|
partition@d80000 {
|
||
|
label = "loader";
|
||
|
reg = <0xd80000 0x10000>;
|
||
|
};
|
||
|
|
||
|
fwconcat1: partition@d90000 {
|
||
|
label = "fwconcat1";
|
||
|
reg = <0xd90000 0x160000>;
|
||
|
};
|
||
|
|
||
|
partition@ef0000 {
|
||
|
label = "log";
|
||
|
reg = <0xef0000 0x0f0000>;
|
||
|
read-only;
|
||
|
};
|
||
|
|
||
|
partition@fe0000 {
|
||
|
label = "nvram";
|
||
|
reg = <0xfe0000 0x010000>;
|
||
|
read-only;
|
||
|
};
|
||
|
|
||
|
partition@ff0000 {
|
||
|
label = "art";
|
||
|
reg = <0xff0000 0x10000>;
|
||
|
read-only;
|
||
|
|
||
|
nvmem-layout {
|
||
|
compatible = "fixed-layout";
|
||
|
#address-cells = <1>;
|
||
|
#size-cells = <1>;
|
||
|
|
||
|
macaddr_art_0: macaddr@0 {
|
||
|
compatible = "mac-base";
|
||
|
reg = <0x0 0x6>;
|
||
|
#nvmem-cell-cells = <1>;
|
||
|
};
|
||
|
|
||
|
precal_art_5000: pre-calibration@5000 {
|
||
|
reg = <0x5000 0x2f20>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&mdio0 {
|
||
|
status = "okay";
|
||
|
|
||
|
phy0: ethernet-phy@0 {
|
||
|
reg = <0>;
|
||
|
phy-mode = "sgmii";
|
||
|
reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
|
||
|
qca,mib-poll-interval = <500>;
|
||
|
|
||
|
qca,ar8327-initvals = <
|
||
|
0x04 0x00080080 /* PORT0 PAD MODE CTRL */
|
||
|
0x7c 0x0000007e /* PORT0_STATUS */
|
||
|
>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
ð0 {
|
||
|
status = "okay";
|
||
|
|
||
|
nvmem-cells = <&macaddr_art_0 0>;
|
||
|
nvmem-cell-names = "mac-address";
|
||
|
phy-handle = <&phy0>;
|
||
|
phy-mode = "sgmii";
|
||
|
};
|
||
|
|
||
|
&pcie {
|
||
|
status = "okay";
|
||
|
|
||
|
wifi@0,0 {
|
||
|
compatible = "pci168c,0056";
|
||
|
reg = <0x0000 0 0 0 0>;
|
||
|
nvmem-cells = <&precal_art_5000>, <&macaddr_art_0 1>;
|
||
|
nvmem-cell-names = "pre-calibration", "mac-address";
|
||
|
};
|
||
|
};
|