From nobody Tue Oct 7 20:08:09 2025 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 23DA02248BE; Mon, 7 Jul 2025 16:54:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751907286; cv=none; b=ROUEo7OCIshUsPNBe0M3ETRxwU8k668x2SD+JG75hhAoxhrd/uu/fwXxylRL3WlUm9ll2iHlwDFWEJGTqkD5OR6e03GYHhl9HpJUBtOtPw7/BHVAaOyE81pTHOaJ4nvzARJijWlgo4OCOy58kRU4wsrRrgGgzHHZK0q16cjih5I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751907286; c=relaxed/simple; bh=0seKsdu78KnTo7icy4rcHTT6ILJuEucr44ksvECQsas=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qRSuhayEOfG68aTJpr3bplWPwOpUx6S48PK6ydQjw6kIi8XdeJIN9LSb4Xem5Q5JvIQHGX6bFQSvKP5zZBbixJrsw+bJuuG03ZGNqp4Ef7rQa5rpC7I73jMuMMo9xslzWhYsCXQrECuiDI14awIvhgpB2eG39d6x+xTo1x6md7Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 3E05A1F0003D; Mon, 7 Jul 2025 16:54:43 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id BB1FBACAEF9; Mon, 7 Jul 2025 16:54:42 +0000 (UTC) X-Spam-Level: * Received: from localhost.localdomain (unknown [192.168.1.65]) by laika.paulk.fr (Postfix) with ESMTP id 6C9C4ACAEE4; Mon, 7 Jul 2025 16:52:09 +0000 (UTC) From: Paul Kocialkowski To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Linus Walleij , Paul Kocialkowski , Andre Przywara Subject: [PATCH v2 3/4] arm64: dts: allwinner: a100: Add EMAC support Date: Mon, 7 Jul 2025 18:51:54 +0200 Message-ID: <20250707165155.581579-4-paulk@sys-base.io> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250707165155.581579-1-paulk@sys-base.io> References: <20250707165155.581579-1-paulk@sys-base.io> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The Allwinner A100/A133 Ethernet MAC (EMAC) is compatible with the A64 one and needs access to the syscon register for control of the top-level integration of the unit. Note that there are two such controllers on the sun50iw10 die, which are the same unit with a different top-level syscon register offset. Signed-off-by: Paul Kocialkowski Reviewed-by: Andre Przywara --- .../arm64/boot/dts/allwinner/sun50i-a100.dtsi | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi b/arch/arm64/bo= ot/dts/allwinner/sun50i-a100.dtsi index 7d5be0975371..bb5f9e4f3d42 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a100.dtsi @@ -420,6 +420,26 @@ i2c3: i2c@5002c00 { #size-cells =3D <0>; }; =20 + emac0: ethernet@5020000 { + compatible =3D "allwinner,sun50i-a100-emac", + "allwinner,sun50i-a64-emac"; + reg =3D <0x5020000 0x10000>; + interrupts =3D ; + interrupt-names =3D "macirq"; + clocks =3D <&ccu CLK_BUS_EMAC>; + clock-names =3D "stmmaceth"; + resets =3D <&ccu RST_BUS_EMAC>; + reset-names =3D "stmmaceth"; + syscon =3D <&syscon>; + status =3D "disabled"; + + mdio0: mdio { + compatible =3D "snps,dwmac-mdio"; + #address-cells =3D <1>; + #size-cells =3D <0>; + }; + }; + ths: thermal-sensor@5070400 { compatible =3D "allwinner,sun50i-a100-ths"; reg =3D <0x05070400 0x100>; --=20 2.49.0