[v2,6/9] ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon
Message ID | 20230530124538.621760-7-olivier.moysan@foss.st.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2174122vqr; Tue, 30 May 2023 06:17:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6YNq/utihadeMe9rcET8nn0KedZtBW5jZPWB28ZjAvANzKNAq1Kn/GyFcsg793NxT8N1ik X-Received: by 2002:a05:6a00:b50:b0:64c:a554:f577 with SMTP id p16-20020a056a000b5000b0064ca554f577mr2659108pfo.11.1685452640740; Tue, 30 May 2023 06:17:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685452640; cv=none; d=google.com; s=arc-20160816; b=a6AAEYnc0CzUG/Pz1X7Y6hwWHKA1CSGshW/wJjOVSwZeIxm7lJOJg9vJlLn35TSPCK J0L5gbQCOx+f5zHuDjHAOxGRHh9ptb5d5JrGUMxzflD8V8cHjSv3CvUOpPuaS/zvuvrn REJ+nWG8BXoiDgCOjlyPPgx+D+F8VlwPLg5I5lfiTq9njFXgjwaEusgT/UYMhPgwCyMR QvQZXFaYtZ8+iwWkbwbdw4Hwff2yyi35DoYqN8Xzp2+P9D5wK3JxYiRTjWf1Fo0Yn/qq /Z+DZriW4KoCidEIwF5OeCupRbkT+6OM5mIdD1/CDoFnaRV3YXt2NfsRHdjUTPoSFZwz 6h/g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ngCEpUO0MoixhBhQjak+ESBBQIkGgYUVlUkd9S2iL5A=; b=wA4++A5aTHqT0CacQLMNt+AuinGnF5ROGuxUnom0IbQNXC4OpdRLd5Q+q5j37bmDCW 79dDORPp6T28SltkbxUvs+lrxkeNt8NPBRk44O3cKRXPJPU/NMwx9p+6gKSirXdty8k3 aacfVRv4cE68PEFQq3GivANaa4ZWch5errKZO4XTegpXLxqcF22yfa+D7g7Fi8cdbmGW VkByqdHYKgk9TsxDafEUbjVYxWJyPmKWXQx+IvLckliUDmRXRASE1/Tn4PTujLeWQS5y GSBKCGbpNimQ8yXwS5A1p0yOZL9HC5V//7Xq/10DsQqLuZ/cxDbqKmPyu2djtUoJTv2i XSAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=sPXqCUgb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a056a00000d00b0064d5c5d72c5si1679113pfk.330.2023.05.30.06.17.06; Tue, 30 May 2023 06:17:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=sPXqCUgb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232332AbjE3Mte (ORCPT <rfc822;andrewvogler123@gmail.com> + 99 others); Tue, 30 May 2023 08:49:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232317AbjE3Mt0 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 30 May 2023 08:49:26 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D855D121; Tue, 30 May 2023 05:49:02 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UC2ZJ9017368; Tue, 30 May 2023 14:48:19 +0200 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=ngCEpUO0MoixhBhQjak+ESBBQIkGgYUVlUkd9S2iL5A=; b=sPXqCUgbhw9VqFR6yzZhgtow9f2DSqC4gkywR5Z5bmjoneUlhGwaImtN3ueiq0kDIMqN qOSkO26dXZVqlE/seppJ7XHJtZWydL61/7nrLRR/IE9C3Q7jrdzk6vRydY5TScOdE3pS OVkCxcvtcHk1GoTRNbBPhVwHibhj9PBIIHwJbs4Rm7+bsTC7APUg653R611wZQf+EIpL 4ctKc0M/RogmuB3MHI0ChzPwddV5iZe0va8IBvW0bJI5QSl8Ivk3D2RYaQOd5tqvaUYG h28yNHltWosYITXy1G2wWLwRfPreCz2oBW5aDFiJON7HA2fK0diYrcD3XO4tg9zyDYR+ cA== 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 3quahy7yuk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 14:48:19 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id AE84B100034; Tue, 30 May 2023 14:48:18 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A75632248DA; Tue, 30 May 2023 14:48:18 +0200 (CEST) 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.21; Tue, 30 May 2023 14:48:18 +0200 From: Olivier Moysan <olivier.moysan@foss.st.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com> CC: Olivier Moysan <olivier.moysan@foss.st.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 v2 6/9] ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon Date: Tue, 30 May 2023 14:45:34 +0200 Message-ID: <20230530124538.621760-7-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230530124538.621760-1-olivier.moysan@foss.st.com> References: <20230530124538.621760-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-30_09,2023-05-30_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767325188124444403?= X-GMAIL-MSGID: =?utf-8?q?1767325188124444403?= |
Series |
ARM: dts: stm32: add adc internal channels on stm32mp15
|
|
Commit Message
Olivier MOYSAN
May 30, 2023, 12:45 p.m. UTC
Use STM32 ADC generic bindings instead of legacy bindings on
emtrion GmbH Argon boards.
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/stm32mp157c-emstamp-argon.dtsi | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/arm/boot/dts/stm32mp157c-emstamp-argon.dtsi b/arch/arm/boot/dts/stm32mp157c-emstamp-argon.dtsi index b01470a9a3d5..94e38141af67 100644 --- a/arch/arm/boot/dts/stm32mp157c-emstamp-argon.dtsi +++ b/arch/arm/boot/dts/stm32mp157c-emstamp-argon.dtsi @@ -97,9 +97,11 @@ &adc { adc1: adc@0 { pinctrl-names = "default"; pinctrl-0 = <&adc1_in6_pins_a>; - st,min-sample-time-nsecs = <5000>; - st,adc-channels = <6>; status = "disabled"; + channel@6 { + reg = <6>; + st,min-sample-time-ns = <5000>; + }; }; adc2: adc@100 {