X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fath79%2Fdts%2Far9331_8dev_carambola2.dts;h=f786f425f05abf1a7374bacb8df0743b40ded65d;hb=9783340af9db3be4e21d89426090c394a3074856;hp=ffb9745e0311adf339ac4090d22ec3551e07eb98;hpb=2b92ee36ae93456b16ca2813612d663dfeb65832;p=openwrt%2Fstaging%2Fhauke.git diff --git a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts index ffb9745e03..f786f425f0 100644 --- a/target/linux/ath79/dts/ar9331_8dev_carambola2.dts +++ b/target/linux/ath79/dts/ar9331_8dev_carambola2.dts @@ -1,17 +1,15 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT -/dts-v1/; + +#include "ar9331.dtsi" #include #include -#include "ar9331.dtsi" - / { model = "8devices Carambola2"; compatible = "8dev,carambola2", "qca,ar9331"; aliases { - serial0 = &uart; label-mac-device = &wmac; }; @@ -19,18 +17,18 @@ compatible = "gpio-leds"; wlan { - label = "carambola2:green:wlan"; + label = "green:wlan"; gpios = <&gpio 0 GPIO_ACTIVE_LOW>; linux,default-trigger = "phy0tpt"; }; eth0 { - label = "carambola2:orange:eth0"; + label = "orange:eth0"; gpios = <&gpio 13 GPIO_ACTIVE_HIGH>; }; eth1 { - label = "carambola2:orange:eth1"; + label = "orange:eth1"; gpios = <&gpio 14 GPIO_ACTIVE_HIGH>; }; }; @@ -50,14 +48,6 @@ clock-frequency = <40000000>; }; -&uart { - status = "okay"; -}; - -&gpio { - status = "okay"; -}; - &usb { dr_mode = "host"; status = "okay"; @@ -68,7 +58,6 @@ }; &spi { - num-chipselects = <0>; status = "okay"; flash@0 { @@ -103,6 +92,20 @@ label = "art"; reg = <0xff0000 0x010000>; read-only; + + nvmem-layout { + compatible = "fixed-layout"; + #address-cells = <1>; + #size-cells = <1>; + + macaddr_art_0: macaddr@0 { + reg = <0x0 0x6>; + }; + + macaddr_art_6: macaddr@6 { + reg = <0x6 0x6>; + }; + }; }; }; }; @@ -114,7 +117,8 @@ ð0 { status = "okay"; - mtd-mac-address = <&art 0x0>; + nvmem-cells = <&macaddr_art_0>; + nvmem-cell-names = "mac-address"; gmac-config { device = <&gmac>; @@ -126,7 +130,8 @@ ð1 { status = "okay"; - mtd-mac-address = <&art 0x6>; + nvmem-cells = <&macaddr_art_6>; + nvmem-cell-names = "mac-address"; }; &wmac {