mediatek: update the ethernet compat string
[openwrt/openwrt.git] / target / linux / mediatek / files / arch / arm / boot / dts / mt7623-NAND.dts
index d25e46ebae78a945644ccecf66a5de5613f001e2..15b7da9a764b4f8ad3e8e0f79f1f9cf6b057aef7 100644 (file)
 
 /dts-v1/;
 
-#include "mt7623.dtsi"
+#include "_mt7623.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 
 / {
-       model = "MediaTek MT7623 evaluation board";
+       model = "MediaTek MT7623 NAND evaluation board";
        compatible = "mediatek,mt7623-evb", "mediatek,mt7623";
 
        chosen {
                        output-low;
                };
        };
+
+       pwm_pins: pwm {
+               pins_pwm1 {
+                       pinmux = <MT7623_PIN_204_PWM1_FUNC_PWM1>;
+               };
+
+               pins_pwm2 {
+                       pinmux = <MT7623_PIN_205_PWM2_FUNC_PWM2>;
+               };
+       };
 };
 
 &nandc {
        nand@0 {
                reg = <0>;
                spare_per_sector = <64>;
-               nand-on-flash-bbt;
                nand-ecc-mode = "hw";
                nand-ecc-strength = <12>;
                nand-ecc-step-size = <1024>;
                        };
 
                        partition@4140000 {
-                               label = "rootfs";
+                               label = "ubi";
                                reg = <0x4140000 0x1000000>;
                        };
                };
 &gmac2 {
        mac-address = [00 11 22 33 44 55];
        status = "okay";
+
+       phy-mode = "rgmii";
+
+       fixed-link {
+               speed = <1000>;
+               full-duplex;
+               pause;
+       };
 };
 
 &gsw {
        mediatek,reset-pin = <&pio 15 0>;
        status = "okay";
 };
+
+&pwm {
+       pinctrl-names = "default";
+       pinctrl-0 = <&pwm_pins>;
+       status = "okay";
+};