From patchwork Tue Apr 24 02:05:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10358481 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 50609601D3 for ; Tue, 24 Apr 2018 02:12:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CD3028D15 for ; Tue, 24 Apr 2018 02:12:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FFFD28D51; Tue, 24 Apr 2018 02:12:14 +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 A49CC28D15 for ; Tue, 24 Apr 2018 02:12:13 +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=9ymw5rTOB87yxnHQC6s46l7BRtUAUe1aP/LjNZ0i8zU=; b=SP/piXs7/St4hL aOWyjUJCUO3o+oHmCwGKH2cQvcdls4L0Ns1xHt9W8q5IbS+5E5Ah4jgfw3D5dnaFvOq8bGJBMg68h DmR1mIaxUYiaaaEHgAIf0HmHi/Kp9iO8NXNEMBcN/ZmWxKjqaDR11dkIhiOulSXri8T6VSzoOw8YE rQL57h+iTWexxf91CeVx00lNUCSg009d51uZGYvuNW0F0sXwDks6DEgv62InLGv29za7e7tPBvHZq Iq7RHrq86gE3MkhB9S1AnwR8AuXQUsKCZYYP7G1GuguoV1NNQJ32H/dRSNL3kPgA9Zt60mxuno8dK MLiMG2hgEdOAPftCdN/A==; 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 1fAnR4-0004h9-OV; Tue, 24 Apr 2018 02:12:02 +0000 Received: from mail-eopbgr40066.outbound.protection.outlook.com ([40.107.4.66] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAnOf-0002QO-EV for linux-arm-kernel@lists.infradead.org; Tue, 24 Apr 2018 02:09:35 +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=v/ibo9nj6q7q4/ImRmszrg5+RaEIAYlXZtHCCVKUx+g=; b=D4oHkfcwQjQyaNFIoYKREPF2IpodY0DWstiByw4Ia7nW6iuY4N0rVej3LpX6W6JjzuqL9K3KXAiAo4In6iKtTNa2vMWLzXwWUvAze5jULFRL13itN8nLs0u5qnKbv3At8lWLaoLOfRy1OpcKaS9CZKH8CsQtCfYHjezdwrZhjAY= 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 AM3PR04MB1315.eurprd04.prod.outlook.com (2a01:111:e400:586e::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.13; Tue, 24 Apr 2018 02:09:21 +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 V2 4/5] ARM: dts: imx6sx-sabreauto: add fec support Date: Tue, 24 Apr 2018 10:05:00 +0800 Message-Id: <1524535501-8567-4-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524535501-8567-1-git-send-email-Anson.Huang@nxp.com> References: <1524535501-8567-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2P15301CA0023.APCP153.PROD.OUTLOOK.COM (2603:1096:202:1::33) To AM3PR04MB1315.eurprd04.prod.outlook.com (2a01:111:e400:586e::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM3PR04MB1315; X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1315; 3:iscLxewjAe/zUc+wuyNfGO5PliXjP5SmVQWACVitSsjRTPspdTAF3j8E8jtttVSqlUC3es1HCeJV9N2FiE+PpxEquGIFPXpcrYOSAINnwlu6JHakeiI7Dl2eGRDnbHeYWZ5VuvrgegB5YtqLu89VPPp7WF3runSHmsr1HzPoEnOU3taNWmkoqN3szMfTIL0tgznSh0pLSTgoy9fxIGXTjpbaqcvsh6jeNhc3pxxPxwoh6hS4mhd8KXS4xv4o363i; 25:LeawyoRbNJQhSGp/2Q2huRg+nyHL0T3fO7iu++oBo0VO9MZDGj5LAbpotNgJyYzL4KRtv4q44wajl0YU1MWMabw2ElXML1L3ToFmPN3wdtLIMc0p19tTFYw5INfqsN3i20jp86+OEjXnh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sE7574WuneLOV+UrXkSsiIBq2i/kYQeG+UppI+FQXJ+9LedFQBbg5wQXqmk+rYbdxIw38ihKneOkl/R6QUl5OKywS0zxBgxaNRhPVqKjGZ9LT2AgydiPEcYhs0P4JHtSDKdt1QOdS2uIGZ/JBWY1JFck+ZNljw/Jq9h9S7WaPO+rXwpfKUSFCeCealUnw56sW2I0RB6qRqIFcU6Ye4ppDSId+72FLK6VIknx7jhLm/rN2DgnC+sua6C9AmUrn4oWJZu7PB 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)(10201501046)(93006095)(93001095)(3002001)(3231232)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:AM3PR04MB1315; BCL:0; PCL:0; RULEID:; SRVR:AM3PR04MB1315; X-Forefront-PRVS: 0652EA5565 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(366004)(39380400002)(39860400002)(376002)(6486002)(956004)(305945005)(7736002)(4326008)(50226002)(86362001)(6666003)(8936002)(25786009)(575784001)(47776003)(66066001)(8676002)(81166006)(50466002)(478600001)(5660300001)(2906002)(36756003)(3846002)(316002)(53936002)(6512007)(16586007)(48376002)(6116002)(386003)(6506007)(52116002)(26005)(76176011)(446003)(11346002)(2616005)(476003)(186003)(16526019)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM3PR04MB1315; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM3PR04MB1315; 23:4LTRevALJMORoWnC8zyT6iMt2zaYGRbONMlbQwcqm?= =?us-ascii?Q?d5FFkoatE7HtFZbM0SOMRMRQkMH5b19II9zB+ttY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DOtlZz29SaHuhy7RcefM3fHluso3HA+VkS1qksq+BLU4i0ASa6zdAV+/sdG7bdU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM3PR04MB1315; 7:rGNM3FPsHvIgZi9/Q44sX87nEqk5+OA4uSSBX7ya69ehysZslA4lqlO+yKnL9OCKp6LD5f7jyWXwgaZRqn+KjggRRlob39iREDHM6iRWNKNnAMZZlqijUOq0FLoI8HSPYOd0FfOp8UuNht4SXePFmR6FoZgEhAqjXdBCxhz5GcNwR99YoyfAqiKT4KlwL6o3GbScIxETvfy4PfQRZZy+Z/wKcrKLhR4mXHYLgfDyGZURBZXqqZzs9zza94VWx58w X-MS-Office365-Filtering-Correlation-Id: 3064f9b1-935a-4214-be29-08d5a9886741 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Apr 2018 02:09:21.6649 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3064f9b1-935a-4214-be29-08d5a9886741 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR04MB1315 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180423_190933_559262_A362F772 X-CRM114-Status: GOOD ( 11.70 ) 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 --- changes since V1: remove unused property "pinctrl-assert-gpios" on fec1. arch/arm/boot/dts/imx6sx-sabreauto.dts | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 812f40b..fdc642f 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -41,6 +41,39 @@ clock-frequency = <24576000>; }; +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet1_1>; + phy-mode = "rgmii"; + phy-handle = <ðphy1>; + 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 +108,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