Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3643180pxb; Fri, 11 Feb 2022 04:45:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaSDg8MSGnVIg2CKEP+3wGm023vMAL4u/SctwM+6NdkQHqcDP/xBZjgLo+1QjBYQKYMPfc X-Received: by 2002:a17:90a:bf08:: with SMTP id c8mr156103pjs.227.1644583534186; Fri, 11 Feb 2022 04:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644583534; cv=none; d=google.com; s=arc-20160816; b=JugG4jDeGxDCZqEADtUPAxigAwaWEfnGqCsomuRonbKfD6fIu3gzzrj94cd1fRi7d9 oTRcT+vVCHq/zkfqlP75XVySl5IX7e2LGDmT+UHLcFtpmfak2rOiduJBR7AmQdANuTah IV4HA3oWBRbOQqMlIQSsDzW7KnhWUskpN+3o5RWGKJs/ddqXPTISIl6W6FMUNUDDWhCG Qdx3LrSOhn/SfaJ2gNCNv/cTT1aXkafB/GZ7IAHys5qY8hPPSYfw2I2gUTzsFk2O6tlb QtD/o60wrMoFr3oJwW/YxiaiIzcpPRPkgMxkKSvC5waHD2JZ/dzjUqllEpSjlkbqanrf cGrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=tQ8JeFT9PrAZqsmcB+GBRJkubVjF3sE3Fg4q/wdjy54=; b=jmYU1jBMaI2/eI/t7o3axuC/J53cCb8HHe1Y9h6y3wt8JqLs5yMzD3WlH3CfDXj6IV cC5wKDGA7DW0NTSUlMBeaq2ii0GiL8dMMAjMpyybqhjb+xZ+NgChbmu1t8tpAxmzTIx9 Db6TszhBOzwjsy737enBOrOgY5Ug7ns4m7rAQ0Uq5rGF6Dz/E8yoRT4TkF1+nHF+G9P1 5AtjVwgtp+pCEIfTVHhwGi4fzko5A1xy00zAf8osKPQKUJzuKLbedTPLKZEE3sQcRBZg ZomJ+JnfHuFPPRm7JJh4UxFwHPzDsP4KbS4/LXg7tDHTIsGXIOBtc6K6Sf9QGA0A0Ekv XN0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIP2qBrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s79si764685pgs.835.2022.02.11.04.45.22; Fri, 11 Feb 2022 04:45:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rIP2qBrL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348047AbiBKIjm (ORCPT + 99 others); Fri, 11 Feb 2022 03:39:42 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:33348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344089AbiBKIjg (ORCPT ); Fri, 11 Feb 2022 03:39:36 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D40461BF; Fri, 11 Feb 2022 00:39:32 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39699B828B1; Fri, 11 Feb 2022 08:39:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 710D8C340E9; Fri, 11 Feb 2022 08:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644568770; bh=5AM5cBOeGzvl8pq+OC8ZWMwvMk6Fwx304ifoNuzCK4w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rIP2qBrL2BA5blFCU2VTHbFNiIBY8UgxRsBbJFExPfdYDk3AuwHJcLHShI3IHtI/e 7TbG5BWul6m5mC9V7MXibq1VJ7BPJirLMilobgd467KG07BWfgAivVCW8NdWvOXhwq A6AJ+DKHzWWT0ykHTT6qxY9VyFw0jNpHm7N6+bI7yw7bL3v+PxT/hZkqhOza8sSpVC hHLDGUu6TQyTNosZX3TlwoiXDDrZUFjjK+Cu7dKIYgU/pPfyigPi1zqTBcHPQVkF5W VBn4BBheGgHBl6oN/QHszeMEjdoLoceyNkixxC+7IpuDCkzBUe84ov49g8jYAhNCKY rqOiwUl57PX3w== Date: Fri, 11 Feb 2022 16:39:20 +0800 From: Shawn Guo To: Marcel Ziswiler Cc: linux-arm-kernel@lists.infradead.org, Marek Vasut , Marcel Ziswiler , Krzysztof Kozlowski , Alex Marginean , Alexander Stein , Ariel D'Alessandro , Arnd Bergmann , Chester Lin , Dong Aisheng , Fabio Estevam , Frank Rowand , Jagan Teki , NXP Linux Team , Olof Johansson , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Tim Harvey , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 12/12] arm64: dts: freescale: add initial support for verdin imx8m mini Message-ID: <20220211083916.GP4909@dragon> References: <20220128160100.1228537-1-marcel@ziswiler.com> <20220128160100.1228537-13-marcel@ziswiler.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220128160100.1228537-13-marcel@ziswiler.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 28, 2022 at 05:01:00PM +0100, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > This patch adds the device tree to support Toradex Verdin iMX8M Mini a > computer on module which can be used on different carrier boards. > > The module consists of an NXP i.MX 8M Mini family SoC (either i.MX 8M > Mini Quad or 8M Mini DualLite), a PCA9450A PMIC, a Gigabit Ethernet PHY, > 1 or 2 GB of LPDDR4 RAM, an eMMC, a TLA2024 ADC, an I2C EEPROM, an > RX8130 RTC, an optional SPI CAN controller plus an optional Bluetooth/ > Wi-Fi module. > > Anything that is not self-contained on the module is disabled by > default. > > The device tree for the Dahlia includes the module's device tree and > enables the supported peripherals of the carrier board. > > The device tree for the Verdin Development Board includes the module's > device tree as well as the Dahlia one as it is a superset and supports > almost all peripherals available. > > So far there is no display functionality supported at all but basic > console UART, PCIe, USB host, eMMC and Ethernet and PCIe functionality > work fine. > > Signed-off-by: Marcel Ziswiler > Acked-by: Krzysztof Kozlowski > > --- > > Changes in v3: > - Rebase on top of shawnguo's for-next. > - Drop [PATCH v2 02/11] ("dt-bindings: gpio: fix gpio-hog example") as > it already got applied by Bart. > - Remove the 'pm-ignore-notify' property analogous to commit aafac22d6b23 > ("arm64: dts: imx8mm/n: Remove the 'pm-ignore-notify' property"). > - Now with PCIe support finally having landed in -next enable it as well. > - Add Krzysztof's acked-by tag. > > Changes in v2: > - Remove bootargs which will be filled in by the bootloader as requested > by Krzysztof. > - Remove the previously #ifdefed-out spi-nor as requested by Krzysztof. > - Fix capitalisation in cover-letter. > > arch/arm64/boot/dts/freescale/Makefile | 4 + > .../dts/freescale/imx8mm-verdin-dahlia.dtsi | 150 ++ > .../boot/dts/freescale/imx8mm-verdin-dev.dtsi | 67 + > .../imx8mm-verdin-nonwifi-dahlia.dts | 18 + > .../freescale/imx8mm-verdin-nonwifi-dev.dts | 18 + > .../dts/freescale/imx8mm-verdin-nonwifi.dtsi | 75 + > .../freescale/imx8mm-verdin-wifi-dahlia.dts | 18 + > .../dts/freescale/imx8mm-verdin-wifi-dev.dts | 18 + > .../dts/freescale/imx8mm-verdin-wifi.dtsi | 95 ++ > .../boot/dts/freescale/imx8mm-verdin.dtsi | 1291 +++++++++++++++++ > 10 files changed, 1754 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dahlia.dts > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dts > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi.dtsi > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dts > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dts > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi.dtsi > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > > diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile > index 6d8f0a532587..04380f2e44a2 100644 > --- a/arch/arm64/boot/dts/freescale/Makefile > +++ b/arch/arm64/boot/dts/freescale/Makefile > @@ -63,6 +63,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw72xx-0x.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw73xx-0x.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw7901.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mm-venice-gw7902.dtb > +dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-nonwifi-dahlia.dtb > +dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-nonwifi-dev.dtb > +dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-wifi-dahlia.dtb > +dtb-$(CONFIG_ARCH_MXC) += imx8mm-verdin-wifi-dev.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mn-beacon-kit.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2.dtb > dtb-$(CONFIG_ARCH_MXC) += imx8mn-bsh-smm-s2pro.dtb > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi > new file mode 100644 > index 000000000000..455127966e67 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dahlia.dtsi > @@ -0,0 +1,150 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/ { > + sound_card: sound-card { > + compatible = "simple-audio-card"; > + simple-audio-card,bitclock-master = <&dailink_master>; > + simple-audio-card,format = "i2s"; > + simple-audio-card,frame-master = <&dailink_master>; > + simple-audio-card,name = "imx8mm-wm8904"; > + simple-audio-card,routing = > + "Headphone Jack", "HPOUTL", > + "Headphone Jack", "HPOUTR", > + "IN2L", "Line In Jack", > + "IN2R", "Line In Jack", > + "Headphone Jack", "MICBIAS", > + "IN1L", "Headphone Jack"; > + simple-audio-card,widgets = > + "Microphone", "Headphone Jack", > + "Headphone", "Headphone Jack", > + "Line", "Line In Jack"; > + > + dailink_master: simple-audio-card,codec { > + clocks = <&clk IMX8MM_CLK_SAI2_ROOT>; > + sound-dai = <&wm8904_1a>; > + }; > + > + simple-audio-card,cpu { > + sound-dai = <&sai2>; > + }; > + }; > +}; > + > +/* Verdin SPI_1 */ > +&ecspi2 { > + status = "okay"; > +}; > + > +/* EEPROM on display adapter boards */ > +&eeprom_display_adapter { > + status = "okay"; > +}; > + > +/* EEPROM on Verdin Development board */ > +&eeprom_carrier_board { > + status = "okay"; > +}; > + > +&fec1 { > + status = "okay"; > +}; > + > +/* Verdin QSPI_1 */ > +&flexspi { > + status = "okay"; > +}; > + > +/* Current measurement into module VCC */ > +&hwmon { > + status = "okay"; > +}; > + > +&hwmon_temp { > + vs-supply = <®_1p8v>; > + status = "okay"; > +}; > + > +&i2c3 { > + status = "okay"; > +}; > + > +/* Verdin I2C_1 */ > +&i2c4 { > + status = "okay"; > + > + /* Audio Codec */ > + wm8904_1a: codec@1a { audio-codec for the node name. > + compatible = "wlf,wm8904"; > + AVDD-supply = <®_3p3v>; > + clocks = <&clk IMX8MM_CLK_SAI2_ROOT>; > + clock-names = "mclk"; > + CPVDD-supply = <®_3p3v>; > + DBVDD-supply = <®_3p3v>; > + DCVDD-supply = <®_3p3v>; > + MICVDD-supply = <®_3p3v>; > + reg = <0x1a>; > + #sound-dai-cells = <0>; > + }; > +}; > + > +/* Verdin PCIE_1 */ > +&pcie0 { > + status = "okay"; > +}; > + > +&pcie_phy { > + status = "okay"; > +}; > + > +/* Verdin PWM_3_DSI */ > +&pwm1 { > + status = "okay"; > +}; > + > +/* Verdin PWM_1 */ > +&pwm2 { > + status = "okay"; > +}; > + > +/* Verdin PWM_2 */ > +&pwm3 { > + status = "okay"; > +}; > + > +/* VERDIN I2S_1 */ > +&sai2 { > + status = "okay"; > +}; > + > +/* Verdin UART_3 */ > +&uart1 { > + status = "okay"; > +}; > + > +/* Verdin UART_1 */ > +&uart2 { > + status = "okay"; > +}; > + > +/* Verdin UART_2 */ > +&uart3 { > + status = "okay"; > +}; > + > +/* Verdin USB_1 */ > +&usbotg1 { > + status = "okay"; > +}; > + > +/* Verdin USB_2 */ > +&usbotg2 { > + status = "okay"; > +}; > + > +/* Verdin SD_1 */ > +&usdhc2 { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi > new file mode 100644 > index 000000000000..f35d22dc546b > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-dev.dtsi > @@ -0,0 +1,67 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +#include "imx8mm-verdin-dahlia.dtsi" > + > +/ { > + sound_card: sound-card { > + compatible = "simple-audio-card"; > + simple-audio-card,bitclock-master = <&dailink_master>; > + simple-audio-card,format = "i2s"; > + simple-audio-card,frame-master = <&dailink_master>; > + simple-audio-card,name = "imx8mm-nau8822"; > + simple-audio-card,routing = > + "Headphones", "LHP", > + "Headphones", "RHP", > + "Speaker", "LSPK", > + "Speaker", "RSPK", > + "Line Out", "AUXOUT1", > + "Line Out", "AUXOUT2", > + "LAUX", "Line In", > + "RAUX", "Line In", > + "LMICP", "Mic In", > + "RMICP", "Mic In"; > + simple-audio-card,widgets = > + "Headphones", "Headphones", > + "Line Out", "Line Out", > + "Speaker", "Speaker", > + "Microphone", "Mic In", > + "Line", "Line In"; > + > + dailink_master: simple-audio-card,codec { > + clocks = <&clk IMX8MM_CLK_SAI2_ROOT>; > + sound-dai = <&nau8822_1a>; > + }; > + > + simple-audio-card,cpu { > + sound-dai = <&sai2>; > + }; > + }; > +}; > + > +&gpio_expander_21 { > + status = "okay"; > +}; > + > +/* Verdin I2C_1 */ > +&i2c4 { > + /* Audio Codec */ > + nau8822_1a: codec@1a { Ditto > + compatible = "nuvoton,nau8822"; > + reg = <0x1a>; > + }; > +}; > + > +/* Verdin UART_1, connector X50 through RS485 transceiver */ > +&uart2 { > + linux,rs485-enabled-at-boot-time; > + rs485-rts-active-low; > + rs485-rx-during-tx; > +}; > + > +/* Limit frequency on dev board due to long traces and bad signal integrity */ > +&usdhc2 { > + max-frequency = <100000000>; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dahlia.dts b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dahlia.dts > new file mode 100644 > index 000000000000..d64ff378a152 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dahlia.dts > @@ -0,0 +1,18 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/dts-v1/; > + > +#include "imx8mm-verdin.dtsi" > +#include "imx8mm-verdin-nonwifi.dtsi" > +#include "imx8mm-verdin-dahlia.dtsi" > + > +/ { > + model = "Toradex Verdin iMX8M Mini on Dahlia Board"; > + compatible = "toradex,verdin-imx8mm-nonwifi-dahlia", > + "toradex,verdin-imx8mm-nonwifi", > + "toradex,verdin-imx8mm", > + "fsl,imx8mm"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dts b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dts > new file mode 100644 > index 000000000000..6ae71ecac8de > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi-dev.dts > @@ -0,0 +1,18 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/dts-v1/; > + > +#include "imx8mm-verdin.dtsi" > +#include "imx8mm-verdin-nonwifi.dtsi" > +#include "imx8mm-verdin-dev.dtsi" > + > +/ { > + model = "Toradex Verdin iMX8M Mini on Verdin Development Board"; > + compatible = "toradex,verdin-imx8mm-nonwifi-dev", > + "toradex,verdin-imx8mm-nonwifi", > + "toradex,verdin-imx8mm", > + "fsl,imx8mm"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi.dtsi > new file mode 100644 > index 000000000000..9aff9dde1a02 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-nonwifi.dtsi > @@ -0,0 +1,75 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +&gpio3 { > + gpio-line-names = "SODIMM_52", > + "SODIMM_54", > + "SODIMM_64", > + "SODIMM_21", > + "SODIMM_206", > + "SODIMM_76", > + "SODIMM_56", > + "SODIMM_58", > + "SODIMM_60", > + "SODIMM_62", > + "SODIMM_162", > + "SODIMM_164", > + "SODIMM_166", > + "SODIMM_168", > + "SODIMM_66", > + "SODIMM_17", > + "", > + "SODIMM_156", > + "SODIMM_160", > + "SODIMM_244", > + "SODIMM_250", > + "SODIMM_48", > + "SODIMM_44", > + "SODIMM_42", > + "SODIMM_46"; > +}; > + > +&gpio4 { > + gpio-line-names = "SODIMM_102", > + "SODIMM_90", > + "SODIMM_92", > + "SODIMM_94", > + "SODIMM_96", > + "SODIMM_100", > + "SODIMM_148", > + "SODIMM_152", > + "SODIMM_154", > + "SODIMM_174", > + "SODIMM_120", > + "SODIMM_104", > + "SODIMM_106", > + "SODIMM_108", > + "SODIMM_112", > + "SODIMM_114", > + "SODIMM_116", > + "SODIMM_150", > + "SODIMM_118", > + "", > + "SODIMM_88", > + "SODIMM_149", > + "SODIMM_147", > + "SODIMM_36", > + "SODIMM_32", > + "SODIMM_30", > + "SODIMM_34", > + "SODIMM_38", > + "SODIMM_252", > + "SODIMM_133", > + "SODIMM_135", > + "SODIMM_129"; > +}; > + > +&usdhc3 { > + bus-width = <4>; > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > + pinctrl-0 = <&pinctrl_usdhc3>; > + pinctrl-1 = <&pinctrl_usdhc3_100mhz>; > + pinctrl-2 = <&pinctrl_usdhc3_200mhz>; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dts b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dts > new file mode 100644 > index 000000000000..d424c475cba1 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dahlia.dts > @@ -0,0 +1,18 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/dts-v1/; > + > +#include "imx8mm-verdin.dtsi" > +#include "imx8mm-verdin-wifi.dtsi" > +#include "imx8mm-verdin-dahlia.dtsi" > + > +/ { > + model = "Toradex Verdin iMX8M Mini WB on Dahlia Board"; > + compatible = "toradex,verdin-imx8mm-wifi-dahlia", > + "toradex,verdin-imx8mm-wifi", > + "toradex,verdin-imx8mm", > + "fsl,imx8mm"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dts b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dts > new file mode 100644 > index 000000000000..ef952021832e > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi-dev.dts > @@ -0,0 +1,18 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/dts-v1/; > + > +#include "imx8mm-verdin.dtsi" > +#include "imx8mm-verdin-wifi.dtsi" > +#include "imx8mm-verdin-dev.dtsi" > + > +/ { > + model = "Toradex Verdin iMX8M Mini WB on Verdin Development Board"; > + compatible = "toradex,verdin-imx8mm-wifi-dev", > + "toradex,verdin-imx8mm-wifi", > + "toradex,verdin-imx8mm", > + "fsl,imx8mm"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi.dtsi > new file mode 100644 > index 000000000000..c400770c1df5 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin-wifi.dtsi > @@ -0,0 +1,95 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +/ { > + reg_wifi_en: regulator-wifi-en { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio3 25 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_wifi_pwr_en>; > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <3300000>; > + regulator-name = "PDn_AW-CM276NF"; > + startup-delay-us = <2000>; > + }; > +}; > + > +/* On-module Wi-Fi */ > +&usdhc3 { > + bus-width = <4>; > + keep-power-in-suspend; > + non-removable; > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > + pinctrl-0 = <&pinctrl_usdhc3>, <&pinctrl_wifi_ctrl>; > + pinctrl-1 = <&pinctrl_usdhc3_100mhz>, <&pinctrl_wifi_ctrl>; > + pinctrl-2 = <&pinctrl_usdhc3_200mhz>, <&pinctrl_wifi_ctrl>; > + vmmc-supply = <®_wifi_en>; > + wifi-host; > + status = "okay"; > +}; > + > +&gpio3 { > + gpio-line-names = "SODIMM_52", > + "SODIMM_54", > + "SODIMM_64", > + "SODIMM_21", > + "SODIMM_206", > + "SODIMM_76", > + "SODIMM_56", > + "SODIMM_58", > + "SODIMM_60", > + "SODIMM_62", > + "", > + "", > + "", > + "", > + "SODIMM_66", > + "SODIMM_17", > + "", > + "", > + "", > + "SODIMM_244", > + "SODIMM_250", > + "SODIMM_48", > + "SODIMM_44", > + "SODIMM_42", > + "SODIMM_46"; > +}; > + > +&gpio4 { > + gpio-line-names = "SODIMM_102", > + "SODIMM_90", > + "SODIMM_92", > + "SODIMM_94", > + "SODIMM_96", > + "SODIMM_100", > + "", > + "", > + "", > + "SODIMM_174", > + "SODIMM_120", > + "SODIMM_104", > + "SODIMM_106", > + "SODIMM_108", > + "SODIMM_112", > + "SODIMM_114", > + "SODIMM_116", > + "", > + "SODIMM_118", > + "", > + "SODIMM_88", > + "SODIMM_149", > + "SODIMM_147", > + "SODIMM_36", > + "SODIMM_32", > + "SODIMM_30", > + "SODIMM_34", > + "SODIMM_38", > + "SODIMM_252", > + "SODIMM_133", > + "SODIMM_135", > + "SODIMM_129"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > new file mode 100644 > index 000000000000..00df2a0f1014 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi > @@ -0,0 +1,1291 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT > +/* > + * Copyright 2022 Toradex > + */ > + > +#include "dt-bindings/phy/phy-imx8-pcie.h" > +#include "dt-bindings/pwm/pwm.h" > +#include "imx8mm.dtsi" > + > +/ { > + chosen { > + stdout-path = &uart1; > + }; > + > + aliases { > + rtc0 = &rtc_i2c; > + rtc1 = &snvs_rtc; > + }; > + > + backlight: backlight { > + compatible = "pwm-backlight"; > + brightness-levels = <0 45 63 88 119 158 203 255>; > + default-brightness-level = <4>; > + /* Verdin I2S_2_D_OUT (DSI_1_BKL_EN/DSI_1_BKL_EN_LVDS, SODIMM 46) */ > + enable-gpios = <&gpio3 24 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2s_2_d_out_dsi_1_bkl_en>; > + power-supply = <®_3p3v>; > + /* Verdin PWM_3_DSI/PWM_3_DSI_LVDS (SODIMM 19) */ > + pwms = <&pwm1 0 6666667 PWM_POLARITY_INVERTED>; > + status = "disabled"; > + }; > + > + /* Fixed clock dedicated to SPI CAN controller */ > + clk20m: oscillator { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <20000000>; > + }; > + > + gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio_keys>; > + > + wakeup { > + debounce-interval = <10>; > + /* Verdin CTRL_WAKE1_MICO# (SODIMM 252) */ > + gpios = <&gpio4 28 GPIO_ACTIVE_LOW>; > + label = "Wake-Up"; > + linux,code = ; > + wakeup-source; > + }; > + }; > + > + /* Carrier Board Supplies */ > + reg_1p8v: regulator-1p8v { > + compatible = "regulator-fixed"; > + regulator-max-microvolt = <1800000>; > + regulator-min-microvolt = <1800000>; > + regulator-name = "+V1.8_SW"; > + }; > + > + reg_3p3v: regulator-3p3v { > + compatible = "regulator-fixed"; > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <3300000>; > + regulator-name = "+V3.3_SW"; > + }; > + > + reg_5p0v: regulator-5p0v { > + compatible = "regulator-fixed"; > + regulator-max-microvolt = <5000000>; > + regulator-min-microvolt = <5000000>; > + regulator-name = "+V5_SW"; > + }; > + > + /* Non PMIC On-module Supplies */ > + reg_ethphy: regulator-ethphy { > + compatible = "regulator-fixed"; > + enable-active-high; > + gpio = <&gpio2 20 GPIO_ACTIVE_HIGH>; /* PMIC_EN_ETH */ > + off-on-delay = <500000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_reg_eth>; > + regulator-boot-on; > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <3300000>; > + regulator-name = "+V3.3_ETH"; > + startup-delay-us = <200000>; > + }; > + > + reg_usb_otg1_vbus: regulator-usb-otg1 { > + compatible = "regulator-fixed"; > + enable-active-high; > + /* Verdin USB_1_EN (SODIMM 155) */ > + gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_reg_usb1_en>; > + regulator-max-microvolt = <5000000>; > + regulator-min-microvolt = <5000000>; > + regulator-name = "usb_otg1_vbus"; > + }; > + > + reg_usb_otg2_vbus: regulator-usb-otg2 { > + compatible = "regulator-fixed"; > + enable-active-high; > + /* Verdin USB_2_EN (SODIMM 185) */ > + gpio = <&gpio1 14 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_reg_usb2_en>; > + regulator-max-microvolt = <5000000>; > + regulator-min-microvolt = <5000000>; > + regulator-name = "usb_otg2_vbus"; > + }; > + > + reg_usdhc2_vmmc: regulator-usdhc2 { > + compatible = "regulator-fixed"; > + enable-active-high; > + /* Verdin SD_1_PWR_EN (SODIMM 76) */ > + gpio = <&gpio3 5 GPIO_ACTIVE_HIGH>; > + off-on-delay = <100000>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_usdhc2_pwr_en>; > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <3300000>; > + regulator-name = "+V3.3_SD"; > + startup-delay-us = <2000>; > + }; > + > + reserved-memory { > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + /* Use the kernel configuration settings instead */ > + /delete-node/ linux,cma; > + > + rpmsg_reserved: rpmsg@b8000000 { > + no-map; > + reg = <0 0xb8000000 0 0x400000>; > + }; Not sure this is a board level configuration. > + }; > +}; > + > +&A53_0 { > + cpu-supply = <®_vdd_arm>; > +}; > + > +&A53_1 { > + cpu-supply = <®_vdd_arm>; > +}; > + > +&A53_2 { > + cpu-supply = <®_vdd_arm>; > +}; > + > +&A53_3 { > + cpu-supply = <®_vdd_arm>; > +}; > + > +&ddrc { > + operating-points-v2 = <&ddrc_opp_table>; > + > + ddrc_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-25M { > + opp-hz = /bits/ 64 <25000000>; > + }; > + > + opp-100M { > + opp-hz = /bits/ 64 <100000000>; > + }; > + > + opp-750M { > + opp-hz = /bits/ 64 <750000000>; > + }; > + }; > +}; > + > +/* Verdin SPI_1 */ > +&ecspi2 { > + #address-cells = <1>; > + #size-cells = <0>; > + cs-gpios = <&gpio5 13 GPIO_ACTIVE_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ecspi2>; > +}; > + > +/* Verdin CAN_1 and CAN_2 (On-module) */ > +&ecspi3 { > + #address-cells = <1>; > + #size-cells = <0>; > + cs-gpios = <&gpio5 25 GPIO_ACTIVE_LOW>, > + <&gpio1 5 GPIO_ACTIVE_LOW>; > + spi-num-chipselects = <2>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ecspi3>; > + status = "okay"; > + > + can1: can@0 { > + compatible = "microchip,mcp251xfd"; > + clocks = <&clk20m>; > + interrupts-extended = <&gpio1 6 IRQ_TYPE_EDGE_FALLING>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_can1_int>; > + reg = <0>; > + spi-max-frequency = <8500000>; > + }; > + > + can2: can@1 { > + compatible = "microchip,mcp251xfd"; > + clocks = <&clk20m>; > + interrupts-extended = <&gpio1 7 IRQ_TYPE_EDGE_FALLING>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_can2_int>; > + reg = <1>; > + spi-max-frequency = <8500000>; > + /* Not assembled on regular SKUs */ > + status = "disabled"; > + }; > +}; > + > +/* Verdin ETH_1 (On-module PHY) */ > +&fec1 { > + fsl,magic-packet; > + phy-handle = <ðphy0>; > + phy-mode = "rgmii-id"; > + phy-supply = <®_ethphy>; > + pinctrl-names = "default", "sleep"; > + pinctrl-0 = <&pinctrl_fec1>; > + pinctrl-1 = <&pinctrl_fec1_sleep>; > + > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + > + ethphy0: ethernet-phy@7 { > + compatible = "ethernet-phy-ieee802.3-c22"; > + interrupt-parent = <&gpio1>; > + interrupts = <10 IRQ_TYPE_LEVEL_LOW>; > + micrel,led-mode = <0>; > + reg = <7>; > + }; > + }; > +}; > + > +/* Verdin QSPI_1 */ > +&flexspi { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_flexspi0>; > +}; > + > +&gpio1 { > + gpio-line-names = "SODIMM_216", > + "SODIMM_19", > + "", > + "", > + "", > + "", > + "", > + "", > + "SODIMM_220", > + "SODIMM_222", > + "", > + "SODIMM_218", > + "SODIMM_155", > + "SODIMM_157", > + "SODIMM_185", > + "SODIMM_187"; > +}; > + > +&gpio2 { > + gpio-line-names = "", > + "", > + "", > + "", > + "", > + "", > + "", > + "", > + "", > + "", > + "", > + "", > + "SODIMM_84", > + "SODIMM_78", > + "SODIMM_74", > + "SODIMM_80", > + "SODIMM_82", > + "SODIMM_70", > + "SODIMM_72"; > +}; > + > +&gpio5 { > + gpio-line-names = "SODIMM_131", > + "", > + "SODIMM_91", > + "SODIMM_16", > + "SODIMM_15", > + "SODIMM_208", > + "SODIMM_137", > + "SODIMM_139", > + "SODIMM_141", > + "SODIMM_143", > + "SODIMM_196", > + "SODIMM_200", > + "SODIMM_198", > + "SODIMM_202", > + "", > + "", > + "SODIMM_55", > + "SODIMM_53", > + "SODIMM_95", > + "SODIMM_93", > + "SODIMM_14", > + "SODIMM_12", > + "", > + "", > + "", > + "", > + "SODIMM_210", > + "SODIMM_212", > + "SODIMM_151", > + "SODIMM_153"; > + > + ctrl_sleep_moci-hog { > + gpio-hog; > + /* Verdin CTRL_SLEEP_MOCI# (SODIMM 256) */ > + gpios = <1 GPIO_ACTIVE_HIGH>; > + line-name = "CTRL_SLEEP_MOCI#"; > + output-high; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_ctrl_sleep_moci>; > + }; > +}; > + > +/* On-module I2C */ > +&i2c1 { > + clock-frequency = <400000>; > + pinctrl-names = "default", "gpio"; > + pinctrl-0 = <&pinctrl_i2c1>; > + pinctrl-1 = <&pinctrl_i2c1_gpio>; > + scl-gpios = <&gpio5 14 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + sda-gpios = <&gpio5 15 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + status = "okay"; > + > + pca9450: pmic@25 { > + compatible = "nxp,pca9450a"; > + interrupt-parent = <&gpio1>; > + /* PMIC PCA9450 PMIC_nINT GPIO1_IO3 */ > + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pmic>; > + reg = <0x25>; > + sd-vsel-gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>; > + > + regulators { > + reg_vdd_soc: BUCK1 { > + nxp,dvs-run-voltage = <850000>; > + nxp,dvs-standby-voltage = <800000>; > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <850000>; > + regulator-min-microvolt = <800000>; > + regulator-name = "+VDD_SOC"; > + regulator-ramp-delay = <3125>; > + }; > + > + reg_vdd_arm: BUCK2 { > + nxp,dvs-run-voltage = <950000>; > + nxp,dvs-standby-voltage = <850000>; > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <950000>; > + regulator-min-microvolt = <850000>; > + regulator-name = "+VDD_ARM"; > + regulator-ramp-delay = <3125>; > + }; > + > + reg_vdd_dram: BUCK3 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <950000>; > + regulator-min-microvolt = <850000>; > + regulator-name = "+VDD_GPU_VPU_DDR"; > + }; > + > + reg_vdd_3v3: BUCK4 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <3300000>; > + regulator-name = "+V3.3"; > + }; > + > + reg_vdd_1v8: BUCK5 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <1800000>; > + regulator-min-microvolt = <1800000>; > + regulator-name = "PWR_1V8_MOCI"; > + }; > + > + reg_nvcc_dram: BUCK6 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <1100000>; > + regulator-min-microvolt = <1100000>; > + regulator-name = "+VDD_DDR"; > + }; > + > + reg_nvcc_snvs: LDO1 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <1800000>; > + regulator-min-microvolt = <1800000>; > + regulator-name = "+V1.8_SNVS"; > + }; > + > + reg_vdd_snvs: LDO2 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <900000>; > + regulator-min-microvolt = <800000>; > + regulator-name = "+V0.8_SNVS"; > + }; > + > + reg_vdda: LDO3 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <1800000>; > + regulator-min-microvolt = <1800000>; > + regulator-name = "+V1.8A"; > + }; > + > + reg_vdd_phy: LDO4 { > + regulator-always-on; > + regulator-boot-on; > + regulator-max-microvolt = <900000>; > + regulator-min-microvolt = <900000>; > + regulator-name = "+V0.9_MIPI"; > + }; > + > + reg_nvcc_sd: LDO5 { > + regulator-max-microvolt = <3300000>; > + regulator-min-microvolt = <1800000>; > + regulator-name = "+V3.3_1.8_SD"; > + }; > + }; > + }; > + > + rtc_i2c: rtc@32 { > + compatible = "epson,rx8130"; > + reg = <0x32>; > + }; > + > + adc@49 { > + compatible = "ti,ads1015"; > + reg = <0x49>; > + #address-cells = <1>; > + #size-cells = <0>; > + > + /* Verdin I2C_1 (ADC_4 - ADC_3) */ > + channel@0 { > + reg = <0>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 (ADC_4 - ADC_1) */ > + channel@1 { > + reg = <1>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 (ADC_3 - ADC_1) */ > + channel@2 { > + reg = <2>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 (ADC_2 - ADC_1) */ > + channel@3 { > + reg = <3>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 ADC_4 */ > + channel@4 { > + reg = <4>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 ADC_3 */ > + channel@5 { > + reg = <5>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 ADC_2 */ > + channel@6 { > + reg = <6>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + > + /* Verdin I2C_1 ADC_1 */ > + channel@7 { > + reg = <7>; > + ti,datarate = <4>; > + ti,gain = <2>; > + }; > + }; > + > + eeprom@50 { > + compatible = "st,24c02"; > + pagesize = <16>; > + reg = <0x50>; > + }; > +}; > + > +/* Verdin I2C_2_DSI */ > +&i2c2 { > + clock-frequency = <10000>; > + pinctrl-names = "default", "gpio"; > + pinctrl-0 = <&pinctrl_i2c2>; > + pinctrl-1 = <&pinctrl_i2c2_gpio>; > + scl-gpios = <&gpio5 16 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + sda-gpios = <&gpio5 17 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + status = "disabled"; > +}; > + > +/* Verdin I2C_3_HDMI N/A */ > + > +/* Verdin I2C_4_CSI */ > +&i2c3 { > + clock-frequency = <400000>; > + pinctrl-names = "default", "gpio"; > + pinctrl-0 = <&pinctrl_i2c3>; > + pinctrl-1 = <&pinctrl_i2c3_gpio>; > + scl-gpios = <&gpio5 18 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + sda-gpios = <&gpio5 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > +}; > + > +/* Verdin I2C_1 */ > +&i2c4 { > + clock-frequency = <400000>; > + pinctrl-names = "default", "gpio"; > + pinctrl-0 = <&pinctrl_i2c4>; > + pinctrl-1 = <&pinctrl_i2c4_gpio>; > + scl-gpios = <&gpio5 20 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + sda-gpios = <&gpio5 21 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; > + > + gpio_expander_21: gpio-expander@21 { > + compatible = "nxp,pcal6416"; > + #gpio-cells = <2>; > + gpio-controller; > + reg = <0x21>; > + status = "disabled"; Put 'status' at the end of property list. Shawn > + vcc-supply = <®_3p3v>; > + }; > + > + lvds_ti_sn65dsi83: bridge@2c { > + compatible = "ti,sn65dsi83"; > + /* Verdin GPIO_9_DSI (SN65DSI84 IRQ, SODIMM 17, unused) */ > + /* Verdin GPIO_10_DSI (SODIMM 21) */ > + enable-gpios = <&gpio3 3 GPIO_ACTIVE_HIGH>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio_10_dsi>; > + reg = <0x2c>; > + status = "disabled"; > + }; > + > + /* Current measurement into module VCC */ > + hwmon: hwmon@40 { > + compatible = "ti,ina219"; > + reg = <0x40>; > + shunt-resistor = <10000>; > + status = "disabled"; > + }; > + > + hdmi_lontium_lt8912: hdmi@48 { > + compatible = "lontium,lt8912b"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio_10_dsi>, <&pinctrl_pwm_3_dsi_hpd_gpio>; > + reg = <0x48>; > + /* Verdin GPIO_9_DSI (LT8912 INT, SODIMM 17, unused) */ > + /* Verdin GPIO_10_DSI (SODIMM 21) */ > + reset-gpios = <&gpio3 3 GPIO_ACTIVE_LOW>; > + status = "disabled"; > + }; > + > + atmel_mxt_ts: touch@4a { > + compatible = "atmel,maxtouch"; > + /* Verdin GPIO_9_DSI */ > + /* (TOUCH_INT#, SODIMM 17, also routed to SN65dsi83 IRQ albeit currently unused) */ > + interrupt-parent = <&gpio3>; > + interrupts = <15 IRQ_TYPE_EDGE_FALLING>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio_9_dsi>, <&pinctrl_i2s_2_bclk_touch_reset>; > + reg = <0x4a>; > + /* Verdin I2S_2_BCLK (TOUCH_RESET#, SODIMM 42) */ > + reset-gpios = <&gpio3 23 GPIO_ACTIVE_HIGH>; > + status = "disabled"; > + }; > + > + /* Temperature sensor on carrier board */ > + hwmon_temp: sensor@4f { > + compatible = "ti,tmp75c"; > + reg = <0x4f>; > + status = "disabled"; > + }; > + > + /* EEPROM on display adapter (MIPI DSI Display Adapter) */ > + eeprom_display_adapter: eeprom@50 { > + compatible = "st,24c02"; > + pagesize = <16>; > + reg = <0x50>; > + status = "disabled"; > + }; > + > + /* EEPROM on carrier board */ > + eeprom_carrier_board: eeprom@57 { > + compatible = "st,24c02"; > + pagesize = <16>; > + reg = <0x57>; > + status = "disabled"; > + }; > +}; > + > +/* Verdin PCIE_1 */ > +&pcie0 { > + assigned-clocks = <&clk IMX8MM_CLK_PCIE1_AUX>, > + <&clk IMX8MM_CLK_PCIE1_CTRL>; > + assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_50M>, > + <&clk IMX8MM_SYS_PLL2_250M>; > + assigned-clock-rates = <10000000>, <250000000>; > + clocks = <&clk IMX8MM_CLK_PCIE1_ROOT>, <&clk IMX8MM_CLK_PCIE1_AUX>, > + <&clk IMX8MM_CLK_PCIE1_PHY>; > + clock-names = "pcie", "pcie_aux", "pcie_bus"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pcie0>; > + /* PCIE_1_RESET# (SODIMM 244) */ > + reset-gpio = <&gpio3 19 GPIO_ACTIVE_LOW>; > +}; > + > +&pcie_phy { > + clocks = <&clk IMX8MM_CLK_PCIE1_PHY>; > + fsl,clkreq-unsupported; > + fsl,refclk-pad-mode = ; > + fsl,tx-deemph-gen1 = <0x2d>; > + fsl,tx-deemph-gen2 = <0xf>; > +}; > + > +/* Verdin PWM_3_DSI */ > +&pwm1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pwm_1>; > + #pwm-cells = <3>; > +}; > + > +/* Verdin PWM_1 */ > +&pwm2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pwm_2>; > + #pwm-cells = <3>; > +}; > + > +/* Verdin PWM_2 */ > +&pwm3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_pwm_3>; > + #pwm-cells = <3>; > +}; > + > +/* VERDIN I2S_1 */ > +&sai2 { > + #sound-dai-cells = <0>; > + assigned-clock-parents = <&clk IMX8MM_AUDIO_PLL1_OUT>; > + assigned-clock-rates = <24576000>; > + assigned-clocks = <&clk IMX8MM_CLK_SAI2>; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_sai2>; > +}; > + > +&snvs_pwrkey { > + status = "okay"; > +}; > + > +/* Verdin UART_3, used as the Linux console */ > +&uart1 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart1>; > +}; > + > +/* Verdin UART_1 */ > +&uart2 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart2>; > + uart-has-rtscts; > +}; > + > +/* Verdin UART_2 */ > +&uart3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart3>; > + uart-has-rtscts; > +}; > + > +/* Verdin UART_4 */ > +/* > + * Resource allocated to M4 by default, must not be accessed from Cortex-A35 or you get an OOPS > + */ > +&uart4 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_uart4>; > +}; > + > +&usbmisc1 { > + vbus-wakeup-supply = <®_vdd_3v3>; > +}; > + > +&usbmisc2 { > + vbus-wakeup-supply = <®_vdd_3v3>; > +}; > + > +/* Verdin USB_1 */ > +&usbotg1 { > + adp-disable; > + dr_mode = "otg"; > + hnp-disable; > + over-current-active-low; > + picophy,dc-vol-level-adjust = <7>; > + picophy,pre-emp-curr-control = <3>; > + srp-disable; > + vbus-supply = <®_usb_otg1_vbus>; > +}; > + > +/* Verdin USB_2 */ > +&usbotg2 { > + dr_mode = "host"; > + over-current-active-low; > + picophy,dc-vol-level-adjust = <7>; > + picophy,pre-emp-curr-control = <3>; > + vbus-supply = <®_usb_otg2_vbus>; > +}; > + > +&usbphynop1 { > + vcc-supply = <®_vdd_3v3>; > +}; > + > +&usbphynop2 { > + vcc-supply = <®_vdd_3v3>; > +}; > + > +/* On-module eMMC */ > +&usdhc1 { > + bus-width = <8>; > + keep-power-in-suspend; > + non-removable; > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > + pinctrl-0 = <&pinctrl_usdhc1>; > + pinctrl-1 = <&pinctrl_usdhc1_100mhz>; > + pinctrl-2 = <&pinctrl_usdhc1_200mhz>; > + status = "okay"; > +}; > + > +/* Verdin SD_1 */ > +&usdhc2 { > + bus-width = <4>; > + cd-gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; > + disable-wp; > + pinctrl-names = "default", "state_100mhz", "state_200mhz"; > + pinctrl-0 = <&pinctrl_usdhc2>, <&pinctrl_usdhc2_cd>; > + pinctrl-1 = <&pinctrl_usdhc2_100mhz>, <&pinctrl_usdhc2_cd>; > + pinctrl-2 = <&pinctrl_usdhc2_200mhz>, <&pinctrl_usdhc2_cd>; > + vmmc-supply = <®_usdhc2_vmmc>; > +}; > + > +&wdog1 { > + fsl,ext-reset-output; > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_wdog>; > + status = "okay"; > +}; > + > +&iomuxc { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_gpio1>, <&pinctrl_gpio2>, > + <&pinctrl_gpio3>, <&pinctrl_gpio4>, > + <&pinctrl_gpio7>, <&pinctrl_gpio8>, > + <&pinctrl_gpio_hog1>, <&pinctrl_gpio_hog2>, <&pinctrl_gpio_hog3>, > + <&pinctrl_pmic_tpm_ena>; > + > + pinctrl_can1_int: can1intgrp { > + fsl,pins = > + ; /* CAN_1_SPI_INT#_1.8V */ > + }; > + > + pinctrl_can2_int: can2intgrp { > + fsl,pins = > + ; /* CAN_2_SPI_INT#_1.8V */ > + }; > + > + pinctrl_ctrl_sleep_moci: ctrlsleepmocigrp { > + fsl,pins = > + ; /* SODIMM 256 */ > + }; > + > + pinctrl_ecspi2: ecspi2grp { > + fsl,pins = > + , /* SODIMM 196 */ > + , /* SODIMM 200 */ > + , /* SODIMM 198 */ > + ; /* SODIMM 202 */ > + }; > + > + pinctrl_ecspi3: ecspi3grp { > + fsl,pins = > + , /* CAN_SPI_SCK_1.8V */ > + , /* CAN_SPI_MOSI_1.8V */ > + , /* CAN_SPI_MISO_1.8V */ > + , /* CAN_1_SPI_CS_1.8V# */ > + ; /* CAN_2_SPI_CS#_1.8V */ > + }; > + > + pinctrl_fec1: fec1grp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_fec1_sleep: fec1-sleepgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_flexspi0: flexspi0grp { > + fsl,pins = > + , /* SODIMM 52 */ > + , /* SODIMM 54 */ > + , /* SODIMM 64 */ > + , /* SODIMM 66 */ > + , /* SODIMM 56 */ > + , /* SODIMM 58 */ > + , /* SODIMM 60 */ > + ; /* SODIMM 62 */ > + }; > + > + pinctrl_gpio1: gpio1grp { > + fsl,pins = > + ; /* SODIMM 206 */ > + }; > + > + pinctrl_gpio2: gpio2grp { > + fsl,pins = > + ; /* SODIMM 208 */ > + }; > + > + pinctrl_gpio3: gpio3grp { > + fsl,pins = > + ; /* SODIMM 210 */ > + }; > + > + pinctrl_gpio4: gpio4grp { > + fsl,pins = > + ; /* SODIMM 212 */ > + }; > + > + pinctrl_gpio5: gpio5grp { > + fsl,pins = > + ; /* SODIMM 216 */ > + }; > + > + pinctrl_gpio6: gpio6grp { > + fsl,pins = > + ; /* SODIMM 218 */ > + }; > + > + pinctrl_gpio7: gpio7grp { > + fsl,pins = > + ; /* SODIMM 220 */ > + }; > + > + pinctrl_gpio8: gpio8grp { > + fsl,pins = > + ; /* SODIMM 222 */ > + }; > + > + /* Verdin GPIO_9_DSI (pulled-up as active-low) */ > + pinctrl_gpio_9_dsi: gpio9dsigrp { > + fsl,pins = > + ; /* SODIMM 17 */ > + }; > + > + /* Verdin GPIO_10_DSI */ > + pinctrl_gpio_10_dsi: gpio10dsigrp { > + fsl,pins = > + ; /* SODIMM 21 */ > + }; > + > + pinctrl_gpio_hog1: gpiohog1grp { > + fsl,pins = > + , /* SODIMM 88 */ > + , /* SODIMM 90 */ > + , /* SODIMM 92 */ > + , /* SODIMM 94 */ > + , /* SODIMM 96 */ > + , /* SODIMM 100 */ > + , /* SODIMM 102 */ > + , /* SODIMM 104 */ > + , /* SODIMM 106 */ > + , /* SODIMM 108 */ > + , /* SODIMM 112 */ > + , /* SODIMM 114 */ > + , /* SODIMM 116 */ > + , /* SODIMM 118 */ > + ; /* SODIMM 120 */ > + }; > + > + pinctrl_gpio_hog2: gpiohog2grp { > + fsl,pins = > + ; /* SODIMM 91 */ > + }; > + > + pinctrl_gpio_hog3: gpiohog3grp { > + fsl,pins = > + , /* SODIMM 157 */ > + ; /* SODIMM 187 */ > + }; > + > + pinctrl_gpio_keys: gpiokeysgrp { > + fsl,pins = > + ; /* SODIMM 252 */ > + }; > + > + /* On-module I2C */ > + pinctrl_i2c1: i2c1grp { > + fsl,pins = > + , /* PMIC_I2C_SCL */ > + ; /* PMIC_I2C_SDA */ > + }; > + > + pinctrl_i2c1_gpio: i2c1gpiogrp { > + fsl,pins = > + , /* PMIC_I2C_SCL */ > + ; /* PMIC_I2C_SDA */ > + }; > + > + /* Verdin I2C_4_CSI */ > + pinctrl_i2c2: i2c2grp { > + fsl,pins = > + , /* SODIMM 55 */ > + ; /* SODIMM 53 */ > + }; > + > + pinctrl_i2c2_gpio: i2c2gpiogrp { > + fsl,pins = > + , /* SODIMM 55 */ > + ; /* SODIMM 53 */ > + }; > + > + /* Verdin I2C_2_DSI */ > + pinctrl_i2c3: i2c3grp { > + fsl,pins = > + , /* SODIMM 95 */ > + ; /* SODIMM 93 */ > + }; > + > + pinctrl_i2c3_gpio: i2c3gpiogrp { > + fsl,pins = > + , /* SODIMM 95 */ > + ; /* SODIMM 93 */ > + }; > + > + /* Verdin I2C_1 */ > + pinctrl_i2c4: i2c4grp { > + fsl,pins = > + , /* SODIMM 14 */ > + ; /* SODIMM 12 */ > + }; > + > + pinctrl_i2c4_gpio: i2c4gpiogrp { > + fsl,pins = > + , /* SODIMM 14 */ > + ; /* SODIMM 12 */ > + }; > + > + /* Verdin I2S_2_BCLK (TOUCH_RESET#) */ > + pinctrl_i2s_2_bclk_touch_reset: i2s2bclktouchresetgrp { > + fsl,pins = > + ; /* SODIMM 42 */ > + }; > + > + /* Verdin I2S_2_D_OUT shared with SAI5 */ > + pinctrl_i2s_2_d_out_dsi_1_bkl_en: i2s2doutdsi1bklengrp { > + fsl,pins = > + ; /* SODIMM 46 */ > + }; > + > + pinctrl_pcie0: pcie0grp { > + fsl,pins = > + , /* SODIMM 244 */ > + /* PMIC_EN_PCIe_CLK, unused */ > + ; > + }; > + > + pinctrl_pmic: pmicirqgrp { > + fsl,pins = > + ; /* PMIC_INT# */ > + }; > + > + /* Verdin PWM_3_DSI shared with GPIO1_IO1 */ > + pinctrl_pwm_1: pwm1grp { > + fsl,pins = > + ; /* SODIMM 19 */ > + }; > + > + pinctrl_pwm_2: pwm2grp { > + fsl,pins = > + ; /* SODIMM 15 */ > + }; > + > + pinctrl_pwm_3: pwm3grp { > + fsl,pins = > + ; /* SODIMM 16 */ > + }; > + > + /* Verdin PWM_3_DSI (pulled-down as active-high) shared with PWM1_OUT */ > + pinctrl_pwm_3_dsi_hpd_gpio: pwm3dsihpdgpiogrp { > + fsl,pins = > + ; /* SODIMM 19 */ > + }; > + > + pinctrl_reg_eth: regethgrp { > + fsl,pins = > + ; /* PMIC_EN_ETH */ > + }; > + > + pinctrl_reg_usb1_en: regusb1engrp { > + fsl,pins = > + ; /* SODIMM 155 */ > + }; > + > + pinctrl_reg_usb2_en: regusb2engrp { > + fsl,pins = > + ; /* SODIMM 185 */ > + }; > + > + pinctrl_sai2: sai2grp { > + fsl,pins = > + , /* SODIMM 32 */ > + , /* SODIMM 30 */ > + , /* SODIMM 38 */ > + , /* SODIMM 36 */ > + ; /* SODIMM 34 */ > + }; > + > + pinctrl_sai5: sai5grp { > + fsl,pins = > + , /* SODIMM 48 */ > + , /* SODIMM 44 */ > + , /* SODIMM 42 */ > + ; /* SODIMM 46 */ > + }; > + > + /* control signal for optional ATTPM20P or SE050 */ > + pinctrl_pmic_tpm_ena: pmictpmenagrp { > + fsl,pins = > + ; /* PMIC_TPM_ENA */ > + }; > + > + pinctrl_tsp: tspgrp { > + fsl,pins = > + , /* SODIMM 148 */ > + , /* SODIMM 152 */ > + , /* SODIMM 154 */ > + , /* SODIMM 179 */ > + ; /* SODIMM 150 */ > + }; > + > + pinctrl_uart1: uart1grp { > + fsl,pins = > + , /* SODIMM 149 */ > + ; /* SODIMM 147 */ > + }; > + > + pinctrl_uart2: uart2grp { > + fsl,pins = > + , /* SODIMM 129 */ > + , /* SODIMM 131 */ > + , /* SODIMM 133 */ > + ; /* SODIMM 135 */ > + }; > + > + pinctrl_uart3: uart3grp { > + fsl,pins = > + , /* SODIMM 137 */ > + , /* SODIMM 139 */ > + , /* SODIMM 141 */ > + ; /* SODIMM 143 */ > + }; > + > + pinctrl_uart4: uart4grp { > + fsl,pins = > + , /* SODIMM 151 */ > + ; /* SODIMM 153 */ > + }; > + > + pinctrl_usdhc1: usdhc1grp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc1_100mhz: usdhc1-100mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc1_200mhz: usdhc1-200mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc2_cd: usdhc2cdgrp { > + fsl,pins = > + ; /* SODIMM 84 */ > + }; > + > + pinctrl_usdhc2_pwr_en: usdhc2pwrengrp { > + fsl,pins = > + ; /* SODIMM 76 */ > + }; > + > + pinctrl_usdhc2: usdhc2grp { > + fsl,pins = > + , /* SODIMM 78 */ > + , /* SODIMM 74 */ > + , /* SODIMM 80 */ > + , /* SODIMM 82 */ > + , /* SODIMM 70 */ > + , /* SODIMM 72 */ > + ; > + }; > + > + pinctrl_usdhc2_100mhz: usdhc2-100mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc2_200mhz: usdhc2-200mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + , > + ; > + }; > + > + /* On-module Wi-Fi/BT or type specific SDHC interface */ > + /* (e.g. on X52 extension slot of Verdin Development Board) */ > + pinctrl_usdhc3: usdhc3grp { > + fsl,pins = > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc3_100mhz: usdhc3-100mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_usdhc3_200mhz: usdhc3-200mhzgrp { > + fsl,pins = > + , > + , > + , > + , > + , > + ; > + }; > + > + pinctrl_wdog: wdoggrp { > + fsl,pins = > + ; /* PMIC_WDI */ > + }; > + > + pinctrl_wifi_ctrl: wifictrlgrp { > + fsl,pins = > + , /* WIFI_WKUP_BT */ > + , /* WIFI_W_WKUP_HOST */ > + ; /* WIFI_WKUP_WLAN */ > + }; > + > + pinctrl_wifi_i2s: bti2sgrp { > + fsl,pins = > + , /* WIFI_TX_BCLK */ > + , /* WIFI_TX_DATA0 */ > + , /* WIFI_TX_SYNC */ > + ; /* WIFI_RX_DATA0 */ > + }; > + > + pinctrl_wifi_pwr_en: wifipwrengrp { > + fsl,pins = > + ; /* PMIC_EN_WIFI */ > + }; > +}; > -- > 2.33.1 >