From patchwork Tue Feb 7 14:54:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 53956 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2892452wrn; Tue, 7 Feb 2023 06:56:06 -0800 (PST) X-Google-Smtp-Source: AK7set+rSylsnQ3z51a6Nhb1up9hWKPDnsb/luQKFEWyX4BvLzaa4uDF91VyLdRIwuU8lpPP2vwJ X-Received: by 2002:a50:9b55:0:b0:4aa:b3f2:726c with SMTP id a21-20020a509b55000000b004aab3f2726cmr3742281edj.30.1675781766474; Tue, 07 Feb 2023 06:56:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675781766; cv=none; d=google.com; s=arc-20160816; b=PkSOY9RocMPaI6x77lCCzMPthfWZjeqFi2cC/+S49iSLplIjM9KelHfGcI/l2iV/L3 uBS5Iq32nNI0kWfAkLAl/vjSPp2VL6OcvnspO4/owzO5Zg8lfASdnR1XqXnl1TqXNWFJ dIEDfgoNwSmxjZNdnMq6SGBz60v6gceSF3JX92WYW3cVaT/xj9lNFTwRaB0y4xIT2tPi DP5k2lOR+rMyB5rLMbQmuovgqhGDRHMt5MIhWVPCbv2tALNyAhT00za/gHlh/OCiLpu9 JVMT9czFj0ZOKQP/qYDvu7SJQn/eXxMzW6Ns0u35XbhJKfstITO+d/QRb5pkCLZY9Nhk 8bpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hOYznm4VL21EUUk05bJqbcX65FJF0K6wY3GawlNXHF4=; b=GrtT7lW/lj2n//fIc8+h760aSaPs9vD+uufz00lK+un6pze7I8ERZ8meg7jLrlvXqh YVhYl3M5BXoXjkXLswtCsSzU7fMfSQZ6hkmLWNRmfsz+/+O8X7nepiM6Q4TUPN2qjwBT N4W4wxLtVG/KrH68kU6x6juAcvP0JU5bF0udjwhQG/8+hnJOYnEbxXL0XQwUOHCNszIs XMN1R7N1s1HY4Vhf/OVTPDoqQqUh4ZSiPr3dFxuLZOLxIr53EpODOzGJIxyEfd6wWR9E mVPiRJfuz0AsGD9n02f6FGXkuoMYcvM/rGANElgEg5VSvDH4tMQzvQKJvXKm8bHoSQ0I x1yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IjPxO9E2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020aa7d442000000b004aab5e65daesi6152213edr.190.2023.02.07.06.55.43; Tue, 07 Feb 2023 06:56:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IjPxO9E2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232057AbjBGOxL (ORCPT + 99 others); Tue, 7 Feb 2023 09:53:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjBGOxF (ORCPT ); Tue, 7 Feb 2023 09:53:05 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DFCCDBEF; Tue, 7 Feb 2023 06:53:01 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8F7111BF215; Tue, 7 Feb 2023 14:52:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675781579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hOYznm4VL21EUUk05bJqbcX65FJF0K6wY3GawlNXHF4=; b=IjPxO9E22UP1/4uLTTB3HPwn888gzk/MrDrw3HnPudL8Ta5YqIOHSpSa/mRBLWpObP5u+6 KL1paDBWSdZcYDOgW7BuDfibwluUldZP6Ihcnb3S+N1K63t2H2UFxD6Ren80QDn7v4Qyn0 pE1e2yVLrMCNV928gQ2ff8ecFGsJTrndzyzI2KtzH5hGMxSkop8O77uz7sm4UMUP5q7VlJ Ut2JWpUacySICGKVbNP7XJwQkHUdENmOsqNaUTZTsfqREDatcyajGJQjbVauIAtZtWyHtt YIGvxCoCQDQfzWhclufSX6/fHr0g1kc0s3Hr3OvqPWshXB4444vWBrUn4a7ryA== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Geert Uytterhoeven , Magnus Damm , Rob Herring , Krzysztof Kozlowski Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , Thomas Petazzoni , Herve Codina , =?utf-8?q?Miqu=C3=A8l_Raynal?= , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] ARM: dts: r9a06g032: add EB board device-tree Date: Tue, 7 Feb 2023 15:54:44 +0100 Message-Id: <20230207145444.166950-3-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230207145444.166950-1-clement.leger@bootlin.com> References: <20230207145444.166950-1-clement.leger@bootlin.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757184541663824243?= X-GMAIL-MSGID: =?utf-8?q?1757184541663824243?= The EB board (Expansion board) supports both RZ/N1D and RZ-N1S. Since this configuration targets only the RZ/N1D, it is named r9a06g032-rzn1d400-eb. It adds support for the 2 additional switch ports (port C and D) that are available on that board. Signed-off-by: Clément Léger --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts | 92 +++++++++++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index d08a3c450ce7..8938db01e939 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -1123,6 +1123,7 @@ dtb-$(CONFIG_ARCH_RENESAS) += \ r8a7794-alt.dtb \ r8a7794-silk.dtb \ r9a06g032-rzn1d400-db.dtb \ + r9a06g032-rzn1d400-eb.dtb \ sh73a0-kzm9g.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += \ rv1108-elgin-r1.dtb \ diff --git a/arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts b/arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts new file mode 100644 index 000000000000..e986b6d2fd6f --- /dev/null +++ b/arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts @@ -0,0 +1,92 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Device Tree Source for the RZN1D-EB Board + * + * Copyright (C) 2023 Schneider-Electric + * + */ + +#include "r9a06g032-rzn1d400-db.dts" + +/ { + model = "RZN1D-EB Board"; + compatible = "renesas,rzn1d400-eb", "renesas,r9a06g032"; +}; + +&mii_conv2 { + renesas,miic-input = ; + status = "okay"; +}; + +&mii_conv3 { + renesas,miic-input = ; + status = "okay"; +}; + +&pinctrl{ + pins_eth1: pins_eth1 { + pinmux = , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength = <6>; + bias-disable; + }; + + pins_eth2: pins_eth2 { + pinmux = , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength = <6>; + bias-disable; + }; +}; + +&switch { + pinctrl-names = "default"; + pinctrl-0 = <&pins_eth1>, <&pins_eth2>, <&pins_eth3>, <&pins_eth4>, <&pins_mdio1>; + + mdio { + /* CN15 and CN16 switches must be configured in MDIO2 mode */ + switch0phy1: ethernet-phy@1 { + reg = <1>; + marvell,reg-init = <3 16 0 0x1010>; + }; + + switch0phy10: ethernet-phy@10 { + reg = <10>; + marvell,reg-init = <3 16 0 0x1010>; + }; + }; +}; + +&switch_port2 { + label = "lan2"; + phy-mode = "rgmii-id"; + phy-handle = <&switch0phy10>; + status = "okay"; +}; + +&switch_port3 { + label = "lan3"; + phy-mode = "rgmii-id"; + phy-handle = <&switch0phy1>; + status = "okay"; +};