From patchwork Sat Aug 31 11:07:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tarang Raval X-Patchwork-Id: 13786049 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0E26DCD1293 for ; Sat, 31 Aug 2024 11:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4UZDMQ5g5GOVCIglxpUGpawfYQcsaZgh0kem40pf730=; b=IwT5W2MJCLgHFpdJmnDRniW1NZ 2wRrR2Mlal/zZvt6q8rXKV+js1EWfqSqQHRi2/bM2lIPsEiNxRmpkatDAeObwPxrVmbMOBS3pQcPj aWhejlmuDoDniorNMwgaX+3MNlEZp2mCwT+7laMP2wBMZsT8U823eq/mPSszAtX61K6yRpOK7IuQh ChJSW3hVpAyamknNMj0+MwYtl/QPL2fjyPHGG2Ovf27L56jhqfd1czojICaqwfJ/R627prrGGEXIZ CSAj4YZLuQiQ7At5ILdDstsmafCKqZBebE3FtIL2isVDEJLae2PXIs+Qxs9Ay2IHrj4DpEBpwjr7k gudLrPxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skM0c-00000009Bp8-0u3o; Sat, 31 Aug 2024 11:11:10 +0000 Received: from mail-bmxind01on2071c.outbound.protection.outlook.com ([2a01:111:f403:2021::71c] helo=IND01-BMX-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skLyv-00000009BXl-0hjA for linux-arm-kernel@lists.infradead.org; Sat, 31 Aug 2024 11:09:26 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CB6djB9xFvzu+/O6vTbZXaE9VyDYvBHMaGt6tHLdsLwN+AcO2JuvwCzWpHv1gu9mf/vVo5/guMSKEwn+3MPx3/+YzYV7RG3XuvVHA7jpKrtmTeUogY3JYQV4Vs8D7dBkHpRPpKGvmcq1dCCwW4HPTuPZY/yZtqe1+fZ3daBmaBXNmkz4GdYzNup+rx6ZCg9wKbJKtZqEit7syH9GT6kRWbezF65Ej7ebR+YuVhy65zedzihXcCZTM6VDqFcEXbbZOWjJ3/MdMHg4exFUEtr4WeZSSAGr5Lz3Ys6gZBTyrn9TCvngNzIJRSPGKY1vVituguyyJ36n+XzsmJ42lStvQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=4UZDMQ5g5GOVCIglxpUGpawfYQcsaZgh0kem40pf730=; b=qrx2o0KpM/2mswjDuKg7JrQ8B7PJ77iY7yGYN78no9gSlbM5Nr3Dd8xY/WlGaiXZxAxfeO8+dW6YBN9lXLjdbLw2sgALOoiomH90b7qWK6TC2ZwhOOKKT51S/gMuhL+clAB3Q3YGTNBFyeiuB18nCCtmbzPwwmc3LBp/TDC+NapkCEFwBkAMAnSvRgXKzThGSzVoy0j3ycS6zoC1eDR/5xDTUGjBfi1VWPEx3nifXbki4y0YiF1lCU1TF1L/WeSrczvoHrv96VdhYY5UHfWQZK8eg6YZ0AfHZ3O/X0sIunAIJ8iiJz4lvz7D8dvpPbrGJ4ZAHlkQB1HKwM7YGjuM/Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=siliconsignals.io; dmarc=pass action=none header.from=siliconsignals.io; dkim=pass header.d=siliconsignals.io; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=siliconsignals.io; Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) by PN2P287MB1765.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:1b1::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.21; Sat, 31 Aug 2024 11:09:05 +0000 Received: from PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f]) by PN3P287MB1829.INDP287.PROD.OUTLOOK.COM ([fe80::58ec:81a0:9454:689f%5]) with mapi id 15.20.7918.019; Sat, 31 Aug 2024 11:09:05 +0000 From: Tarang Raval To: shawnguo@kernel.org, krzk+dt@kernel.org, robh@kernel.org, festevam@gmail.com Cc: Tarang Raval , Conor Dooley , Sascha Hauer , Pengutronix Kernel Team , Gregor Herburger , Joao Paulo Goncalves , Hiago De Franco , Hugo Villeneuve , Mathieu Othacehe , Alexander Stein , Josua Mayer , Yannic Moog , Li Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm64: dts: imx8mp-var-som-symphony: Add Variscite Symphony board and VAR-SOM-MX8MP SoM Date: Sat, 31 Aug 2024 16:37:39 +0530 Message-Id: <20240831110743.14280-2-tarang.raval@siliconsignals.io> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240831110743.14280-1-tarang.raval@siliconsignals.io> References: <20240831110743.14280-1-tarang.raval@siliconsignals.io> X-ClientProxiedBy: BM1PR01CA0148.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:68::18) To PN3P287MB1829.INDP287.PROD.OUTLOOK.COM (2603:1096:c01:199::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PN3P287MB1829:EE_|PN2P287MB1765:EE_ X-MS-Office365-Filtering-Correlation-Id: 78080063-45d0-4fe8-7383-08dcc9ad53a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: x3nhx7gAfI9B6oa922GzGJf9Ko8nyeEEu25ZItGYZ6vtsTwmSP6Qg8taxppXATqe7D+VAuOqM6kt8DJlRimzy0O3RjAKzXKGy9PQavu2VJoYUYsZMdXsyvTmqrVEI31wAWNoomfwuvlqiVVa/bMajDbblVGYDORWt3a07XU6ap5iR/tu/bDTy3Sx8VImNcB6vQuhF4+a7Dm4rb/3Ed2sj93sWXIeVSLgCcvgBTxmJ8rgM1voaq6gGM+1LXE6qKEMhh1s8Szo8RRaFgCrWfCZYWo7lak3c99pma09MuH45QGmFHfmEUmztVOcM/zqFsN4r3oE4HzHwKi/LweROKWM5oxMDpNBAWrT4vh/qwQlpt6283e4/K0LQ41Md0jiUp3yigdX+qk+WMCO7fWjtQo/xo78sYBV7ftZj+tYfa7QUDS3jjEz70WM8pfIou9/7tp6A4NJjJI4Oov09mq4w5Ce1MTcwuUfXSb1KEYLP5FRj5NY5RWE65QvZqff0tGt9gHwQFoGlyYn4RIz/MUq9El3WbtpTJaZRm2zH9W6zcfZFHFlIMbQ1gXCFOTikXZJ/cuI+bg0bFcVLxDoCzJQneXFZTrfPUy+zKDDRr2epGbRqg/AwEl4QchIQt2aGem3XMdEEo4dhfqGNrBtJX6W9O4yyTksTQs8I+hYgeDdSSprdiXOx36kSePq+ZDJOdN4TARlVSpv95D8ZjD5sLL9k/1vWFCSM4Kd9M8vV2eB0xviaJH2kuw+06Rw1PKzX46TYPX39B8iRTeYjPf+81vwO+JXUWm4DgbQ3N8l7ZFFfwSawED4Lg1Mmejvr3mF1GIqtc0+1AMdfcg5vSnuk9VbqW1oB3NQ3rZoF9baN/b9ze8/iBhjghGHkDoBldCPYlD/7B5uRxJSlPfthB27pFmf9PdI1Z39+gXQysjejZNP72cF2y0PMTF3wtuS5M3FlJu6aKN0qnzEmymQg6BHqkYaWoAxFZ+Vy5AKJKk8Zrzfw+OvfnUq0KvowJevTgVxGwyFrbUHX9QJQDMDeYVOJVXWf08pG4xMoAjN+4/W5djes/XvyfyIxG9AfZmxRXE2J72ZNzPaWFuJsHngoNkjEhCeS1MIlUR5nDW5g+t5GCCDaI3fJgS9PGYvNr5TCMofo6MXGw6s3Msw/jmAk0TqgqNXKnH6jBLkvO/BBLITOj0X7j8/sPTrixfdNPLwlGlp/F6anUyx/y9LuAI2nlUAwqjaFJIrFRarYzB7hIQDqKOLoYylNov6AsNj5axxe/c2T1mw1TlXHMRXYo0V1jKYJjtjncUtNgZngBtabFG8I/rfNzApUlXiC3kWW7hxNASFTBzH2gWuy2vvdS4O0F8fgVgyIxqZrhTgZB0JjK5G/xvyRkdle2Sqd9bzAdiwTufbAHSX0UW1jkFdMtxKa96UaxOIq5zcoQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PN3P287MB1829.INDP287.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F9aEBoXiGe8xxGNCVZqniKDzkjjKlQwQijqB5VLjLZ/vCEK6XkLjEdKNMoWoPlVtojwLjNxZFGHRR2pLWAInN0MQPIcKyWKjbKNYJNBRzdrKuTlQ4A7NJT7QfxF4SWaF5bXCWFi6w6KTzwt3KI7Aq78QfBRbFuaqIuyJZMkM3NmsfeNWXqH+D0sUGAq2kedxHnNWQ5adVOVpD8D6FVY4V6Zekvul5FyA65ZPqM9tyoAgZ+KdrRl1uPLngQapOy2WJ1X1WUYbJzTbGwfjLCrmCQdk8sgK3peSVeKSdc7sgrtqme39CIF8e6qbRbnVzfSUAq1ouZxBq6nHeotGV2muK7m4C18GQxvPosWqdZRahJY6mDLAGXCqr1F0TpUzBUrYMYfLt0pTKLb0tPDpwHh6A/3XC26NPql/pRT3C4DWqna/kY3OGK1kXww5j2exYIA9kf90VBd2okvRmqW3poRruk4auKeZZOFYGT+6AOSW/l6qn66PgaQPqL6aJ77HWbFQKtzHjl1q93OeBnTFQBBSg5+2BRH1K2K7KLs733QJMtN7EQUhYdanyeU4Ce5QV6l6gnve60wXopfUsExrcoSn3o6hL1dSZvPY7iByKSr8GErZFHQhg/Tn+m6L3dwSdxtIJfpjERsklQC14lAJ20yrcfXD9+gt6Bz/0H91r/juIhVHufAylD9wAHzmNGphvPIYgUSNzIuTkFjqpxEs6S7rjz+2z71c7Qs9FjeG+4HyrYu080SeX9dYd/xzsUrw2iVpV3iGFW1hCzGJE1uAWay7EeMtDWZmP/un3wc8+8uIAPJOi8DcYU9bbs090R2YDW43bIOH7IRM14z8UYqGBcOrTAxRdvSDsAXTVYMz3Jco5ipvEZ+if7o0awvHX58S2UVIMaYyJXs4lWAjiuSckmv2cOEO1ihF5hgqN2ocGDouqkzeubMVB8/04xrnyH+u42llDnQbNlMZJiHfXWoaTymNZfWM07GY32Xr8vucMnRsy6+XW/gr1uGOVzo114MyyOGh1uMmZqjFbEVudeZtp426Qxq6k0f8FReHmisxoDm1Eq7HmIEd3J5a+0dGe0PN+4OIQsfVbtBZYHk2rwnGKcub1NlJDvxfDSjifxy07YDsJl7/UVMqtOyv34Rk4pSXSiRItvItDxR5j/uopxipkv+9FTnMsB4HzyPrM9fnDUJ0XVgtIe+b4hgO2DFVrLz5LSWtlVbNl2ZypNQYGWJ721JWKOwRRlv0nFmwU0z/kAX93it0RBHQSOCQ9YgF1PRBHy3AWb6GoIorRDnm2AvylIAeIrkLP2RpcLcO8A096rAG8YKeTBQ3VDpFRqa3NvEGMVndMAAEwCz/LxPeQo2ow7+jcp5dHAeWvUCPjJnrWywOfLrqGMxAKJKBdMsYda/L/tLBGGLnXiOX+ZQK1BQPU6oku1CTNxGxoBjTSRXMjqC2SX9lrO8vo/cUH/r0kvjfAEYOUE3XE98OUitOc31vM0UqNmGcJkxSyFgfi9ZGi32Vc6h8dtENWXvN9KR4cvWa6mzaHWJMpbnvkVPkX76DYM9rI5q8WOBzhcwua5V43WbdbpETrSFulhl76/vdxof7gOkVDd/3FDmMRaeVBYXHctxpDkiFKrglP0W9uxyj3h4+4FQ= X-OriginatorOrg: siliconsignals.io X-MS-Exchange-CrossTenant-Network-Message-Id: 78080063-45d0-4fe8-7383-08dcc9ad53a7 X-MS-Exchange-CrossTenant-AuthSource: PN3P287MB1829.INDP287.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Aug 2024 11:09:05.0866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 7ec5089e-a433-4bd1-a638-82ee62e21d37 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: O99DuCMtkx14VAULBP5aKq1YN6zLHv50tMLxL4ZNmOv/RBbqHvPw8cDEP97H/ceYsYaNHNKXt0YwSaJo+SUpxkeyfp6uXl7cHD1pAcBosa0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PN2P287MB1765 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240831_040925_242577_F7D204E4 X-CRM114-Status: GOOD ( 14.47 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adds the DTSI file for the Variscite VAR-SOM-MX8MP System on Module which is delivered with the Variscite Symphony Evaluation Kit. Initial support includes: - Serial console - eMMC - SD card Signed-off-by: Tarang Raval --- arch/arm64/boot/dts/freescale/Makefile | 1 + .../dts/freescale/imx8mp-var-som-symphony.dts | 11 + .../boot/dts/freescale/imx8mp-var-som.dtsi | 361 ++++++++++++++++++ 3 files changed, 373 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-var-som-symphony.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-var-som.dtsi diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index bd443c2bc5a4..03db6aef757d 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -177,6 +177,7 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-hdmi.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-lt6.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-skov-revb-mi1010ait-1cp1.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-tqma8mpql-mba8mpxl.dtb +dtb-$(CONFIG_ARCH_MXC) += imx8mp-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw71xx-2x.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw72xx-2x.dtb dtb-$(CONFIG_ARCH_MXC) += imx8mp-venice-gw73xx-2x.dtb diff --git a/arch/arm64/boot/dts/freescale/imx8mp-var-som-symphony.dts b/arch/arm64/boot/dts/freescale/imx8mp-var-som-symphony.dts new file mode 100644 index 000000000000..36d3eb865202 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-var-som-symphony.dts @@ -0,0 +1,11 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 Variscite Ltd. + */ + +#include "imx8mp-var-som.dtsi" + +/ { + model = "Variscite VAR-SOM-MX8M-PLUS on Symphony-Board"; + compatible = "variscite,var-som-mx8mp-symphony", "variscite,var-som-mx8mp", "fsl,imx8mp"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8mp-var-som.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-var-som.dtsi new file mode 100644 index 000000000000..0b08484e8319 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8mp-var-som.dtsi @@ -0,0 +1,361 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2024 Variscite Ltd. + * + * Author: Tarang Raval + */ + +/dts-v1/; + +#include +#include +#include +#include "imx8mp.dtsi" + +/ { + model = "Variscite VAR-SOM-MX8M Plus module"; + compatible = "variscite,imx8mp-var-som", "fsl,imx8mp"; + + chosen { + stdout-path = &uart2; + }; + + gpio-leds { + compatible = "gpio-leds"; + status = "okay"; + + led-0 { + function = LED_FUNCTION_POWER; + gpios = <&pca9534 0 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + }; + + memory@40000000 { + device_type = "memory"; + reg = <0x0 0x40000000 0 0xc0000000>, + <0x1 0x00000000 0 0xc0000000>; + }; + + + reg_usdhc2_vmmc: regulator-usdhc2-vmmc { + compatible = "regulator-fixed"; + regulator-name = "VSD_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpios = <&gpio4 22 GPIO_ACTIVE_HIGH>; + enable-active-high; + startup-delay-us = <100>; + off-on-delay-us = <12000>; + }; +}; + +&A53_0 { + cpu-supply = <&buck2>; +}; + +&A53_1 { + cpu-supply = <&buck2>; +}; + +&A53_2 { + cpu-supply = <&buck2>; +}; + +&A53_3 { + cpu-supply = <&buck2>; +}; + +&i2c1 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c1>; + status = "okay"; + + pmic@25 { + compatible = "nxp,pca9450c"; + reg = <0x25>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pmic>; + interrupt-parent = <&gpio5>; + interrupts = <4 IRQ_TYPE_LEVEL_LOW>; + + regulators { + buck1: BUCK1 { + regulator-name = "BUCK1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + }; + + buck2: BUCK2 { + regulator-name = "BUCK2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <2187500>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <3125>; + nxp,dvs-run-voltage = <950000>; + nxp,dvs-standby-voltage = <850000>; + }; + + buck4: BUCK4 { + regulator-name = "BUCK4"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck5: BUCK5 { + regulator-name = "BUCK5"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + buck6: BUCK6 { + regulator-name = "BUCK6"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3400000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1: LDO1 { + regulator-name = "LDO1"; + regulator-min-microvolt = <1600000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo2: LDO2 { + regulator-name = "LDO2"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1150000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3: LDO3 { + regulator-name = "LDO3"; + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4: LDO4 { + regulator-name = "LDO4"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + + ldo5: LDO5 { + regulator-name = "LDO5"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + }; + }; + }; +}; + +&i2c3 { + clock-frequency = <400000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + /* GPIO expander */ + pca9534: gpio@20 { + compatible = "nxp,pca9534"; + reg = <0x20>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pca9534>; + gpio-controller; + #gpio-cells = <2>; + interrupt-parent = <&gpio1>; + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; + wakeup-source; + + usb3-sata-sel-hog { + gpio-hog; + gpios = <4 0>; + output-low; + line-name = "usb3_sata_sel"; + }; + }; +}; + +/* Console */ +&uart2 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_uart2>; + status = "okay"; +}; + +/* SD-card */ +&usdhc2 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_gpio>; + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_gpio>; + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_gpio>; + cd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; + vmmc-supply = <®_usdhc2_vmmc>; + bus-width = <4>; + status = "okay"; +}; + +/* eMMC */ +&usdhc3 { + pinctrl-names = "default", "state_100mhz", "state_200mhz"; + pinctrl-0 = <&pinctrl_usdhc3>; + pinctrl-1 = <&pinctrl_usdhc3_100mhz>; + pinctrl-2 = <&pinctrl_usdhc3_200mhz>; + bus-width = <8>; + non-removable; + status = "okay"; +}; + +&wdog1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_wdog>; + fsl,ext-reset-output; + status = "okay"; +}; + +&iomuxc { + + pinctrl_i2c1: i2c1grp { + fsl,pins = < + MX8MP_IOMUXC_SD1_DATA4__I2C1_SCL 0x400001c2 + MX8MP_IOMUXC_SD1_DATA5__I2C1_SDA 0x400001c2 + >; + }; + + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX8MP_IOMUXC_I2C3_SCL__I2C3_SCL 0x400001c2 + MX8MP_IOMUXC_I2C3_SDA__I2C3_SDA 0x400001c2 + >; + }; + + pinctrl_pca9534: pca9534grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO15__GPIO1_IO15 0xc0 + >; + }; + + pinctrl_pmic: pmicgrp { + fsl,pins = < + MX8MP_IOMUXC_SPDIF_RX__GPIO5_IO04 0x1c0 + >; + }; + + pinctrl_uart2: uart2grp { + fsl,pins = < + MX8MP_IOMUXC_UART2_RXD__UART2_DCE_RX 0x40 + MX8MP_IOMUXC_UART2_TXD__UART2_DCE_TX 0x40 + >; + }; + + pinctrl_usdhc2_gpio: usdhc2-gpiogrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO14__GPIO1_IO14 0x1c4 + MX8MP_IOMUXC_SAI2_RXC__GPIO4_IO22 0x10 + MX8MP_IOMUXC_SD2_CD_B__GPIO2_IO12 0xc0 + >; + }; + + pinctrl_usdhc2: usdhc2grp { + fsl,pins = < + MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190 + MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d0 + MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d0 + MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d0 + MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d0 + MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d0 + >; + }; + + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x194 + MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d4 + MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d4 + MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d4 + MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d4 + MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d4 + >; + }; + + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { + fsl,pins = < + MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x196 + MX8MP_IOMUXC_SD2_CMD__USDHC2_CMD 0x1d6 + MX8MP_IOMUXC_SD2_DATA0__USDHC2_DATA0 0x1d6 + MX8MP_IOMUXC_SD2_DATA1__USDHC2_DATA1 0x1d6 + MX8MP_IOMUXC_SD2_DATA2__USDHC2_DATA2 0x1d6 + MX8MP_IOMUXC_SD2_DATA3__USDHC2_DATA3 0x1d6 + >; + }; + + pinctrl_usdhc3: usdhc3grp { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x190 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d0 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d0 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d0 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d0 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d0 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d0 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d0 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d0 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d0 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x190 + >; + }; + + pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x194 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d4 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d4 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d4 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d4 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d4 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d4 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d4 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d4 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d4 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x194 + >; + }; + + pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { + fsl,pins = < + MX8MP_IOMUXC_NAND_WE_B__USDHC3_CLK 0x196 + MX8MP_IOMUXC_NAND_WP_B__USDHC3_CMD 0x1d6 + MX8MP_IOMUXC_NAND_DATA04__USDHC3_DATA0 0x1d6 + MX8MP_IOMUXC_NAND_DATA05__USDHC3_DATA1 0x1d6 + MX8MP_IOMUXC_NAND_DATA06__USDHC3_DATA2 0x1d6 + MX8MP_IOMUXC_NAND_DATA07__USDHC3_DATA3 0x1d6 + MX8MP_IOMUXC_NAND_RE_B__USDHC3_DATA4 0x1d6 + MX8MP_IOMUXC_NAND_CE2_B__USDHC3_DATA5 0x1d6 + MX8MP_IOMUXC_NAND_CE3_B__USDHC3_DATA6 0x1d6 + MX8MP_IOMUXC_NAND_CLE__USDHC3_DATA7 0x1d6 + MX8MP_IOMUXC_NAND_CE1_B__USDHC3_STROBE 0x196 + >; + }; + + pinctrl_wdog: wdoggrp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO02__WDOG1_WDOG_B 0xc6 + >; + }; +};