dts: add EMAC configuration and syscon node for Allwinner V3s SoC
This commit is contained in:
@@ -49,6 +49,7 @@
|
|||||||
compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";
|
compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";
|
||||||
|
|
||||||
aliases {
|
aliases {
|
||||||
|
ethernet0 = &emac;
|
||||||
serial0 = &uart0;
|
serial0 = &uart0;
|
||||||
spi0 = &spi0;
|
spi0 = &spi0;
|
||||||
};
|
};
|
||||||
@@ -86,3 +87,14 @@
|
|||||||
usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
|
usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&emac {
|
||||||
|
phy = <&phy0>;
|
||||||
|
phy-mode = "mii";
|
||||||
|
allwinner,use-internal-phy;
|
||||||
|
allwinner,leds-active-low;
|
||||||
|
status = "okay";
|
||||||
|
phy0: ethernet-phy@0 {
|
||||||
|
reg = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -96,6 +96,11 @@
|
|||||||
#size-cells = <1>;
|
#size-cells = <1>;
|
||||||
ranges;
|
ranges;
|
||||||
|
|
||||||
|
syscon: syscon@01c00000 {
|
||||||
|
compatible = "allwinner,sun8i-h3-syscon","syscon";
|
||||||
|
reg = <0x01c00000 0x34>;
|
||||||
|
};
|
||||||
|
|
||||||
mmc0: mmc@01c0f000 {
|
mmc0: mmc@01c0f000 {
|
||||||
compatible = "allwinner,sun7i-a20-mmc";
|
compatible = "allwinner,sun7i-a20-mmc";
|
||||||
reg = <0x01c0f000 0x1000>;
|
reg = <0x01c0f000 0x1000>;
|
||||||
@@ -208,6 +213,17 @@
|
|||||||
interrupt-controller;
|
interrupt-controller;
|
||||||
#interrupt-cells = <3>;
|
#interrupt-cells = <3>;
|
||||||
|
|
||||||
|
emac_rgmii_pins: emac0@0 {
|
||||||
|
allwinner,pins = "PD0", "PD1", "PD2", "PD3",
|
||||||
|
"PD4", "PD5", "PD7",
|
||||||
|
"PD8", "PD9", "PD10",
|
||||||
|
"PD12", "PD13", "PD15",
|
||||||
|
"PD16", "PD17";
|
||||||
|
allwinner,function = "emac";
|
||||||
|
allwinner,drive = <SUN4I_PINCTRL_40_MA>;
|
||||||
|
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
|
||||||
|
};
|
||||||
|
|
||||||
uart0_pins_a: uart0@0 {
|
uart0_pins_a: uart0@0 {
|
||||||
pins = "PB8", "PB9";
|
pins = "PB8", "PB9";
|
||||||
function = "uart0";
|
function = "uart0";
|
||||||
@@ -275,6 +291,20 @@
|
|||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
emac: ethernet@1c30000 {
|
||||||
|
compatible = "allwinner,sun8i-h3-emac";
|
||||||
|
reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
|
||||||
|
reg-names = "emac", "syscon";
|
||||||
|
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
|
||||||
|
resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>;
|
||||||
|
reset-names = "ahb", "ephy";
|
||||||
|
clocks = <&ccu CLK_BUS_EMAC>, <&ccu CLK_BUS_EPHY>;
|
||||||
|
clock-names = "ahb", "ephy";
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
spi0: spi@1c68000 {
|
spi0: spi@1c68000 {
|
||||||
compatible = "allwinner,sun8i-h3-spi";
|
compatible = "allwinner,sun8i-h3-spi";
|
||||||
reg = <0x01c68000 0x1000>;
|
reg = <0x01c68000 0x1000>;
|
||||||
|
|||||||
Reference in New Issue
Block a user