Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2826195pxb; Mon, 18 Oct 2021 02:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAiIZf/qYQcAS8SSzcd9OwU+vdPi1I6PcbjJZGYutsWBF8OQ1XJRjasLOTjJ7PrSh4EE3V X-Received: by 2002:a17:907:e94:: with SMTP id ho20mr29101229ejc.243.1634550231771; Mon, 18 Oct 2021 02:43:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634550231; cv=none; d=google.com; s=arc-20160816; b=r1kq0wVj6pFFRpnmS9gY2/jKOcHxEfrVcPSd86qZKtBpl8099jUKO4SiXSYmzuZMAi A79hn2ZDbKGt/TPiUGoCXM0X4mkj9n9XSw/Gw++XOTXnWW7N7uz3U1g7xZVo+YUzm/Dt nFg5XGapH6yI0TwyyovFkqlFfwbTPPpf6qogtyO2fsJTV4DICqAub5BTs94uVpB5FzwK oTvRz8A2Krz5g/xRv7Pk+dR+D0zVeX68MFs7kJgYJtSs6ZGkMTL+/SEKs7ypeNS3BD9u WIJk677XWCD9euZurcHamAyNL+S9htAurxP6aPYeBAVxJC8aSp9pqooiDH1bCTf+ClM6 g9Sw== 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=BuWMZr4vimyMTgrLXxKUTvZjcX+vifXbUt3bLu3eF+I=; b=CgyjFxdF/aiee2KClhfPECiLx6rNWbLJlWEjEFPxylIFCkxnvqUM1ZbeDeb3laEPxn x0zVAXYEdRu1Sn3cRL58p6eLI0j4zDiWgiTKUPP0I2IpEf1yfGHUMgFFuYFZMfzq7QW8 91lmUvizkvVrXGCMevyl6x+mMKwKibOUM1ZP6LP93h0LpeqrbR8Mzpvr1KjvUzcSVcwZ 0hJOv8KbMiC2bnhkdNJt1p2Zxt/ERHBgmnbYhrH4XpX5+dSG6IlBMscAURovgsFctfAZ Rywrab0h2ZpUgukda3YQ+IuDPL6zvb3q/DDrtG0xT+ch6Mv8BRIdlpQDIWPg89sbht4H GUVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=TLdpKtHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si32061816edw.95.2021.10.18.02.43.28; Mon, 18 Oct 2021 02:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b=TLdpKtHr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231596AbhJRJn0 (ORCPT + 99 others); Mon, 18 Oct 2021 05:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231598AbhJRJmw (ORCPT ); Mon, 18 Oct 2021 05:42:52 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65E5BC06161C for ; Mon, 18 Oct 2021 02:40:40 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id d9so68294628edh.5 for ; Mon, 18 Oct 2021 02:40:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pqrs.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BuWMZr4vimyMTgrLXxKUTvZjcX+vifXbUt3bLu3eF+I=; b=TLdpKtHrFwKW01k8APeQACgV/VlQ2bA/PkVkFfjQjwKSw2nVgOIrcJABpOTmieuEkX qi+oD68lzZTMhtj//Af6xsE04KMLEHJ/DhRwWHIjmnLJSV1qkSpzhD4D8o/p1j031iUp lM/7Gd6ZwtOuQc62sL9xrqW+CraBhH5BU4qAc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BuWMZr4vimyMTgrLXxKUTvZjcX+vifXbUt3bLu3eF+I=; b=DsaU9+9tZw5j3bVZl2D2tcqb/HSCbU9yWIHhcS9bIA1wwzlXkAodX0MM5cgoO+rUUu aA2bK6QPKlSDw3Ej7iTQlcx+HQ15xTg2eRf8U1xxwCxtPFN/EtZeSC7v1NSHx93wMjKF uAc6NUGLWiqWkcYZcY/4qH68u1CR/Yjb+MagSyjsFjcq8AzDOy8O9xOGMZQbLwNYIrPl kEH7oCg5zwVQHtve8EFyE89ECSdOEijhDoZSzV4dV0ASk0miu7b9VT7gagPiczeJ81Bz Rp9jtNV+r+SGI2bBTmQPPs1Nf0EGVHIcSV8JGnU7DRLO9Wo6kgftDif8AZTQ0TzcfRDh BCMA== X-Gm-Message-State: AOAM5334CkxB7tvcoqbqk/3m7uKrg0+zAs8RuoJkYSyV66cY9oI0lhtq /nhXBno91v0N5zNskOSd2OXj8w== X-Received: by 2002:a17:906:cec6:: with SMTP id si6mr28349464ejb.270.1634550038492; Mon, 18 Oct 2021 02:40:38 -0700 (PDT) Received: from capella.. ([80.208.66.147]) by smtp.gmail.com with ESMTPSA id z1sm10134566edc.68.2021.10.18.02.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Oct 2021 02:40:38 -0700 (PDT) From: =?UTF-8?q?Alvin=20=C5=A0ipraga?= To: Linus Walleij , Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Jakub Kicinski , Rob Herring , Heiner Kallweit , Russell King Cc: arinc.unal@arinc9.com, =?UTF-8?q?Alvin=20=C5=A0ipraga?= , Rob Herring , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 net-next 4/7] dt-bindings: net: dsa: realtek-smi: document new compatible rtl8365mb Date: Mon, 18 Oct 2021 11:37:59 +0200 Message-Id: <20211018093804.3115191-5-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211018093804.3115191-1-alvin@pqrs.dk> References: <20211018093804.3115191-1-alvin@pqrs.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alvin Šipraga rtl8365mb is a new realtek-smi subdriver for the RTL8365MB-VC 4+1 port 10/100/1000M Ethernet switch controller. Its compatible string is "realtek,rtl8365mb". Signed-off-by: Alvin Šipraga Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli Acked-by: Rob Herring Reviewed-by: Linus Walleij --- v3 -> v4: no change v2 -> v3: no change v1 -> v2: - add an example to highlight RGMII delay configuration and CPU port reg number RFC -> v1: no change; collect Reviewed-by and Acked-by .../bindings/net/dsa/realtek-smi.txt | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dsa/realtek-smi.txt b/Documentation/devicetree/bindings/net/dsa/realtek-smi.txt index b6ae8541bd55..7959ec237983 100644 --- a/Documentation/devicetree/bindings/net/dsa/realtek-smi.txt +++ b/Documentation/devicetree/bindings/net/dsa/realtek-smi.txt @@ -9,6 +9,7 @@ SMI-based Realtek devices. Required properties: - compatible: must be exactly one of: + "realtek,rtl8365mb" (4+1 ports) "realtek,rtl8366" "realtek,rtl8366rb" (4+1 ports) "realtek,rtl8366s" (4+1 ports) @@ -62,6 +63,8 @@ and subnodes of DSA switches. Examples: +An example for the RTL8366RB: + switch { compatible = "realtek,rtl8366rb"; /* 22 = MDIO (has input reads), 21 = MDC (clock, output only) */ @@ -151,3 +154,87 @@ switch { }; }; }; + +An example for the RTL8365MB-VC: + +switch { + compatible = "realtek,rtl8365mb"; + mdc-gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; + mdio-gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; + + switch_intc: interrupt-controller { + interrupt-parent = <&gpio5>; + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <1>; + }; + + ports { + #address-cells = <1>; + #size-cells = <0>; + reg = <0>; + port@0 { + reg = <0>; + label = "swp0"; + phy-handle = <ðphy0>; + }; + port@1 { + reg = <1>; + label = "swp1"; + phy-handle = <ðphy1>; + }; + port@2 { + reg = <2>; + label = "swp2"; + phy-handle = <ðphy2>; + }; + port@3 { + reg = <3>; + label = "swp3"; + phy-handle = <ðphy3>; + }; + port@6 { + reg = <6>; + label = "cpu"; + ethernet = <&fec1>; + phy-mode = "rgmii"; + tx-internal-delay-ps = <2000>; + rx-internal-delay-ps = <2000>; + + fixed-link { + speed = <1000>; + full-duplex; + pause; + }; + }; + }; + + mdio { + compatible = "realtek,smi-mdio"; + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: phy@0 { + reg = <0>; + interrupt-parent = <&switch_intc>; + interrupts = <0>; + }; + ethphy1: phy@1 { + reg = <1>; + interrupt-parent = <&switch_intc>; + interrupts = <1>; + }; + ethphy2: phy@2 { + reg = <2>; + interrupt-parent = <&switch_intc>; + interrupts = <2>; + }; + ethphy3: phy@3 { + reg = <3>; + interrupt-parent = <&switch_intc>; + interrupts = <3>; + }; + }; +}; -- 2.32.0