Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2791536rdb; Mon, 12 Feb 2024 17:43:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWU3tm+zNrzPzgSZwfwCswBH27oldJEBmQUwQkEOdG7Xgr2So8P9ciGekupKSJzk2njirZaGw+liXANqRnVTeE7286kAf7D+/HGSs1VQg== X-Google-Smtp-Source: AGHT+IHFej8cyYinL+llJP0TJVwt4pGQrfQ68lJ6kl5oH5PBHlHkvldCDevf5ZsW2jJJ09EKJzon X-Received: by 2002:a05:6870:e253:b0:218:d0e5:4800 with SMTP id d19-20020a056870e25300b00218d0e54800mr7476012oac.48.1707788584723; Mon, 12 Feb 2024 17:43:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707788584; cv=pass; d=google.com; s=arc-20160816; b=0WvisLh7jl7fwf5pjjGNibkLMW+NXDNVxCBJ1fZyqzmYd1WK+cfdcx4+s3mDAQG5sB SyjNxPDqAw0ECMtftdOCyFPAK6nFuHcQbqlzwEOF8jJdrbeXKjXllvMDIQi/uogWrmHj AR6mF6c+ebHCkML/XQB/a8HBuIsKLUbgKd56jtEYe8HKqjLBDxRxei9HXD5C9vM9oomt I4soYagoPCRj3TyCnnYtaGxYQklmEgt8WKlidppj/S6ebl9ePWIoAB65dM+4YFc0bVu1 NYmwx6UOyMpXd5GZljbUE7XXZNSZn1OpWoM5ZBeH8pkarVdej3z8LnnDU0M0+Uls9Gl8 3iuQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=V3unOc+IcI6+iLa6jMZK8I4p2Wtka9Yv4yE5+U1G9d4=; fh=2PZ/xHbsARxH555oo6EPxNOZrNt+kRcAGGKMSGkL56Q=; b=ebS14PBcIYtjIYJrqX/kcUqkCrn6QvYk3bfiYGe+NLHWQNq4lQopAmJ+I/zLLl4t02 rWZjWDIx6z81TLasrQ9FuDLT/PozjLljCV4J5W9VIP+pADUrHesJ9g29dmVWSTaSLKwa O9c7sCruz2q1DlLFuUa/Pb32CLHl5D6nw6Pe/hf9qo2Fod3flHi2psJb3ial9XYar61p hS7Bw7UdA07DP0+kI+JQ1aRFNOpmN3Z6qOVAJ7vEbtYttkZ/JLGNN38hMoRFf8M5jXSt XecwFTkAtCcajZsakV6eeC5usn33I72HiJjHz38v5LJ9QkbCYhv11n5DE+2sAM0Frgp2 GqHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OwMWMPYu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62837-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCW9QFwJZOzLYI4IUeJZfr9Zon1CZSAuzJ3CH1KfrwZWeexpOndz7JShpOHraoLOOAVV0RwRHJDGR8TdYXJmlE+Yg8lM4TYBUM9UXRlUQg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id s11-20020a65690b000000b005cdf992367dsi1122577pgq.730.2024.02.12.17.43.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:43:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62837-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OwMWMPYu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62837-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62837-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0CFB8286F8F for ; Tue, 13 Feb 2024 01:40:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7F107657B3; Tue, 13 Feb 2024 01:03:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="OwMWMPYu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 56F1E64CF2; Tue, 13 Feb 2024 01:03:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786233; cv=none; b=c4zas62Ues91bt+RxV5tmJ9w6eIxJIFJQlp9VGwnZ7NCSJGlyxuJLf9SOmEGFTmUm31sU28aoxpIJkc/WSkt24n8JFRipQiD4/Rfok8EHm3mU28WfXcz2E/HBxvDQGh3QVe+4I+WqomFEnDuQ8ghkzG3bFDNfpQEPFAo/RwXtVw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707786233; c=relaxed/simple; bh=XeVXq18LR/iG+eeqYxy0WBcMERz1xei6XUnXUC95ztI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eB4qalIh82rTr8O6gBM05QcqLzzFY8ODe2Zmx+aO7TNrDkitBTTH0sZVGSB429szMOQTYIO2GqKFc1GjRhP8f1JQNKsrnHAkIxJdWb2+u/Wyzin4UbdxL+I5+S44u2HmWiv3swsCEcmkHzG1UfK231TEsPx7EetHOydzKGndTjk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=OwMWMPYu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDF69C433A6; Tue, 13 Feb 2024 01:03:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707786233; bh=XeVXq18LR/iG+eeqYxy0WBcMERz1xei6XUnXUC95ztI=; h=From:To:Cc:Subject:Date:From; b=OwMWMPYuHYa5CItbt87iFfLTz7QSd+nvcqwWSXBNkLJUGVcG7ZG69iW+xcbQcLm7d FOXWyqjmlobQMq6QYj80t3VYY7mNooRZd6RrgohoiDY/WZvoPCbktBi9GykmgyvkeJ w4dVMerx8qrt5cal5q6kfpoxY+gXc+uMXE+m5Lf9XKy5XKW+6QrGnc2JZXXkFMCri0 hm6UPRTJkcdgQIt/BYXUQLKmA0j9iPqMqNUByPG49DoWvw/Nh7UVGTSflICl7hKxK6 EH9/JPVztbm72A1HwBL0OP2ajHrpP/Ke37wwciwlBqDutlGu6/Hm/S2uGapzNFXxTU XU5RIl8IPncWA== Received: by mercury (Postfix, from userid 1000) id 1F72F106A041; Tue, 13 Feb 2024 02:03:49 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam , Pengutronix Kernel Team , NXP Linux Team Cc: Dong Aisheng , Linus Walleij , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 00/17] UNI-T UTi260B support Date: Tue, 13 Feb 2024 02:00:49 +0100 Message-ID: <20240213010347.1075251-1-sre@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, This adds adds support for the UNI-T UTi260B thermal camera, which is based on i.MX6ULL. Patches 1-14 clean up all warnings reported by CHECK_DTBS for i.MX6ULL (i.e. for an empty board). They are not specific to the UTi260B and in fact that machine has most of the IP handled by these patches marked as disabled. Then patches 15+16 introduce the vendor and board compatible DT bindings. Finally the last patches adds support for the thermal camera itself. The DT is based on reverse engineered information. More information about the device can be found in this presentation from Embedded Recipes 2023: * https://embedded-recipes.org/2023/wp-content/uploads/2023/10/Running-FOSS-on-a-Thermal-Camera-Sebastian-Reichel-compressed.pdf * https://www.youtube.com/watch?v=uvObsCG-Cqo I also prepared a branch with these patches (and a minimal kernel config) and published it here: https://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-misc.git/log/?h=uti260b-v2 Changes since PATCHv1: * https://lore.kernel.org/all/20240210012114.489102-1-sre@kernel.org/ - uni-t,imx6ull-uti260b -> uni-t,uti260b - add Acked-by for uni-t vendor prefix - add Acked-by for HDMI audio index fix - add Acked-by for LCDIF power-domain requirement drop - anatop DT binding: Fixed indentation in example - anatop DT binding: Described IRQs - touchscreen DT binding: change tsc@ to touchscreen@ in example - touchscreen DT binding: change xnur-gpio to xnur-gpios - weim DT binding: drop acme,whatever example - weim DT binding: use flash@ instead of nor@ - weim DT binding: update weim.txt reference in arcx,anybus-controller.txt - weim DT binding: switch to memory-controller binding - fsl,imx-asrc DT binding: fix ASoC patch subject prefix - fsl,imx-asrc DT binding: add constraints - add new patch fixing xnur-gpio(s) in all i.MX6UL board DT files - add new patch fixing touchscreen nodename in i.MX6UL SoC DT file - add new patch fixing weim nodename in all i.MX SoC DT files - device DTS: use color/functions for the led - device DTS: increase SPI speed - device DTS: add comment for SD / eMMC node Unadressed feedback from PATCHv1: - anatop phandle vs parent: technically it makes sense to just use the parent, but this driver is only used by i.MX6. The current code makes use of the phandle, so we cannot drop it because of backwards compatibility. So I don't see a point in deprecating this property. - touchscreen binding: I kept measure-delay-time and pre-charge-time values in hex, since that is being used everywhere and the unit is unknown. The values are directly written into HW registers and the i.MX6UL TRM does not provide any hints about the unit. I do not have an i.MX6UL device with a touchsreen, so I cannot test either. - regulator name in DT: I did not rename the regulators to just "regulator", since the nodename must be unique. Greetings, -- Sebastian Sebastian Reichel (17): dt-bindings: pinctrl: fsl,imx6ul-pinctrl: convert to YAML dt-bindings: bus: imx-weim: convert to YAML ASoC: dt-bindings: fsl,imx-asrc: convert to YAML dt-bindings: input: touchscreen: fsl,imx6ul-tsc convert to YAML dt-bindings: soc: imx: fsl,imx-anatop: add binding dt-bindings: soc: imx: fsl,imx-iomuxc-gpr: add imx6 dt-bindings: lcdif: Do not require power-domains for i.MX6ULL dt-bindings: fsl-imx-sdma: fix HDMI audio index ARM: dts: imx6ull: fix pinctrl node name ARM: dts: imx6ul: Remove fsl,anatop from usbotg1 ARM: dts: imx6ul: add missing #thermal-sensor-cells ARM: dts: nxp: imx6ul: xnur-gpio -> xnur-gpios ARM: dts: nxp: imx6ul: fix touchscreen node name ARM: dts: nxp: imx: fix weim node name dt-bindings: vendor-prefixes: add UNI-T dt-bindings: arm: add UNI-T UTi260b ARM: dts: imx6ull-uti260b: Add board .../devicetree/bindings/arm/fsl.yaml | 1 + .../devicetree/bindings/bus/imx-weim.txt | 117 ---- .../bindings/display/fsl,lcdif.yaml | 8 +- .../devicetree/bindings/dma/fsl,imx-sdma.yaml | 3 +- .../input/touchscreen/fsl,imx6ul-tsc.yaml | 97 +++ .../bindings/input/touchscreen/imx6ul_tsc.txt | 38 -- .../fsl/fsl,imx-weim-peripherals.yaml | 36 ++ .../memory-controllers/fsl/fsl,imx-weim.yaml | 201 ++++++ .../mc-peripheral-props.yaml | 1 + .../bindings/pinctrl/fsl,imx6ul-pinctrl.txt | 37 -- .../bindings/pinctrl/fsl,imx6ul-pinctrl.yaml | 116 ++++ .../bindings/soc/imx/fsl,imx-anatop.yaml | 128 ++++ .../bindings/soc/imx/fsl,imx-iomuxc-gpr.yaml | 18 +- .../devicetree/bindings/sound/fsl,asrc.txt | 80 --- .../bindings/sound/fsl,imx-asrc.yaml | 162 +++++ .../devicetree/bindings/vendor-prefixes.yaml | 2 + arch/arm/boot/dts/nxp/imx/Makefile | 1 + arch/arm/boot/dts/nxp/imx/imx1.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx27.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx31.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx35.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx51.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6qdl.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6sl.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6sx.dtsi | 2 +- .../boot/dts/nxp/imx/imx6ul-14x14-evk.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6ul-geam.dts | 2 +- .../nxp/imx/imx6ul-imx6ull-opos6uldev.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6ul.dtsi | 6 +- .../boot/dts/nxp/imx/imx6ull-dhcom-som.dtsi | 2 +- arch/arm/boot/dts/nxp/imx/imx6ull-uti260b.dts | 572 ++++++++++++++++++ arch/arm/boot/dts/nxp/imx/imx6ull.dtsi | 2 +- .../fieldbus/arcx,anybus-controller.txt | 2 +- 33 files changed, 1360 insertions(+), 292 deletions(-) delete mode 100644 Documentation/devicetree/bindings/bus/imx-weim.txt create mode 100644 Documentation/devicetree/bindings/input/touchscreen/fsl,imx6ul-tsc.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/imx6ul_tsc.txt create mode 100644 Documentation/devicetree/bindings/memory-controllers/fsl/fsl,imx-weim-peripherals.yaml create mode 100644 Documentation/devicetree/bindings/memory-controllers/fsl/fsl,imx-weim.yaml delete mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.txt create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imx6ul-pinctrl.yaml create mode 100644 Documentation/devicetree/bindings/soc/imx/fsl,imx-anatop.yaml delete mode 100644 Documentation/devicetree/bindings/sound/fsl,asrc.txt create mode 100644 Documentation/devicetree/bindings/sound/fsl,imx-asrc.yaml create mode 100644 arch/arm/boot/dts/nxp/imx/imx6ull-uti260b.dts -- 2.43.0