Message ID | 20231206144201.46911-1-frieder@fris.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4151512vqy; Wed, 6 Dec 2023 06:44:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG17Wsg/M+C9a5zmCOJHok1ZEmWfxogzP+ogeOk4NNoQz6Ruuu5ndvoTBLzdtmVGwo6JFeb X-Received: by 2002:a05:6a20:be03:b0:186:bd68:facc with SMTP id ge3-20020a056a20be0300b00186bd68faccmr803986pzb.28.1701873878497; Wed, 06 Dec 2023 06:44:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701873878; cv=none; d=google.com; s=arc-20160816; b=WFqDCC0bTYTuUnkEf6pt+EBD5ottIRpMVCRCuSKz2FAI7b9k4rNZ9cynZSwpTM6qcC Ge1CvySZrf/XnwwWauBBpst2n2ht522CxgTeogNN1iEq8EwJ+7gs0yhUpzRmxtw0ga/x fYpE/+nwp7bceEgp4j4FVWcVxtm3fkodQdFrJJ7yuMLYxQcoM6m7HQyftA1SkH4HcoMH Ylj5bB7H/yVRZSeLy6BEhLFFBpFshtbaEddeJwp5qwmRCsAIvItn6wQpFcyA/jzFWs3+ au5p8wOIETUtCo+rXAbhV8hGuLBXAIabIKBtO1QALO1lG4K1VStbX9u+Vk+hdoCNZ7n9 k3tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DYC2UmLyDBy1YqTJMJhvOKy08hLxAorwAG3jaQhODF4=; fh=GepdLOFuBuEYk+zCVZ8zeKxezqsaITl2656F1qISnTY=; b=mCuCeljlX0FRUjT+YhoLB4FeHjGAb+5mqFteUnb/KJHXYlBfUmNJFEqtM7Ml6uNHbO mScF/cuYutBArgciwTEtUaV+oy6hz5r0xpPOMd2vkmqYWctBuJ0tq22oExtTm2aD0o6D zuQQMzD0teqELPR0eMs5UqdZMUSf3/2L9a/H3zM1/iHIH+Doix7nSs92FSqOwmBj46vq rMWD+VS+fe4peH6vChfhX15DeeambeX9/1VNYNOBrHmOb+fTz++Addx2iQISk+dQ3BtP P9uuq13+p6bCGWMh3W9AXITg5X3ztm6N7ULlO51G8iIN2GvEnhyMlxW+y6WSY6wRocAH mEpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=FVAUO6iK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id g22-20020a056a000b9600b006ce7c7570c6si47923pfj.288.2023.12.06.06.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 06:44:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@fris.de header.s=dkim header.b=FVAUO6iK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fris.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 7DE198029853; Wed, 6 Dec 2023 06:44:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379007AbjLFOoW (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 09:44:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378966AbjLFOoV (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 09:44:21 -0500 Received: from mail.fris.de (unknown [IPv6:2a01:4f8:c2c:390b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6071D49; Wed, 6 Dec 2023 06:44:25 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 29CE4C00E1; Wed, 6 Dec 2023 15:44:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fris.de; s=dkim; t=1701873862; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=DYC2UmLyDBy1YqTJMJhvOKy08hLxAorwAG3jaQhODF4=; b=FVAUO6iKJOwB02zav5uP8jaYJK7ImmJMJV2nDoaPnFsfw+c+idtL7ci8o4FpP4XmPURreB gjzt9E+Qug5f5WmPdGCudwftTpOQWQaoE4urwjGML6TTY6VYh08Gb8ztTJ3mP39K8mMZvn 1W8X1LRCwBbs1QynCNz9CmTO706Dt3daEBaSQZszgR9iW6TbjSss4nTtUgjGg8LujgVjRT EV9M13vP9Cu9naapg7EjboZ1UeO1w6dQ6N+5aUa8YL8x9qd8XidcvoI4zkhaRMa9z+Fb/c YkDlaVmIys7H9TCF1i0OwJy7rrDyDkJOLhVW3qeEKEaRHjygnfrvUE3yjavaLw== From: Frieder Schrempf <frieder@fris.de> To: Conor Dooley <conor+dt@kernel.org>, devicetree@vger.kernel.org, Frieder Schrempf <frieder.schrempf@kontron.de>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring <robh+dt@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Shawn Guo <shawnguo@kernel.org> Cc: Alexander Stein <alexander.stein@ew.tq-group.com>, Fabio Estevam <festevam@gmail.com>, Gregor Herburger <gregor.herburger@ew.tq-group.com>, Krzysztof Kozlowski <krzk@kernel.org>, Marcel Ziswiler <marcel.ziswiler@toradex.com>, Marek Vasut <marex@denx.de>, NXP Linux Team <linux-imx@nxp.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Philippe Schenker <philippe.schenker@toradex.com>, Tim Harvey <tharvey@gateworks.com> Subject: [PATCH v3 00/14] arm64: dts: imx8mm-kontron: DT updates Date: Wed, 6 Dec 2023 15:41:03 +0100 Message-ID: <20231206144201.46911-1-frieder@fris.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Last-TLS-Session-Version: TLSv1.3 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 06:44:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784544103549776437 X-GMAIL-MSGID: 1784544103549776437 |
Series |
arm64: dts: imx8mm-kontron: DT updates
|
|
Message
Frieder Schrempf
Dec. 6, 2023, 2:41 p.m. UTC
From: Frieder Schrempf <frieder.schrempf@kontron.de>
This patchset contains several improvements and updates for the devicetrees
for the i.MX8MM modules and boards by Kontron Electronics GmbH.
* HDMI/LVDS support for the BL/DL i.MX8MM
* Misc cleanups and small fixes
* OSM-S i.MX8MM module refactoring and update to latest HW revision
Changes in v3:
* Address Shawn's review comments for patch 1, 2 and 14 (thanks!)
Changes in v2:
* Rework DSI mux GPIO logic to be compatible with overlay
* Switch from 4 to 2 DSI lanes for LVDS bridge to fix non-working display
Frieder Schrempf (14):
arm64: dts: imx8mm-kontron: Add support for display bridges on BL
i.MX8MM
arm64: dts: imx8mm-kontron: Add DL (Display-Line) overlay with LVDS
support
arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on OSM-S
i.MX8MM
arm64: dts: imx8mm-kontron: Disable pullups for I2C signals on SL/BL
i.MX8MM
arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals
on BL OSM-S board
arm64: dts: imx8mm-kontron: Disable pullups for onboard UART signals
on BL board
arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals
on BL OSM-S board
arm64: dts: imx8mm-kontron: Disable pull resistors for SD card signals
on BL board
arm64: dts: imx8mm-kontron: Fix interrupt for RTC on OSM-S i.MX8MM
module
arm64: dts: imx8mm-kontron: Fix OSM-S devicetrees to match latest
hardware
arm64: dts: imx8mm-kontron: Disable uneffective PUE bit in SDIO IOMUX
arm64: dts: imx8mm-kontron: Remove useless trickle-diode-disable from
RTC node
arm64: dts: imx8mm-kontron: Add I2C EEPROM on OSM-S Kontron i.MX8MM
arm64: dts: imx8mm-kontron: Refactor devicetree for OSM-S module and
board
arch/arm64/boot/dts/freescale/Makefile | 4 +
.../dts/freescale/imx8mm-kontron-bl-osm-s.dts | 295 +++------
.../boot/dts/freescale/imx8mm-kontron-bl.dts | 198 +++++-
.../boot/dts/freescale/imx8mm-kontron-dl.dtso | 201 +++++++
.../dts/freescale/imx8mm-kontron-osm-s.dtsi | 567 +++++++++++++++++-
.../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 4 +-
6 files changed, 1035 insertions(+), 234 deletions(-)
create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso
Comments
On Wed, Dec 06, 2023 at 03:41:03PM +0100, Frieder Schrempf wrote: > From: Frieder Schrempf <frieder.schrempf@kontron.de> ... > arch/arm64/boot/dts/freescale/Makefile | 4 + > .../dts/freescale/imx8mm-kontron-bl-osm-s.dts | 295 +++------ > .../boot/dts/freescale/imx8mm-kontron-bl.dts | 198 +++++- > .../boot/dts/freescale/imx8mm-kontron-dl.dtso | 201 +++++++ > .../dts/freescale/imx8mm-kontron-osm-s.dtsi | 567 +++++++++++++++++- > .../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 4 +- > 6 files changed, 1035 insertions(+), 234 deletions(-) > create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso A couple of things: - I have to use 'git am -3' apply some of the patches. Could you rebase the series on imx/dt64 branch? - There are a few DTC warnings that need to be addressed. ../arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts:235.34-238.7: Warning (graph_endpoint): /soc@0/bus@30800000/i2c@30a40000/bridge@2c/ports/port@0/endpoint: graph connection to node '/soc@0/bus@32c00000/dsi@32e10000/ports/port@1/endpoint' is not bidirectional arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtbo: Warning (graph_port): /fragment@3: graph port node name should be 'port' ../arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso:61.17-63.3: Warning (graph_endpoint): /fragment@3/__overlay__: graph endpoint node name should be 'endpoint' Shawn
On 13.12.23 10:31, Shawn Guo wrote: > On Wed, Dec 06, 2023 at 03:41:03PM +0100, Frieder Schrempf wrote: >> From: Frieder Schrempf <frieder.schrempf@kontron.de> > ... >> arch/arm64/boot/dts/freescale/Makefile | 4 + >> .../dts/freescale/imx8mm-kontron-bl-osm-s.dts | 295 +++------ >> .../boot/dts/freescale/imx8mm-kontron-bl.dts | 198 +++++- >> .../boot/dts/freescale/imx8mm-kontron-dl.dtso | 201 +++++++ >> .../dts/freescale/imx8mm-kontron-osm-s.dtsi | 567 +++++++++++++++++- >> .../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 4 +- >> 6 files changed, 1035 insertions(+), 234 deletions(-) >> create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso > > A couple of things: > > - I have to use 'git am -3' apply some of the patches. Could you rebase > the series on imx/dt64 branch? Ok, sure! > > - There are a few DTC warnings that need to be addressed. > > ../arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts:235.34-238.7: Warning (graph_endpoint): /soc@0/bus@30800000/i2c@30a40000/bridge@2c/ports/port@0/endpoint: graph connection to node '/soc@0/bus@32c00000/dsi@32e10000/ports/port@1/endpoint' is not bidirectional I'm not aware of a proper solution for this warning. The thing is that there is a DSI switch on the board that is able to route the DSI output of the SoC to one of two bridges (HDMI or LVDS). On the driver side there is no representation of the switch. Therefore the result is a three-way connection for the graph ports which is reported by the binding check, but works fine as we only enable one of the target port nodes at a time and use GPIO hogs to select the switch path. Rob, Krzystztof: Would it be acceptable to ignore this until there is a way to represent this in the DT? Are there alternative solutions? Is there anything to model a graph link switch? > arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtbo: Warning (graph_port): /fragment@3: graph port node name should be 'port' > ../arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso:61.17-63.3: Warning (graph_endpoint): /fragment@3/__overlay__: graph endpoint node name should be 'endpoint' For these warnings it seems like I could work around them by creating two separate port nodes in the board DT and then only enable the proper one in the overlay.
On 19.12.23 16:14, Frieder Schrempf wrote: > On 13.12.23 10:31, Shawn Guo wrote: >> On Wed, Dec 06, 2023 at 03:41:03PM +0100, Frieder Schrempf wrote: >>> From: Frieder Schrempf <frieder.schrempf@kontron.de> >> ... >>> arch/arm64/boot/dts/freescale/Makefile | 4 + >>> .../dts/freescale/imx8mm-kontron-bl-osm-s.dts | 295 +++------ >>> .../boot/dts/freescale/imx8mm-kontron-bl.dts | 198 +++++- >>> .../boot/dts/freescale/imx8mm-kontron-dl.dtso | 201 +++++++ >>> .../dts/freescale/imx8mm-kontron-osm-s.dtsi | 567 +++++++++++++++++- >>> .../boot/dts/freescale/imx8mm-kontron-sl.dtsi | 4 +- >>> 6 files changed, 1035 insertions(+), 234 deletions(-) >>> create mode 100644 arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso >> >> A couple of things: >> >> - I have to use 'git am -3' apply some of the patches. Could you rebase >> the series on imx/dt64 branch? > > Ok, sure! > >> >> - There are a few DTC warnings that need to be addressed. >> >> ../arch/arm64/boot/dts/freescale/imx8mm-kontron-bl.dts:235.34-238.7: Warning (graph_endpoint): /soc@0/bus@30800000/i2c@30a40000/bridge@2c/ports/port@0/endpoint: graph connection to node '/soc@0/bus@32c00000/dsi@32e10000/ports/port@1/endpoint' is not bidirectional > > I'm not aware of a proper solution for this warning. The thing is that > there is a DSI switch on the board that is able to route the DSI output > of the SoC to one of two bridges (HDMI or LVDS). > > On the driver side there is no representation of the switch. Therefore > the result is a three-way connection for the graph ports which is > reported by the binding check, but works fine as we only enable one of > the target port nodes at a time and use GPIO hogs to select the switch path. > > Rob, Krzystztof: Would it be acceptable to ignore this until there is a > way to represent this in the DT? Are there alternative solutions? Is > there anything to model a graph link switch? > >> arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtbo: Warning (graph_port): /fragment@3: graph port node name should be 'port' >> ../arch/arm64/boot/dts/freescale/imx8mm-kontron-dl.dtso:61.17-63.3: Warning (graph_endpoint): /fragment@3/__overlay__: graph endpoint node name should be 'endpoint' > > For these warnings it seems like I could work around them by creating > two separate port nodes in the board DT and then only enable the proper > one in the overlay. Until I find out how to deal with the DTC warnings above, I sent a v4 without the display support patches to unblock the merging of the other patches.