};
};
- ahb {
+ ahb: ahb {
compatible = "simple-bus";
ranges;
#reset-cells = <1>;
};
- gmac: gmac@18070000 {
- compatible = "qca,ar9340-gmac", "qca,ar9330-gmac";
- reg = <0x18070000 0x14>;
+ hs_uart: uart@18500000 {
+ compatible = "qca,ar9330-uart";
+ reg = <0x18500000 0x14>;
+
+ interrupts = <6>;
+ interrupt-parent = <&miscintc>;
+
+ clocks = <&pll ATH79_CLK_UART1>;
+ clock-names = "uart";
+
+ status = "disabled";
};
};
+ nand: nand@1b000200 {
+ compatible = "qca,ar934x-nand";
+ reg = <0x1b000200 0xb8>;
+
+ interrupts = <21>;
+ interrupt-parent = <&miscintc>;
+
+ resets = <&rst 14>;
+ reset-names = "nand";
+
+ nand-ecc-mode = "hw";
+
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ status = "disabled";
+ };
+
+ gmac: gmac@18070000 {
+ compatible = "qca,ar9340-gmac";
+ reg = <0x18070000 0x14>;
+ };
+
+ wmac: wmac@18100000 {
+ compatible = "qca,ar9340-wmac";
+ reg = <0x18100000 0x20000>;
+
+ status = "disabled";
+ };
+
usb: usb@1b000000 {
compatible = "generic-ehci";
reg = <0x1b000000 0x1d8>;
};
spi: spi@1f000000 {
- compatible = "qca,ar9340-spi", "qca,ar7100-spi";
+ compatible = "qca,ar934x-spi";
reg = <0x1f000000 0x1c>;
clocks = <&pll ATH79_CLK_AHB>;
- clock-names = "ahb";
#address-cells = <1>;
#size-cells = <0>;
usb_phy: usb-phy {
compatible = "qca,ar9340-usb-phy", "qca,ar7200-usb-phy";
- reset-names = "usb-phy", "usb-suspend-override";
- resets = <&rst 4>, <&rst 3>;
+ reset-names = "usb-phy-analog", "usb-phy", "usb-suspend-override";
+ resets = <&rst 11>, <&rst 4>, <&rst 3>;
#phy-cells = <0>;
};
};
-&cpuintc {
- qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
- qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
- <&ddr_ctrl 0>, <&ddr_ctrl 1>;
-};
-
&mdio0 {
- resets = <&rst 22>;
- reset-names = "mdio";
+ compatible = "qca,ar9340-mdio";
};
ð0 {
pll-data = <0x16000000 0x00000101 0x00001616>;
pll-reg = <0x4 0x2c 17>;
pll-handle = <&pll>;
-
- resets = <&rst 8>, <&rst 9>;
- reset-names = "mac", "phy";
+ resets = <&rst 9>, <&rst 22>;
+ reset-names = "mac", "mdio";
+ clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
+ clock-names = "eth", "mdio";
};
&mdio1 {
+ status = "okay";
+
+ compatible = "qca,ar9340-mdio";
resets = <&rst 23>;
reset-names = "mdio";
builtin-switch;
+
+ builtin_switch: switch0@1f {
+ compatible = "qca,ar8229";
+
+ reg = <0x1f>;
+ resets = <&rst 8>;
+ reset-names = "switch";
+ phy-mode = "gmii";
+ qca,mib-poll-interval = <500>;
+ qca,phy4-mii-enable;
+
+ mdio-bus {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ swphy0: ethernet-phy@0 {
+ reg = <0>;
+ phy-mode = "mii";
+ };
+
+ swphy4: ethernet-phy@4 {
+ reg = <4>;
+ phy-mode = "mii";
+ };
+ };
+ };
};
ð1 {
compatible = "qca,ar9340-eth", "syscon";
- resets = <&rst 12>, <&rst 13>;
- reset-names = "mac", "phy";
+ resets = <&rst 13>, <&rst 23>;
+ reset-names = "mac", "mdio";
+ clocks = <&pll ATH79_CLK_AHB>, <&pll ATH79_CLK_AHB>;
+ clock-names = "eth", "mdio";
+ phy-mode = "gmii";
+
+ fixed-link {
+ speed = <1000>;
+ full-duplex;
+ };
};