lede/target/linux/ramips/dts/mt7621_jdcloud_luban.dts
lovehackintosh b8bdcd7170
kernel: bump 5.10 to 5.10.154 (#10404)
All patches automatically rebased.

Signed-off-by: Liu Linhui <liulinhui36@gmail.com>
2022-11-11 04:05:26 +00:00

150 lines
2.2 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "mt7621.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "jdcloud,luban", "mediatek,mt7621-soc";
model = "JDCloud luban";
aliases {
led-boot = &led_r1;
led-failsafe = &led_r1;
led-running = &led_g1;
led-upgrade = &led_b1;
label-mac-device = &gmac0;
};
chosen {
bootargs = "console=ttyS0,115200n8";
};
leds {
compatible = "gpio-leds";
led_r1: led_r1 {
label = "led_r1";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
default-state = "on";
};
led_b1: led_b1 {
label = "led_b1";
gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
};
led_g1: led_g1 {
label = "led_g1";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
reset {
label = "reset";
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
wps {
label = "wps";
gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
};
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
broken-flash-reset;
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;
};
factory: partition@50000 {
label = "factory";
reg = <0x50000 0x40000>;
read-only;
};
partition@90000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x90000 0xf70000>;
};
};
};
};
&state_default {
gpio {
groups = "i2c", "uart2", "uart3";
function = "gpio";
};
};
&sdhci {
status = "okay";
};
&gmac0 {
status = "okay";
mtd-mac-address = <&factory 0x3fff4>;
};
&gmac1 {
status = "okay";
mtd-mac-address = <&factory 0x3fffa>;
};
&switch0 {
status = "disabled";
};
&hnat {
mtketh-wan = "eth1";
mtketh-ppd = "eth0";
mtketh-lan = "eth0";
mtketh-max-gmac = <2>;
};
&gsw {
status = "okay";
mediatek,portmap = "llllw";
};
&pcie {
status = "okay";
};
&pcie1 {
wifi@0,0 {
compatible = "mediatek,mt76";
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x0>;
};
};