Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3530758pxb; Wed, 13 Oct 2021 07:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9sIi9fGwP4HMgW3ojaxUP8CpEgUMW2hyl0z872zs8IZf+NDdu5+wIODjHZKtM5xtnLc6G X-Received: by 2002:a62:7506:0:b0:44c:5cd7:cbb5 with SMTP id q6-20020a627506000000b0044c5cd7cbb5mr38365944pfc.52.1634136747767; Wed, 13 Oct 2021 07:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634136747; cv=none; d=google.com; s=arc-20160816; b=mtxr4soQhoVtD8meTBryggtsfmlNjHKxWbFY4k8uviVdL4d1LrM2NVRH2Q4fPH+dlj XJgUF7m2iAbaqByuaH81GoX6B1QYsd0NyFKnblLsdCtuhI8aLe+Ze7Kpk+BWwf0lGvvj /GWXYl+JB0X3I5nP5jYg8t3M2i7GHL9C42H1L3sAe5CkMgVZ34NwN8kxtrUn+lWZ5IAI FoaLA5QSUQ42B9EDDD0kVVAGwvp85DbHF7KKCCox6WKJ8aFVPTltFJi++VHvw2brL7Ht uYUrr+vZqm14hTJ8oNIz39XW58OSUhoVP8jMPdUoy/f0L/n5AmVT5JTd53G0hHx++MJo Y25g== 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=g+boHR+P6CRSFhxTy6DU7bag2b9F4dvm5W+HzUTNU/E=; b=m2Z7LoUfxn9owr/UwhrNVncqDed7lDiRdi1HUsDUJmMCjKL2I0THz4wKbjqPmDrrJw 4P/5ISDFZ81T5xe7WRP+/QrhD0lBTO/BA5a9xeQnwQEtshzznJJiStjzBMQoGUjxFpAj ZEaeG2qFT43UEZ2R5w4baROD9FoOn/RUvRxL5EO5/G5nu3EgQl513oTRPfUB9jUyO2QI rbXIIVByJFGLKX/YoyqWcFptQ6RLpEm9rAy2a5n1PhN4ccBRjrCWmbTRXh/qf4s3gDKp rOj6+MKEsOyHp23j9zMFvg7U6ih24ZevNTTjidk2CbU8joo0Flzji+JfQhcZ7TchNyZz U6mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@pqrs.dk header.s=google header.b="XTNk/3R7"; 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 oo10si9903321pjb.169.2021.10.13.07.52.13; Wed, 13 Oct 2021 07:52:27 -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="XTNk/3R7"; 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 S237789AbhJMOxJ (ORCPT + 99 others); Wed, 13 Oct 2021 10:53:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237585AbhJMOxC (ORCPT ); Wed, 13 Oct 2021 10:53:02 -0400 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48DE0C061766 for ; Wed, 13 Oct 2021 07:50:58 -0700 (PDT) Received: by mail-ed1-x52a.google.com with SMTP id g10so11430311edj.1 for ; Wed, 13 Oct 2021 07:50:58 -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=g+boHR+P6CRSFhxTy6DU7bag2b9F4dvm5W+HzUTNU/E=; b=XTNk/3R7ITqhSWrlEwmcQA26afBP/q7Uma09+xLhlS7NSwD5TnQMoZu8q3oCDef80u bc8wq/vHMxd56xhgAg6YLmayq6elpnmE9LqNNMA7W2E4zOdXMydopOExcbTAla5JIris 0zeB0HLLPp+z16YIKB8ubk8yGRr09xy1lBRW0= 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=g+boHR+P6CRSFhxTy6DU7bag2b9F4dvm5W+HzUTNU/E=; b=X1bMTUWUlTKeAFOSgzqlIfQL6kySst7hzDPUuvbUCYk2QcacnKC+yvp0xbdYzaG1NG aCoH+6TPjlRLC/XGNXbMaDTf0RoDolw36S7xiAJE+5ooxbaw7Au15M59e8pVho8hzHvp Et2aSZZpVvIpeJX4gUC4BKCIkFBTKtTfFcWZVer2q/QoG3eeuf4YNC5qBMV/YypyqpFn 0G93VPcAFY5xynpxiRFFjn7Q8Q9nYmHi/esmk2dxV4UXUHzqY/B5xY3WV5teeP/7Guu6 S3OfkWcU0Zu+6Hri27HHZR/+h4j8hanLtM6wuPv3ZWd2u1F3ayrOAZi1ztyVCA9gmnyU f91g== X-Gm-Message-State: AOAM533rqwnfOESTNFqYJ1NALv3CJVHFloFR2Nxissbk30MxWol2c3TP 8tBifV12nFhn8vFKpc1AVnPjVQ== X-Received: by 2002:a05:6402:34d5:: with SMTP id w21mr10689905edc.358.1634136656918; Wed, 13 Oct 2021 07:50:56 -0700 (PDT) Received: from capella.. (27-reverse.bang-olufsen.dk. [193.89.194.27]) by smtp.gmail.com with ESMTPSA id nd22sm7535098ejc.98.2021.10.13.07.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Oct 2021 07:50:56 -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: =?UTF-8?q?Alvin=20=C5=A0ipraga?= , Rob Herring , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 net-next 3/6] dt-bindings: net: dsa: realtek-smi: document new compatible rtl8365mb Date: Wed, 13 Oct 2021 16:50:35 +0200 Message-Id: <20211013145040.886956-4-alvin@pqrs.dk> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211013145040.886956-1-alvin@pqrs.dk> References: <20211013145040.886956-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 --- 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