From nobody Tue Dec 24 02:09:35 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1514389830169878.9303670720082; Wed, 27 Dec 2017 07:50:30 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 4027622280C39; Wed, 27 Dec 2017 07:45:29 -0800 (PST) Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 461AE22280C39 for ; Wed, 27 Dec 2017 07:45:26 -0800 (PST) Received: by mail-wr0-x242.google.com with SMTP id f8so26257810wre.4 for ; Wed, 27 Dec 2017 07:50:21 -0800 (PST) Received: from localhost.localdomain ([105.137.110.132]) by smtp.gmail.com with ESMTPSA id i17sm20840876wrf.71.2017.12.27.07.50.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Dec 2017 07:50:19 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c0c::242; helo=mail-wr0-x242.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=8k9YmZa9twWh4ctXDShlfsVZyUXNyp4wyHgUtlWqAp4=; b=YFA5eM0R29wpdpFVbaSoW1Rjc5qTTCChSrKO8mt8jSfSeziHA9IGB/v5O+MdiX/9xR BXyT2KfLv9teDWKKhIKgLmlQt7IQoyPT3r40F7elGjg8xWzeXP9EU5wX346Zt/ZneWoi 2wmzSm/518oArX8ZLvh1trAsB/DrzSVSRfJ44= 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=8k9YmZa9twWh4ctXDShlfsVZyUXNyp4wyHgUtlWqAp4=; b=NesgFQGMdfJat8N2SF64ZTEjSsU0SK/lowcDjP0V1z4bhmN3D70zi0bbe8A3WieHcr XluTcuK4US51z65WUMaofS8a2pQLsCW+A8h7P4okes2phmzthRvJwuGcB8lYqgMp4ONR z8EqhTgs4zN2CuMyQW+UlasayVWt7llnUul6A2Yu8mBxI8Yf2xUJcfpk0//fDbYSkRIo biH0xOkZ3m9xcuiAZ3W+09O8RCb+hvdruWyeKybpyZbgHTTm4b2jm1e9OTBSh+j5HVq9 wNdIjWD30W48hgVlKKxo7Je4rHyc+Wzi5TOuLiJaExXUloa1pR4/4LcTlzflKABik5jd HsYA== X-Gm-Message-State: AKGB3mJwgMKwuxo/x7efUH35KiUc/Wr4mNJEOr3akFm6dS9AKhglkxAb xu7ab3vnbUiicheWmdtBNLPdvYNLZmQ= X-Google-Smtp-Source: ACJfBosnhw/80KER6Twv2VETA8Ltw1Eop/KjEPeqSZLg6Z9ak9Qh2Gy4L8t/qDg0r+EZuQC7hckeQA== X-Received: by 10.223.153.151 with SMTP id y23mr29804534wrb.130.1514389820349; Wed, 27 Dec 2017 07:50:20 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 27 Dec 2017 15:50:01 +0000 Message-Id: <20171227155001.25886-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171227155001.25886-1-ard.biesheuvel@linaro.org> References: <20171227155001.25886-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms 6/6] Silicon/SynQuacer/DeviceTree: update NETSEC DT node to latest binding X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" The upstream version of the Linux NETSEC driver expects the PHY DT node to appear under a MDIO subnode, so fix this in the device tree. Fix the node name as well, this should be 'ethernet' not 'netsec' Also, move the PHY subnode into the per-platform .dts file so we can set the unit address in the node name. This is necessary because recent versions of the DT compiler are more finicky about this. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts | 7 +++++ Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi | 29 +++++++= ++----------- Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.dts | 7 +++++ 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts b/Sili= con/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts index d2cd7ef90e6f..77b7b1b118a6 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts +++ b/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts @@ -44,3 +44,10 @@ "GPIO-K", "GPIO-L", "PEC-PD26", "PEC-PD2= 7", "PEC-PD28", "PEC-PD29", "PEC-PD30", "PEC-PD3= 1"; }; + +&mdio_netsec { + phy_netsec: ethernet-phy@7 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <7>; + }; +}; diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi b/Silico= n/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi index 7c3518facb98..8817ec0f150e 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi +++ b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi @@ -457,25 +457,22 @@ #clock-cells =3D <0>; }; =20 - eth0: netsec@522D0000 { - compatible =3D "socionext,synquacer-netsec"; - reg =3D <0 0x522d0000 0x0 0x10000>, - <0 FixedPcdGet32 (PcdNetsecEepromBase) 0x0 0x10000>; - interrupts =3D ; - clocks =3D <&clk_netsec>; - phy-mode =3D "rgmii"; - max-speed =3D <1000>; - max-frame-size =3D <9000>; - phy-handle =3D <ðphy0>; - dma-coherent; + ethernet@522D0000 { + compatible =3D "socionext,synquacer-netsec"; + reg =3D <0 0x522d0000 0x0 0x10000>, + <0 FixedPcdGet32 (PcdNetsecEepromBase) 0x0 0x10000>; + interrupts =3D ; + clocks =3D <&clk_netsec>; + phy-mode =3D "rgmii"; + max-speed =3D <1000>; + max-frame-size =3D <9000>; + phy-handle =3D <&phy_netsec>; + dma-coherent; =20 + mdio_netsec: mdio { #address-cells =3D <1>; #size-cells =3D <0>; - - ethphy0: ethernet-phy { - compatible =3D "ethernet-phy-ieee802.3-c22"; - reg =3D ; - }; + }; }; =20 smmu: iommu@582c0000 { diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.dts = b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.dts index 132fd370a71b..5873e415c246 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.dts +++ b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacerEvalBoard.dts @@ -34,3 +34,10 @@ &sdhci { status =3D "okay"; }; + +&mdio_netsec { + phy_netsec: ethernet-phy@1 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + reg =3D <1>; + }; +}; --=20 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel