aboutsummaryrefslogtreecommitdiff
path: root/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi')
-rw-r--r--target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi92
1 files changed, 57 insertions, 35 deletions
diff --git a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
index 335ee93989..fbc4dcfb50 100644
--- a/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
+++ b/target/linux/mediatek/dts/mt7986a-zyxel-ex5601-t0-common.dtsi
@@ -8,6 +8,7 @@
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
+#include <dt-bindings/pinctrl/mt65xx.h>
/ {
aliases {
@@ -23,8 +24,9 @@
stdout-path = "serial0:115200n8";
};
- memory {
+ memory@40000000 {
reg = <0 0x40000000 0 0x40000000>;
+ device_type = "memory";
};
reg_1p8v: regulator-1p8v {
@@ -156,21 +158,21 @@
};
&spi0 {
- pinctrl-names = "default";
- pinctrl-0 = <&spi_flash_pins>;
- cs-gpios = <0>, <0>;
- #address-cells = <1>;
- #size-cells = <0>;
- status = "okay";
-
- spi_nand: spi_nand@0 {
- #address-cells = <1>;
- #size-cells = <1>;
- compatible = "spi-nand";
- reg = <1>;
- spi-max-frequency = <10000000>;
- spi-tx-bus-width = <4>;
- spi-rx-bus-width = <4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&spi_flash_pins>;
+ cs-gpios = <0>, <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ status = "okay";
+
+ spi_nand: spi_nand@1 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spi-nand";
+ reg = <1>;
+ spi-max-frequency = <52000000>;
+ spi-tx-bus-width = <4>;
+ spi-rx-bus-width = <4>;
nand_partitions: partitions {
compatible = "fixed-partitions";
@@ -214,13 +216,33 @@
phy5: phy@5 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <5>;
- mxl,led-config = <0x03f0 0x0 0x0 0x0>;
+
+ leds {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_LAN;
+ };
+ };
};
phy6: phy@6 {
compatible = "ethernet-phy-ieee802.3-c45";
reg = <6>;
- mxl,led-config = <0x00f0 0x0 0x0 0x0>;
+
+ leds {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ led@0 {
+ reg = <0>;
+ color = <LED_COLOR_ID_GREEN>;
+ function = LED_FUNCTION_WAN;
+ };
+ };
};
switch@1f {
@@ -307,22 +329,22 @@
};
conf-pu {
pins = "SPI2_CS", "SPI2_HOLD", "SPI2_WP";
- drive-strength = <8>;
- mediatek,pull-up-adv = <0>; /* bias-disable */
+ drive-strength = <MTK_DRIVE_4mA>;
+ bias-disable; /* bias-disable */
};
conf-pd {
pins = "SPI2_CLK", "SPI2_MOSI", "SPI2_MISO";
- drive-strength = <8>;
- mediatek,pull-down-adv = <0>; /* bias-disable */
+ drive-strength = <MTK_DRIVE_4mA>;
+ bias-disable; /* bias-disable */
};
};
uart0_pins: uart0-pins {
- mux {
- function = "uart";
- groups = "uart0";
- };
- };
+ mux {
+ function = "uart";
+ groups = "uart0";
+ };
+ };
uart1_pins: uart1-pins {
mux {
@@ -351,7 +373,7 @@
"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
"WF1_TOP_CLK", "WF1_TOP_DATA";
- drive-strength = <4>;
+ drive-strength = <MTK_DRIVE_4mA>;
};
};
@@ -368,16 +390,16 @@
"WF1_HB2", "WF1_HB3", "WF1_HB4", "WF1_HB0",
"WF1_HB5", "WF1_HB6", "WF1_HB7", "WF1_HB8",
"WF1_TOP_CLK", "WF1_TOP_DATA";
- drive-strength = <4>;
+ drive-strength = <MTK_DRIVE_4mA>;
};
};
- usb-oc-hog {
- gpio-hog;
- gpios = <7 GPIO_ACTIVE_LOW>;
- input;
- line-name = "usb-oc";
- };
+ usb-oc-hog {
+ gpio-hog;
+ gpios = <7 GPIO_ACTIVE_LOW>;
+ input;
+ line-name = "usb-oc";
+ };
};
&spi1 {