From patchwork Wed Nov 23 09:52:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 9442827 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C566600BA for ; Wed, 23 Nov 2016 09:54:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30E53208E3 for ; Wed, 23 Nov 2016 09:54:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 233DB23E64; Wed, 23 Nov 2016 09:54:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A7DCE208E3 for ; Wed, 23 Nov 2016 09:54:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9UF0-0003FQ-2R; Wed, 23 Nov 2016 09:53:22 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9UEv-0002wE-1H for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2016 09:53:18 +0000 Received: by mail-wm0-x244.google.com with SMTP id u144so1373346wmu.0 for ; Wed, 23 Nov 2016 01:52:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=h+7WAqU7IM0NOobyqj9NTqrGNrwWRfa0mkHwqBPOtHA=; b=K25HGY7VGu22MY4AC9OBYn/S28uUABp5eRi7sExwryYsIyd5fbJYJcImG1+quZ2jNc +RWv9JcSolqThBbLls/+3Wm4qpgPpz2on1k6OC9jWfTlp5eTwneF3pKglYt3YP/r3BTC T7aIMaL1oTmW1+pA2rFFXguPCagDZFtT9qsZzOKl8i71G3/lgR+uXGmNsLhz10l/UOp4 Vcqh5FgLVhFfNgQ+2poFJuV6z6tUk2Px8Hi1dqwCdmjRvsRMp0x44V9rk3MUDlAKFm0e liF51XnQgirFR8BaVXadGG2T/wjZm3e+pZQphc3EKpqeUBjEKYSFB1pLURdWWy8ymxZZ wl3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=h+7WAqU7IM0NOobyqj9NTqrGNrwWRfa0mkHwqBPOtHA=; b=MjBKW2aXhiPWRJWKBX83X/8hJowm8ko66ltD8P74L8yFInbNjrooGJSASndNWybWN/ h+GPJTn3UbHOKqj1m06StdZb/i0/bOIINt5qmM9dNmkS/6roZyaN2ds7cZpjx/va8M6F xzyejNF/bvjHfTQ9nNkm2EMueyInP/G9i778xzWRII/pIxXeAPHReVEIMiCG250phOW1 Qvy1lMItt136Fp7kpZ8IdsA0HKGe2oy3S8nRM7R6jzevWWRNiIsf6jYvkfMKhb3thHUE q7ZocMF0A1f3B3kQa7m1bjeQNdWCK/O2IVkh+rFfbLV109oHce6+8gSqxIyBrND8ibmL 9T/g== X-Gm-Message-State: AKaTC035AceRUVT/CDbjWM9pRvHm8fwXGd62oBtnznxZ7hWsa8i3WRZHSTcLM5kYql7iHg== X-Received: by 10.28.156.10 with SMTP id f10mr6619469wme.63.1479894773204; Wed, 23 Nov 2016 01:52:53 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id js10sm35412897wjb.19.2016.11.23.01.52.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 01:52:52 -0800 (PST) From: yegorslists@googlemail.com To: linux-omap@vger.kernel.org Subject: [PATCH] ARM: dts: am335x-baltos: use phy-phandle declarations Date: Wed, 23 Nov 2016 10:52:37 +0100 Message-Id: <1479894757-32736-1-git-send-email-yegorslists@googlemail.com> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161123_015317_395286_C457E70F X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: tony@atomide.com, bcousson@baylibre.com, linux-arm-kernel@lists.infradead.org, Yegor Yefremov MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yegor Yefremov Signed-off-by: Yegor Yefremov --- arch/arm/boot/dts/am335x-baltos-ir2110.dts | 10 ++++++++-- arch/arm/boot/dts/am335x-baltos-ir3220.dts | 2 +- arch/arm/boot/dts/am335x-baltos-ir5221.dts | 2 +- arch/arm/boot/dts/am335x-baltos.dtsi | 5 ++++- 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/am335x-baltos-ir2110.dts b/arch/arm/boot/dts/am335x-baltos-ir2110.dts index a9a9730..501c752 100644 --- a/arch/arm/boot/dts/am335x-baltos-ir2110.dts +++ b/arch/arm/boot/dts/am335x-baltos-ir2110.dts @@ -54,16 +54,22 @@ dr_mode = "host"; }; +&davinci_mdio { + phy0: ethernet-phy@0 { + reg = <1>; + }; +}; + &cpsw_emac0 { - phy_id = <&davinci_mdio>, <1>; phy-mode = "rmii"; dual_emac_res_vlan = <1>; + phy-handle = <&phy0>; }; &cpsw_emac1 { - phy_id = <&davinci_mdio>, <7>; phy-mode = "rgmii-txid"; dual_emac_res_vlan = <2>; + phy-handle = <&phy1>; }; &phy_sel { diff --git a/arch/arm/boot/dts/am335x-baltos-ir3220.dts b/arch/arm/boot/dts/am335x-baltos-ir3220.dts index fe002a1..19f53b8 100644 --- a/arch/arm/boot/dts/am335x-baltos-ir3220.dts +++ b/arch/arm/boot/dts/am335x-baltos-ir3220.dts @@ -109,9 +109,9 @@ }; &cpsw_emac1 { - phy_id = <&davinci_mdio>, <7>; phy-mode = "rgmii-txid"; dual_emac_res_vlan = <2>; + phy-handle = <&phy1>; }; &phy_sel { diff --git a/arch/arm/boot/dts/am335x-baltos-ir5221.dts b/arch/arm/boot/dts/am335x-baltos-ir5221.dts index f599350..2b9d7f4 100644 --- a/arch/arm/boot/dts/am335x-baltos-ir5221.dts +++ b/arch/arm/boot/dts/am335x-baltos-ir5221.dts @@ -127,9 +127,9 @@ }; &cpsw_emac1 { - phy_id = <&davinci_mdio>, <7>; phy-mode = "rgmii-txid"; dual_emac_res_vlan = <2>; + phy-handle = <&phy1>; }; &phy_sel { diff --git a/arch/arm/boot/dts/am335x-baltos.dtsi b/arch/arm/boot/dts/am335x-baltos.dtsi index 09b9541..efb5eae 100644 --- a/arch/arm/boot/dts/am335x-baltos.dtsi +++ b/arch/arm/boot/dts/am335x-baltos.dtsi @@ -364,11 +364,14 @@ }; &davinci_mdio { + status = "okay"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&davinci_mdio_default>; pinctrl-1 = <&davinci_mdio_sleep>; - status = "okay"; + phy1: ethernet-phy@1 { + reg = <7>; + }; }; &mmc1 {