From patchwork Wed Nov 23 15:49:26 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yegor Yefremov X-Patchwork-Id: 9443685 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 D2BCD60235 for ; Wed, 23 Nov 2016 15:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C3847271E0 for ; Wed, 23 Nov 2016 15:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B6C0A27569; Wed, 23 Nov 2016 15:51:31 +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=unavailable 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 597E0271E0 for ; Wed, 23 Nov 2016 15:51:31 +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 1c9ZoJ-0001GB-Jo; Wed, 23 Nov 2016 15:50:11 +0000 Received: from mail-wj0-x244.google.com ([2a00:1450:400c:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c9ZoF-0000CR-Ms for linux-arm-kernel@lists.infradead.org; Wed, 23 Nov 2016 15:50:08 +0000 Received: by mail-wj0-x244.google.com with SMTP id jb2so1324375wjb.3 for ; Wed, 23 Nov 2016 07:49:45 -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=UIJ4OqiREegdbfzajAC1IEHHtb2aO+Ebuesex5Y/63Y=; b=ply0wjEqNi5t+k3vWH+ydfSOrz4vmiNky3NtDCir/APiZpzuYoM8VE1AL8Y85t59Ak ICo4eAvFBGs/zd4INOxEjgeNnS5j4G6vJl3LaUZogeXBJkxRm0hUMSxo97IcgHq4flSk svq7lX3fgr2BIJTLyfoh81c/IdVEMvBSsoiPhNHIR3y+/TgD+UiMfek0z7dUZNKsLGO6 jQLRlhTmFf9eW8a8tViPJbsq/RWhgZSoEdLO2nfItKGIjqmObBJtzdhoEAUJPA1sARYW beka5cdQenSniL8IsmWBKf3zS3niQzK7sKMRxpw8ZyJWDPbC2GZog528tKiyT6YuVX29 192Q== 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=UIJ4OqiREegdbfzajAC1IEHHtb2aO+Ebuesex5Y/63Y=; b=IjERDknfwMaiiLUUBCuLDl0a9j4NY2cxs94t2IboARwgc+20mN842WcK3MeyQmHBJq PNnYES9aS31igbjNgXMB4S7+B9lpalyrakYkKYT919ltGn4doSo1dHGJL71X/CAyKiL6 rruWPjRwolFKy7fmVwyp+ib6Q+O5kG19PqRj+qQrdclvncBgq7hk5jso+9EEajJ7KJUf djbZa5HM0A1KpYgL7JUJvEMFbG+lCMhXynEUZi8zIzPmE5WLLLnMr4F+UQ2dnLnA8YP1 rXh1474Ml0RqbehX9mTqD2Lbrr4G/LUWHKFfOtSeLg4gd+ETeuqlU/RRoZYDHB2ONXcS WbDQ== X-Gm-Message-State: AKaTC02hGesUIGKDxSgdS+uZGJyi/hygvRIz12o//JMmHdlDcWjgG94zW4ASg1KRjLNW6A== X-Received: by 10.194.172.100 with SMTP id bb4mr3682184wjc.53.1479916184365; Wed, 23 Nov 2016 07:49:44 -0800 (PST) Received: from development1.visionsystems.de (mail.visionsystems.de. [213.209.99.202]) by smtp.gmail.com with ESMTPSA id 81sm3417005wmw.7.2016.11.23.07.49.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 23 Nov 2016 07:49:43 -0800 (PST) From: yegorslists@googlemail.com To: linux-omap@vger.kernel.org Subject: [PATCH v2] ARM: dts: am335x-baltos: use phy-phandle declarations Date: Wed, 23 Nov 2016 16:49:26 +0100 Message-Id: <1479916166-6633-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_075007_993376_6462D6E6 X-CRM114-Status: GOOD ( 10.36 ) 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 phy-phandle is now a preferred method to reference a PHY device. Especially in regards to cpsw it enables PHY specific settings like max-speed etc. being specified in DTS. Signed-off-by: Yegor Yefremov --- Changes: v2: add patch description (Tony Lindgren) 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 {