bootargs = "console=ttyS0,57600";
};
+ aliases {
+ serial0 = &uartlite;
+ };
+
cpuintc: cpuintc@0 {
#address-cells = <0>;
#interrupt-cells = <1>;
};
};
+ i2c@900 {
+ compatible = "mediatek,mt7628-i2c";
+ reg = <0x900 0x100>;
+
+ resets = <&rstctrl 16>;
+ reset-names = "i2c";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&i2c_pins>;
+ };
+
+ i2s@a00 {
+ compatible = "ralink,mt7620a-i2s";
+ reg = <0xa00 0x100>;
+
+ resets = <&rstctrl 17>;
+ reset-names = "i2s";
+
+ interrupt-parent = <&intc>;
+ interrupts = <10>;
+
+ dmas = <&gdma 2>,
+ <&gdma 3>;
+ dma-names = "tx", "rx";
+
+ status = "disabled";
+ };
+
spi@b00 {
compatible = "ralink,mt7621-spi";
reg = <0xb00 0x100>;
status = "disabled";
};
- uartlite@c00 {
+ uartlite: uartlite@c00 {
compatible = "ns16550a";
reg = <0xc00 0x100>;
status = "disabled";
};
- uart2@e00 {
+ uart2: uart2@e00 {
compatible = "ns16550a";
reg = <0xe00 0x100>;
status = "disabled";
};
+
+ pwm@5000 {
+ compatible = "mediatek,mt7628-pwm";
+ reg = <0x5000 0x1000>;
+
+ resets = <&rstctrl 31>;
+ reset-names = "pwm";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&pwm0_pins>, <&pwm1_pins>;
+
+ status = "disabled";
+ };
+
+ pcm@2000 {
+ compatible = "ralink,mt7620a-pcm";
+ reg = <0x2000 0x800>;
+
+ resets = <&rstctrl 11>;
+ reset-names = "pcm";
+
+ interrupt-parent = <&intc>;
+ interrupts = <4>;
+
+ status = "disabled";
+ };
+
+ gdma: gdma@2800 {
+ compatible = "ralink,mt7620a-gdma", "ralink,rt2880-gdma";
+ reg = <0x2800 0x800>;
+
+ resets = <&rstctrl 14>;
+ reset-names = "dma";
+
+ interrupt-parent = <&intc>;
+ interrupts = <7>;
+
+ #dma-cells = <1>;
+ #dma-channels = <16>;
+ #dma-requests = <16>;
+
+ status = "disabled";
+ };
};
pinctrl {
};
};
+ spi_cs1_pins: spi_cs1 {
+ spi_cs1 {
+ ralink,group = "spi cs1";
+ ralink,function = "spi cs1";
+ };
+ };
+
+ i2c_pins: i2c {
+ i2c {
+ ralink,group = "i2c";
+ ralink,function = "i2c";
+ };
+ };
+
uart0_pins: uartlite {
uartlite {
ralink,group = "uart0";
ralink,function = "sdxc";
};
};
+
+ pwm0_pins: pwm0 {
+ pwm0 {
+ ralink,group = "pwm0";
+ ralink,function = "pwm0";
+ };
+ };
+
+ pwm1_pins: pwm1 {
+ pwm1 {
+ ralink,group = "pwm1";
+ ralink,function = "pwm1";
+ };
+ };
+
+ pcm_i2s_pins: i2s {
+ i2s {
+ ralink,group = "i2s";
+ ralink,function = "pcm";
+ };
+ };
};
rstctrl: rstctrl {
#reset-cells = <1>;
};
- usbphy: usbphy {
- compatible = "ralink,mt7628an-usbphy", "ralink,mt7620a-usbphy";
+ usbphy: usbphy@10120000 {
+ compatible = "ralink,mt7628an-usbphy", "mediatek,mt7620-usbphy";
+ reg = <0x10120000 0x4000>;
#phy-cells = <1>;
- resets = <&rstctrl 22>;
- reset-names = "host";
+ resets = <&rstctrl 22 &rstctrl 25>;
+ reset-names = "host", "device";
};
sdhci@10130000 {
compatible = "ralink,mt7620-sdhci";
- reg = <0x10130000 4000>;
+ reg = <0x10130000 0x4000>;
interrupt-parent = <&intc>;
interrupts = <14>;
};
ehci@101c0000 {
- compatible = "ralink,rt3xxx-ehci";
+ compatible = "generic-ehci";
reg = <0x101c0000 0x1000>;
phys = <&usbphy 1>;
};
ohci@101c1000 {
- compatible = "ralink,rt3xxx-ohci";
+ compatible = "generic-ohci";
reg = <0x101c1000 0x1000>;
phys = <&usbphy 1>;
ethernet@10100000 {
compatible = "ralink,rt5350-eth";
- reg = <0x10100000 10000>;
+ reg = <0x10100000 0x10000>;
interrupt-parent = <&cpuintc>;
interrupts = <5>;
resets = <&rstctrl 21 &rstctrl 23>;
reset-names = "fe", "esw";
+
+ mediatek,switch = <&esw>;
};
- esw@10110000 {
+ esw: esw@10110000 {
compatible = "ralink,rt3050-esw";
- reg = <0x10110000 8000>;
+ reg = <0x10110000 0x8000>;
resets = <&rstctrl 23>;
reset-names = "esw";
device_type = "pci";
};
};
+
+ wmac: wmac@10300000 {
+ compatible = "mediatek,mt7628-wmac";
+ reg = <0x10300000 0x100000>;
+
+ interrupt-parent = <&cpuintc>;
+ interrupts = <6>;
+
+ status = "disabled";
+
+ mediatek,mtd-eeprom = <&factory 0x0000>;
+ mediatek,5ghz = <0>;
+ };
};