From patchwork Mon Aug 12 14:14:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Niebel, Markus" X-Patchwork-Id: 13760676 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 6910AC52D7C for ; Mon, 12 Aug 2024 14:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ckAfo9DkYiPyASgk9rjcpynWjMEuUnfqHOAIkiICZ44=; b=Ns4d/TvPva1XkepRTSOOl+p4zc XYob7yVGKRg9qk2gS4hzGiiWC1PbB57kJs8io7RV1lnBjiXlzb/4FaKta3Ry4yXbluCaV11UP7mrf DAo1wCqG7tIBmLhNvgXLRvdGo6LdFwR+hJlAsqdxsNOIstTp3FvFSlNhu+LY0RAbNunVFrP9uemmw SeOxqbsmM+bvasn0C8oOpqYINFMu80iYM+ZcV5mn9x1e2MWM7IlG7zgNowsN8+4++8fCo79zlussz FlX0gkJ9oGpgmjNVaEd9Rn6Ikhiuv4XcogmWJWG98FCzcDH9ZWMZMx743SqXtfJ54khXW6n9DBbBw 7j0IA/Tg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVrl-00000000YSv-2Yyq; Mon, 12 Aug 2024 14:17:45 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVp1-00000000YAT-2jOB for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 14:16:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1723472095; x=1755008095; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ckAfo9DkYiPyASgk9rjcpynWjMEuUnfqHOAIkiICZ44=; b=mGfs/9bWtzRYbs2yhKFf08fAhuY0wjxLDKWbuFnKpdsvSkY/rp6rl13w NzbjtXiix5SX8dktSgyfMjjY5rhFlx33cu2LYolr3znSOL+kQGkITvVHZ GujUVnB8j3vW2NzqctMXanf2UX3enzYuo/t+y0SJ1cKLUH6OxeujWfMxZ KXWrZLFTjZenghT+I+W4YUR3/Pe0bfnE5KgGcKrmsmDCNyKIpkz0J4IGB GJ4O/nRlLnBh4bx82UAzMDZbGNpmZRTeLvhYPhxf+xfFxvHo++N/D7RB6 GOvglkTN3Fr2b9reAcUVjrJWjFmjlG2VO79hlyV+kActPnMnR5X8tE1gB g==; X-CSE-ConnectionGUID: /qyWjhVuTEi1WDKqoYhieA== X-CSE-MsgGUID: 6/P48u4sQUaleAIVpuicSA== X-IronPort-AV: E=Sophos;i="6.09,283,1716242400"; d="scan'208";a="38365462" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 12 Aug 2024 16:14:53 +0200 X-CheckPoint: {66BA18DD-12-186E37A7-E5B59163} X-MAIL-CPID: B363F36F4468971141EAEAC69CA01F0C_2 X-Control-Analysis: str=0001.0A782F24.66BA18DD.0133,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3899A16414E; Mon, 12 Aug 2024 16:14:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1723472089; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=ckAfo9DkYiPyASgk9rjcpynWjMEuUnfqHOAIkiICZ44=; b=dF27kJQ+9WPrz2vHEPr9ZQ100Z2hAj6hsDgi4Bo1Hex3pHb6iqu71lgSMDcFC/xRi0MtWn x35sp8FYUIJS2M5704SX/LBePP0pOVAfxbn7XxVO1KWmPGjWbKQFLikqeMq7KxLoly6pAO s0Ng1aQj6PlrHwrRG2yUgqC6bqe05ua6a6rPMsJrpsosTNmePfcR+tXVEN52vd362/GgvA IEwtdLKCmjsAr2Ty+KsgoaXG+slR0fgcsH8IpZLytBfs0uSTLYjyrMXzPlAVzQnM7ZMY/z izm6fLjyLUBLVruBHCY/xFvBE9gl8m7w211W5U2k8cR+4garD9ncyFRno8Mliw== From: Markus Niebel To: Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, Markus Niebel Subject: [PATCH 1/2] arm: dts: imx7-mba7: add iio-hwmon support Date: Mon, 12 Aug 2024 16:14:13 +0200 Message-Id: <20240812141414.96334-2-Markus.Niebel@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240812141414.96334-1-Markus.Niebel@ew.tq-group.com> References: <20240812141414.96334-1-Markus.Niebel@ew.tq-group.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_071456_006894_E298741F X-CRM114-Status: UNSURE ( 8.30 ) X-CRM114-Notice: Please train this message. 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 Enable IIO hwmon support for ADC1 and ADC2. All channels are available on X23 (ADC2) and X24 (ADC1) of MBa7x. Signed-off-by: Markus Niebel --- arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi index 52869e68f833..775bd3066b87 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi @@ -81,6 +81,12 @@ led2 { }; }; + iio-hwmon { + compatible = "iio-hwmon"; + io-channels = <&adc1 0>, <&adc1 1>, <&adc1 2>, <&adc1 3>, + <&adc2 0>, <&adc2 1>, <&adc2 2>, <&adc2 3>; + }; + reg_sd1_vmmc: regulator-sd1-vmmc { compatible = "regulator-fixed"; regulator-name = "VCC3V3_SD1"; From patchwork Mon Aug 12 14:14:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Niebel, Markus" X-Patchwork-Id: 13760822 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 AB217C52D7C for ; Mon, 12 Aug 2024 15:30:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=j0K7G5V6cVtbaVOEr1S0dT+iNm4AyqSegwDNOMiPThE=; b=CtS/Wv/IXjQYJ9sddbTrh7RMlH 50exRGo2I1aKc8fCeyU9/aueenI+U254A1ItFV242UeKXrSR0alQJvQR9YsPvygXMRU9SLsgpPgOp sWrt15k7JESohvDy2GAUfJ/zZx8NsycXB+Fkj+VOV31lVjZmpmiWxJlTqRNhA9vRsnYwM8pHBFmYe Ih/bfwotPHZeTrrbQbJTKVKpNvi/Go9Bd8C3uxsGrGFfT4LLKlhqTao9k+OKVzXZRCTyRZWeQ69e4 UHhpMGvf4hIGjFUFhswKJdS2A8VHsymOfNLpSlBb4P8lHgmp5zNHyWfH40cspD9G8veyVk8l4X4XJ 6ZpElI5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdX04-00000000joR-47y8; Mon, 12 Aug 2024 15:30:25 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVpF-00000000YBt-2lm2 for linux-arm-kernel@bombadil.infradead.org; Mon, 12 Aug 2024 14:15:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:MIME-Version :References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=j0K7G5V6cVtbaVOEr1S0dT+iNm4AyqSegwDNOMiPThE=; b=Dvno3beoZh3cErtrD1iU+EoBKm Q7XpXUq8o/7rE3VZU8VoOP/DlwYIil78+E8bMb8JsfSS4vIeVXpLj7h70os3XT0w3UAxj7bh4avNv hVojasYQD8bmH/dIGJ69+arZMuU6ziK/99yy/3IIKidEnUadecME7l/8Yl0x33yW2Pxv3GqsTRT5N lVKLs7s73WAjUrqAT48csxa84Lk5VL7OTZQwjk3+5IpLINaU5k5WOVKSn36RHPqjuUgl80ZTCE3D6 6FY/Ykqeszc6Y/9HJ3PAoh09QzUlRApEMf9yz3yMUT4ttxaaS9+vSmtECBU0KSulkfo9+WrOEt8XS Yo/ZBwKg==; Received: from mx1.tq-group.com ([93.104.207.81]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdVpC-00000007aFu-1j2f for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 14:15:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1723472106; x=1755008106; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=j0K7G5V6cVtbaVOEr1S0dT+iNm4AyqSegwDNOMiPThE=; b=hvN6n9oq0prOIxvuwSB0JXB3YGhsqTncS4GKXi0CfBClEFDbC8XJfPnk L/lrTdfuMTpgWhnKnTNk0cclyEj1NmiVyE4SU79WrEup2wx1YJttz2cH+ iTMhd5RU87Jy7PgWk30AGyuAUjqMc5WHbpEcMQl2s3SsDGAFRqtmLP36w LcCqMeZGm0bY2Pp5Rn5RoZ60aPtw1u8+ZCZVeuUqoFh7TWAiVLnvY2F1D mWkbKWqUBfBBSBN1BSwJXWH3+t7tCd+yptAaG/jjWZ4Iiywo8mjPQD7Bg +s0Q/6kL1I7Mr/up/WsHBC7vnW0ETfstj/48TUqN7Z4bCVKldsaZEJeo9 A==; X-CSE-ConnectionGUID: 1fq4UM4mRsO0CPXQC48Srw== X-CSE-MsgGUID: 5enCqQ93R8m1fKyPWt5k2A== X-IronPort-AV: E=Sophos;i="6.09,283,1716242400"; d="scan'208";a="38365469" Received: from vmailcow01.tq-net.de ([10.150.86.48]) by mx1.tq-group.com with ESMTP; 12 Aug 2024 16:15:02 +0200 X-CheckPoint: {66BA18E6-D-82DA89EF-D38C983A} X-MAIL-CPID: B0CE9BA12C694F5CB299E5AB16835DDC_5 X-Control-Analysis: str=0001.0A782F19.66BA18E6.00CA,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id AF322161354; Mon, 12 Aug 2024 16:14:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ew.tq-group.com; s=dkim; t=1723472098; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding:in-reply-to:references; bh=j0K7G5V6cVtbaVOEr1S0dT+iNm4AyqSegwDNOMiPThE=; b=ZqgtUIerE7Xv8LTCWFybDZ/QhxhvD6j+Mhglrl0wKtayfCjSDmDmwKvTAFpGaZ6JPei1xK F8V/mER/ZWV+BGDmbHxZe6H1biO0d3GucWICeFlBtz0T31Y9tLAIvpF654W20+Rc5E9SXw D37pxUw7lTiGwBbEqvz19UNEvvqhjPmIicn6PLC6GtIntkXrQFgzpB22ExSeZXw41CS9+p Tfjk+/7sqCcLkdBJOJA2RAVmLz0aZylFBPIEt5MxkhZeQSSepotcG3bBhOqtvdpgeLjnvB Pw2sJkXBRTaEzCh7n7pncrHEZJU0ggpBpc3ueSN/joJU7hIGcgnUia/5oOn1Rg== From: Markus Niebel To: Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Fabio Estevam Cc: Pengutronix Kernel Team , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, Markus Niebel Subject: [PATCH 2/2] arm: dts: imx7-mba7: improve compatible for LM75 temp sensor Date: Mon, 12 Aug 2024 16:14:14 +0200 Message-Id: <20240812141414.96334-3-Markus.Niebel@ew.tq-group.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240812141414.96334-1-Markus.Niebel@ew.tq-group.com> References: <20240812141414.96334-1-Markus.Niebel@ew.tq-group.com> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240812_151506_661712_1EF4FF39 X-CRM114-Status: UNSURE ( 9.84 ) X-CRM114-Notice: Please train this message. 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 Use national,lm75a to specify exact variant used. This should cause no functional changes. Signed-off-by: Markus Niebel --- arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi index 775bd3066b87..e1c401f468e1 100644 --- a/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi +++ b/arch/arm/boot/dts/nxp/imx/imx7-mba7.dtsi @@ -316,7 +316,7 @@ &flexcan2 { &i2c1 { lm75: temperature-sensor@49 { - compatible = "national,lm75"; + compatible = "national,lm75a"; reg = <0x49>; vs-supply = <®_vcc_3v3>; };