95 lines
2.7 KiB
Diff
95 lines
2.7 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Juan Sanchez <[email protected]>
|
|
Date: Sat, 2 Aug 2025 00:36:05 -0400
|
|
Subject: Subject: From: Chen-Yu Tsai <[email protected]>
|
|
|
|
Signed-off-by: Juan Sanchez <[email protected]>
|
|
---
|
|
arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi | 55 ++++++++++
|
|
1 file changed, 55 insertions(+)
|
|
|
|
diff --git a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
|
|
index 7fbba60ec76e..50bebaa67d32 100644
|
|
--- a/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
|
|
+++ b/arch/arm64/boot/dts/allwinner/sun55i-a523.dtsi
|
|
@@ -178,10 +178,20 @@ rgmii0_pins: rgmii0-pins {
|
|
function = "gmac0";
|
|
drive-strength = <40>;
|
|
bias-disable;
|
|
};
|
|
|
|
+ rgmii1_pins: rgmii1-pins {
|
|
+ pins = "PJ0", "PJ1", "PJ2", "PJ3", "PJ4",
|
|
+ "PJ5", "PJ6", "PJ7", "PJ8", "PJ9",
|
|
+ "PJ11", "PJ12", "PJ13", "PJ14", "PJ15";
|
|
+ allwinner,pinmux = <5>;
|
|
+ function = "gmac1";
|
|
+ drive-strength = <40>;
|
|
+ bias-disable;
|
|
+ };
|
|
+
|
|
uart0_pb_pins: uart0-pb-pins {
|
|
pins = "PB9", "PB10";
|
|
allwinner,pinmux = <2>;
|
|
function = "uart0";
|
|
};
|
|
@@ -593,10 +603,55 @@ mdio0: mdio {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
};
|
|
};
|
|
|
|
+ gmac1: ethernet@4510000 {
|
|
+ compatible = "allwinner,sun55i-a523-gmac200",
|
|
+ "snps,dwmac-4.20a";
|
|
+ reg = <0x04510000 0x10000>;
|
|
+ clocks = <&ccu CLK_BUS_EMAC1>, <&ccu CLK_MBUS_EMAC1>;
|
|
+ clock-names = "stmmaceth", "mbus";
|
|
+ resets = <&ccu RST_BUS_EMAC1>;
|
|
+ reset-names = "stmmaceth";
|
|
+ interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>;
|
|
+ interrupt-names = "macirq";
|
|
+ pinctrl-names = "default";
|
|
+ pinctrl-0 = <&rgmii1_pins>;
|
|
+ power-domains = <&pck600 PD_VO1>;
|
|
+ syscon = <&syscon>;
|
|
+ snps,fixed-burst;
|
|
+ snps,axi-config = <&gmac1_stmmac_axi_setup>;
|
|
+ snps,mtl-rx-config = <&gmac1_mtl_rx_setup>;
|
|
+ snps,mtl-tx-config = <&gmac1_mtl_tx_setup>;
|
|
+ status = "disabled";
|
|
+
|
|
+ mdio1: mdio {
|
|
+ compatible = "snps,dwmac-mdio";
|
|
+ #address-cells = <1>;
|
|
+ #size-cells = <0>;
|
|
+ };
|
|
+
|
|
+ gmac1_mtl_rx_setup: rx-queues-config {
|
|
+ snps,rx-queues-to-use = <1>;
|
|
+
|
|
+ queue0 {};
|
|
+ };
|
|
+
|
|
+ gmac1_stmmac_axi_setup: stmmac-axi-config {
|
|
+ snps,wr_osr_lmt = <0xf>;
|
|
+ snps,rd_osr_lmt = <0xf>;
|
|
+ snps,blen = <256 128 64 32 16 8 4>;
|
|
+ };
|
|
+
|
|
+ gmac1_mtl_tx_setup: tx_queues-config {
|
|
+ snps,tx-queues-to-use = <1>;
|
|
+
|
|
+ queue0 {};
|
|
+ };
|
|
+ };
|
|
+
|
|
ppu: power-controller@7001400 {
|
|
compatible = "allwinner,sun55i-a523-ppu";
|
|
reg = <0x07001400 0x400>;
|
|
clocks = <&r_ccu CLK_BUS_R_PPU1>;
|
|
resets = <&r_ccu RST_BUS_R_PPU1>;
|
|
--
|
|
Created with Armbian build tools https://github.com/armbian/build
|
|
|