Skip to content

Commit

Permalink
Adapt device tree from current linux kernel to include emac configura…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
irgendwie committed Nov 15, 2018
1 parent f2a8eda commit 546105f
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions arch/arm/dts/sun50i-a64-olinuxino.dts
Expand Up @@ -51,6 +51,7 @@
compatible = "olimex,a64-olinuxino", "allwinner,sun50i-a64";

aliases {
ethernet0 = &emac;
serial0 = &uart0;
};

Expand All @@ -64,6 +65,23 @@
};
};

&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii";
phy-handle = <&ext_rgmii_phy>;
phy-supply = <&reg_dcdc1>;
allwinner,tx-delay-ps = <600>;
status = "okay";
};

&mdio {
ext_rgmii_phy: ethernet-phy@1 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <1>;
};
};

&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
Expand Down Expand Up @@ -100,6 +118,7 @@
reg = <0x3a3>;
interrupt-parent = <&r_intc>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
x-powers,drive-vbus-en; /* set N_VBUSEN as output pin */
};
};

Expand Down Expand Up @@ -142,10 +161,14 @@

/* DCDC3 is polyphased with DCDC2 */

/*
* The board uses DDR3L DRAM chips. 1.36V is the closest to the nominal
* 1.35V that the PMIC can drive.
*/
&reg_dcdc5 {
regulator-always-on;
regulator-min-microvolt = <1500000>;
regulator-max-microvolt = <1500000>;
regulator-min-microvolt = <1360000>;
regulator-max-microvolt = <1360000>;
regulator-name = "vcc-ddr3";
};

Expand Down

0 comments on commit 546105f

Please sign in to comment.