🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #20487

Re: [PATCH v2 2/8] ARM: dts: rockchip: Add support for RK3506

#20487
From: Andrew Lunn
Date: Sun, 22 Nov 2026 18:24
50 lines
10134 bytes
On Sun, Nov 22, 2026 at 05:01:08PM +0100, Jonas Karlman wrote:
> Hi Andrew,
> 
> On 11/22/2026 4:46 PM, Andrew Lunn wrote:
> >> diff --git a/arch/arm/boot/dts/rockchip/rk3506.dtsi b/arch/arm/boot/dts/rockchip/rk3506.dtsi
> > 
> >> +		gmac0: ethernet@ff4c8000 {
> >> +			compatible = "rockchip,rk3506-gmac", "snps,dwmac-4.20a";
> >> +			reg = <0xff4c8000 0x2000>;
> >> +			clocks = <&cru CLK_MAC0>, <&cru CLK_MAC0_PTP>,
> >> +				 <&cru PCLK_MAC0>, <&cru ACLK_MAC0>;
> >> +			clock-names = "stmmaceth", "ptp_ref",
> >> +				      "pclk_mac", "aclk_mac";
> >> +			interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>,
> >> +				     <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
> >> +			interrupt-names = "macirq", "eth_wake_irq";
> >> +			phy-mode = "rmii";
> > 
> > Sorry, missed this on the first pass of the patchset.
> > 
> > phy-mode is generally a board/PCB property, not a SoC property. It
> > would only be a SoC property when the SoC cannot do anything other
> > than RMII. But given this is snps,dwmac, i expect it can do other phy
> > modes.
> 
> This SoC only support RMII mode, so I put the phy-mode at SoC level.
> 
> Datasheet for this SoC lists following:
> 
>   RMII 10/100 Ethernet Controller
>   - Support two Ethernet Controllers
>   - Supports 10/100-Mbps data transfer rates with the RMII interfaces
>   - Supports both full-duplex and half-duplex operation
> 
> The Technical Reference Manual also only mention RMII:
> 
>   38.2 Block Diagram
>   ...
>   The MAC only supports the PHY interfaces of reduced MII (RMII).
>   ...
>   MAC Supports 10/100-Mbps data transfer rates with the RMII interfaces.

That is unusual, but O.K.

For the Ethernet node only:

Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Technical Details
Message-ID: <cacdc706-3fef-491b-bb3a-96728347a17e@lunn.ch>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368780-linux-kernel-netdev=dewy.ru
References: <20261122060114.773624-1-jonas@kwiboo.se> <20261122060114.773624-3-jonas@kwiboo.se> <86007bdd-6c10-46ba-aac6-197939934c73@lunn.ch> <5cf52e28-110a-4fc2-acfb-eb264e8c31e2@kwiboo.se>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-368780-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH v2 2/8] ARM: dts: rockchip: Add support for RK3506
Date: Sun, 22 Nov 2026 19:24:34 +0100
Organization: Usenet Network
Message-ID: <cacdc706-3fef-491b-bb3a-96728347a17e@lunn.ch>
References: <20261122060114.773624-1-jonas@kwiboo.se>
 <20261122060114.773624-3-jonas@kwiboo.se>
 <86007bdd-6c10-46ba-aac6-197939934c73@lunn.ch>
 <5cf52e28-110a-4fc2-acfb-eb264e8c31e2@kwiboo.se>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3697241"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:7tCT1lQjqLxv8YBHI7Ss+7TJ51I= sha256:xlZlaIROght4n92iMrCIuj14Va7o6GEOsmZ95YmORWU=
	sha1:fbKB4UnBW52N4U+QMORorMkQ92s= sha256:Ok3mZgHtXzkumQ5kfhg8ZQlT0uc/9pfvxbsiQNjYSOU=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id AC00B125D81; Sun, 22 Nov 2026 21:25:18 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.05
