Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1638211pxp; Thu, 17 Mar 2022 13:18:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPA306GTDj8GP4FjmEhRlseuJ8IcvX+VSGFae0RhiFu2mO4NDv1rQ4OGrN4ZlkR8AZLO96 X-Received: by 2002:a17:902:b590:b0:153:a243:3331 with SMTP id a16-20020a170902b59000b00153a2433331mr6659224pls.129.1647548313208; Thu, 17 Mar 2022 13:18:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647548313; cv=none; d=google.com; s=arc-20160816; b=fh6s+SzNQNm3piiWIhZmYJj9bwSliB1rvr9r1cgU1uWvoEXb/d1G65COFRoVbAohlM O+y2Mb/0Gi94K0h8Rd3wbbuyFukNT3YIdsXVzPYOSUNWlVRJ1rJige5DTxp5WH565N0l hEa5GCq/bstqn9rdYx5xIt1+rSTi4c8n3V9S7Tb8mwoU/iJmIxenOeNrcDOz9iI8waR5 IwRH6aNv4/+GFbHDbvItZYbudNow4lQNW82kmNf+A2/UAuiUPZZgzN49c3MWc06Mit/V WKpJCqe/7whV/s8t44s0crMiWr0qXIWxcQhkZcGR0CTdrnMMdX1TVDocU0hTSZxG54Za eplQ== 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 :message-id:date:subject:cc:to:from; bh=H2Ac0expZdUnP+Lcue5wtNQKdxRkLMzEVLzeKgKYRvw=; b=m2mQ57R8LtWrIi+5MmWf8ZIrnhHepvvkNx+XA1LHx5wgadCvZy6Yn6ENfyoIgN2Wov 9hKF80/ShOSqv8c9RFYSWGCdDcuvtIbT5uItftGnjAnYs4BET/ThN0BxS5QzWrg7rD5y 7JP0BGlitGO0xGXLVvZmP3iUzxfBml9RWy7cjJS61fyDe9BjvxPuCECXhOYkuLu4Gry/ YA+3Vzy5Jx4t76Y92W4NnWr/GHw/LgsLvYMOo/XyH1meUWlbwi7MXhzdi7aOc4S656yt StNEbpDP217dSRO1j4MhiWc1xhLbb4HTU7fi7wioNZcuDx54KISlrB0pnDUH8gWYgdC0 Fi5A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id v6-20020a1709028d8600b00153b2d165e5si54652plo.493.2022.03.17.13.18.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Mar 2022 13:18:33 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 85014192B9; Thu, 17 Mar 2022 13:00:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237767AbiCQTCh (ORCPT + 99 others); Thu, 17 Mar 2022 15:02:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237068AbiCQTCh (ORCPT ); Thu, 17 Mar 2022 15:02:37 -0400 Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 489271DE6F4; Thu, 17 Mar 2022 12:01:20 -0700 (PDT) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id E29FD2001CD; Thu, 17 Mar 2022 20:01:18 +0100 (CET) Received: from smtp.na-rdc02.nxp.com (usphx01srsp001v.us-phx01.nxp.com [134.27.49.11]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id A47D6200022; Thu, 17 Mar 2022 20:01:18 +0100 (CET) Received: from right.am.freescale.net (right.am.freescale.net [10.81.116.145]) by usphx01srsp001v.us-phx01.nxp.com (Postfix) with ESMTP id 650034030F; Thu, 17 Mar 2022 12:01:17 -0700 (MST) From: Li Yang To: Shawn Guo , Li Yang , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/6] arm64: dts: ls2080a-qds: add mdio mux nodes from on-board FPGA Date: Thu, 17 Mar 2022 14:01:04 -0500 Message-Id: <20220317190109.3742-1-leoyang.li@nxp.com> X-Mailer: git-send-email 2.25.1.377.g2d2118b MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, 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 mmio mdio mux nodes from the on-board FPGA. Signed-off-by: Li Yang --- .../boot/dts/freescale/fsl-ls2080a-qds.dts | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts b/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts index f6c3ee78ace0..c3caca1c0ab6 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls2080a-qds.dts @@ -23,3 +23,72 @@ chosen { stdout-path = "serial0:115200n8"; }; }; + +/* Update DPMAC connections to external PHYs, under SerDes 0x2a_0x49. */ +&dpmac9 { + phy-handle = <&mdio0_phy12>; + phy-connection-type = "sgmii"; +}; + +&dpmac10 { + phy-handle = <&mdio0_phy13>; + phy-connection-type = "sgmii"; +}; + +&dpmac11 { + phy-handle = <&mdio0_phy14>; + phy-connection-type = "sgmii"; +}; + +&dpmac12 { + phy-handle = <&mdio0_phy15>; + phy-connection-type = "sgmii"; +}; + +&ifc { + boardctrl: board-control@3,0 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "fsl,tetra-fpga", "fsl,fpga-qixis", "simple-mfd"; + reg = <3 0 0x300>; + ranges = <0 3 0 0x300>; + + mdio_mux_emi1 { + compatible = "mdio-mux-mmioreg", "mdio-mux"; + mdio-parent-bus = <&emdio1>; + reg = <0x54 1>; /* BRDCFG4 */ + mux-mask = <0xe0>; /* EMI1_MDIO */ + + #address-cells=<1>; + #size-cells = <0>; + + /* Child MDIO buses, one for each riser card: + * reg = 0x0, 0x20, 0x40, 0x60, 0x80, 0xa0. + * VSC8234 PHYs on the riser cards. + */ + + mdio_mux3: mdio@60 { + reg = <0x60>; + #address-cells = <1>; + #size-cells = <0>; + + mdio0_phy12: mdio_phy0@1c { + reg = <0x1c>; + }; + + mdio0_phy13: mdio_phy1@1d { + reg = <0x1d>; + }; + + mdio0_phy14: mdio_phy2@1e { + reg = <0x1e>; + }; + + mdio0_phy15: mdio_phy3@1f { + reg = <0x1f>; + }; + }; + }; + }; +}; + -- 2.25.1