Add a83t overlays for sid and emac
The sun8i-a83t-bananapi-m3-emac overlay technically doesn't match what will be coming from upstream. The tx-delay and rx-delay should be specified in terms of allwinner,tx-delay-ps and allwinner,rx-delay-ps respectively. The values are still technically correct for what we write in if_awg, and support for the new bindings will be coming soon.
This commit is contained in:
parent
197d784bf3
commit
1e14d6eb3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=332260
29
sys/dts/arm/overlays/sun8i-a83t-bananapi-m3-emac.dtso
Normal file
29
sys/dts/arm/overlays/sun8i-a83t-bananapi-m3-emac.dtso
Normal file
@ -0,0 +1,29 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "sinovoip,bpi-m3";
|
||||
|
||||
fragment@0 {
|
||||
target = <&mdio>;
|
||||
__overlay__ {
|
||||
rgmii_phy: ethernet-phy@1 {
|
||||
compatible = "ethernet-phy-ieee802.3-c22";
|
||||
reg = <0x1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target = <&emac>;
|
||||
__overlay__ {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&emac_rgmii_pins>;
|
||||
phy-handle = <&rgmii_phy>;
|
||||
phy-mode = "rgmii";
|
||||
rx-delay = <0x7>;
|
||||
tx-delay = <0x7>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
44
sys/dts/arm/overlays/sun8i-a83t-emac.dtso
Normal file
44
sys/dts/arm/overlays/sun8i-a83t-emac.dtso
Normal file
@ -0,0 +1,44 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-a83t";
|
||||
|
||||
fragment@0 {
|
||||
target = <&pio>;
|
||||
__overlay__ {
|
||||
emac_rgmii_pins: emac-rgmii-pins {
|
||||
pins = "PD2", "PD3", "PD4", "PD5", "PD6", "PD7",
|
||||
"PD11", "PD12", "PD13", "PD14", "PD18",
|
||||
"PD19", "PD20", "PD21", "PD22", "PD23";
|
||||
function = "emac";
|
||||
drive-strength = <0x28>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
fragment@1 {
|
||||
target-path = "/soc";
|
||||
__overlay__ {
|
||||
emac: ethernet@1c30000 {
|
||||
compatible = "allwinner,sun8i-a83t-emac";
|
||||
syscon = <&syscon>;
|
||||
reg = <0x1c30000 0x104>;
|
||||
interrupts = <0x0 0x52 0x4>;
|
||||
interrupt-names = "macirq";
|
||||
resets = <&ccu 0xd>;
|
||||
reset-names = "ahb";
|
||||
clocks = <&ccu 0x1b>;
|
||||
clock-names = "ahb";
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x0>;
|
||||
status = "disabled";
|
||||
mdio: mdio {
|
||||
compatible = "snps,dwmac-mdio";
|
||||
#address-cells = <0x1>;
|
||||
#size-cells = <0x0>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
17
sys/dts/arm/overlays/sun8i-a83t-sid.dtso
Normal file
17
sys/dts/arm/overlays/sun8i-a83t-sid.dtso
Normal file
@ -0,0 +1,17 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
/ {
|
||||
compatible = "allwinner,sun8i-a83t";
|
||||
|
||||
fragment@0 {
|
||||
target-path = "/soc";
|
||||
__overlay__ {
|
||||
sid: eeprom@1c14000 {
|
||||
compatible = "allwinner,sun8i-a83t-sid";
|
||||
reg = <0x1c14000 0x400>;
|
||||
status = "okay";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user