From patchwork Sat Jun 8 18:04:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13691072 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 CDDECC25B76 for ; Sat, 8 Jun 2024 18:05:34 +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=9HkrbhewUmqusb/PnSlITSygXb7W/AddX1pfmFlXqR4=; b=R86P7ZqJ82+SJS vgk8pKY35+0Ney7fiIeXzrsFDmxGERiykeYS6uKdweW2JQ9Kgcdknh19yqnchd99+x4QCOYf6JmFR WsDWkSHoFtkAXBTwypkTMIRom2ZXNvJ3aCtU5aYKqL2nzQXnD2ZyU/e15XzB3zStTQYgv7vr/JUvY xOTOAtYHvWp9IfL0Bv+2SxXhtUzY3P29adBKogGVIkpL4QPJCaopYqZxCLddhbklfdwYcwNsNrk2y S22U0cFICcl+A2MfBG5vPDGfoQVJ4ZcGBXOszF+yVD4iVsmF9W0NS/jmkMbCFA748MHvdD7MdhQ21 s+AASbEv7PARwVFNiN9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sG0RE-00000000VZI-3Phu; Sat, 08 Jun 2024 18:05:12 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sG0RA-00000000VXs-472o for linux-arm-kernel@lists.infradead.org; Sat, 08 Jun 2024 18:05:10 +0000 Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 2DB9A4CA; Sat, 8 Jun 2024 20:04:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1717869895; bh=klCNsdDciQLVPQOQtFjsrDvbqzVwdmU2FJRZkC3SOFU=; h=From:To:Cc:Subject:Date:From; b=HD8eB/mnbubXg1PFjHZcHin5r5eOIQFZldxhbBit1lTLIAHYa92b3qst27J/SrbT4 Qc6YRUGF/NMVlp2YCWZXE16iMPCvyK3YgUQfvhe8qKAH2BuSUH9mPIeP1S+uvfBN5M ZElE5MQwAZ9QoTByrWR93smRpwb8M32gbOKWy1Zk= From: Laurent Pinchart To: linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev Cc: devicetree@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Shawn Guo , Li Yang , Marco Contenti , Nate Drude , FrancescoFerraro , Harshesh Valera , Ahmad Fatoum Subject: [PATCH v3 0/4] arm64: dts: freescale: Add Variscite i.MX8MP DART8MCustomBoard v2 Date: Sat, 8 Jun 2024 21:04:43 +0300 Message-ID: <20240608180447.31378-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240608_110509_290023_FBCB7A16 X-CRM114-Status: GOOD ( 19.62 ) 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 Hello, This patch series adds support for the Variscite DART8MCustomBoard v2 carrier board with a DART-MX8M-PLUS module. The device tree code originates from Variscite's BSP, and has been heavily refactored to adapt to mainline DT bindings. Some features have been left out: - Camera: cameras should be enabled through overlays as they're not part of the carrier board itself. I have successfully tested both camera ports with modules that currently require out-of-tree drivers, so I haven't included them in this series. - USB OTG: the carrier board has a PTN5150 but doesn't route its interrupt pin to the SoC. It should be possible to work around that in the driver by implementing polling, but that requires more work that I can perform at the moment. - WiFi, Bluetooth and audio support: those are part of the DART SoM itself, for which schematics isn't available, so I can't easily troubleshoot them. - PCIe: I lack test hardware for this. May I tempt someone from Variscite to submit patches to enable at least WiFi, Bluetooth, audio and PCIe ? :-) The LVDS display panel is integrated in the carrier board device tree in the BSP, I have split it out to an overlay in this series as it is shipped with the development kit but isn't an integral part of the carrier board. In the review of v2, Shawn pointed out that this overlay caused the DT compiler to spit ou warnings. This is still the case here: DTC arch/arm64/boot/dts/freescale/imx8mp-var-dart-dt8mcustomboard-v2.dtb DTC arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso:54.3-16: Warning (reg_format): /fragment@1/__overlay__/touch@38:reg: property has invalid length (4 bytes) (#address-cells == 2, #size-cells == 1) arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo: Warning (pci_device_reg): Failed prerequisite 'reg_format' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo: Warning (pci_device_bus_num): Failed prerequisite 'reg_format' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo: Warning (i2c_bus_reg): Failed prerequisite 'reg_format' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo: Warning (spi_bus_reg): Failed prerequisite 'reg_format' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso:52.11-68.4: Warning (avoid_default_addr_size): /fragment@1/__overlay__/touch@38: Relying on default #address-cells value arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso:52.11-68.4: Warning (avoid_default_addr_size): /fragment@1/__overlay__/touch@38: Relying on default #size-cells value arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtbo: Warning (graph_port): /fragment@3: graph port node name should be 'port' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso:85.15-87.3: Warning (graph_endpoint): /fragment@3/__overlay__: graph endpoint node name should be 'endpoint' arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso:85.15-87.3: Warning (graph_endpoint): /fragment@3/__overlay__: graph connection to node '/fragment@0/__overlay__/panel/port/endpoint' is not bidirectional DTOVL arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtb When compiling the overlay in isolation, the compiler doesn't know in which context it will be applied, and thus lacks information to validate the device tree. I don't think the issue is specific to this overlay, and I don't know if there are plans to handle it. If this is a blocker for the time being, patches 1/4 to 3/4 can already be merged without the overlay. Laurent Pinchart (4): dt-bindings: arm: fsl: Add Variscite DT8MCustomBoard with DART MX8M-PLUS arm64: dts: freescale: Add support for the Variscite DART-MX8M-PLUS SoM arm64: dts: freescale: Add support for the Variscite i.MX8MP DART8MCustomBoard arm64: dts: freescale: Add panel overlay for Variscite DART .../devicetree/bindings/arm/fsl.yaml | 6 + arch/arm64/boot/dts/freescale/Makefile | 3 + .../imx8mp-var-dart-dt8mcustomboard-v2.dts | 529 ++++++++++++++++++ .../imx8mp-var-dart-panel-gktw70sdae4se.dtso | 99 ++++ .../boot/dts/freescale/imx8mp-var-dart.dtsi | 340 +++++++++++ 5 files changed, 977 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-var-dart-dt8mcustomboard-v2.dts create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-var-dart-panel-gktw70sdae4se.dtso create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-var-dart.dtsi base-commit: 41f93a496af2696d970cbcb3814261a9b32dbaa2