From patchwork Mon Oct 8 23:49:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grygorii Strashko X-Patchwork-Id: 148475 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4244016lji; Mon, 8 Oct 2018 16:51:30 -0700 (PDT) X-Google-Smtp-Source: ACcGV61vOqkhfsvo6s8Cvx705EH9wy+4JSMigc6zCF9WWmEdrWobrj9V934dQnHcPV5w5x0syIJ+ X-Received: by 2002:a63:3507:: with SMTP id c7-v6mr22865162pga.158.1539042690640; Mon, 08 Oct 2018 16:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539042690; cv=none; d=google.com; s=arc-20160816; b=AbDZgrer47o6yA5xHt7fiYn9cibkHli05ntuuI94HNVCbM/dknI237nj23Zg+CmOTF 0XlqnBsJUcZRaWaCuCebhGa2+fwW/77uS7hBMJQl7/f8fib1Lqjf6qGFrU9uA7COrROi NztyQNfWrhV161G7sRw/R87NMghtJvDqJoJJBM1tedXiIrBFrPZCSQ5HJt3O/r91X7Zi r8Ek8WRi5U4qMybhO6PRdXUfS/8ZhJUMzrPWUIpDPWBygBoBvBzzWp1ktarMB6BeeWpK KsA7zb6A7AN7WjNpC/PSNkY+kexLOuIO3vOc5SeKvDGJmRS8UjYfIICEy//bpupOG4aA cU5g== 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=rp9yeZQyHs0zKorGtui/WZyQj6Qvx1sg2vu+2CFPDMU=; b=IQ+MxTgTc2ZqOG7L4Ap55xiDCU01doTntR1lSTc1F0IWrxuPVes6KZkM7tyY3oBba8 YZIxcXPgnZOWDRif8jSi1CEtT5a0lojuL9EWOPmpB3f4TL8PTQ4k5e7tKtTV+wkW2ODd 6I2gL+fB40x96qAPWD/WlzCWH9rQxddvK/AMBZoJbVP/N86o/braFCmnjVHhCXudEFA0 y+LWPyo/THVArzLvIjvUZeSIgGskOANbuXQU+V4Mq8fpBY/Nu/ctWuVivGTaww8t5ATP URyv4q0/RH25MpvufsKAgzwcf1vke1sNFsTrKm3BY2LQHpf4OOmAskqXlNstqPM/uP8L kWJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=AtUbDIpl; 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 a10-v6si18315389pgk.365.2018.10.08.16.51.30; Mon, 08 Oct 2018 16:51:30 -0700 (PDT) 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=AtUbDIpl; 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 S1727277AbeJIHFj (ORCPT + 32 others); Tue, 9 Oct 2018 03:05:39 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:42954 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725759AbeJIHEG (ORCPT ); Tue, 9 Oct 2018 03:04:06 -0400 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w98Nnrm1126371; Mon, 8 Oct 2018 18:49:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1539042593; bh=rp9yeZQyHs0zKorGtui/WZyQj6Qvx1sg2vu+2CFPDMU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AtUbDIplcKzh/cvLzfufK09iArvHs1V1/Ux+CuztjHNs4kC6lKYWxX7qQL5JnOquW TcLZdLq32+bzH1l0d+6AxlvX7ezIsZKLOzF8dYE6zdYC9mpPKOCnVXok+ppbc+r3Eq OkZEZQnFvgv2CDCRAuYFqPKUuxNaVsI1l2agk9fA= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w98NnrLm004779; Mon, 8 Oct 2018 18:49:53 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 8 Oct 2018 18:49:53 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 8 Oct 2018 18:49:53 -0500 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w98NnrLc019785; Mon, 8 Oct 2018 18:49:53 -0500 Received: from localhost (uda0226610.dhcp.ti.com [128.247.59.147]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id w98Nnqx25240; Mon, 8 Oct 2018 18:49:53 -0500 (CDT) From: Grygorii Strashko To: "David S. Miller" , , Tony Lindgren , Rob Herring , Kishon Vijay Abraham I CC: Sekhar Nori , , , , Grygorii Strashko Subject: [RFC PATCH 08/11] ARM: dts: am4372: switch to use phy-gmii-sel Date: Mon, 8 Oct 2018 18:49:46 -0500 Message-ID: <20181008234949.15416-9-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.10.5 In-Reply-To: <20181008234949.15416-1-grygorii.strashko@ti.com> References: <20181008234949.15416-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/am4372.dtsi | 16 +++++++++------- arch/arm/boot/dts/am43x-epos-evm.dts | 5 +---- 2 files changed, 10 insertions(+), 11 deletions(-) -- 2.10.5 diff --git a/arch/arm/boot/dts/am4372.dtsi b/arch/arm/boot/dts/am4372.dtsi index d4b7c59..3dd6d2e 100644 --- a/arch/arm/boot/dts/am4372.dtsi +++ b/arch/arm/boot/dts/am4372.dtsi @@ -212,11 +212,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"; + syscon-scm = <&scm_conf>; + #phy-cells = <2>; + }; + scm_clocks: clocks { #address-cells = <1>; #size-cells = <0>; @@ -714,17 +720,13 @@ cpsw_emac0: slave@4a100200 { /* Filled in by U-Boot */ mac-address = [ 00 00 00 00 00 00 ]; + phys = <&phy_gmii_sel 1 0>; }; cpsw_emac1: slave@4a100300 { /* Filled in by U-Boot */ mac-address = [ 00 00 00 00 00 00 ]; - }; - - phy_sel: cpsw-phy-sel@44e10650 { - compatible = "ti,am43xx-cpsw-phy-sel"; - reg= <0x44e10650 0x4>; - reg-names = "gmii-sel"; + 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 6502d33..8677f4a 100644 --- a/arch/arm/boot/dts/am43x-epos-evm.dts +++ b/arch/arm/boot/dts/am43x-epos-evm.dts @@ -580,10 +580,7 @@ &cpsw_emac0 { phy_id = <&davinci_mdio>, <16>; phy-mode = "rmii"; -}; - -&phy_sel { - rmii-clock-ext; + phys = <&phy_gmii_sel 1 1>; }; &i2c0 {