From patchwork Thu Oct 18 18:19:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 986102 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="lkSR8fcF"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 42bcls5svyz9s4s for ; Fri, 19 Oct 2018 05:20:09 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727439AbeJSCWU (ORCPT ); Thu, 18 Oct 2018 22:22:20 -0400 Received: from mail-eopbgr50072.outbound.protection.outlook.com ([40.107.5.72]:18976 "EHLO EUR03-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727188AbeJSCWU (ORCPT ); Thu, 18 Oct 2018 22:22:20 -0400 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:X-MS-Exchange-SenderADCheck; bh=ENEzh6pXpSpRTbGSHdWYaIpiA89O6Lw0NtVHI2wPj4I=; b=lkSR8fcFPBCIn8dwKgAFcQtnsKZ1IfCIXFKVgDf97lrox/sFxlnTihUMpDzQhwUTchVcG0ymeVU8Jp4X3GhaoDxICQHDQrkLCYQ9PvI6AZqqpHYJ8dkwgn7xIKagDsP0ICKmbo4DpjgbJTtaSbV/PswMqW3tGF9UNaglzknXS18= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.126.21) by AM0PR04MB5249.eurprd04.prod.outlook.com (20.177.42.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.26; Thu, 18 Oct 2018 18:19:43 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::25a0:3167:d718:91c1]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::25a0:3167:d718:91c1%3]) with mapi id 15.20.1228.033; Thu, 18 Oct 2018 18:19:43 +0000 From: "A.s. Dong" To: "linux-arm-kernel@lists.infradead.org" CC: "dongas86@gmail.com" , "kernel@pengutronix.de" , "shawnguo@kernel.org" , Fabio Estevam , "robh+dt@kernel.org" , "catalin.marinas@arm.com" , "will.deacon@arm.com" , dl-linux-imx , "A.s. Dong" , Mark Rutland , "devicetree@vger.kernel.org" Subject: [PATCH V3 7/8] arm64: dts: imx: add imx8qxp mek support Thread-Topic: [PATCH V3 7/8] arm64: dts: imx: add imx8qxp mek support Thread-Index: AQHUZw8knY1r48QAm0ernAVNGbxQ8Q== Date: Thu, 18 Oct 2018 18:19:43 +0000 Message-ID: <1539886483-15775-8-git-send-email-aisheng.dong@nxp.com> References: <1539886483-15775-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1539886483-15775-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0PR01CA0063.apcprd01.prod.exchangelabs.com (2603:1096:203:a6::27) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:66::21) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR04MB5249; 6:zw28oLtRDhAJUMPTPZwe9T9xQzLDTpUMZPu1zEZtXvJTJiORVH28jxZu0NxkPSorYFLmy16uusNb/Lm8eH8znl0HNG4sGtYoXbax6M+/6+PBuUZmwGDQh9yTAJWPOtsOYiCK+4xi3sDRgasQDdvKF7jyRNGDAO8AwuqpK0fTWFcA0CsaNQdov8STD8Q07bp+U3g5JAHvL/UlUD3+LMNbClHfmQF133+eb88wmn9vMkLcyYv4TbUXC8kVA+dXugHiU0Dmyyw3Re/cBpULBYv6r5qR7JOGff1I4Q9gSMj/oY21qDPWzs2y5xMG0n93dVEAtbWmBQw89MHIh6n8NPdeQe7oVoT24GSgDlcrMcmYQH6QtlA3Mypfj1IZh3gFF3zLXKBtdPOb+BsrA/S+qJk9EXi+L1yGxn4GJOh+Yq3QSV+6ZZ2GJRG1ZOXwjTJr9OvcdLIKJxDODOFMtlEbzpUjEg==; 5:xpR1NbYBK4H91Yq6+pKvk9WaRKgXhT7LnfHpCCkDjRJhnjZxSYxhR+XTuC4/0PaeUJTOASr6fPwOs8aHdtOK+pwv0a0m/bU8jFU76c9MtsY0vH7Fkd27RzGsPGV1KzzPTkjTd2xGeBRWBgbmLVGO+f9+MIMUk3C4/TvKRancjtI=; 7:Qo7fJuWfDY2vjePH6lTCu9Y48BiuNODGRXRO99RdfBacYB/2s5oZ0c6Kn0gvF1w755ZqFsnoASeZCd9/b2kb9n6NO3/getWc569xJ9N2cIEhykjWR2sVhiujIp39U8uavY1qTBTSktD3hVsYv4hfO+srmrrUdoGj00UJjSE4IR65PxMziJ4YKoilsYf5nRFPAIYbXFCe5TYd24+BKT1YUQdCzzx+bgo5iffA7G3cMr6dxUNUR9PFBvawTEjQ/4k1 x-ms-office365-filtering-correlation-id: 61bac2cd-ba00-499a-faaa-08d6352646ef x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB5249; x-ms-traffictypediagnostic: AM0PR04MB5249: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(9452136761055)(180628864354917)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231355)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149066)(150057)(6041310)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(20161123564045)(20161123562045)(201708071742011)(7699051)(76991095); SRVR:AM0PR04MB5249; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB5249; x-forefront-prvs: 08296C9B35 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(366004)(346002)(376002)(396003)(39860400002)(189003)(199004)(2616005)(86362001)(2501003)(11346002)(476003)(446003)(2351001)(106356001)(6506007)(14444005)(256004)(4326008)(6512007)(105586002)(26005)(81166006)(575784001)(386003)(2906002)(508600001)(186003)(2900100001)(486006)(8676002)(97736004)(3846002)(5250100002)(6116002)(14454004)(81156014)(102836004)(25786009)(6436002)(6916009)(36756003)(52116002)(68736007)(8936002)(76176011)(50226002)(99286004)(305945005)(5640700003)(71200400001)(53936002)(7736002)(71190400001)(39060400002)(66066001)(5660300001)(316002)(6486002)(54906003)(32563001)(414714003)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5249; H:AM0PR04MB4211.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: bbvJcrjYBAvALcnVNGVdH6h8VbXRTxRxntB9qmAkjnw9Zk2lf8CD4IzyAoi1CK+zJz4fIKhJ4DdD3hKElCkInMD3vMP5JRw/UQgnwvBGSeiaN9uDUgXEhkC1GZpHZtrECWhQZ50mZElhmE7F7qaRWNl2US4B9Z0IAz+QwuqW8QvWUIZcr7xABqiIPKyKyqwuF05RZak/sOImN+W/TwFxxA2SqlqhDKaovPSLVkFQFlfLScXnV2D1lGt8e+JcQ1xRb6mn/DKRfP3xSAFkhiLIxZ6r4zNs4cLLe+mW43qQh4c4jpDQ+uamdU+hHF1lHfe8k9eUaH9D0NNlFYIjfJK0WD7hGpRFsteq4X2FaYzx3tI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 61bac2cd-ba00-499a-faaa-08d6352646ef X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Oct 2018 18:19:43.7657 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5249 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org i.MX 8QuadXPlus is a quad (4x) Cortex-A35 proccessor with powerful graphic and multimedia features. This patch adds imx8qxp mek board support. Cc: Rob Herring Cc: Mark Rutland Cc: devicetree@vger.kernel.org Cc: Shawn Guo Cc: Sascha Hauer Cc: Fabio Estevam Signed-off-by: Dong Aisheng --- v2->v3: * Pad names update * move memory node to here * add no-sd and no-sdio under emmc node --- Documentation/devicetree/bindings/arm/fsl.txt | 4 + arch/arm64/boot/dts/freescale/Makefile | 1 + arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 141 ++++++++++++++++++++++++++ 3 files changed, 146 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-mek.dts diff --git a/Documentation/devicetree/bindings/arm/fsl.txt b/Documentation/devicetree/bindings/arm/fsl.txt index baeb1fc..704472b 100644 --- a/Documentation/devicetree/bindings/arm/fsl.txt +++ b/Documentation/devicetree/bindings/arm/fsl.txt @@ -97,6 +97,10 @@ i.MX7 SabreSD Board Required root node properties: - compatible = "fsl,imx7d-sdb", "fsl,imx7d"; +i.MX8QXP MEK Board +Required root node properties: + - compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp"; + Generic i.MX boards ------------------- diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index 86e18ad..cff87f3 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -13,3 +13,4 @@ dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-rdb.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2080a-simu.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-qds.dtb dtb-$(CONFIG_ARCH_LAYERSCAPE) += fsl-ls2088a-rdb.dtb +dtb-$(CONFIG_SOC_IMX8QXP) += imx8qxp-mek.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts new file mode 100644 index 0000000..6087ead --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -0,0 +1,141 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2017~2018 NXP + */ + +/dts-v1/; + +#include "imx8qxp.dtsi" + +/ { + model = "Freescale i.MX8QXP MEK"; + compatible = "fsl,imx8qxp-mek", "fsl,imx8qxp"; + + chosen { + stdout-path = &dma_lpuart0; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x00000000 0x80000000 0 0x40000000>; + }; + + reg_usdhc2_vmmc: usdhc2-vmmc { + compatible = "regulator-fixed"; + regulator-name = "SD1_SPWR"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; +}; + +&dma_lpuart0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lpuart0>; + status = "okay"; +}; + +&fec1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_fec1>; + phy-mode = "rgmii-id"; + phy-handle = <ðphy0>; + fsl,magic-packet; + status = "okay"; + + mdio { + #address-cells = <1>; + #size-cells = <0>; + + ethphy0: ethernet-phy@0 { + compatible = "ethernet-phy-ieee802.3-c22"; + at803x,eee-disabled; + at803x,vddio-1p8v; + reg = <0>; + }; + + ethphy1: ethernet-phy@1 { + compatible = "ethernet-phy-ieee802.3-c22"; + at803x,eee-disabled; + at803x,vddio-1p8v; + reg = <1>; + }; + }; +}; + +&usdhc1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc1>; + bus-width = <8>; + no-sd; + no-sdio; + non-removable; + status = "okay"; +}; + +&usdhc2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usdhc2>; + bus-width = <4>; + vmmc-supply = <®_usdhc2_vmmc>; + cd-gpios = <&lsio_gpio4 22 GPIO_ACTIVE_LOW>; + wp-gpios = <&lsio_gpio4 21 GPIO_ACTIVE_HIGH>; + status = "okay"; +}; + +&iomuxc { + pinctrl_fec1: fec1grp { + fsl,pins = < + IMX8QXP_ENET0_MDC_CONN_ENET0_MDC 0x06000020 + IMX8QXP_ENET0_MDIO_CONN_ENET0_MDIO 0x06000020 + IMX8QXP_ENET0_RGMII_TX_CTL_CONN_ENET0_RGMII_TX_CTL 0x06000020 + IMX8QXP_ENET0_RGMII_TXC_CONN_ENET0_RGMII_TXC 0x06000020 + IMX8QXP_ENET0_RGMII_TXD0_CONN_ENET0_RGMII_TXD0 0x06000020 + IMX8QXP_ENET0_RGMII_TXD1_CONN_ENET0_RGMII_TXD1 0x06000020 + IMX8QXP_ENET0_RGMII_TXD2_CONN_ENET0_RGMII_TXD2 0x06000020 + IMX8QXP_ENET0_RGMII_TXD3_CONN_ENET0_RGMII_TXD3 0x06000020 + IMX8QXP_ENET0_RGMII_RXC_CONN_ENET0_RGMII_RXC 0x06000020 + IMX8QXP_ENET0_RGMII_RX_CTL_CONN_ENET0_RGMII_RX_CTL 0x06000020 + IMX8QXP_ENET0_RGMII_RXD0_CONN_ENET0_RGMII_RXD0 0x06000020 + IMX8QXP_ENET0_RGMII_RXD1_CONN_ENET0_RGMII_RXD1 0x06000020 + IMX8QXP_ENET0_RGMII_RXD2_CONN_ENET0_RGMII_RXD2 0x06000020 + IMX8QXP_ENET0_RGMII_RXD3_CONN_ENET0_RGMII_RXD3 0x06000020 + >; + }; + + pinctrl_lpuart0: lpuart0grp { + fsl,pins = < + IMX8QXP_UART0_RX_ADMA_UART0_RX 0x06000020 + IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020 + >; + }; + + pinctrl_usdhc1: usdhc1grp { + fsl,pins = < + IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041 + IMX8QXP_EMMC0_CMD_CONN_EMMC0_CMD 0x00000021 + IMX8QXP_EMMC0_DATA0_CONN_EMMC0_DATA0 0x00000021 + IMX8QXP_EMMC0_DATA1_CONN_EMMC0_DATA1 0x00000021 + IMX8QXP_EMMC0_DATA2_CONN_EMMC0_DATA2 0x00000021 + IMX8QXP_EMMC0_DATA3_CONN_EMMC0_DATA3 0x00000021 + IMX8QXP_EMMC0_DATA4_CONN_EMMC0_DATA4 0x00000021 + IMX8QXP_EMMC0_DATA5_CONN_EMMC0_DATA5 0x00000021 + IMX8QXP_EMMC0_DATA6_CONN_EMMC0_DATA6 0x00000021 + IMX8QXP_EMMC0_DATA7_CONN_EMMC0_DATA7 0x00000021 + IMX8QXP_EMMC0_STROBE_CONN_EMMC0_STROBE 0x00000041 + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + IMX8QXP_USDHC1_CLK_CONN_USDHC1_CLK 0x06000041 + IMX8QXP_USDHC1_CMD_CONN_USDHC1_CMD 0x00000021 + IMX8QXP_USDHC1_DATA0_CONN_USDHC1_DATA0 0x00000021 + IMX8QXP_USDHC1_DATA1_CONN_USDHC1_DATA1 0x00000021 + IMX8QXP_USDHC1_DATA2_CONN_USDHC1_DATA2 0x00000021 + IMX8QXP_USDHC1_DATA3_CONN_USDHC1_DATA3 0x00000021 + IMX8QXP_USDHC1_VSELECT_CONN_USDHC1_VSELECT 0x00000021 + >; + }; +};