From patchwork Mon May 16 13:47:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 12850864 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 8AF36C433FE for ; Mon, 16 May 2022 13:49:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=TeK/a9x3RqxGOI7WMqhNY2m93YZyyr9Ad8nu6lHOb8Q=; b=XbfaB8ko23pmnE dRWI03vhzkPUe4SlITNEo/pEptnC3yQHHmPOPyVcB/RFSEvBS5dOMtS42Xn4GZbBmb1hqNgV76cSo DiM+0iWyUc4gIbwB98WstlD9C75ZgPV/xolp2tZZnew8jwpHlSosrnFuj9CMVggGI/nDMPNoK+TxQ cv5qkaxPVTDmWm9kDHMxx/021Nw7qHCprLBZhrq9RlvQSLALZvZYtathEcJjZI9obZqoKMXmiP5mU ZTuF7KvZo3zsma0xBiMrlU1O4xYrlaPDAXy8KetevUB3t6x9hylQDhA5GYvUdt4RtQE3qjyTePB2a o4IN/cC0FeuXiet3GtOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqb5a-0082ik-7A; Mon, 16 May 2022 13:48:46 +0000 Received: from mout.perfora.net ([74.208.4.194]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqb55-0082UT-9v for linux-arm-kernel@lists.infradead.org; Mon, 16 May 2022 13:48:17 +0000 Received: from toolbox.int.toradex.com ([81.221.85.15]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MGCMz-1o4dJR24Pf-00FESy; Mon, 16 May 2022 15:47:51 +0200 From: Marcel Ziswiler To: linux-arm-kernel@lists.infradead.org Cc: Marcel Ziswiler , Alexander Stein , Arnd Bergmann , Denys Drozdov , Fabio Estevam , Fabio Estevam , Frank Rowand , Krzysztof Kozlowski , Li Yang , Lucas Stach , Marek Vasut , Matthias Schiffer , Max Krummenacher , NXP Linux Team , Olof Johansson , Pengutronix Kernel Team , Rob Herring , Russell King , Sascha Hauer , Shawn Guo , Stefan Agner , Tim Harvey , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, soc@kernel.org Subject: [PATCH v2 00/24] ARM: dts: imx7-colibri: device tree improvements Date: Mon, 16 May 2022 15:47:10 +0200 Message-Id: <20220516134734.493065-1-marcel@ziswiler.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:u3p4QYBrJIcPxKDVCWF2zgjBva5I01FDyxt+TVltHm5GD/cIGUd xynr4EPaKTsNv+hB6SP838uZrwKxeUo7s9UAygZC7++LdfEaIZDQ6YMDjctSBXAigsNe1Qx N684YimYjb+f2GRRKo+936TZ++RtCy6bMwF8vWiporJL6Tg7TZQHEjEeApbPhunfywbEXKC ZmN1yWrd9g+d+fmRW/eVA== X-UI-Out-Filterresults: notjunk:1;V03:K0:VdckVgwfshQ=:ajcHLGaJHuesGRXoMHgVkM XsO6Q9oil98Jj9jv1rDySk7R6BTXp35Mpr0093yE/NwTev8G37XkFwGOpJpTjWTDjvFwg88lp eTh/ne8PLkFZHpoXaRJuHJm4FRps8Nn2osvR0JbybNVCn5vpwRowNXh1TaBAj4i3Uge+U8YCB dzd+kQhLCQmffNI/lSbDVe68OvZxyKYUGD0SS9MlPpNFEJb++JGDbgsyMgeMZXqRh5NqjeKTl 8hidOBhuLSojVvGF3+hm60KGqTvOcBikMUBvqZaeXioSTglB76qSCLkaDrMh8YmKox6EbN/qF WlITLmnbZG/kiQ9IHzlmm8bFOoLmOq0NkDwafY0JHiQ066XwRLuBClfgDMIaNSOtZSZCPvf5z fFO9HQdBkrbRJOO5uEoR+u9cc0YEQvfeUITx0zzWRug8W1imAmQ7BE7QPBeIuv5fQRDx+Cj0c gU2x7Tg/CXjr/UyCd/qcvCWTCrBF9c5H5US5AfljyyN9qNG4+9abfH0TcxgKYoyjKqvH9LrK1 1+m9p5IBXc2I4IKpAdYJ311emXUofA/oXI+MZzqhmmUh+0MGZZOajevT56o9EnE30cikAZoPB FN7L/79b15OjLCDbs0otyQi0grdTKj8UttJ0vtQ9cJQEWa1TP8i8YS4VAV/2kK6aDjm8QR40G Hfn5HP5YVT0UNzFkyhwSs05BxRuXEeeWIBOqpA39pJCbBhw+Rn3ktP4L8bHh7hbWAbCE= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220516_064815_473124_15B3852F X-CRM114-Status: GOOD ( 17.80 ) 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 From: Marcel Ziswiler This is a general update of the Colibri iMX7 device tree files. The Toradex Colibri family is composed of a SoM that can be plugged on various carrier boards, with carrier boards allowing multiple optional accessories (e.g. display, camera, ...). The device tree sources are structured into a SoM dtsi and a carrier dts which then includes the SoM dtsi. The SoM dtsi defines and enables the functionality self-contained on the SoM and prepares for the functionality provided by the carrier HW or accessories so that the carrier dts then can enable or amend nodes provided. Accessories are enabled in overlays depending on HW configuration. Please find the following colibri-imx7 device trees improvements: - Display/Touch Functionality Overhaul Rename display interface to match other modules to make it easier to use device tree overlays. The parallel RGB interface (lcdif) and all related stuff turn on in a device tree overlay. Keep them disabled in the main devicetree. As these subsystems are provided by module and not a part of boards, move their definitions into the module-level devicetree. Disable ad7879 touchscreen which turns on in a devic tree overlay. Remains it disabled in the main devicetree. The Toradex 7" Capacitive and 10" LVDS touch screens are Atmel MXT peripherals available on the I2C bus for touchscreen events. Add atmel_mxt_ts node to the module-level device tree. Also, provide pinmux configuration for the INT/RST inputs from SODIMM pins 106/107 for most carrier boards or an external touchscreen adapter inputs configured to SODIMM pins 28/30. - Ethernet Improvements Add the MDIO bus with the respective PHY. Add Ethernet aliases which is required to properly pass MAC address from bootloader. Add delay for on-module phy supply. - USB Device/Host Switching Add usb dual-role switching using extcon. - MMC/SD The original Colibri specification only defined 3.3 volt TTL signaling and relied on external on-carrier pull-ups for the SD_DATA[0..3] lines. The latest carrier boards like Iris V2 on the other hand are now UHS-I compliant by leaving such external on-carrier pull-ups away relying on module- or even SoC-level ones which pull up to resp. signaling voltage. In such cases, the carrier board-level device tree may explicitly delete the no-1-8-v property to enable full UHS-I support. Also, fix SD/MMC regulator for the carrier boards using UHS-I modes. - Add Iris and Iris V2 Carrier Board Device Trees Add support for Toradex Iris carrier boards. Changes in v2: - Add Krzysztof's acked-by. Thanks! - Revert change on arch/arm/boot/dts/imx6dl-colibri-iris.dts which slipped into this patch set by error. - Re-based on top of Shawn's for-next. Marcel Ziswiler (18): ARM: dts: imx7-colibri: overhaul display/touch functionality ARM: dts: imx7-colibri: add mdio phy node ARM: dts: imx7-colibri: move aliases, chosen, extcon and gpio-keys ARM: dts: imx7-colibri: move regulators ARM: dts: imx7-colibri: clean-up usdhc1 and add sleep config ARM: dts: imx7-colibri: move rtc node ARM: dts: imx7d-colibri-emmc: add cpu1 supply ARM: dts: imx7-colibri-eval-v3: correct can controller comment ARM: dts: imx7-colibri: disable adc2 ARM: dts: imx7-colibri-aster: add ssp aka spi cs aka ss pins ARM: dts: imx7-colibri: add clarifying comments ARM: dts: imx7-colibri: alphabetical re-order ARM: dts: imx7-colibri: clean-up device enabling/disabling ARM: dts: imx7-colibri: remove leading zero from reg address ARM: dts: imx7-colibri: set regulator-name properties ARM: dts: imx7-colibri: clean-up iomuxc pinctrl group naming dt-bindings: arm: fsl: add toradex,colibri-imx7s/d/d-emmc-iris/-v2 ARM: dts: imx7-colibri: add support for Toradex Iris carrier boards Max Krummenacher (1): ARM: dts: imx7-colibri: add ethernet aliases Oleksandr Suvorov (3): ARM: dts: imx7-colibri: improve licensing and compatible strings ARM: dts: imx7-colibri: improve wake-up with gpio key ARM: dts: imx7-colibri: add delay for on-module phy supply Philippe Schenker (1): ARM: dts: imx7-colibri: add usb dual-role switching using extcon Stefan Agner (1): ARM: dts: imx7-colibri: set lcdif clock source to video pll .../devicetree/bindings/arm/fsl.yaml | 6 + arch/arm/boot/dts/Makefile | 6 + arch/arm/boot/dts/imx7-colibri-aster.dtsi | 142 +-- arch/arm/boot/dts/imx7-colibri-eval-v3.dtsi | 156 +--- arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi | 112 +++ arch/arm/boot/dts/imx7-colibri-iris.dtsi | 108 +++ arch/arm/boot/dts/imx7-colibri.dtsi | 830 +++++++++++------- arch/arm/boot/dts/imx7d-colibri-aster.dts | 30 +- .../arm/boot/dts/imx7d-colibri-emmc-aster.dts | 10 +- .../boot/dts/imx7d-colibri-emmc-eval-v3.dts | 10 +- .../boot/dts/imx7d-colibri-emmc-iris-v2.dts | 21 + arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts | 21 + arch/arm/boot/dts/imx7d-colibri-emmc.dtsi | 17 +- arch/arm/boot/dts/imx7d-colibri-eval-v3.dts | 45 +- arch/arm/boot/dts/imx7d-colibri-iris-v2.dts | 83 ++ arch/arm/boot/dts/imx7d-colibri-iris.dts | 56 ++ arch/arm/boot/dts/imx7d-colibri.dtsi | 13 +- arch/arm/boot/dts/imx7s-colibri-aster.dts | 27 +- arch/arm/boot/dts/imx7s-colibri-eval-v3.dts | 43 +- arch/arm/boot/dts/imx7s-colibri-iris-v2.dts | 78 ++ arch/arm/boot/dts/imx7s-colibri-iris.dts | 51 ++ arch/arm/boot/dts/imx7s-colibri.dtsi | 5 +- 22 files changed, 1291 insertions(+), 579 deletions(-) create mode 100644 arch/arm/boot/dts/imx7-colibri-iris-v2.dtsi create mode 100644 arch/arm/boot/dts/imx7-colibri-iris.dtsi create mode 100644 arch/arm/boot/dts/imx7d-colibri-emmc-iris-v2.dts create mode 100644 arch/arm/boot/dts/imx7d-colibri-emmc-iris.dts create mode 100644 arch/arm/boot/dts/imx7d-colibri-iris-v2.dts create mode 100644 arch/arm/boot/dts/imx7d-colibri-iris.dts create mode 100644 arch/arm/boot/dts/imx7s-colibri-iris-v2.dts create mode 100644 arch/arm/boot/dts/imx7s-colibri-iris.dts