From patchwork Thu Feb 9 13:35:06 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: 54974 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp336040wrn; Thu, 9 Feb 2023 05:35:49 -0800 (PST) X-Google-Smtp-Source: AK7set/lDLOvu26FjBUDWvh4Ihr1w25gnX1yX3ZdGMqV9KqdPdZEJLxkLVENU+jpjjqfrWNyJzBc X-Received: by 2002:a17:90b:4f8d:b0:230:f1c0:3f4d with SMTP id qe13-20020a17090b4f8d00b00230f1c03f4dmr10935401pjb.6.1675949748748; Thu, 09 Feb 2023 05:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675949748; cv=none; d=google.com; s=arc-20160816; b=rwrjuJhZ+RrMV/dF94JDdj1RwtSrkxj+U9qj9J0MRAgzGb4pEcJWijs7GmkFmgKoWh CNoKYKvAnlIRcvF6Th5posjRSC7EdSslCq8elZlIw9yUNt4VvDoyNAI4CH7aTfumTwiX Skdfl1B9w80aPBRvwHoCiC7/HDmairXKsRiQXC1NQdpPiBj46GR/zzWEJ0jgGfBJkO7r AMSAXtWpa/zdHvfnS9ZKsBWUNOLXbD+6LoJOQxVpfx/sfUw3X8MNIuBgeKgvi+0yWDAy G3q+MkJJ56GXiSOdLznJ0gYRxHIiJnf15WuxvRSLbwbbpLHbfUCrj64klDXC93FIWYru msNQ== 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=R2zOQUAjt2I8dbN52IsUL+dPKaSTEc8e2Tf2jdFu8og=; b=NDzdblFlRYZ8mzYbdsQLoG3Y9p0N8lnMs+80Z05N9kMpF4I19YFwibWfi2pHzs0eYa o6oMNyXti9igx2HiC/qpBtDzdi7scszP8XGXIRpvwBaiIBXp3mqX9px/ctRmPc8J7gWV 7NC6Wiz+57aV3nxNSvbyovRoNbfl6BmEu/1eNwhbEWvs+8Ew0CLPDjMYuD24qoe0KWp6 3tkpEH8Lj9Q+caCGjjT1dZ+7+faxRdeNougqU2pBxc7X4VsO928iCXRqeJyfyEMagtn0 nxUYzuYASPK2+e/SQzFRI0CokctTq64r0Rmzopbkw509JsPwmU6HBKsnV5ZTFbB+IGTV a84A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=UusUK6G8; 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 d4-20020a633604000000b004fb17766872si2058026pga.10.2023.02.09.05.35.36; Thu, 09 Feb 2023 05:35:48 -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=UusUK6G8; 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 S230415AbjBINe6 (ORCPT + 99 others); Thu, 9 Feb 2023 08:34:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbjBINes (ORCPT ); Thu, 9 Feb 2023 08:34:48 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CE415FB66; Thu, 9 Feb 2023 05:34:29 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 8907DFF80A; Thu, 9 Feb 2023 13:32:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675949576; 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=R2zOQUAjt2I8dbN52IsUL+dPKaSTEc8e2Tf2jdFu8og=; b=UusUK6G8Z8h1vLarh4nWkHedlhQOw6mafUI/LsraDFvIBga0NjrDmZBg1XbpGCoO8nw7Up jI8ZsNTJmanA/KCdWzuc+Eubo3uM/oQkITcfFZQF6L68RZI54ysIat78mkS5GsVEL2MIjT pNYWoAtI4Zutte0XIZYiMnvBg23al6y8U33NEUksYibVa/JhVHEJo5b5u4AHmyh/mqDbsW u87+f1dwPaylstgPr/FSJt+5q0O9ZeVM37BPQwmwme4m/qLtzcYoYB9it66xxsLNjKnmv1 89sDcBXmVQVWE8coMoQArrb/9bfXeWX1CEoFP/zPl1t0572Rc1SqVAsFYycpCA== 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, Rob Herring Subject: [PATCH v2 1/2] dt-bindings: soc: renesas: renesas.yaml: add renesas,rzn1d400-eb compatible Date: Thu, 9 Feb 2023 14:35:06 +0100 Message-Id: <20230209133507.150571-2-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230209133507.150571-1-clement.leger@bootlin.com> References: <20230209133507.150571-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, RCVD_IN_MSPIKE_H2,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?1757360683218054932?= X-GMAIL-MSGID: =?utf-8?q?1757360683218054932?= Add "renesas,rzn1d400-eb" which target the RZ/N1 EB board when a RZ/N1D-DB daughter board is plugged on it. Signed-off-by: Clément Léger Acked-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/soc/renesas/renesas.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/renesas/renesas.yaml b/Documentation/devicetree/bindings/soc/renesas/renesas.yaml index 2789022b52eb..76f6da46ff5c 100644 --- a/Documentation/devicetree/bindings/soc/renesas/renesas.yaml +++ b/Documentation/devicetree/bindings/soc/renesas/renesas.yaml @@ -431,6 +431,13 @@ properties: - renesas,rzn1d400-db # RZN1D-DB (RZ/N1D Demo Board for the RZ/N1D 400 pins package) - const: renesas,r9a06g032 + - description: RZ/N1{D,S} EB + items: + - enum: + - renesas,rzn1d400-eb # RZN1D-EB (Expansion Board when using a RZN1D-DB) + - const: renesas,rzn1d400-db + - const: renesas,r9a06g032 + - description: RZ/Five and RZ/G2UL (R9A07G043) items: - enum: From patchwork Thu Feb 9 13:35:07 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: 54973 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp335732wrn; Thu, 9 Feb 2023 05:35:11 -0800 (PST) X-Google-Smtp-Source: AK7set/rApWNrLKC84Hyb1BZc9QL/TcMQmn2IrRupA6ld87JfDWpT9uVrPyJuf6GFEKkaoNmYG7l X-Received: by 2002:a17:90a:72c7:b0:229:983:f3f9 with SMTP id l7-20020a17090a72c700b002290983f3f9mr5736896pjk.40.1675949710799; Thu, 09 Feb 2023 05:35:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675949710; cv=none; d=google.com; s=arc-20160816; b=DcsM6r0KylDbZ9DE4Z0fJ7XnXmfe2rmE7X6gv68tXEU9D1t4bcRRjUo+nNj/EycoL0 80Qc4CurU+j48CkVRHzwkmQXe19WBv5bFW4o2mFCEuGI+3h2EqILVkcHG/bKdGOixv4G ix4TfnlRCFA+Y2NZvSQpStZO2Ol7/3TYM+K+klYvW1+cbbmELSa97h6huJHVvK/0MJGH mAEuViWq5nmby4/8W/OttBV9dsYZV37i8xNDpfbir3vBs+lpcrHoidTzBa5lN25XuFvI PeHYWwElld8ZQOYhJpJJ3iOvyZgxG6kZkLn0MFL42NpL0geebTLNtQ+tYq2weEr27YEa UxNw== 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=7ZjOPNQQKb7DxpHUdxqyVK5aYueuKDdegERx8SUXTnE=; b=ob9SLc/JwCWXq4tHhVB1RKiosZ+f3/Vv6tbQGonHYcxXngYq42jfX+UsbvVCvVZ+Ea 0CzlJ1j1zmpFB3GgBYbswU6sCbrX3rzFu/fGZgCpO4eVg7Ey+B/+uzlrlg/oyHhQ1PQm ZYtU6YxOzx9Jnrlhvkf2XNRiqYq0V7xXgCNhnjg1lX9GQaOVM6PNT/BgrX4pQptLAlET KuRA+BlJYCbot7+x0ndUpTT9OeYjfiXRaWtWq+MnltNcvrWHBKO2phL3KM8CSeSpYemi OXVzTpXDXPu6mUGrxYHWYjvRi38R6GMzVHsRIpp+iujTGFgZJoT7jJ3dVH+tNbSVwyfL MFqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=IwC0cz7U; 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 w15-20020a63a74f000000b004d0506f7037si1961498pgo.253.2023.02.09.05.34.58; Thu, 09 Feb 2023 05:35:10 -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=IwC0cz7U; 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 S230256AbjBINej (ORCPT + 99 others); Thu, 9 Feb 2023 08:34:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230218AbjBINee (ORCPT ); Thu, 9 Feb 2023 08:34:34 -0500 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7C353AA7; Thu, 9 Feb 2023 05:34:12 -0800 (PST) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 64CC8FF80B; Thu, 9 Feb 2023 13:32:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1675949577; 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=7ZjOPNQQKb7DxpHUdxqyVK5aYueuKDdegERx8SUXTnE=; b=IwC0cz7U7RR4yBM0F/PGlCB3WrjoddUt9+Ap9ANmhR48Y3kbpag/GwG/JT3qbnqjFFj0zc tu33Dl8zfjTM6DJXKu3XQlyjbEHLnEnLlcrJ4uX7qUc1IpYPnqTS0lxC+URnlzDmciHIfe SL27TeNQvYbXH29pzWvlEwB8Lwy5cjp9oa0SqRWKjfU4u9RiH/61R2ssuf9/vQ01hvW0rp qNzlhCZs87BKB55InIhmXB9ilmyfYcm7wlvbAn4IKQ/Kjadc6A/jwKV9V6rim0IlDzdUi7 rEZ/ObiLwKVDcBNOZ8lvCsjumuHttGvi+MO7rAOCSETa00cuWc5khqOHjyIdWQ== 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 v2 2/2] ARM: dts: r9a06g032: add r9a06g032-rzn1d400-eb board device-tree Date: Thu, 9 Feb 2023 14:35:07 +0100 Message-Id: <20230209133507.150571-3-clement.leger@bootlin.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230209133507.150571-1-clement.leger@bootlin.com> References: <20230209133507.150571-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, RCVD_IN_MSPIKE_H2,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?1757360643575837035?= X-GMAIL-MSGID: =?utf-8?q?1757360643575837035?= 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 | 94 +++++++++++++++++++++ 2 files changed, 95 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..c9de18d49fde --- /dev/null +++ b/arch/arm/boot/dts/r9a06g032-rzn1d400-eb.dts @@ -0,0 +1,94 @@ +// 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,rzn1d400-db", + "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"; +};