From patchwork Wed Sep 21 08:47:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 12983399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B45CC32771 for ; Wed, 21 Sep 2022 08:49:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229607AbiIUItA (ORCPT ); Wed, 21 Sep 2022 04:49:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231461AbiIUIsn (ORCPT ); Wed, 21 Sep 2022 04:48:43 -0400 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC25B78589; Wed, 21 Sep 2022 01:48:42 -0700 (PDT) X-IronPort-AV: E=Sophos;i="5.93,332,1654527600"; d="scan'208";a="133517203" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 21 Sep 2022 17:48:39 +0900 Received: from localhost.localdomain (unknown [10.166.15.32]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id AEE0741D879A; Wed, 21 Sep 2022 17:48:39 +0900 (JST) From: Yoshihiro Shimoda To: kishon@ti.com, vkoul@kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, geert+renesas@glider.be Cc: andrew@lunn.ch, linux-phy@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH v2 8/8] arm64: dts: renesas: r8a779f0: spider: Enable Ethernet Switch and SERDES Date: Wed, 21 Sep 2022 17:47:45 +0900 Message-Id: <20220921084745.3355107-9-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220921084745.3355107-1-yoshihiro.shimoda.uh@renesas.com> References: <20220921084745.3355107-1-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Enable Ethernet Switch and SERDES for R-Car S4-8 (r8a779f0). Signed-off-by: Yoshihiro Shimoda --- .../dts/renesas/r8a779f0-spider-ethernet.dtsi | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi b/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi index 15e8d1ebf575..8f6f7d5ea31a 100644 --- a/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a779f0-spider-ethernet.dtsi @@ -4,6 +4,9 @@ * * Copyright (C) 2021 Renesas Electronics Corp. */ +ð_serdes { + status = "okay"; +}; &i2c4 { eeprom@52 { @@ -13,3 +16,54 @@ eeprom@52 { pagesize = <8>; }; }; + +&rswitch { + status = "okay"; + + ethernet-ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + phys = <ð_serdes 0>; + phy-handle = <&u101>; + phy-mode = "sgmii"; + mdio { + #address-cells = <1>; + #size-cells = <0>; + u101: ethernet-phy@1 { + reg = <1>; + compatible = "ethernet-phy-ieee802.3-c45"; + }; + }; + }; + port@1 { + reg = <1>; + phys = <ð_serdes 1>; + phy-handle = <&u201>; + phy-mode = "sgmii"; + mdio { + #address-cells = <1>; + #size-cells = <0>; + u201: ethernet-phy@2 { + reg = <2>; + compatible = "ethernet-phy-ieee802.3-c45"; + }; + }; + }; + port@2 { + reg = <2>; + phys = <ð_serdes 2>; + phy-handle = <&u301>; + phy-mode = "sgmii"; + mdio { + #address-cells = <1>; + #size-cells = <0>; + u301: ethernet-phy@3 { + reg = <3>; + compatible = "ethernet-phy-ieee802.3-c45"; + }; + }; + }; + }; +};