mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 14:13:16 +00:00
3395184825
nvmem-layout allows removal Signed-off-by: Rosen Penev <rosenp@gmail.com>
197 lines
3.2 KiB
Plaintext
197 lines
3.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 = "bolt,arion", "mediatek,mt7621-soc";
|
|
model = "Bolt Arion";
|
|
|
|
aliases {
|
|
label-mac-device = &wan;
|
|
};
|
|
|
|
chosen {
|
|
bootargs = "console=ttyS0,57600n8";
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_wlan_blue: wlan_blue {
|
|
label = "blue:wlan";
|
|
gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_wlan_red: wlan_red {
|
|
label = "red:wlan";
|
|
gpios = <&gpio 86 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_tel_blue: tel_blue {
|
|
label = "blue:tel";
|
|
gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_sig1_blue: sig1_blue {
|
|
label = "blue:sig1";
|
|
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_sig1_red: sig1_red {
|
|
label = "red:sig1";
|
|
gpios = <&gpio 87 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_sig2_blue: sig2_blue {
|
|
label = "blue:sig2";
|
|
gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led_sig3_blue: sig3_blue {
|
|
label = "blue:sig3";
|
|
gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
keys {
|
|
compatible = "gpio-keys";
|
|
|
|
reset {
|
|
label = "reset";
|
|
gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_RESTART>;
|
|
};
|
|
|
|
wps {
|
|
label = "WPS";
|
|
gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
|
|
linux,code = <KEY_WPS_BUTTON>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&spi0 {
|
|
status = "okay";
|
|
|
|
flash@0 {
|
|
compatible = "jedec,spi-nor";
|
|
reg = <0>;
|
|
spi-max-frequency = <50000000>;
|
|
m25p,fast-read;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
partition@0 {
|
|
label = "u-boot";
|
|
reg = <0x0 0x20000>;
|
|
read-only;
|
|
};
|
|
|
|
partition@30000 {
|
|
label = "u-boot-env";
|
|
reg = <0x20000 0x20000>;
|
|
read-only;
|
|
};
|
|
|
|
factory: partition@40000 {
|
|
label = "factory";
|
|
reg = <0x40000 0x10000>;
|
|
read-only;
|
|
|
|
nvmem-layout {
|
|
compatible = "fixed-layout";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
eeprom_factory_0: eeprom@0 {
|
|
reg = <0x0 0x400>;
|
|
};
|
|
|
|
eeprom_factory_8000: eeprom@8000 {
|
|
reg = <0x8000 0x200>;
|
|
};
|
|
|
|
macaddr_factory_28: macaddr@28 {
|
|
compatible = "mac-base";
|
|
reg = <0x28 0x6>;
|
|
#nvmem-cell-cells = <1>;
|
|
};
|
|
};
|
|
};
|
|
|
|
partition@50000 {
|
|
compatible = "denx,uimage";
|
|
label = "firmware";
|
|
reg = <0x50000 0x1fb0000>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pcie {
|
|
status = "okay";
|
|
};
|
|
|
|
&pcie0 {
|
|
wifi@0,0 {
|
|
compatible = "pci14c3,7603";
|
|
reg = <0x0000 0 0 0 0>;
|
|
nvmem-cells = <&eeprom_factory_0>;
|
|
nvmem-cell-names = "eeprom";
|
|
ieee80211-freq-limit = <2400000 2500000>;
|
|
};
|
|
};
|
|
|
|
&pcie1 {
|
|
wifi@0,0 {
|
|
compatible = "pci14c3,7662";
|
|
reg = <0x0000 0 0 0 0>;
|
|
nvmem-cells = <&eeprom_factory_8000>;
|
|
nvmem-cell-names = "eeprom";
|
|
ieee80211-freq-limit = <5000000 6000000>;
|
|
};
|
|
};
|
|
|
|
&gmac0 {
|
|
nvmem-cells = <&macaddr_factory_28 3>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
&switch0 {
|
|
ports {
|
|
port@0 {
|
|
status = "okay";
|
|
label = "modem";
|
|
};
|
|
|
|
wan: port@1 {
|
|
status = "okay";
|
|
label = "wan";
|
|
nvmem-cells = <&macaddr_factory_28 0>;
|
|
nvmem-cell-names = "mac-address";
|
|
};
|
|
|
|
port@2 {
|
|
status = "okay";
|
|
label = "lan";
|
|
};
|
|
};
|
|
};
|
|
|
|
ðernet {
|
|
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
|
|
};
|
|
|
|
&state_default {
|
|
gpio {
|
|
groups = "jtag", "uart2", "uart3", "wdt", "rgmii2";
|
|
function = "gpio";
|
|
};
|
|
};
|