Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp686220ybv; Wed, 19 Feb 2020 07:13:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwjPNuAAIOZLeHmHR05U5HWp+mo5P9vWRB1wuH0Nq0xa0mTTCBmuQ6SGznyuUsV74NgBDA2 X-Received: by 2002:aca:45c1:: with SMTP id s184mr4954773oia.158.1582125223357; Wed, 19 Feb 2020 07:13:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582125223; cv=none; d=google.com; s=arc-20160816; b=EyqH/TxdiFsvFYwwii523cjKCc4CYdD4ZHfF82H6Ry102HZjELdkVuYYS7VA3OWTLS J37PXoEKnsg6jwvpo96qcml2uEfM6QyzjNjq3AxNc4bjusKWtZ6bsXy0K8sMWhtLT5st TPVzPEBaQTugB2qr+ra6/bE4pwuc93B2h2DuMwWM5e71WrbZBpWp7iDBtTu54mCG6m8l urMyw2kT23sZliDcHO+FQXp0ss7CQoO0x3he2DshufcB1k7ESfWlOx1TxPpX/BE5Ui2l EMg7W1zYSvUY3WpU9X+qKwaQC77U+3KCOvLoNzw3xtpvBVLyZuaJduO1PZaG/0vMwUfm SqFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=1siZHdXNaBkFw2rS9GSsHRiEk1ELAmyftewPvXED4Ls=; b=NI4cyrhj04y2Z+I2rFmJJ27LoGIrxCgjs6/V2M/kcwK4Pb4DX1d48qSbYnCT6/OqpP nrFhUGFwfcmcUX1my/V8AgWts+zwFD1yl5sijT7cucNh3yWtgEs8YiCO5B+mhIJtOlaK LdZyFZx/L6/+DF+TEMkstidJA7X6o3DdBrn5weCb0LlerZc92Cqb9nSkVI03kDPTsetX eLL5BaHRheJ2MNEXLohwzJ7b7ia7CvoiAqnYqge7AwzZw+709dO+zVQvGJVRZfbmP4s1 z2DfSHWLaQhDeGUU/rhPzbNnMG57LriYM9la/ubXT8lH1PtPrnQIGFxW4KXmrHyvXr9C leMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TzK2azsU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si4468otq.137.2020.02.19.07.13.27; Wed, 19 Feb 2020 07:13:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TzK2azsU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727158AbgBSPNO (ORCPT + 99 others); Wed, 19 Feb 2020 10:13:14 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53439 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727001AbgBSPNN (ORCPT ); Wed, 19 Feb 2020 10:13:13 -0500 Received: by mail-wm1-f65.google.com with SMTP id s10so1043740wmh.3; Wed, 19 Feb 2020 07:13:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1siZHdXNaBkFw2rS9GSsHRiEk1ELAmyftewPvXED4Ls=; b=TzK2azsUyUxFfoF3HlF7nIMC7bJ/FXVouyxM17lSbHna89caQmxbe3YWkhGmpHCaam Vya2jCyzfrsEx/G2NI6mqXcbhABH7xIGBqME7OV6641tAiPItALbLtpSaFUmSvgb6QVz UWoksRXDGnX8sik9RP4VQCZw755YoXTQH2TyrycOtB69+LqLg7XRs5wyfgCQ00j7W/lj /FLzb0yEeyVDp+4PHnd4g68e378qck3xcnRcEPGRSJwtAJpl9ldMw0DGH+CzEARGcn0m tMe9t7tRGPQT9db2SdUlIDo7RxfOPrwGeJ8bwPGnvfNXmj4H47pQLDcFqsUB0uJrhvDb KQMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1siZHdXNaBkFw2rS9GSsHRiEk1ELAmyftewPvXED4Ls=; b=P3qDMBUaQIcRxwgRjYU3KlWH3Plh8Ro4w3pFDshKXF0Z3e5vvvDpVjVWiPQRbHvl3R 2gOeh9Dx9pEpuOWr1zpzf6mUyQRR1WrMOmR59dNC98Z3tPeeUyPIW3l2uJKS4HVi3xuf XVhv4Bv7Dm2Wd+bwQL+ZchTOTjGrngxJ00LeiWb1YXYLfuDWfDtJQsqf2XIK7hxORQbB j4Rgc/ffBZnpU8SNU1tKj42eaibisy3Lh495FEv1x16iqw2XGbclUMkDVbuOAQuY8NP+ w6XITMJqlYw5h+i2eZ69NVIjty0/xc/yhJSsdc52+R3OPpV4Tuc6sOtzCoMRVYNnuiZx RS7A== X-Gm-Message-State: APjAAAWMb+ZiCHX4PMvprTJhCvJjKDBgjwcbTu6ns2fEWmbvMZRMnadf 547Du6fifqFFzlNtomFTivs= X-Received: by 2002:a1c:5f06:: with SMTP id t6mr10819075wmb.32.1582125191399; Wed, 19 Feb 2020 07:13:11 -0800 (PST) Received: from localhost.localdomain ([79.115.60.40]) by smtp.gmail.com with ESMTPSA id b13sm83137wrq.48.2020.02.19.07.13.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 07:13:10 -0800 (PST) From: Vladimir Oltean To: shawnguo@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, davem@davemloft.net, netdev@vger.kernel.org Cc: andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, linux-kernel@vger.kernel.org Subject: [PATCH v2 net-next/devicetree 5/5] arm64: dts: fsl: ls1028a: enable switch PHYs on RDB Date: Wed, 19 Feb 2020 17:12:59 +0200 Message-Id: <20200219151259.14273-6-olteanv@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200219151259.14273-1-olteanv@gmail.com> References: <20200219151259.14273-1-olteanv@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Manoil Link the switch PHY nodes to the central MDIO controller PCIe endpoint node on LS1028A (implemented as PF3) so that PHYs are accessible via MDIO. Enable SGMII AN on the Felix PCS by telling PHYLINK that the VSC8514 quad PHY is capable of in-band-status. The PHYs are used in poll mode due to an issue with the interrupt line on current revisions of the LS1028A-RDB board. Signed-off-by: Claudiu Manoil Signed-off-by: Alex Marginean Signed-off-by: Vladimir Oltean Reviewed-by: Andrew Lunn --- Changes in v2: None. .../boot/dts/freescale/fsl-ls1028a-rdb.dts | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts index afb55653850d..9353c00e46a7 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts @@ -194,6 +194,57 @@ status = "disabled"; }; +&enetc_mdio_pf3 { + /* VSC8514 QSGMII quad PHY */ + qsgmii_phy0: ethernet-phy@10 { + reg = <0x10>; + }; + + qsgmii_phy1: ethernet-phy@11 { + reg = <0x11>; + }; + + qsgmii_phy2: ethernet-phy@12 { + reg = <0x12>; + }; + + qsgmii_phy3: ethernet-phy@13 { + reg = <0x13>; + }; +}; + +&mscc_felix_port0 { + status = "okay"; + label = "swp0"; + managed = "in-band-status"; + phy-handle = <&qsgmii_phy0>; + phy-mode = "qsgmii"; +}; + +&mscc_felix_port1 { + status = "okay"; + label = "swp1"; + managed = "in-band-status"; + phy-handle = <&qsgmii_phy1>; + phy-mode = "qsgmii"; +}; + +&mscc_felix_port2 { + status = "okay"; + label = "swp2"; + managed = "in-band-status"; + phy-handle = <&qsgmii_phy2>; + phy-mode = "qsgmii"; +}; + +&mscc_felix_port3 { + status = "okay"; + label = "swp3"; + managed = "in-band-status"; + phy-handle = <&qsgmii_phy3>; + phy-mode = "qsgmii"; +}; + &sai4 { status = "okay"; }; -- 2.17.1