X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id FUNO67VpayR5;
	Sun, 22 Nov 2026 21:25:15 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-368780-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 7E830125D7A; Sun, 22 Nov 2026 21:25:05 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 46466220F9; Sun, 22 Nov 2026 18:25:00 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795371896;
	b=3SOXbKttLJxRbtCm4oBhYQJbR6pNmGYX/BCBBOz+XjHana9unmPJOf4wBX+3GoPjQu1V
	 c2e/KeGbQAj0VCMhkLAC2UbVL4ShfuFd7nn0S1iZ1neMaGDer8ahLQTz69aNFerWmeBIG
	 I2KOMCD+Pkvq6Uwy+QPp4byXMlvhPkLO8fEc322O7oysT3FeUWpQx9SF6uMryeFCykRKZ
	 1aHpiHCuxfQy2xXZAfS6cmlp5nDAhanqs/sm6JhwpOEwEwfcOdMoqQWpyisyJddW58zB3
	 Wu54HYj31oCpv02IL8b90pprC7+RidoAVhKT/t2hARvRotnnrZQiuAeoXFBFM91uUAw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795371896;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=I8O79LLuixI7Ncv80qos0WzCUNLLnHjxMOr/9odIaMc=;
	b=hZBZ2ymV07w0k5uFQuZf89/PoM7QhNBir1cigVeFey1UA2R/wdUy+itHq3klZITt2s3A
	 mXHPVz4tV1yfXv+Sou6RK9UioOtN95/KkWaYBxwTVPkldIOKoBL/NBm1WA6VDH927C5mh
	 ztgBT1ehz2c3ljKoAzdfCQr/6A0XPpb6nWia9jSSjKidJqg+dDj1IulMZqCPFcVfjrcGc
	 wMs27yrPnNnKuglMQGdpK1SajNXLF82b5C6CO589rh/TC6i4S2lPHT7Nw9E36WLRrzI2X
	 SPCwHmivbc789PfINBI57UqiRu0jK5LLZoO1ev0gXhwzjYCvEN/wQMIXv1Ymc3czlXg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsPCX8dr;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 61786606A33B;
	Sun, 22 Nov 2026 18:24:56 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsPCX8dr
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795371895;
	b=KK2kxrIkkNFRzou7OUotRXTX9uaG2yh84lHhcAryCGBbqLBFj1MrF05K023zjbQw5ljW
	 AcPkEblgm9mhfu92AsQVlKzBLSXV/El0MbqNr5jhI3Bd+Ig6x9wMplehG+3ULRlKAT7Lg
	 2WJd8lT7rEIB5Wlaa6yl0LKvU5+wUuM1baS6P0xhrhTrcsBi21lJ64I5x2viBsyRxKl4g
	 h8ttIUJg2Px3iT4aD6ZbTAPxWyQa44AbvUjUsNVBJWGqC0AxEstqG3jDIiy+WMX25YJIW
	 +loMphrjIktqnAV6Aq13jJCcAdOfQBCR0cBVL6MZJObSQ2Ku5VNeWt04xE+HycAyzOQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795371895;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=I8O79LLuixI7Ncv80qos0WzCUNLLnHjxMOr/9odIaMc=;
	b=DWnL+MLS/NFdl4huDxJX3Uc6utVCWj+tBB+Dnfj/D2d5XcMcmSVtrgAklbQL93fq2A9M
	 wbHCBPI3gfZzoqP8v8Ws676aFsRiUPgIo054A5MCPguwSRimOzZDYyuWoh4mfONwwRPxr
	 srNHqt9LcjgMBEkeFGjhv2A5yjiau6/J0+onMUH4VRTh9f8uKMHMfm13h3m3dbVQAPn/N
	 NAg5vu6Qk3YrpPbNB+C4TVeQQtFl8fRz80I6o/9k7KA4dZWPJHM4iN1NZu8fSNMun21wc
	 wGvf7L4pq6zGSNPKevtPTcJ0IybBJL43p5FUSRMDA5mTbgeAlRf79COtDE3HjCLsJkw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=BsPCX8dr;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25BE6606A32A;
	Sun, 22 Nov 2026 18:24:55 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 25BE6606A32A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=I8O79LLuixI7Ncv80qos0WzCUNLLnHjxMOr/9odIaMc=; b=BsPCX8drszWkyXNyHqAHkJDoyN
	6Z5KhKiCoIFTdy5cIoJRNHjbVJSqC9oMjYIAlfVpdYwfhjWGcmhpamxw35+z16Bq+xaF5I65ALA1N
	kq8G/V3/CzkaBkYCaW0PsYmWhIuTSOmHcVHPHyvbMjlb27hsmcQU+uqElL4N0GcRwNPk=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xVCEs-000bMR-9t; Sun, 22 Nov 2026 19:24:34 +0100
X-Cc: Heiko Stuebner <heiko@sntech.de>, Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Richard Cochran <richardcochran@gmail.com>,
	devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <5cf52e28-110a-4fc2-acfb-eb264e8c31e2@kwiboo.se>