From mboxrd@z Thu Jan 1 00:00:00 1970 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 4A271C54E60 for ; Mon, 18 Mar 2024 00:06:00 +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:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OPzshtIBLoq8r9BUUKqb/ZRCVy22ZIFaRH/0Kp9t95s=; b=hMw540zK4zZrJj JxF1SIueM+hl82MSathKB4bGe+KiCadQ63eEHZNYN9AX5aMELQWQmECC4urDL4zcbERzxaouPOKjI B8mPqrXCx/w2K9N7rc8GyiSYh1+e7qxk9LYfoOMEm8c2bc+3PGkmvce6ZXFYU4d0bIMFGKQwOonXg LpBmwzlXrlS9y9b+sigTLjSdT5OlcladR/I/6qkQ9MfrwGKb7McrF1nhLt/4yOEISfqvBT1PSKFgw Rx1Q4o4pVaONjQIuEpq3A4NAYya3utfjxdJ+MAapKMmqdURYpu4MbEGP/CwRyzP9WS/6ThgCiKuDx 7fZKCEBjXo3L85VHmxpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rm0Vd-00000006ncz-11em; Mon, 18 Mar 2024 00:05:45 +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 1rm0VW-00000006nbi-0CUr for linux-arm-kernel@lists.infradead.org; Mon, 18 Mar 2024 00:05:44 +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 E088BCC; Mon, 18 Mar 2024 01:05:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710720311; bh=MMMqqJ3gk8ghkXpGTKWiDbNxjxsttWcZW8tVQEnzeJ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fQC3qGKUCqVHPc5XA1TWgwWhHjNJT8gebDoduY25S8A2hV6K602BK5bQnKSLXB+WU I1JvPpA5b5+pA3VNP+U1N8YOwXbtHWwmbBd3Ibo909mR1qCMTOAEnal9YNqj20svR+ 8Kk2cv44N6Ud70derYbsUnc4EpU8R9JxcWGmcPpg= Date: Mon, 18 Mar 2024 02:05:33 +0200 From: Laurent Pinchart To: linux-arm-kernel@lists.infradead.org Cc: Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , imx@lists.linux.dev, Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org Subject: Re: [PATCH v2 5/5] arm64: dts: freescale: imx8mp-sb-ucm: Add DSI panel overlay Message-ID: <20240318000533.GA30573@pendragon.ideasonboard.com> References: <20240317164850.32708-1-laurent.pinchart@ideasonboard.com> <20240317164850.32708-6-laurent.pinchart@ideasonboard.com> <20240317165647.GA646@pendragon.ideasonboard.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240317165647.GA646@pendragon.ideasonboard.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240317_170543_167964_315DA340 X-CRM114-Status: GOOD ( 22.95 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Mar 17, 2024 at 06:56:47PM +0200, Laurent Pinchart wrote: > On Sun, Mar 17, 2024 at 06:48:50PM +0200, Laurent Pinchart wrote: > > The SB-UCM-iMX8MPLUS kit is shipped with an external DSI panel. Add a > > corresponding DT overlay. > > > > Signed-off-by: Laurent Pinchart > > --- > > arch/arm64/boot/dts/freescale/Makefile | 4 + > > .../imx8mp-sb-ucm-panel-kd050hdfia020.dtso | 81 +++++++++++++++++++ > > 2 files changed, 85 insertions(+) > > create mode 100644 arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso > > > > diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile > > index 02efa97fc464..d7432ce6a7bb 100644 > > --- a/arch/arm64/boot/dts/freescale/Makefile > > +++ b/arch/arm64/boot/dts/freescale/Makefile > > @@ -165,6 +165,10 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mp-icore-mx8mp-edimm2.2.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mp-msc-sm2s-ep1.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mp-phyboard-pollux-rdk.dtb > > dtb-$(CONFIG_ARCH_MXC) += imx8mp-sb-ucm.dtb > > + > > +imx8mp-sb-ucm-panel-kd050hdfia020-dtbs := imx8mp-sb-ucm.dtb imx8mp-sb-ucm-panel-kd050hdfia020-dtbo > > +dtb-$(CONFIG_ARCH_MXC) += imx8mp-sb-ucm-panel-kd050hdfia020-dtb Replying to myself, fixing the typo here with s/-dtb$/.dtb/ helps :-) I'll send a v3 after waiting some time for review comments. > On a side note, is there a way to selectively compile this dtb ? Running > > $ make dtbs > > will compile them all, but > > $ make freescale/imx8mp-sb-ucm-panel-kd050hdfia020-dtb > > complains with > > make[4]: *** No rule to make target 'arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtb'. Stop. > make[3]: *** [/home/laurent/src/iob/toradex/linux/scripts/Makefile.build:481: arch/arm64/boot/dts/freescale] Error 2 > make[2]: *** [/home/laurent/src/iob/toradex/linux/Makefile:1389: freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtb] Error 2 > > I would like to compile it selectively, as running > > $ make dtbs CHECK_DTBS=1 > > makes it much more time consuming to run the dtb checks. > > > + > > 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 > > diff --git a/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso b/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso > > new file mode 100644 > > index 000000000000..fdad943c1554 > > --- /dev/null > > +++ b/arch/arm64/boot/dts/freescale/imx8mp-sb-ucm-panel-kd050hdfia020.dtso > > @@ -0,0 +1,81 @@ > > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > > +/* > > + * Copyright 2021 CompuLab > > + * > > + * Device tree overlay for KD050HDFIA020-C020A panel connector to Compulab > > + * SB-UCM-iMX8PLUS. > > + */ > > + > > +/dts-v1/; > > +/plugin/; > > + > > +#include > > +#include > > + > > +&dsi_backlight { > > + status = "okay"; > > +}; > > + > > +&i2c5 { > > + status = "okay"; > > + > > + touch@5d { > > + compatible = "goodix,gt911"; > > + reg = <0x5d>; > > + > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_dsi_touch>; > > + > > + interrupt-parent = <&gpio4>; > > + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; > > + > > + irq-gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>; > > + reset-gpios = <&pca9555 5 GPIO_ACTIVE_HIGH>; > > + }; > > +}; > > + > > +&lcdif1 { > > + status = "okay"; > > +}; > > + > > +&mipi_dsi { > > + #address-cells = <1>; > > + #size-cells = <0>; > > + samsung,esc-clock-frequency = <20000000>; > > + status = "okay"; > > + > > + panel@0 { > > + compatible = "startek,kd050hdfia020", "ilitek,ili9881c"; > > + reg = <0>; > > + pinctrl-names = "default"; > > + pinctrl-0 = <&pinctrl_dsi_panel>; > > + > > + reset-gpio = <&pca9555 4 GPIO_ACTIVE_LOW>; > > + power-supply = <®_3v3_per>; > > + > > + backlight = <&dsi_backlight>; > > + > > + port { > > + panel_in: endpoint { > > + remote-endpoint = <&mipi_dsi_out>; > > + data-lanes = <1 2 3 4>; > > + }; > > + }; > > + }; > > + > > + ports { > > + port@1 { > > + reg = <1>; > > + > > + mipi_dsi_out: endpoint { > > + remote-endpoint = <&panel_in>; > > + data-lanes = <1 2 3 4>; > > + lane-polarities = <0 0 0 0 0>; > > + }; > > + }; > > + }; > > +}; > > + > > +&pwm1 { > > + status = "okay"; > > +}; -- Regards, Laurent Pinchart _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel