projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: reset mt7620 ethernet phy via reset controller
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7620a_zyxel_keenetic-viva.dts
diff --git
a/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
b/target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
index 3d6d2c6f06a8259879221faf237d4d6f50edc927..abeb4c2a2d1630bd3f43aefc0d6b9f9e2b2bc509 100644
(file)
--- a/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
+++ b/
target/linux/ramips/dts/mt7620a_zyxel_keenetic-viva.dts
@@
-1,5
+1,3
@@
-/dts-v1/;
-
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
@@
-20,36
+18,35
@@
compatible = "gpio-leds";
wan {
compatible = "gpio-leds";
wan {
- label = "
kng_rc:
green:wan";
+ label = "green:wan";
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
usb {
gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
};
usb {
- label = "
kng_rc:
green:usb";
+ label = "green:usb";
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
power_alert {
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
trigger-sources = <&ohci_port1>, <&ehci_port1>;
linux,default-trigger = "usbport";
};
power_alert {
- label = "
kng_rc:
red:power";
+ label = "red:power";
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
wifi {
gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
};
wifi {
- label = "
kng_rc:
green:wifi";
+ label = "green:wifi";
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
led_power_green: power {
gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
};
led_power_green: power {
- label = "
kng_rc:
green:power";
+ label = "green:power";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
};
keys {
compatible = "gpio-keys";
- poll-interval = <20>;
reset {
label = "reset";
reset {
label = "reset";
@@
-92,7
+89,7
@@
&spi0 {
status = "okay";
&spi0 {
status = "okay";
-
m25p80
@0 {
+
flash
@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
@@
-118,6
+115,20
@@
label = "factory";
reg = <0x40000 0x10000>;
read-only;
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 0x200>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-129,20
+140,19
@@
};
};
};
};
-&pinctrl {
- state_default: pinctrl0 {
- gpio {
- ralink,group = "i2c", "uartf";
- ralink,function = "gpio";
- };
+&state_default {
+ gpio {
+ groups = "i2c", "uartf";
+ function = "gpio";
};
};
ðernet {
};
};
ðernet {
- status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
pinctrl-names = "default";
pinctrl-0 = <&rgmii2_pins &mdio_pins>;
- mtd-mac-address = <&factory 0x00004>;
+
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
port@4 {
status = "okay";
port@4 {
status = "okay";
@@
-162,11
+172,13
@@
};
&gsw {
};
&gsw {
- mediatek,port4 = "gmac";
+ mediatek,port4-gmac;
+ mediatek,ephy-base = /bits/ 8 <8>;
};
&wmac {
};
&wmac {
- ralink,mtd-eeprom = <&factory 0>;
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
&ehci {
};
&ehci {