From patchwork Mon Apr 23 03:46:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10356131 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 9773160225 for ; Mon, 23 Apr 2018 03:54:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 888D82899B for ; Mon, 23 Apr 2018 03:54:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7CDCA2899E; Mon, 23 Apr 2018 03:54:12 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BEE882899B for ; Mon, 23 Apr 2018 03:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=pq5wg7eatMTsnW689nJOS17FbLnhyQFHRsJjoXDlE1E=; b=p9kgHeweLOmdGr ONJ5zOO9fRZ+KkQ0XZBUI4zXg8Pyl/9tiOxnj28mumGZaYs1i/G1EN1nkLDOU8qbfEfTKFAEUIlBs AQpl6i+P8/Bp2ZZDbRT6cH48le/v6JXPmcXk0xFMshQPU+5fITBw6yx+rzssq+vpTv4/unbcEWbcn tFVXWP3iQfh0OwVY3ZcF/jbx9BzFkS/BWLGo422giZmz4Q+1R3gWI2YqgdIPQTnA2VIYHRZxN5kKp p4ECWbGmzEfJPu+XyKD9ndPnzW0UTl1RPkWWucYUDIXktrq8U4bi0Yvtd46dvXDmMG3niOOU1jcyz 1fge6Zc5fMRbqodBZEuQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fASYE-00012w-ES; Mon, 23 Apr 2018 03:54:02 +0000 Received: from mail-eopbgr40067.outbound.protection.outlook.com ([40.107.4.67] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fASVt-0007Ul-ST for linux-arm-kernel@lists.infradead.org; Mon, 23 Apr 2018 03:51:39 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lq7ExTNfbUHNjHFxRIkS3VZQihKbb3xkCfkC9//z6Bc=; b=LN6NUCGYpKomdeGYMCy584aW9IXuUJE0b131wa+XhR5l4sw8pRi1B3f4sdsESh7jTZ4eHlzUxfn5+xqE8WqIA3b1gT7APdJ6RzRwKDHKqpYoSyuPeR6mDm3EY66bdcvojD2prrFtWJJAG7nr/dmNk91Brga90JPNSFBceoQVUeM= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by HE1PR04MB1324.eurprd04.prod.outlook.com (2a01:111:e400:588a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Mon, 23 Apr 2018 03:51:22 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 4/5] ARM: dts: imx6sx-sabreauto: add fec support Date: Mon, 23 Apr 2018 11:46:58 +0800 Message-Id: <1524455219-6736-4-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524455219-6736-1-git-send-email-Anson.Huang@nxp.com> References: <1524455219-6736-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) To HE1PR04MB1324.eurprd04.prod.outlook.com (2a01:111:e400:588a::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1324; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 3:HFwDC+w51TR9a5ywKagPvdAWTkxOzXIb2H0+6IuGXzutFZQXjkUGUiiKFXLr/gvL5C7TdTvkGHlUKCfknxd/W68LYsseMAg3ajy0LM2O+xH4DajDOeELUUoxR33IehEUZJssKswu4XVfbk8fXKi6X2w9VAmwPwoEecKpCRBTJHoBtcBwIL+GyM/aqSJtaS+UQ6iXvSGYX8m7pwWEkxzRFzaEy12VXd1bzDPmxrxG4/Tc9syC4IHLMSnZudKvf8K3; 25:/ehdKhMqkU4qHln5tb/Rxz+v0jwoKJPwADwUPvpTuKkb8tMG1pt6TUge2ddEH+xuvFBEL8EBzmo3Yd10wBkRscLAYFYlGc98KGtvraa/ixln570/faLeMnQzILqvpQqBYJsI7DSMRKHx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D8CmP0hFF3toosg35rw60+qNTEmHb6JvNw6d5vX9j7X5QOSzeNqUTL7qcSikUl6LwrO2ak6Obc7p+FdVxhPfB0UU7Pj2GDuA59EWUX8Hi3puHT+lNQqtQQFvXGLbyMr6Il37oxmmWJduft89loNnPd7cUxJco3ELXcgTdHILNrkdyMJSSv3ngF6xp7r7ft2vtXUHzltoL/uxk0rcFDOzoHv/n263LP83GjejGWWfM/0yM4w6/98mrhvaQfE5j1Vc+BVQc3RYY X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231232)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR04MB1324; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1324; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(8936002)(6666003)(26005)(186003)(16526019)(386003)(7736002)(6506007)(6486002)(2906002)(316002)(16586007)(478600001)(76176011)(52116002)(25786009)(4326008)(575784001)(86362001)(36756003)(50466002)(6512007)(53936002)(446003)(11346002)(956004)(2616005)(3846002)(6116002)(47776003)(476003)(50226002)(305945005)(5660300001)(81166006)(8676002)(66066001)(48376002)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1324; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1324; 23:t3xPcAsgDRkeG9fhNMMGhIShBskRaQfMvWqHz289p?= =?us-ascii?Q?Wkv4W/KcZRxqpnh/EEcwpTnLlfdKALOt6EPyk9jgTzfKT0ZZxQrVcx/DXITV?= =?us-ascii?Q?QAHO/YNNhEVvYkcxIW824xcaGTyQeuEvOD+zsDQt2m9ZI603dXzriZtQYqNQ?= =?us-ascii?Q?q0FEA4FzTaSYcnXHuY9W/22xzcqszCpoYSfltSK6UtP2zWgBReQkeeyfXvbn?= =?us-ascii?Q?FtkBHhHUO3yGKP4858ngqHL1kja1eeCedBIb05iTXuEmQttTJQ/gPZJf8Nhu?= =?us-ascii?Q?382sqB2vlJTOgdNzirV2x/BaYB0GDVPCvWov1yYEef8ETANDw5zxj53AEGwF?= =?us-ascii?Q?w6sq2kvclxlE2OWQFoUogpPLsw95JQITKD8szjg4A9s0Mc+5vvj2jBX4BZqQ?= =?us-ascii?Q?SlGfEqF+T3OZIHakpGvPaamEb+AaKKeID5mfQBwjr+DaydAJyOrnYyWhC/r5?= =?us-ascii?Q?vkit6U9/eTbqKXBImLWq46lCDMQnrTclBnBvBRtNbyyOIZZMYIHKVLFO9m3V?= =?us-ascii?Q?DzOKVANbvktxXkxomN85VApvJy3TNI5onyEzBFkNAZAwecanlISiteYe1JWF?= =?us-ascii?Q?y9tHR/uaj+8HvNr4rFDnSzBn0uaAbwIiYbFWW2rQsRscFvv7P/07RgOmm74/?= =?us-ascii?Q?RAFk+u0qtwYECQoOWwEtv5P8H//ZMa/u0ZRSEgzzAC+ubNKaWW+Q0UWMkCKs?= =?us-ascii?Q?bEz3dTlPvx4q5XVtzXXKIcin5O+cSXvom9hk0637iyzKOfHJstlHxG42767S?= =?us-ascii?Q?tGTfvP7986RMbG5oLVhDZ+IEeO7l613BvkmtQO2wunO729mkRiUDSqSLkSuj?= =?us-ascii?Q?ag7QEV0CrhIuG6CQG+nYk8FoWWtBfFCt64NfFmGyj+uWvIoYeXqZhOpXAM+7?= =?us-ascii?Q?iXDZfc9jOLel8sidH1kMR+NhxjYsZdG/QxorjABO3gMRJZE5rLQQ7N1p56KW?= =?us-ascii?Q?3DMaoI2J0Zu6v+Zs0UEYd5ya5SHbIZhJm4FTjbPd6Xg35SbTW7ygKVNpB3Wn?= =?us-ascii?Q?ogjcDgtwjd9HfYP4g0BKpYC82sBBg0YGhC7InYttjytKw=3D=3D?= X-Microsoft-Antispam-Message-Info: 0/xE6zRamUMXbPdboNZCpYhw/hJNsC3DKCMmhqSfo0sPoQG5z5fUFC30VXw3Y7NPMs0cUZoBYueV7dEwAlx56X7+NwClnveDOP7LhdAIVG0O/v47ujegJMaVxymvlHVRccdG7CGN/ek+czDgyGqmuudhjUzoxmcaHaSb3cxyRS++JEUrOXzF7HxWy8YgQquZ X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 6:3Xx8LOANaeqWKPvHrL0hGoTmDa+Ifx48ovofo+B9ytRR4/UDY0Q8Rr7EjKpXpY0/vmZqgHdVUavw0fq2g+Lvqn2faF+/QgFtwT4r/DayPcQkItSzXhv6PqffOhjA/SXzmn72bEejlgXIsvBvOFx4tmGkmibiwjFRhx7q6rexR1hEK5WBLjCtXIpMfPexgImPISbTyAzPpCmp1L697vLn8M21sWWYt8TXUfglDlNK8c0qbfds+0eW1kZ3F6sujRh8uMxMO37nG7unVaHfl4NNY8ycb1QxpuAVgygWdM4K7F5CwhITlVF7D078RvGLbdJqyGPnS//PfTIwMe5gx+lzhWTgpO0BGfrzThd2bdHWY1Y8jBzxThLnJHo2DoxFwyi79h4Shx9aohxLO5ml8+wVqSHAzG28PiH6hUZifbEvRq79rfFoLqecIsaZaHoCygXFTZ4er03pgMVn1G8BhvGNJQ==; 5:HzgCrERn/FanfH7mJIhUZ7CSj+5OEG6Aq0iKPLAQYwozOEGKhzu4ZqFq0BL9v9wm0/kPettXmJh4ovA2TaymbXKYpRBokN+8RiOcfP4UqaFQsOVkdanucTqDlEuEDORBB655XLjIR2gbNDoyblvnPcuU8OOFx4W6SPxShyNW018=; 24:mOJa2FEFj6RU9SjvEXUYlbYhSMNB23ggtWLia/YJ1B+0P3fveTJsuspnyJfmGMCj+mdGhls4y/7tWdLBguOOXkTlGBWygMpOfjj/i+HnZD4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 7:3lP0iet+QR/9meIBwCh1VBf/PRX/aHXc3LQj9jHfBvedFq9t/7gL0+djp4eGhVG9o+JtPTDWueBKnIzIRkZaIExHJRAIOamdWNm4+Fuvno5MYxaBXJkcz0tlY1EKQJNEpeZqmssvF96VFw5z7ZDX/Pzz0xf0rN9qIgsWwBgX0oiQWVg1y/4MZ4LxEy8RTikRhbLqNOj9UULugAy3yNwUcPBzHixBKTe3yORJcmiCcDtOExhIBkhaEKG0kYI5twPJ X-MS-Office365-Filtering-Correlation-Id: 9defdf2c-e5ff-4b23-cd2e-08d5a8cd7cba X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 03:51:22.4202 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9defdf2c-e5ff-4b23-cd2e-08d5a8cd7cba X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180422_205137_947233_9A5CDE1C X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add FEC support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 70 ++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 812f40b..eadd483 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -41,6 +41,40 @@ clock-frequency = <24576000>; }; +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet1_1>; + phy-mode = "rgmii"; + phy-handle = <ðphy1>; + pinctrl-assert-gpios = <&max7322 0 GPIO_ACTIVE_HIGH>; + fsl,magic-packet; + status = "okay"; + + mdio { + #address-cells = <1>; + #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>; + }; + }; +}; + +&fec2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet2_1>; + phy-mode = "rgmii"; + phy-handle = <ðphy0>; + fsl,magic-packet; + status = "okay"; +}; + &uart1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart1>; @@ -75,6 +109,42 @@ &iomuxc { imx6x-sabreauto { + pinctrl_enet1_1: enet1grp-1 { + fsl,pins = < + MX6SX_PAD_ENET1_MDIO__ENET1_MDIO 0xa0b1 + MX6SX_PAD_ENET1_MDC__ENET1_MDC 0xa0b1 + MX6SX_PAD_RGMII1_TXC__ENET1_RGMII_TXC 0xa0b9 + MX6SX_PAD_RGMII1_TD0__ENET1_TX_DATA_0 0xa0b1 + MX6SX_PAD_RGMII1_TD1__ENET1_TX_DATA_1 0xa0b1 + MX6SX_PAD_RGMII1_TD2__ENET1_TX_DATA_2 0xa0b1 + MX6SX_PAD_RGMII1_TD3__ENET1_TX_DATA_3 0xa0b1 + MX6SX_PAD_RGMII1_TX_CTL__ENET1_TX_EN 0xa0b1 + MX6SX_PAD_RGMII1_RXC__ENET1_RX_CLK 0x3081 + MX6SX_PAD_RGMII1_RD0__ENET1_RX_DATA_0 0x3081 + MX6SX_PAD_RGMII1_RD1__ENET1_RX_DATA_1 0x3081 + MX6SX_PAD_RGMII1_RD2__ENET1_RX_DATA_2 0x3081 + MX6SX_PAD_RGMII1_RD3__ENET1_RX_DATA_3 0x3081 + MX6SX_PAD_RGMII1_RX_CTL__ENET1_RX_EN 0x3081 + >; + }; + + pinctrl_enet2_1: enet2grp-1 { + fsl,pins = < + MX6SX_PAD_RGMII2_TXC__ENET2_RGMII_TXC 0xa0b9 + MX6SX_PAD_RGMII2_TD0__ENET2_TX_DATA_0 0xa0b1 + MX6SX_PAD_RGMII2_TD1__ENET2_TX_DATA_1 0xa0b1 + MX6SX_PAD_RGMII2_TD2__ENET2_TX_DATA_2 0xa0b1 + MX6SX_PAD_RGMII2_TD3__ENET2_TX_DATA_3 0xa0b1 + MX6SX_PAD_RGMII2_TX_CTL__ENET2_TX_EN 0xa0b1 + MX6SX_PAD_RGMII2_RXC__ENET2_RX_CLK 0x3081 + MX6SX_PAD_RGMII2_RD0__ENET2_RX_DATA_0 0x3081 + MX6SX_PAD_RGMII2_RD1__ENET2_RX_DATA_1 0x3081 + MX6SX_PAD_RGMII2_RD2__ENET2_RX_DATA_2 0x3081 + MX6SX_PAD_RGMII2_RD3__ENET2_RX_DATA_3 0x3081 + MX6SX_PAD_RGMII2_RX_CTL__ENET2_RX_EN 0x3081 + >; + }; + pinctrl_i2c2_1: i2c2grp-1 { fsl,pins = < MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1