Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4321558ybl; Mon, 26 Aug 2019 08:43:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqw0zZSvq5diY7av1NSyMEM97pxwdWeP8TrwZgpMFpxQuKpmNj3wR7wq8xewSpYKp0zExUUR X-Received: by 2002:a17:90a:2069:: with SMTP id n96mr20360021pjc.4.1566834232819; Mon, 26 Aug 2019 08:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566834232; cv=none; d=google.com; s=arc-20160816; b=Zr8e1uxE9Z5ZX8LkIOiuCMiRwLm60rqPfiHYinP8R1SR52PaQ8GgI6qdXv+blEh5kk cQCfIKWf/9UStUcbIiqgM3mnPqtkiVCDg46g/2oRJHsnsb5O1Mvck5Qw/waXAQwO0w/r IN+zTpZVIjTe5TJlU5tMOqLZ6Icl4v672FhVD/z/BxnYXbLGSUH4jTgWjnYPcqxBxJiL 2W5L40kP/1RK5kYtn+1/DLejzt1UH5zEXCTzdH9FtjBINwgsLywjiZ2+mGociYH5m7Yr vIxmwSsCNlZD07mskPjx/ncHD5LZHNVu8sy3kY3Odd0IRYLIUcVrST6SLUtq0M/6EA+8 ti3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9NkYS7urVCiEtt0M3GAw4i3Cp3ycEW4gYRkzUzyQ4Xs=; b=HhYtfIY715izx0NMmmsjxIcO1XFRyKZq1ps/BRXLUBs4dOlvO9F7TZiMb7nVI4trqW 6icszVAcdqdTaAapJ/5sOU2vEV2NUksKhCFEPSlwoqHmpeVVv3YIT1mf+DPwMFE7LJlV mUzbgggkpedVlIKq678YsT+B+sZAA1Vp2fRiIV7XTMtWwVTt27MwDyJSx/tUA+qmqUaa 8zTffkrb78ipZ2n0nouNUThjYGOei9Av41bISgO9sIQYs6F/xXgacj+NEiO3Bf65O22C 8rIWMNv7/Kg4jBFSIKKdLoo9/f3X/VrXLN65d13q+2WNtB7mextjLZUY6gzPXsjbUcD9 Rq3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si9641525pgc.179.2019.08.26.08.43.37; Mon, 26 Aug 2019 08:43:52 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733066AbfHZPiu (ORCPT + 99 others); Mon, 26 Aug 2019 11:38:50 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:52768 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729502AbfHZPiq (ORCPT ); Mon, 26 Aug 2019 11:38:46 -0400 Received: by mail-wm1-f65.google.com with SMTP id o4so15927958wmh.2; Mon, 26 Aug 2019 08:38:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9NkYS7urVCiEtt0M3GAw4i3Cp3ycEW4gYRkzUzyQ4Xs=; b=rN2Jltm9pDL3ujLUw3q6xcpqyHImn/2qSpIYEfqZC0lqzaGuVHy/ZYp7PVnKQbPuO5 KNZUlzxgRi/4NeX9N2vpW72u+z/LzKSfHD/FJkvAZPG/M7IirtXclcAIvEr6NsSFHd4P eAWvRP3H1lBIfzU+hs76iXRmZR12xkOCZwSh4fT3fdcgSznCgiQhi+AMWF62dmPjsVBr W5a+oAjMEO98v4+DTvpzsGk6fh78oVlu7LQ1/Y2diG7fpHSWdAuvmsdOYsetwRSlIZRL 06mtaaDPDseLR5T6epEy4Cw0skQd5/A/qy3TuhaN8JNUVSMNlYQD4+3MY2DXY2M3twAF 6TaA== X-Gm-Message-State: APjAAAUgBfo+u+YcVolIvoQVFo2VHAlRT6gaiX2mq8eYL6Rv/FxlXVGR uNjl0ftYN86FtU/YZ/olQ03/jOxNiuo= X-Received: by 2002:a1c:a74b:: with SMTP id q72mr23123109wme.96.1566833924812; Mon, 26 Aug 2019 08:38:44 -0700 (PDT) Received: from 1aq-andre.garage.tyco.com ([77.107.218.170]) by smtp.gmail.com with ESMTPSA id z8sm11580798wru.13.2019.08.26.08.38.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2019 08:38:44 -0700 (PDT) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: linux-kernel@vger.kernel.org Cc: =?UTF-8?q?Andr=C3=A9=20Draszik?= , Ilya Ledvich , Igor Grinberg , Rob Herring , Mark Rutland , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 02/12] ARM: dts: imx7d: cl-som-imx7: add phy-reset-gpios Date: Mon, 26 Aug 2019 16:37:50 +0100 Message-Id: <20190826153800.35400-2-git@andred.net> X-Mailer: git-send-email 2.23.0.rc1 In-Reply-To: <20190826153800.35400-1-git@andred.net> References: <20190826153800.35400-1-git@andred.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org According to the design team: * reset input PHY0 is directly connected to the corresponding pin GPIO1_4 in the i.MX7 * reset for PHY1 is done using the gpio expander bit 4 While touching this area, also add a 'compatible' to the phy to make it more clear what this is and which driver handles this - an Ethernet phy attached to mdio, handled by of_mdio.c Signed-off-by: AndrĂ© Draszik Cc: Ilya Ledvich Cc: Igor Grinberg Cc: Rob Herring Cc: Mark Rutland Cc: Shawn Guo Cc: Sascha Hauer Cc: Pengutronix Kernel Team Cc: Fabio Estevam Cc: NXP Linux Team Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org --- arch/arm/boot/dts/imx7d-cl-som-imx7.dts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts index 6f7e85cf0c28..e0432a3aa36f 100644 --- a/arch/arm/boot/dts/imx7d-cl-som-imx7.dts +++ b/arch/arm/boot/dts/imx7d-cl-som-imx7.dts @@ -30,13 +30,14 @@ &fec1 { pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_enet1>; + pinctrl-0 = <&pinctrl_enet1 &pinctrl_enet1phy>; assigned-clocks = <&clks IMX7D_ENET1_TIME_ROOT_SRC>, <&clks IMX7D_ENET1_TIME_ROOT_CLK>; assigned-clock-parents = <&clks IMX7D_PLL_ENET_MAIN_100M_CLK>; assigned-clock-rates = <0>, <100000000>; phy-mode = "rgmii-id"; phy-handle = <ðphy0>; + phy-reset-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; fsl,magic-packet; status = "okay"; @@ -45,10 +46,12 @@ #size-cells = <0>; ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; reg = <0>; }; ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; reg = <1>; }; }; @@ -63,6 +66,7 @@ assigned-clock-rates = <0>, <100000000>; phy-mode = "rgmii-id"; phy-handle = <ðphy1>; + phy-reset-gpios = <&pca9555 4 GPIO_ACTIVE_LOW>; fsl,magic-packet; status = "okay"; }; @@ -262,3 +266,11 @@ >; }; }; + +&iomuxc_lpsr { + pinctrl_enet1phy: enet1phygrp { + fsl,pins = < + MX7D_PAD_LPSR_GPIO1_IO04__GPIO1_IO4 0x34 + >; + }; +}; -- 2.23.0.rc1