From patchwork Tue Apr 24 04:47:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 134040 Delivered-To: patch@linaro.org Received: by 10.46.151.6 with SMTP id r6csp1792827lji; Mon, 23 Apr 2018 21:58:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+Asftsftr5E+nKBMHxN6ixWQtLMAxZ6wedGFxCWrKK05wzlY6YOI5aA6T8PJhhJoXZu9+4 X-Received: by 10.101.70.200 with SMTP id n8mr17644552pgr.62.1524545928777; Mon, 23 Apr 2018 21:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524545928; cv=none; d=google.com; s=arc-20160816; b=wHVmNICED7HMW3e6ynbs+HT9MBt4QbVseL2kSdE0E9qAxjDR3vG2/H1AoiTkwOAA0m cptBex3MvRBshO5a+Y/gH2KY8bfckYGRXmfRbS8K0FjE3tQPmIeauDhcvEVcpG4b685n y1+88hkWVmEJh4AHdeoEO7W8G+gtCkzWyzHOqoZu+sBMkiQ2iBYnpqWEg5WBTWaSUpYZ NgdU+8CIcABjxLC63v0ukY9wItALNLb5B0E+hquP8vb1q9rwfz1lrZtWUQCWqCnlG4uv rCbb3RXdX9tTV5j77zaAAR6VRA1LnAZrqDMxWoz4IjrutwTsAJq56yH3MQkBGlo1+ldz wCCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=E/WVfyP1oT7BV63qAD2WZUNnkNQ+MHoi4smtGKuYX8k=; b=raMbZOh62egT1ngDdQxxeQNQ8wEDuq5DvSXVRKCdxfK2FVHC6ztlF358mvaVn3vIP6 YsY5jrbjfvp8T7VnW6D7AwSsKXEUJMBsoOehc/IWvqGa2jw2FWVCipvrtlyAByjehp/K B0YIs4jRHHCd4Lu0JnuWO4xW6mYYpzTqrfkpocIlolMyanE5g3sEtPNM0ejYqOtumE7Q SmGX3ZQbVIc3+AfDUTz5HVCjneZFWkmvBexfpufgTD1kFOgB+iJ5vz7sbkF2Q+yHZaVl gb4mssZjQUWHu6f4Gge3934jyqdFJpzLfVdsWopD2rj5o4cx7dv0zYOmMX1HQ3gi9cpI IFgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si12774544pfg.334.2018.04.23.21.58.48; Mon, 23 Apr 2018 21:58:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755549AbeDXE6r (ORCPT + 6 others); Tue, 24 Apr 2018 00:58:47 -0400 Received: from mx.socionext.com ([202.248.49.38]:30901 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752205AbeDXE6r (ORCPT ); Tue, 24 Apr 2018 00:58:47 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 24 Apr 2018 13:58:46 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 4D82261870; Tue, 24 Apr 2018 13:47:18 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Tue, 24 Apr 2018 13:47:18 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id CB9871A1D41; Tue, 24 Apr 2018 13:47:17 +0900 (JST) From: Kunihiko Hayashi To: Masahiro Yamada , linux-arm-kernel@lists.infradead.org Cc: Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Masami Hiramatsu , Jassi Brar , Kunihiko Hayashi Subject: [PATCH 4/4] arm64: dts: uniphier: add syscon-phy-mode property to each ethernet node Date: Tue, 24 Apr 2018 13:47:03 +0900 Message-Id: <1524545223-5893-5-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524545223-5893-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1524545223-5893-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add syscon-phy-mode property specifying a phandle of system controller to each ethernet node. In addition, LD11 SoC has a built-in ethernet PHY. When we set "internal" to phy-mode property, this built-in PHY is available. This patch changes phy-mode property for LD11 to "internal", as default. Signed-off-by: Kunihiko Hayashi --- arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 3 ++- arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 1 + arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 4 +++- 3 files changed, 6 insertions(+), 2 deletions(-) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi index 540e012..cbc4f4b 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi @@ -553,8 +553,9 @@ clocks = <&sys_clk 6>; reset-names = "ether"; resets = <&sys_rst 6>; - phy-mode = "rmii"; + phy-mode = "internal"; local-mac-address = [00 00 00 00 00 00]; + socionext,syscon-phy-mode = <&soc_glue 0>; mdio: mdio { #address-cells = <1>; diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi index 845b407..1721d45 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi @@ -610,6 +610,7 @@ resets = <&sys_rst 6>; phy-mode = "rgmii"; local-mac-address = [00 00 00 00 00 00]; + socionext,syscon-phy-mode = <&soc_glue 0>; mdio: mdio { #address-cells = <1>; diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi index 4ff043e..c703842 100644 --- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi +++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi @@ -341,7 +341,7 @@ cdns,phy-dll-delay-sdclk-hsmmc = <21>; }; - soc-glue@5f800000 { + soc_glue: soc-glue@5f800000 { compatible = "socionext,uniphier-pxs3-soc-glue", "simple-mfd", "syscon"; reg = <0x5f800000 0x2000>; @@ -418,6 +418,7 @@ resets = <&sys_rst 6>; phy-mode = "rgmii"; local-mac-address = [00 00 00 00 00 00]; + socionext,syscon-phy-mode = <&soc_glue 0>; mdio0: mdio { #address-cells = <1>; @@ -438,6 +439,7 @@ resets = <&sys_rst 7>; phy-mode = "rgmii"; local-mac-address = [00 00 00 00 00 00]; + socionext,syscon-phy-mode = <&soc_glue 1>; mdio1: mdio { #address-cells = <1>;