Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1291613iol; Fri, 10 Jun 2022 04:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaFZGqMuxF0obmQPyUcGGyk9i8EopvQ+r67+V2hUtjjNoVbISl6KTIE5UaBrtEeps5+sji X-Received: by 2002:a05:6402:1914:b0:430:b941:2c44 with SMTP id e20-20020a056402191400b00430b9412c44mr38456667edz.77.1654861043693; Fri, 10 Jun 2022 04:37:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654861043; cv=none; d=google.com; s=arc-20160816; b=T/KwjhzAy3roh4740QQqv835BeMoU3wesXaLIj1drUHOl3taYdate/P1p9oatSRc6f tgfwIlOCtuq77RtpSI4Zm0QYPHTFgZY+YLUstSlrLqdCod8GbEK0LDJ03l7HbLGjvHMv RAEE4nLrBOcMCxEJWCCFWZhCh3iyVX30rUBjDI5Bu9+D+73XiPw4oSZlb+MppBN9G1JU sQlIpmY16SrUaJnVrVvZ58TX7MZAhX8pv67ioXesGPkwH8rulUMowRnyWsi6VcURgxsm lYEdwJn4CfgzuXFAzKa4v31eqypUsmDAIE6jHYUmtTzcRUzzfrwCSAd83nqDPOuEgdWj Ro4w== 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=ixn6VxPpYWukGE/3LzOK+/iTGwm5gXngXVmL8kCC5iA=; b=LuEytx23ETCKayLvKY+iM2Csk8Uo9fIz27OHkiSEOOs5wkZKi7ePdt6uae0M+XbEkY 86PYrRvVcvBXc+JK4J4we4/312MkhoyZV493xVMbDVarPI5glQqiESWzpqHPyg+/x2jf qSzARddyXTnQMFM/zMsQec/oIzvcI8muwtG942w1Lf3HFxKuK/SS0eS0kHVhMQzYarnr SWH27i2qOFccFssR/6cLNp6S6bjoSNfu2EmOIdTLNQt3a742Lz/GVNGlShEk+pDi3lWL cuoHEeLMq0cFa0owjwkHPtUZWUlgtHMuVFdaBeDETCa58ZIx38dZrVZy7smZRrHmQi9p ioGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=lZqkcrC3; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r18-20020aa7d592000000b0042b7dbd7383si5493158edq.549.2022.06.10.04.36.58; Fri, 10 Jun 2022 04:37:23 -0700 (PDT) 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=lZqkcrC3; 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 S1347691AbiFJKdp (ORCPT + 99 others); Fri, 10 Jun 2022 06:33:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346996AbiFJKcg (ORCPT ); Fri, 10 Jun 2022 06:32:36 -0400 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C73D0443FD; Fri, 10 Jun 2022 03:31:03 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id B59CD100005; Fri, 10 Jun 2022 10:30:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1654857062; 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=ixn6VxPpYWukGE/3LzOK+/iTGwm5gXngXVmL8kCC5iA=; b=lZqkcrC3k7geFzp6ip+EgxxPVLhnRO4wUZ8wRnK8mCWlhTc1gaipFRF3zoHFZFBiBUGTF2 R/69nV92DWolEFJuxBwdYJC+whplE7RI9GGUfgesnRqNfpdhPzYNxQa4o2IcI/eA19Q4v+ 8ufF06L/VsD73HYXh/w/T1go/dVnjCKCoCKGtKNzQoKSrrIk39zm5ChBeOcsvUeFWUwCoV HrqKoFwFAWWFzqeqaKo4e+IF1OIa/XdXYKvf5nADtdU0aB1gtcYRTtrMXX5A/hQcMauKlY jdHzw1tIKFr7YPFlM0lrjI7dnvXY9N/AbLlqlfU/SIJC5TJ+nfT6Wmv1zQoF3w== From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , Heiner Kallweit , Russell King , Alexandre Torgue , Giuseppe Cavallaro , Jose Abreu Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Thomas Petazzoni , Herve Codina , =?UTF-8?q?Miqu=C3=A8l=20Raynal?= , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH net-next v7 14/16] ARM: dts: r9a06g032: describe switch Date: Fri, 10 Jun 2022 12:28:31 +0200 Message-Id: <20220610102833.541098-15-clement.leger@bootlin.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220610102833.541098-1-clement.leger@bootlin.com> References: <20220610102833.541098-1-clement.leger@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Add description of the switch that is present on the RZ/N1 SoC. This description includes ethernet-ports description for all the ports that are present on the switch along with their connection to the MII converter ports and to the GMAC for the CPU port. Signed-off-by: Clément Léger --- arch/arm/boot/dts/r9a06g032.dtsi | 51 ++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm/boot/dts/r9a06g032.dtsi b/arch/arm/boot/dts/r9a06g032.dtsi index 42ce02e51e8d..5b97fa85474f 100644 --- a/arch/arm/boot/dts/r9a06g032.dtsi +++ b/arch/arm/boot/dts/r9a06g032.dtsi @@ -361,6 +361,57 @@ mii_conv5: mii-conv@5 { }; }; + switch: switch@44050000 { + compatible = "renesas,r9a06g032-a5psw", "renesas,rzn1-a5psw"; + reg = <0x44050000 0x10000>; + clocks = <&sysctrl R9A06G032_HCLK_SWITCH>, + <&sysctrl R9A06G032_CLK_SWITCH>; + clock-names = "hclk", "clk"; + power-domains = <&sysctrl>; + status = "disabled"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + switch_port0: port@0 { + reg = <0>; + pcs-handle = <&mii_conv5>; + status = "disabled"; + }; + + switch_port1: port@1 { + reg = <1>; + pcs-handle = <&mii_conv4>; + status = "disabled"; + }; + + switch_port2: port@2 { + reg = <2>; + pcs-handle = <&mii_conv3>; + status = "disabled"; + }; + + switch_port3: port@3 { + reg = <3>; + pcs-handle = <&mii_conv2>; + status = "disabled"; + }; + + switch_port4: port@4 { + reg = <4>; + ethernet = <&gmac2>; + label = "cpu"; + phy-mode = "internal"; + status = "disabled"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + }; + gic: interrupt-controller@44101000 { compatible = "arm,gic-400", "arm,cortex-a7-gic"; interrupt-controller; -- 2.36.1