X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Framips%2Fdts%2Fmt7628an_d-team_pbr-d1.dts;h=940104d47eea69e1db6e2cabbe875078b9ab5a23;hb=ec45f2f246363a4c2a84e51d0014848bf8c52e9f;hp=955797a990799eb81e7d42e1ed94e651e05555ad;hpb=0b68d081eb598c1a5a1cfb13d1494d9228c67b05;p=openwrt%2Fopenwrt.git diff --git a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts index 955797a990..940104d47e 100644 --- a/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts +++ b/target/linux/ramips/dts/mt7628an_d-team_pbr-d1.dts @@ -1,9 +1,8 @@ -/dts-v1/; - #include "mt7628an.dtsi" #include #include +#include / { compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc"; @@ -28,14 +27,16 @@ compatible = "gpio-leds"; usb { - label = "pbr-d1:orange:usb"; + function = LED_FUNCTION_USB; + color = ; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; trigger-sources = <&ohci_port1>, <&ehci_port1>; linux,default-trigger = "usbport"; }; led_power: power { - label = "pbr-d1:orange:power"; + function = LED_FUNCTION_POWER; + color = ; gpios = <&gpio 14 GPIO_ACTIVE_LOW>; default-state = "on"; }; @@ -62,28 +63,28 @@ &state_default { gpio { - ralink,group = "gpio"; - ralink,function = "gpio"; + groups = "gpio"; + function = "gpio"; }; i2c { - ralink,group = "i2c"; - ralink,function = "gpio"; + groups = "i2c"; + function = "gpio"; }; i2s { - ralink,group = "i2s"; - ralink,function = "gpio"; + groups = "i2s"; + function = "gpio"; }; spis { - ralink,group = "spis"; - ralink,function = "gpio"; + groups = "spis"; + function = "gpio"; }; wdt { - ralink,group = "wdt"; - ralink,function = "gpio"; + groups = "wdt"; + function = "gpio"; }; }; @@ -93,7 +94,7 @@ pinctrl-names = "default"; pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>; - m25p80@0 { + flash@0 { compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <40000000>; @@ -114,10 +115,20 @@ reg = <0x30000 0x10000>; }; - factory: partition@40000 { + partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_factory_28: macaddr@28 { + reg = <0x28 0x6>; + }; + }; }; partition@50000 { @@ -154,7 +165,8 @@ }; ðernet { - mtd-mac-address = <&factory 0x28>; + nvmem-cells = <&macaddr_factory_28>; + nvmem-cell-names = "mac-address"; }; &sdhci {