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: 9442859 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 B19B46075F for ; Wed, 23 Nov 2016 10:13:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 893E0205AB for ; Wed, 23 Nov 2016 10:13:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DBED23D5E; Wed, 23 Nov 2016 10:13:35 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 04CBC205AB for ; Wed, 23 Nov 2016 10:13:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934244AbcKWKM5 (ORCPT ); Wed, 23 Nov 2016 05:12:57 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:36227 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934522AbcKWKLk (ORCPT ); Wed, 23 Nov 2016 05:11:40 -0500 Received: by mail-wm0-f68.google.com with SMTP id m203so1442435wma.3 for ; Wed, 23 Nov 2016 02:10: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=HCs9t4+GsPaOlk1pca14RrR5p9vZ8HnDMMKYQw3lKRP00O8trRq8uadtm8AMNZSR0g PwgHf2LloG357oFMrDceb+LpmdApdoGJWoVYbtqpm+J2WUvo2Wy6bzGZkphMhvVJ6pAF 6smcmZ+s4xIE3ORwwgoJc1nVxldG/Lv3kLk0hRGMIE1k02h/6giM56zlOxmWeQV5+uuG jRolln10JDUTTp8Vd0JOWm+2fwM4GiTSpzFktIVP0tqKfonvYyT1v0aJW+9pgD5SXZrP AiRvToTiLG0hxaTmVib+FlvzuyobFCnH99+R/Q76DlAUhkJqm+MRYMk+Ff9lOyGutxHn 3t2A== X-Gm-Message-State: AKaTC03Rh4XVBfkQ27/fl6OiUNg23UD7Y19NU6IvY2PxTuXe0WPllRYfieobN3C/VY+EFQ== 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 Cc: linux-arm-kernel@lists.infradead.org, bcousson@baylibre.com, tony@atomide.com, Yegor Yefremov 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 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.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 {