difos/target/linux/ramips/dts/mt7621_gemtek_wvrtm-1xxacn.dtsi
Shiji Yang 548d993a04 ramips: dts: mt7621: remove redundant USB regulators
We have added the default voltage regulators for the mt7621 SoC
dtsi. These redundant voltage regulators can be removed now.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18886
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2025-06-07 20:28:11 +02:00

264 lines
4.6 KiB
Text

// 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>
#include <dt-bindings/leds/common.h>
/ {
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
label-mac-device = &gmac0;
};
chosen {
bootargs-override = "console=ttyS0,115200n1";
};
gpio-export {
compatible = "gpio-export";
poe_24v_port4 {
gpio-export,name = "24v-poe:port4";
gpio-export,output = <0>;
gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
};
};
keys: keys {
compatible = "gpio-keys";
button-0 {
label = "wps";
gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
button-1 {
label = "reset";
gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
led_spi {
compatible = "spi-gpio";
#address-cells = <1>;
#size-cells = <0>;
sck-gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
mosi-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
num-chipselects = <0>;
gpio_hc595: gpio_hc595@0 {
compatible = "fairchild,74hc595";
reg = <0>;
gpio-controller;
#gpio-cells = <2>;
registers-number = <1>;
spi-max-frequency = <1000000>;
};
};
leds: leds {
compatible = "gpio-leds";
led-0 {
gpios = <&gpio_hc595 0 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <0>;
};
led-1 {
gpios = <&gpio_hc595 1 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <1>;
};
led-2 {
gpios = <&gpio_hc595 2 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <2>;
};
led-3 {
gpios = <&gpio_hc595 3 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <3>;
};
led-4 {
gpios = <&gpio_hc595 4 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
function-enumerator = <4>;
};
led_power: led-5 {
gpios = <&gpio_hc595 5 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_POWER;
color = <LED_COLOR_ID_GREEN>;
};
led-6 {
gpios = <&gpio_hc595 6 GPIO_ACTIVE_HIGH>;
function = LED_FUNCTION_STATUS;
color = <LED_COLOR_ID_GREEN>;
};
};
memory@0 {
device_type = "memory";
reg = <0x0 0x8000000>;
};
ubi-concat {
compatible = "mtd-concat";
devices = <&ubiconcat0 &ubiconcat1 &ubiconcat2 &ubiconcat3>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "ubi";
reg = <0x0 0x7380000>;
};
};
};
};
&ethernet {
pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
};
&gmac0 {
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
&nand {
status = "okay";
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "u-boot";
reg = <0x0 0x100000>;
read-only;
};
partition@100000 {
label = "u-boot2";
reg = <0x100000 0x100000>;
read-only;
};
partition@200000 {
label = "factory";
reg = <0x200000 0x100000>;
read-only;
nvmem_layout: nvmem-layout {
compatible = "fixed-layout";
#address-cells = <1>;
#size-cells = <1>;
eeprom_factory_0: eeprom@0 {
reg = <0x0 0x200>;
};
macaddr_factory_4: eeprom@4 {
reg = <0x4 0x6>;
};
macaddr_factory_e000: macaddr@e000 {
reg = <0xe000 0x6>;
};
};
};
partition@300000 {
label = "u-boot-env";
reg = <0x300000 0x280000>;
read-only;
};
partition@580000 {
label = "u-boot-env2";
reg = <0x580000 0x280000>;
read-only;
};
partition@800000 {
label = "firmware";
reg = <0x800000 0x2000000>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "kernel";
reg = <0x0 0x400000>;
};
ubiconcat0: partition@400000 {
label = "ubiconcat0";
reg = <0x400000 0x1c00000>;
};
};
ubiconcat1: partition@2800000 {
label = "Kernel2";
reg = <0x2800000 0x2000000>;
};
ubiconcat2: partition@4800000 {
label = "Storage1";
reg = <0x4800000 0x1c00000>;
};
ubiconcat3: partition@6400000 {
label = "Storage2";
reg = <0x6400000 0x1b80000>;
};
};
};
&pcie {
status = "okay";
};
&sdhci {
status = "okay";
};
&state_default {
gpio {
groups = "rgmii2", "uart3";
function = "gpio";
};
};
&switch0 {
ports: ports {
port@4 {
status = "okay";
label = "wan";
nvmem-cells = <&macaddr_factory_e000>;
nvmem-cell-names = "mac-address";
};
};
};