From patchwork Wed Dec 27 15:50:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 122809 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2337661qgn; Wed, 27 Dec 2017 07:50:29 -0800 (PST) X-Google-Smtp-Source: ACJfBovt9GlBKOFj1N6LLnmzF4NJWGxj7ETXpPnebqYSuy6WSKeQEGJHrDVCkt+Tzh3c4iBemdIs X-Received: by 10.98.57.131 with SMTP id u3mr28685602pfj.7.1514389829535; Wed, 27 Dec 2017 07:50:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1514389829; cv=none; d=google.com; s=arc-20160816; b=xG4V5no2NEqFeFOozDCboDEKV44PWxfJFGjLiKlpxKTqS0T8joFBMFMxkBJ0gBN0qD p5jNdlZxTD3M9gTIsrmkeryPBcpm+CdwCj1dRKWeoe7oRvbfRvVPiU8QFw60FRG0jND8 4SSnk6qvNkYhXP5r6CuAGbFTOepWKRzeqE1FFhCteZXV5bI1qVVWM4voxdsdqc3KHXRI Ica5Hs2wzfkIILEmmg3wt6Sg8FWsYKkk7faFy49SKvqjDHvKDD2IsG27cwh6t6I0QvK0 mp4WTVIF/lvLA7wMks1K2+J4EBNpUM2nbydX3jhyLd7W13Tfy0CQui1sPtQAosfQ64Mb 2Q7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=vhMEW0gac41EBkvDoTwsTF0fCfqVr8KVy0c3mpirWj4=; b=0Swk1VJ1MNfTklJZ7qIuqt7qIs5PatUrPwuaELAEH9QyQn5ea8dq2Ylukq1r5waSUV YkeMRCjyOsWdPDmHuhf157io5tcn/dsucaqKrpfd8WucV7v0n4GVMSXppjC/6pmrFvo3 Cm6KY42iZN6bTzJ7JGE956OfTYs1p+5T2hVqfxSsG8/1GQHTbC7aH1dGXtEiBCTauRLi LABAjtWHPwWkievTmSxlA1uN0z+7KiB0z7Q+eB4gifo9y0OvT6h6IIra8Qia5x7bZ3YV sBC7gBP98CJlzStn8qiIU4OL7Nnjku966aQaiCQvKDhean/dQt9fZF9fdDi4q73DeT9p QpOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YFA5eM0R; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id i8si22438500pgv.497.2017.12.27.07.50.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 27 Dec 2017 07:50:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=YFA5eM0R; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.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 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) 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-Received: by 10.223.153.151 with SMTP id y23mr29804534wrb.130.1514389820349; Wed, 27 Dec 2017 07:50:20 -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) 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 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" 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(-) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/DeveloperBox.dts b/Silicon/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-PD27", "PEC-PD28", "PEC-PD29", "PEC-PD30", "PEC-PD31"; }; + +&mdio_netsec { + phy_netsec: ethernet-phy@7 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <7>; + }; +}; diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi b/Silicon/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 = <0>; }; - eth0: netsec@522D0000 { - compatible = "socionext,synquacer-netsec"; - reg = <0 0x522d0000 0x0 0x10000>, - <0 FixedPcdGet32 (PcdNetsecEepromBase) 0x0 0x10000>; - interrupts = ; - clocks = <&clk_netsec>; - phy-mode = "rgmii"; - max-speed = <1000>; - max-frame-size = <9000>; - phy-handle = <ðphy0>; - dma-coherent; + ethernet@522D0000 { + compatible = "socionext,synquacer-netsec"; + reg = <0 0x522d0000 0x0 0x10000>, + <0 FixedPcdGet32 (PcdNetsecEepromBase) 0x0 0x10000>; + interrupts = ; + clocks = <&clk_netsec>; + phy-mode = "rgmii"; + max-speed = <1000>; + max-frame-size = <9000>; + phy-handle = <&phy_netsec>; + dma-coherent; + mdio_netsec: mdio { #address-cells = <1>; #size-cells = <0>; - - ethphy0: ethernet-phy { - compatible = "ethernet-phy-ieee802.3-c22"; - reg = ; - }; + }; }; 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 = "okay"; }; + +&mdio_netsec { + phy_netsec: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <1>; + }; +};