Message ID | 20230112104446.1140551-9-olivier.moysan@foss.st.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 A61C3C54EBC for <linux-arm-kernel@archiver.kernel.org>; Thu, 12 Jan 2023 10:48:30 +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:References:In-Reply-To: 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: List-Owner; bh=F33/hwKaPviCQoWX3V57e4XT28dTXFFB5MgNUrJxz3o=; b=GRHY8rN/qEE2VI 5gBy+unTF4/mefl9QxG+vafwYqOIN01eivT7x/qGFMAZgKOILP/5JIZizFs6KfILaTrHpNelll/mF X5H9RG5nsmhcsXwuu1/IFJ6q2tYYmtoquZNWipuoTDKiOlLM5GEtztBNuRbztUsrhSTTcW9m1Jbfv arQZBlJA28ck6g8dU03K4Rg9GKYZHsT58l2ul4BWufbSEOohaUfMyFonaIIBtJK9tLW2iAPHk8thI ayNPHGB6vJP67dGO1EFmrICRJin0MfYmFpKarQyLNrOR0LOXM2zqftOHZcN2tQ5LzmEm2i3y4a1+O mS5uQGC9Jps09iUBeyIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFv7A-00EeM3-TT; Thu, 12 Jan 2023 10:47:21 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pFv6J-00Eduq-Ae for linux-arm-kernel@lists.infradead.org; Thu, 12 Jan 2023 10:46:31 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 30C7gaKt031502; Thu, 12 Jan 2023 11:46:14 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=knjudRumlSRyotBrdwQs+Czf8QCBps4pPL3XJKzxDtQ=; b=c/FSxS7UxvIJ63IRac71CHZW9UNik2UdXRkFYkOjcS68/C3P0gAE/jHVhACbCZ/a8qAs yUmdYzF5lk6+w2g1neN4sMuFr8W8hevZ/JVKnRCszsLk23X/45eGEMS/nw4MSXSn1ftu KpwGJIWhZWNPH8WikjIRboYHGEX6AArr6cm7joePZ0jIsE6X5TTqz/BKo53N1OXCr6qo YKgi6P31XYHtxh3u5sh10ARx78OVBIib5xV9I9b7Memc7Kf3xnMXGXngB/51OSw29IbZ LUt8gupSMFm3gBvUnZN+GclIwtUeM0DiiP3reggr8zwG9qEh++yBsy1KbKbCeFyReMMM aQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3n1k43j0bv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Jan 2023 11:46:13 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 7F53510002A; Thu, 12 Jan 2023 11:46:13 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 782EB214B1C; Thu, 12 Jan 2023 11:46:13 +0100 (CET) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.13; Thu, 12 Jan 2023 11:46:13 +0100 From: Olivier Moysan <olivier.moysan@foss.st.com> To: Marek Vasut <marex@denx.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> CC: Olivier Moysan <olivier.moysan@foss.st.com>, <kernel@dh-electronics.com>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH 08/10] ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcom Date: Thu, 12 Jan 2023 11:44:43 +0100 Message-ID: <20230112104446.1140551-9-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230112104446.1140551-1-olivier.moysan@foss.st.com> References: <20230112104446.1140551-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2023-01-12_06,2023-01-12_01,2022-06-22_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230112_024627_713953_F4F0F5CA X-CRM114-Status: GOOD ( 17.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
ARM: dts: stm32: add adc internal channels on stm32mp15
|
expand
|
diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi index c06edd2eacb0..343ceaf8cd96 100644 --- a/arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi @@ -82,15 +82,19 @@ &adc { status = "okay"; adc1: adc@0 { - st,min-sample-time-nsecs = <5000>; - st,adc-channels = <0>; status = "okay"; + channel@0 { + reg = <0>; + st,min-sample-time-ns = <5000>; + }; }; adc2: adc@100 { - st,adc-channels = <1>; - st,min-sample-time-nsecs = <5000>; status = "okay"; + channel@1 { + reg = <1>; + st,min-sample-time-ns = <5000>; + }; }; };
Use STM32 ADC generic bindings instead of legacy bindings on DHCOM board. The STM32 ADC specific binding to declare channels has been deprecated, hence adopt the generic IIO channels bindings, instead. The STM32MP151 device tree now exposes internal channels using the generic binding. This makes the change mandatory here to avoid a mixed use of legacy and generic binding, which is not supported by the driver. Signed-off-by: Olivier Moysan <olivier.moysan@foss.st.com> --- arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)