From patchwork Thu Jan 25 14:48:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13530973 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26350C47258 for ; Thu, 25 Jan 2024 14:49:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ISFd8MRX2DayJcjKzhZjxbTIMq39qm9hZT63XvDafZE=; b=AgyBhK4MX5M8zM DOECNeEKVrkEuzuYo49DlJqnCO3lFivBA+43SS5j3RX9dZJURuRoiZH0xxWyFBVOm/UhGcZ+PSjr0 +HoWw0NsEl3Vjc6S/yL22YmmPqfXG8UuAfGh/0dzqbS0h/JQx205oduoiLscV60NOYj9Bb+0uyEYy lGIMC6etUsDSjdN+4laHyMDmje57tnoqBgKFYwxRO5QZOybYVcnXFZ/yDn0fAHGvOHNN9IhM92PLX zDFivU4uXsdkrpygWEAdzFYUA6mCpQpJ/PLfdmgxZUX29FRoZrxQkSYvG9jDBckNaEFlzvvlvyXA4 uBIe8QSiJIeavUbi51Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT12U-00000000REY-0nQa; Thu, 25 Jan 2024 14:49:10 +0000 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT12Q-00000000RAa-1CJs for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 14:49:08 +0000 Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:bc9e:fcb8:8aa3:5dc0]) by xavier.telenet-ops.be with bizsmtp id f2p02B00D58agq2012p01K; Thu, 25 Jan 2024 15:49:01 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rT11W-00GUsM-N3; Thu, 25 Jan 2024 15:49:00 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rT12K-00FluJ-Ma; Thu, 25 Jan 2024 15:49:00 +0100 From: Geert Uytterhoeven To: Magnus Damm , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Geert Uytterhoeven , Wolfram Sang Subject: [PATCH v2 7/9] arm64: dts: renesas: white-hawk: Factor out common parts Date: Thu, 25 Jan 2024 15:48:57 +0100 Message-Id: <8c05b4d283b5d765fbc6f64cee9a247cded29409.1706192990.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_064906_529772_EA30A740 X-CRM114-Status: GOOD ( 11.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Factor out the parts on the White Hawk BreakOut board that are also present on the White Hawk Single board, so they can be reused when introducing support for the latter. Signed-off-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang --- v2: - Add Reviewed-by. --- .../boot/dts/renesas/r8a779g0-white-hawk.dts | 56 +------------------ ...-white-hawk.dts => white-hawk-common.dtsi} | 8 +-- 2 files changed, 3 insertions(+), 61 deletions(-) copy arch/arm64/boot/dts/renesas/{r8a779g0-white-hawk.dts => white-hawk-common.dtsi} (77%) diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts index a9bc258cbf55587f..784d4e8b204ce85a 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts +++ b/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts @@ -7,63 +7,9 @@ /dts-v1/; #include "r8a779g0-white-hawk-cpu.dtsi" -#include "white-hawk-csi-dsi.dtsi" -#include "white-hawk-ethernet.dtsi" +#include "white-hawk-common.dtsi" / { model = "Renesas White Hawk CPU and Breakout boards based on r8a779g0"; compatible = "renesas,white-hawk-breakout", "renesas,white-hawk-cpu", "renesas,r8a779g0"; - - can_transceiver0: can-phy0 { - compatible = "nxp,tjr1443"; - #phy-cells = <0>; - enable-gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>; - max-bitrate = <5000000>; - }; -}; - -&can_clk { - clock-frequency = <40000000>; -}; - -&canfd { - pinctrl-0 = <&canfd0_pins>, <&canfd1_pins>, <&can_clk_pins>; - pinctrl-names = "default"; - - status = "okay"; - - channel0 { - status = "okay"; - phys = <&can_transceiver0>; - }; - - channel1 { - status = "okay"; - }; -}; - -&i2c0 { - eeprom@51 { - compatible = "rohm,br24g01", "atmel,24c01"; - label = "breakout-board"; - reg = <0x51>; - pagesize = <8>; - }; -}; - -&pfc { - can_clk_pins: can-clk { - groups = "can_clk"; - function = "can_clk"; - }; - - canfd0_pins: canfd0 { - groups = "canfd0_data"; - function = "canfd0"; - }; - - canfd1_pins: canfd1 { - groups = "canfd1_data"; - function = "canfd1"; - }; }; diff --git a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts b/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi similarity index 77% copy from arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts copy to arch/arm64/boot/dts/renesas/white-hawk-common.dtsi index a9bc258cbf55587f..c99086edadcaacdb 100644 --- a/arch/arm64/boot/dts/renesas/r8a779g0-white-hawk.dts +++ b/arch/arm64/boot/dts/renesas/white-hawk-common.dtsi @@ -1,19 +1,15 @@ // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) /* - * Device Tree Source for the R-Car V4H White Hawk CPU and BreakOut boards + * Device Tree Source for the common parts shared by the White Hawk BreakOut + * and White Hawk Single boards * * Copyright (C) 2022 Renesas Electronics Corp. */ -/dts-v1/; -#include "r8a779g0-white-hawk-cpu.dtsi" #include "white-hawk-csi-dsi.dtsi" #include "white-hawk-ethernet.dtsi" / { - model = "Renesas White Hawk CPU and Breakout boards based on r8a779g0"; - compatible = "renesas,white-hawk-breakout", "renesas,white-hawk-cpu", "renesas,r8a779g0"; - can_transceiver0: can-phy0 { compatible = "nxp,tjr1443"; #phy-cells = <0>;