Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4995807iob; Mon, 9 May 2022 06:33:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTPP1vRyAKEefrUlUyD9LGEqKTbcKAbMvPgSf1jyZAg4+U4KwH0RpN1bIo7DDGd6AGxxrS X-Received: by 2002:a63:5564:0:b0:3ab:9d95:7a21 with SMTP id f36-20020a635564000000b003ab9d957a21mr13403876pgm.542.1652103212726; Mon, 09 May 2022 06:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652103212; cv=none; d=google.com; s=arc-20160816; b=tEkz64Xu77K0GwqNQpBzyP2FlOoONyZpoRRmqTvqdZsiVn+CYrFEp+S6i+Va9SOvIH SVMmIIDx85hqywVmbflZOhnt/iCfsFxDNNYGC6D9cSWChTSK2Mb9n2eK19HrwYuN/uVJ N4WeElWRhicm47dW4IJjCp0HQCdpNNHlTSKQf6eHAo0Ye9LjdjcOLciHIUNdEZVMO81R gYPpQ7btam6UtaxhKNg10Kz8Mtj+EsVlKS4O6TAKG+uo8/owweBPjuYHceOHz5E/LER8 zRkb9yO9z8iTHCLy4cx5Tn7Xyq8iV2h0zaCMKIiygBzP1/beQHBMbBIXUVGmzEYTymwj p8Lg== 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=YXDWiiMV5SWH9AwZkKpCUcGCzC5qNcypJOKjhOA0VXs=; b=JfW+QgtgXZ/Kl9PZtk4gdU+Wv8byt1Yv+cU7X/l2HHp3tJd+ngl2hOEjJAJd3j0Opt h16Oz3nHW/vEVrW01v1EJxKLH9vWXcqhYM/kTwrGIt/m/h6z4CBtl+wglXwL0Y3ZN8HM a4tOgAa9Aq6jMlyhlB71GftoKgNo+u0JUk7g2iF/PP9x/zD/dqTwXddf+OsoaAtgZIth pwZQQAcbjn6YwW1kWlCjtltTxOMevIH0P3DXAuj6gTdJz2M4hAdApJrnW3XIdL7pwosB wtkH15/MpmgfQbRuIBe4rDRI6ax/jQBl43Yi1zybDqtsYKD6MSI0+qij5ijh7U31M/8w l7pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WWtAAEXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id d22-20020a63d716000000b003aa810be6aasi13186458pgg.85.2022.05.09.06.33.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 May 2022 06:33:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=WWtAAEXX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D5C5F1C3467; Mon, 9 May 2022 06:22:04 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235636AbiEINZO (ORCPT + 99 others); Mon, 9 May 2022 09:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235600AbiEINY6 (ORCPT ); Mon, 9 May 2022 09:24:58 -0400 Received: from relay10.mail.gandi.net (relay10.mail.gandi.net [IPv6:2001:4b98:dc4:8::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 053782B1669; Mon, 9 May 2022 06:20:35 -0700 (PDT) Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 785E124000A; Mon, 9 May 2022 13:20:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652102434; 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=YXDWiiMV5SWH9AwZkKpCUcGCzC5qNcypJOKjhOA0VXs=; b=WWtAAEXXWmt7eIDJP96xgLJD3brL6nSPxW3btQpgETxf/XLteboQv0LR/hJhzpj5TT3gZl BZ1eD+pcELaGRRHfSc+Ams6Ooy6l1RMMbDMKd2bFxFFO7DY6tOibal7H29DdNZPFBKASi+ 2nhm4k65fEHX/1OBCkoXQdo+1MhRWnyGt4DQNFx2vBg2yJiKmE8yUuSgx6qaV+Adpb82FI TCAxiZZX+zQ/ZH4DoCZM/oruWySOOdMNlNIDXaKG0ZNo/sZhWYEt2PoM9ZJdMo6yVtm9gQ 3Kql7PQU+cA1a/KoO+7BUVnSVKabVpSHk+Uj4P254SFU9826HG+r0D+yLYmMRA== 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 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 v4 05/12] dt-bindings: net: dsa: add bindings for Renesas RZ/N1 Advanced 5 port switch Date: Mon, 9 May 2022 15:18:53 +0200 Message-Id: <20220509131900.7840-6-clement.leger@bootlin.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220509131900.7840-1-clement.leger@bootlin.com> References: <20220509131900.7840-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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 bindings for Renesas RZ/N1 Advanced 5 port switch. This switch is present on Renesas RZ/N1 SoC and was probably provided by MoreThanIP. This company does not exists anymore and has been bought by Synopsys. Since this IP can't be find anymore in the Synospsy portfolio, lets use Renesas as the vendor compatible for this IP. Signed-off-by: Clément Léger --- .../bindings/net/dsa/renesas,rzn1-a5psw.yaml | 132 ++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml diff --git a/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml new file mode 100644 index 000000000000..f0f6748e1f01 --- /dev/null +++ b/Documentation/devicetree/bindings/net/dsa/renesas,rzn1-a5psw.yaml @@ -0,0 +1,132 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/dsa/renesas,rzn1-a5psw.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/N1 Advanced 5 ports ethernet switch + +maintainers: + - Clément Léger + +description: | + The advanced 5 ports switch is present on the Renesas RZ/N1 SoC family and + handles 4 ports + 1 CPU management port. + +allOf: + - $ref: dsa.yaml# + +properties: + compatible: + items: + - enum: + - renesas,r9a06g032-a5psw + - const: renesas,rzn1-a5psw + + reg: + maxItems: 1 + + mdio: + $ref: /schemas/net/mdio.yaml# + unevaluatedProperties: false + + clocks: + items: + - description: AHB clock used for the switch register interface + - description: Switch system clock + + clock-names: + items: + - const: hclk + - const: clk + +patternProperties: + "^ethernet-ports$": + type: object + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + "^(ethernet-)?port@[0-6]$": + type: object + description: Ethernet switch ports + + properties: + pcs-handle: + description: + phandle pointing to a PCS sub-node compatible with + renesas,rzn1-miic.yaml# + $ref: /schemas/types.yaml#/definitions/phandle + +unevaluatedProperties: false + +required: + - compatible + - reg + - clocks + - clock-names + +examples: + - | + #include + #include + + 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"; + pinctrl-names = "default"; + pinctrl-0 = <&pins_mdio1>, <&pins_eth3>, <&pins_eth4>; + + dsa,member = <0 0>; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + label = "lan0"; + phy-handle = <&switch0phy3>; + pcs-handle = <&mii_conv4>; + }; + + port@1 { + reg = <1>; + label = "lan1"; + phy-handle = <&switch0phy1>; + pcs-handle = <&mii_conv3>; + }; + + port@4 { + reg = <4>; + ethernet = <&gmac1>; + label = "cpu"; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; + }; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + reset-gpios = <&gpio0a 2 GPIO_ACTIVE_HIGH>; + reset-delay-us = <15>; + clock-frequency = <2500000>; + + switch0phy1: ethernet-phy@1{ + reg = <1>; + }; + + switch0phy3: ethernet-phy@3{ + reg = <3>; + }; + }; + }; -- 2.36.0