mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 23:12:32 +00:00
4ed209326b
Siflower SF19A2890 is an SoC with: Dual-core MIPS InterAptiv at 800MHz DDR3 controller One Gigabit Ethernet MAC with RGMII and IPv4 HNAT engine Built-in 2x2 11N + 2x2 11AC WiFi radio USB 2.0 OTG I2C/SPI/GPIO and various other peripherals This PR adds support for SF19A2890 EVB with ethernet support. EVB spec: Memory: DDR3 128M Ethernet: RTL8367RB 5-port gigabit switch Flash: 16M NOR Others: MicroUSB OTG, LED x 1, Reset button x1 The built image can be flashed using u-boot recovery. This target is marked as source-only until support for a commercial router board comes. Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
141 lines
2.3 KiB
Plaintext
141 lines
2.3 KiB
Plaintext
/dts-v1/;
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/leds/common.h>
|
|
#include "sf19a2890.dtsi"
|
|
|
|
/ {
|
|
model = "Siflower SF19A2890 Evaluation Board";
|
|
compatible = "siflower,sf19a2890-evb", "siflower,sf19a2890";
|
|
|
|
aliases {
|
|
led-boot = &led_wlan;
|
|
led-failsafe = &led_wlan;
|
|
led-running = &led_wlan;
|
|
led-upgrade = &led_wlan;
|
|
};
|
|
|
|
chosen {
|
|
stdout-path = "serial0:115200n8";
|
|
};
|
|
|
|
memory@0 {
|
|
device_type = "memory";
|
|
reg = <0x0 0x8000000>;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_wlan: wlan {
|
|
function = LED_FUNCTION_WLAN;
|
|
color = <LED_COLOR_ID_RED>;
|
|
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
};
|
|
|
|
rtl8367rb {
|
|
compatible = "realtek,rtl8367b";
|
|
realtek,extif = <6 0 0 1 1 1 1 1 1 2>;
|
|
mii-bus = <&mdio>;
|
|
phy-id = <0>;
|
|
};
|
|
};
|
|
|
|
&gmac {
|
|
status = "okay";
|
|
phy-mode = "rgmii-id";
|
|
snps,ps-speed = <1000>;
|
|
nvmem-cells = <&macaddr_factory_0>, <&rgmii_delay_factory_b2>;
|
|
nvmem-cell-names = "mac-address", "rgmii-delay";
|
|
fixed-link {
|
|
speed = <1000>;
|
|
full-duplex;
|
|
pause;
|
|
};
|
|
};
|
|
|
|
&wlan_rf {
|
|
status = "okay";
|
|
};
|
|
|
|
&uart0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb {
|
|
status = "okay";
|
|
};
|
|
|
|
&usb_phy {
|
|
status = "okay";
|
|
};
|
|
|
|
&spi {
|
|
status = "okay";
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <30000000>;
|
|
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "spl-loader";
|
|
reg = <0x0 0x20000>; /* 128k */
|
|
read-only;
|
|
};
|
|
|
|
partition@20000 {
|
|
label = "u-boot";
|
|
reg = <0x20000 0x60000>; /* 384k */
|
|
};
|
|
|
|
partition@80000 {
|
|
label = "u-boot-env";
|
|
reg = <0x80000 0x10000>; /* 64k */
|
|
};
|
|
|
|
factory:partition@90000 {
|
|
label = "factory";
|
|
reg = <0x90000 0x10000>; /* 64k */
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
macaddr_factory_0: macaddr@0 {
|
|
reg = <0x0 0x6>;
|
|
};
|
|
|
|
rgmii_delay_factory_b2: rgmii-delay@b2 {
|
|
reg = <0xb2 0x4>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@a0000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0xa0000 0x0>; /* 640k- */
|
|
};
|
|
};
|
|
};
|
|
};
|