From patchwork Mon Nov 26 00:15:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 151965 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4971402ljp; Sun, 25 Nov 2018 16:17:01 -0800 (PST) X-Google-Smtp-Source: AFSGD/XFgOGWq1oQ1ka/e66UHI9AkKwxbhhEVqvtCLZNSxWhW4He3UwpWN3dG0Xxsjvr3px8lqY5 X-Received: by 2002:a63:78cd:: with SMTP id t196mr22679242pgc.62.1543191421537; Sun, 25 Nov 2018 16:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543191421; cv=none; d=google.com; s=arc-20160816; b=VzFIOz+Bvw/AWnyrbDljBqLlyj+4KIBFvOM7Pyn+nketkFR2i4rTkbWh17Wi1X1rOM S9gQP70llekOyp3WbxFUxZWTQRroL/j4ewQ1O/EeAlhgB757hdYHvLm8zW44uHajqGIl I85UCQR53cZWlCHco7VqYVit8TMmmvBKQVnHJbN6OGtPhfjbByOdsGmHCNb642KFH8sS vRfFV+DKPGIHj3DOJDtDS66wy5izBl1eCUuhrpIN52yVk1lmC1GoPQ/iOlFU4PgMRDz9 ORgiyl/sv/kDjOrTfZdU6BMwPo+fOHmrjpAsruqH5Iz66IKnEipB47bP/jAiGTnkMX9g RTDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=tO2aluYNB+YKg1lDnRoQJAWJh5Gddubs7Ch/wbkCKQY=; b=KIYWE0kpvDWayILBUTR8hXnueY2Hc9hi6a4gnGgQggmdKNu9J4YuRBvtiUGflDNr9Q qd+h0iirREi3z61emEmKaHgxLDXK67v174k+ekE3aq9CbCaoJMaZ+i6ezqspxgRM7gIV a6c8RXy2ZAjO7aomreIQTdMCCEadMYRz4H2oUryceWNT7RkT+elKmbKh+/mZcRR4aqfU WzIEHLFr0gv5UqEAEvzzCj2ROmAsl4ZxjWmWkL/EEKNOC5cey5ezpGylH1uf0Ezo607X XsXDqAQLdRw6MX5UCZrIZYH+ajJjWhEHSsy9iPGpmd6GwM2YaSV/gpBjTkK9MKW6Zmb4 b5mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YppOuXDG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k5si45739946pfj.153.2018.11.25.16.17.01; Sun, 25 Nov 2018 16:17:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YppOuXDG; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726489AbeKZLJU (ORCPT + 32 others); Mon, 26 Nov 2018 06:09:20 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51966 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbeKZLIW (ORCPT ); Mon, 26 Nov 2018 06:08:22 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAQ0FYVn097207; Sun, 25 Nov 2018 18:15:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1543191334; bh=tO2aluYNB+YKg1lDnRoQJAWJh5Gddubs7Ch/wbkCKQY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YppOuXDGrPQidsCZxznXa2eAc1VRyQrRdrCMBgieLqAQnpTA9RpRUBgMmRyptLRSk 2rrxxglnumuRyXYoi6zZfuOgIs+wImsYAG7j1F1kZo0+kifyIv0nJU0tgVXYJ74DyH lwDkaWq8SJTjxdFXIc1Lv55oCl4XNWHE3MaFDNkw= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAQ0FYGh039074 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 25 Nov 2018 18:15:34 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Sun, 25 Nov 2018 18:15:34 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Sun, 25 Nov 2018 18:15:34 -0600 Received: from legion.dal.desgin.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAQ0FYqP030838; Sun, 25 Nov 2018 18:15:34 -0600 Received: from localhost (uda0226610.dhcp.ti.com [128.247.59.147]) by legion.dal.desgin.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id wAQ0FYU04362; Sun, 25 Nov 2018 18:15:34 -0600 (CST) From: Grygorii Strashko To: "David S. Miller" , Tony Lindgren , Kishon Vijay Abraham I , Rob Herring CC: , Sekhar Nori , , , Andrew Lunn , , , Grygorii Strashko Subject: [PATCH linux-next 07/10] ARM: dts: am4372: switch to use phy-gmii-sel Date: Sun, 25 Nov 2018 18:15:28 -0600 Message-ID: <20181126001531.12974-8-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.5 In-Reply-To: <20181126001531.12974-1-grygorii.strashko@ti.com> References: <20181126001531.12974-1-grygorii.strashko@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch to use phy-gmii-sel PHY instead of cpsw-phy-sel. Cc: Kishon Vijay Abraham I Cc: Tony Lindgren Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am437x-l4.dtsi | 17 +++++++++-------- arch/arm/boot/dts/am43x-epos-evm.dts | 5 +---- 2 files changed, 10 insertions(+), 12 deletions(-) -- 2.10.5 diff --git a/arch/arm/boot/dts/am437x-l4.dtsi b/arch/arm/boot/dts/am437x-l4.dtsi index ff2c11e..121a71d 100644 --- a/arch/arm/boot/dts/am437x-l4.dtsi +++ b/arch/arm/boot/dts/am437x-l4.dtsi @@ -280,12 +280,6 @@ #size-cells = <1>; ranges = <0 0 0x4000>; - phy_sel: cpsw-phy-sel@650 { - compatible = "ti,am43xx-cpsw-phy-sel"; - reg= <0x650 0x4>; - reg-names = "gmii-sel"; - }; - am43xx_pinmux: pinmux@800 { compatible = "ti,am437-padconf", "pinctrl-single"; @@ -300,11 +294,17 @@ }; scm_conf: scm_conf@0 { - compatible = "syscon"; + compatible = "syscon", "simple-bus"; reg = <0x0 0x800>; #address-cells = <1>; #size-cells = <1>; + phy_gmii_sel: phy-gmii-sel { + compatible = "ti,am43xx-phy-gmii-sel"; + reg = <0x650 0x4>; + #phy-cells = <2>; + }; + scm_clocks: clocks { #address-cells = <1>; #size-cells = <0>; @@ -555,7 +555,6 @@ cpts_clock_shift = <29>; ranges = <0 0 0x8000>; syscon = <&scm_conf>; - cpsw-phy-sel = <&phy_sel>; davinci_mdio: mdio@1000 { compatible = "ti,am4372-mdio","ti,cpsw-mdio","ti,davinci_mdio"; @@ -572,11 +571,13 @@ cpsw_emac0: slave@200 { /* Filled in by U-Boot */ mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1 0>; }; cpsw_emac1: slave@300 { /* Filled in by U-Boot */ mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 2 0>; }; }; }; diff --git a/arch/arm/boot/dts/am43x-epos-evm.dts b/arch/arm/boot/dts/am43x-epos-evm.dts index 4ea753b..9dfd80e 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -584,10 +584,7 @@ &cpsw_emac0 { phy-handle = <ðphy0>; phy-mode = "rmii"; -}; - -&phy_sel { - rmii-clock-ext; + phys = <&phy_gmii_sel 1 1>; }; &i2c0 {