From patchwork Mon Jul 1 14:50:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13718224 X-Patchwork-Delegate: geert@linux-m68k.org Received: from fout3-smtp.messagingengine.com (fout3-smtp.messagingengine.com [103.168.172.146]) (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 A083216C864; Mon, 1 Jul 2024 14:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845442; cv=none; b=TU8we98AFlwYzwabtIik/flEg6NgMq8TO6IzKLkZM8dRzidxKXabkggDgGXeR6Pshi71OG1mQ0CQggqdjdtDGo8rX21IiodexoJ4VzaS99OGkxWAaN/VHflpi12dDqe8OQuuM1xiFQracc0QEBWrd75MNtLnqbIOWVhgjLbSl2s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845442; c=relaxed/simple; bh=dR8Ja5vm2Cr3wHogMm5wnlzQ1uEw9RG52Gma9EEOdHA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lhj2W4e7hqxQym6uhccAORajpwGiNIcNsQfTnU1qGu3+hYtkEP11RJNKIVIqfoFPsKhmVSk+qDKSpRbh0JRyl6gmSQnHvDRhnzeo4PY6T9iLe+0EYPBsIXgQ0X5a+TpiRgDNaaluCvuVECTnLQlhDK1WJGn0VsLsXdYNiWwOoj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b=MbYr7JIR; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=OE6cmGWh; arc=none smtp.client-ip=103.168.172.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="MbYr7JIR"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="OE6cmGWh" Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 9B5CF1380194; Mon, 1 Jul 2024 10:50:38 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 01 Jul 2024 10:50:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1719845438; x=1719931838; bh=3GEVtm8FOMBqPO9W0qZGTKOCQi2JN/k6F6NQ58MmTC4=; b= MbYr7JIRfFoLnU8v4u3aJL5jFWQzefz9AVfgMhhjekOBTy6wxY4SP/lj+CJKeZvl sk8+ZFkDl9+5hWo2M5AKGxYbG8LQaLf1+A4NxeFm2+tCnY4UsDwJvxCdHKj55ube WKGQZ/CMJvhe8ClPAzMdFAQI9fIJQoEYOhXIbDKfitrTikYK9JfKd9yDyOWgBfmD 165ASyZz/kygtPkv4U4b+C4sbTW3T+6mhY/e+qsTz5X7ymEYmK9vnhjHl5NGBOZL dMTTvbEiy/klxLK7AiGzpYl7LqMMCfT9J9y9/aD2REFP2hgxjSJDgi9Hsvw43W/E UzFUdMqTNUH3WHQ5K4yV3A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1719845438; x= 1719931838; bh=3GEVtm8FOMBqPO9W0qZGTKOCQi2JN/k6F6NQ58MmTC4=; b=O E6cmGWhDBlSy4FGRchltK9UgUoEXm/n6A6hMbQVobXVhiSSoUqRVFhwtZtfBTx0D RFh5uP4l0GlK12JSOkYxaNLyOzYhbt7MMeY5JmPj8dZS1AvSarvE0FDNTkocy+DG 1aILED24aV3X83uq+rhGmkLhkm7kmxLaSJVC4JeI1k8TAMlgDJsgtw2kb/XuHTBp s+T5g+0sW0S7zu+Q1MCQx1t9Mrw3Jom++Ekog8QEVTigdrzKZ7O3Ig+hBc+dt37w CVsQ8vRViZZPQbkwGczFRORieeI5y0g19JjZSWZcMJoyE3cljk7E5UobXp+jRHge LAZji3W7qyuswz1MYlv+Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudefgdejlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomheppfhikhhl rghsucfunpguvghrlhhunhguuceonhhikhhlrghsrdhsohguvghrlhhunhguodhrvghnvg hsrghssehrrghgnhgrthgvtghhrdhsvgeqnecuggftrfgrthhtvghrnhepheeigfeuveeu tdefhfehgeekvedtleeuueekveefudehhffhjeffgfegffelfeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepnhhikhhlrghsrdhsohguvghr lhhunhgusehrrghgnhgrthgvtghhrdhsvg X-ME-Proxy: Feedback-ID: i80c9496c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jul 2024 10:50:37 -0400 (EDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Geert Uytterhoeven , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v2 1/2] arm64: dts: renesas: r8a779g0: R-Car Ethernet TSN support Date: Mon, 1 Jul 2024 16:50:11 +0200 Message-ID: <20240701145012.2342868-2-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701145012.2342868-1-niklas.soderlund+renesas@ragnatech.se> References: <20240701145012.2342868-1-niklas.soderlund+renesas@ragnatech.se> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add Ethernet TSN support for R-Car V4H. Signed-off-by: Niklas Söderlund Reviewed-by: Geert Uytterhoeven --- * Changes since v1 - Dropped #address-cells and #size-cells as there should me a dedicated mdio node for the PHY. --- arch/arm64/boot/dts/renesas/r8a779g0.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi index c5fc414928c9..bdbc230f26b6 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779g0.dtsi @@ -558,6 +558,20 @@ tmu4: timer@ffc00000 { status = "disabled"; }; + tsn0: ethernet@e6460000 { + compatible = "renesas,r8a779g0-ethertsn", "renesas,rcar-gen4-ethertsn"; + reg = <0 0xe6460000 0 0x7000>, + <0 0xe6449000 0 0x500>; + reg-names = "tsnes", "gptp"; + interrupts = , + ; + interrupt-names = "tx", "rx"; + clocks = <&cpg CPG_MOD 2723>; + power-domains = <&sysc R8A779G0_PD_ALWAYS_ON>; + resets = <&cpg 2723>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a779g0", "renesas,rcar-gen4-i2c"; From patchwork Mon Jul 1 14:50:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Niklas_S=C3=B6derlund?= X-Patchwork-Id: 13718225 X-Patchwork-Delegate: geert@linux-m68k.org Received: from fhigh7-smtp.messagingengine.com (fhigh7-smtp.messagingengine.com [103.168.172.158]) (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 3C44116C862; Mon, 1 Jul 2024 14:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=103.168.172.158 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845443; cv=none; b=cmyBH920FRlRePGoUfUvNVRKd7S/bCV31Pk/xae+TT5LT5CHAfSUqo9bPdTnfha8lfSz++BU7o4HiOfliqnpRcjboqBVXjL0CTYhJhRbWT5qVxxsxtT9lgNKHvqcwxIakGLqMK1drvsu3FXz1QVTbpnmetxkQk5Pf3rVM3pb4c8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719845443; c=relaxed/simple; bh=Kj1nrWJXP7huRyw7w/bdNwnpNC9xU9Kp0u5awA4sw8w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=HrXs2NtPILgToB8WvPqWodzjPQs7/gwTGUtIoQhUpmX3jPPTZRFE4At0nrp4KBKsVzQoTF5iPciXWLcXoS4AK5HwrTvjU/eQ7EndpvPB2NSWjQK/hSD1fJgzIQ017upx3Zi+clSMRmnOkqYMCtRSgQ6G26hctSIF+Y9Z5O0G6PE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se; spf=pass smtp.mailfrom=ragnatech.se; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b=g4A7Gcq9; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=riZiaQp8; arc=none smtp.client-ip=103.168.172.158 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ragnatech.se Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ragnatech.se header.i=@ragnatech.se header.b="g4A7Gcq9"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="riZiaQp8" Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4C85B1140217; Mon, 1 Jul 2024 10:50:41 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Mon, 01 Jul 2024 10:50:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech.se; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1719845441; x=1719931841; bh=DXblF9dw0/RDGfos9kMfhQTYzUfsyxxi8wn1+qC1M+4=; b= g4A7Gcq9/wm10yEsK9h0O/YRzU+qCPkKhxOgG1l05KpsFkf4ZXO61v4LC4FaU2ct zXkact9iEFkYaAnqqM2eT3texUbo19y814q5lL+i1R9FPjyoGwaOkbvSP9I2BM5p x1cnyeqqvW6CJ1hA3atqnR3SJYsfB2C0ksYKt2/OgQ6ooPr5O69SwFWhYaheMeGf LTTW6dwmnq9Y7Jnf9Qwp1GIwLYF999RbEDoIN/fKcg1U/vK4kbsUwCnJfcKqFCvr adzcltbggtE/XTb8z4a6KAEDWxhPzYb25ARYhK1C+NmfkxotMqTZRT4e3dwhPioI 34RHqyfRK0n2QJvTy/fi4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1719845441; x= 1719931841; bh=DXblF9dw0/RDGfos9kMfhQTYzUfsyxxi8wn1+qC1M+4=; b=r iZiaQp80pLoCAdAQRkd9BJpgTvfExoL2d/y2TPeJJs966lWCeANXzthyQg26ZQ80 nwb3JNaN/kwYDAL//1bnTLuhNGi0C9m2riLQVA6/zNxAHlEC+bPtGjpl8YsMIjHh xwnXAf/WiPb9C+h64nRe1Wofyg9S2o8i5mZjh4OsLhv2+pMkC2nz0to4vEvWVNHu /RmIC1QQmQ4NTggc7hJib8HLBjbpm8p7JodDx04Kc696QfMIykj0QrdQLhDuh1bI c+OCfZntT+OrlrghBo7T1p9mMsGvubpFHKWXW3OwPTXoYt4nQZNP+2xwj/Jymv3A XTj9gtUDPmQ5uWqXLAPZw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudefgdektdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvfevufffkffojghfgggtgfesthekredtredtjeenucfhrhhomheppfhikhhl rghsucfunpguvghrlhhunhguuceonhhikhhlrghsrdhsohguvghrlhhunhguodhrvghnvg hsrghssehrrghgnhgrthgvtghhrdhsvgeqnecuggftrfgrthhtvghrnhepheeigfeuveeu tdefhfehgeekvedtleeuueekveefudehhffhjeffgfegffelfeegnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepnhhikhhlrghsrdhsohguvghr lhhunhgusehrrghgnhgrthgvtghhrdhsvg X-ME-Proxy: Feedback-ID: i80c9496c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Jul 2024 10:50:40 -0400 (EDT) From: =?utf-8?q?Niklas_S=C3=B6derlund?= To: Geert Uytterhoeven , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: =?utf-8?q?Niklas_S=C3=B6derlund?= Subject: [PATCH v2 2/2] arm64: dts: renesas: white-hawk-single: Wire-up Ethernet TSN Date: Mon, 1 Jul 2024 16:50:12 +0200 Message-ID: <20240701145012.2342868-3-niklas.soderlund+renesas@ragnatech.se> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701145012.2342868-1-niklas.soderlund+renesas@ragnatech.se> References: <20240701145012.2342868-1-niklas.soderlund+renesas@ragnatech.se> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On the V4H White-Hawk Single board as oppose to the Quad board the Ethernet TSN is wired up to a PHY (Marvel 88Q2110/QFN40). Wire up the connection and enable the TSN0. Signed-off-by: Niklas Söderlund --- .../renesas/r8a779g2-white-hawk-single.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts b/arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts index 2f79e5a61248..b5f182903702 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts +++ b/arch/arm64/boot/dts/renesas/r8a779g2-white-hawk-single.dts @@ -24,3 +24,54 @@ &hscif0_pins { groups = "hscif0_data", "hscif0_ctrl"; function = "hscif0"; }; + +&pfc { + tsn0_pins: tsn0 { + mux { + groups = "tsn0_link", "tsn0_mdio", "tsn0_rgmii", + "tsn0_txcrefclk"; + function = "tsn0"; + }; + + mdio { + groups = "tsn0_mdio"; + drive-strength = <24>; + bias-disable; + }; + + rgmii { + groups = "tsn0_rgmii"; + drive-strength = <24>; + bias-disable; + }; + + link { + groups = "tsn0_link"; + bias-disable; + }; + }; +}; + +&tsn0 { + pinctrl-0 = <&tsn0_pins>; + pinctrl-names = "default"; + phy-mode = "rgmii"; + phy-handle = <&phy3>; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + reset-gpios = <&gpio1 23 GPIO_ACTIVE_LOW>; + reset-post-delay-us = <4000>; + + phy3: ethernet-phy@0 { + compatible = "ethernet-phy-id002b.0980", + "ethernet-phy-ieee802.3-c22"; + reg = <0>; + interrupt-parent = <&gpio4>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + }; + }; +};