]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
dts: nanopi-r1: add node for realtek8152 usb ethernet
authorArne Fitzenreiter <arne_f@ipfire.org>
Sun, 28 Jul 2019 20:57:14 +0000 (22:57 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 14 May 2021 13:17:21 +0000 (15:17 +0200)
this is needed for setting the mac address generated by u-boot

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
arch/arm/boot/dts/sun8i-h3-nanopi-r1.dts

index 86b12d7947e73cda4d3e73948512b12ee96f351e..9eb3b4fd078e15a61b52107bca1f1d25dd0af97b 100644 (file)
        model = "FriendlyElec NanoPi-R1";
        compatible = "friendlyarm,nanopi-r1", "allwinner,sun8i-h3";
 
+       aliases {
+               ethernet0 = &emac;
+               ethernet1 = &usbr8152;
+               ethernet2 = &brcmf;
+               serial0 = &uart0;
+       };
+
        wifi_pwrseq: wifi_pwrseq {
                compatible = "mmc-pwrseq-simple";
                pinctrl-names = "default";
        status = "okay";
 };
 
+&ehci1 {
+       status = "okay";
+       #address-cells = <1>;
+       #size-cells = <0>;
+       usbr8152: usbether@1 {
+               compatible = "usb0bda,8152";
+               reg = <1>;
+    };
+};
+
+&ohci1 {
+       status = "disabled";
+};
+
 &mmc1 {
        pinctrl-names = "default";
        pinctrl-0 = <&mmc1_pins_a>;