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: 9443683 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 0340C60235 for ; Wed, 23 Nov 2016 15:50:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9B3A27165 for ; Wed, 23 Nov 2016 15:50:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE293276AE; Wed, 23 Nov 2016 15:50:30 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 662F227165 for ; Wed, 23 Nov 2016 15:50:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752250AbcKWPuO (ORCPT ); Wed, 23 Nov 2016 10:50:14 -0500 Received: from mail-wj0-f193.google.com ([209.85.210.193]:35488 "EHLO mail-wj0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752338AbcKWPuM (ORCPT ); Wed, 23 Nov 2016 10:50:12 -0500 Received: by mail-wj0-f193.google.com with SMTP id f8so1330977wje.2 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=TN0ecsq2GOVsxfP4tuRdexoOP0fswdguswcLPvU2MDq4Uzpwxma84Gcc6020W7/FuH OJ7loIwsQ8zbKPTNXx2zR9BoF7IQyueKc3+QLv2wRFTVPrglo8vXg+75pzUgnDIwup04 MlP8/bePTkNaYuzs0yDEQlvdEugbcNp/jx6I5AONecDU4SxZlkBJlf/1rxN4Sobycs1x LuY4TcTuM7e6PIDMCzLLo0YAUYC5hRe7Zds65QOrfn410XYd8IQvp52hNV6Tu1qkDTbO LWCORYrQSEtsPHDy68D6s83M7e9PqWvbuLMr3EonQsNZHz/KxjlRV+e2XjWJw7c3m+TU Ff2w== X-Gm-Message-State: AKaTC03YDaJHhQHLKGLf8Fan56lB7kstDMPZX/HPEhdD6h8T6bVST0x938rfNzUX+PE9pg== 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 Cc: linux-arm-kernel@lists.infradead.org, bcousson@baylibre.com, tony@atomide.com, Yegor Yefremov 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 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 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 {