From patchwork Thu Jan 12 10:44:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 42366 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3814674wrt; Thu, 12 Jan 2023 02:58:09 -0800 (PST) X-Google-Smtp-Source: AMrXdXsxxW8eMhCqV7uURHy8BVKZ8ArDMQAOtbTVVvNCh6PRNL9rcMRzyuloIaQ1ezhRgdXCy4SV X-Received: by 2002:a17:907:3445:b0:7ad:c5b7:1c79 with SMTP id ac5-20020a170907344500b007adc5b71c79mr54086149ejc.45.1673521089151; Thu, 12 Jan 2023 02:58:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673521089; cv=none; d=google.com; s=arc-20160816; b=QkKDKMmv6LF4d7DIilhyKw/SBWz8btd8lJkAhdTmk6i0Tmwu4xat/rbFO86u7y/9fM JLQJhtPjO5K8hV+f9NRqwsoMHA9NakTB42qXOzpTKD14zhbG4t67ihNeCw0BGl1EbQID 6Y3nd7+Gxh0af1jIlqhJJrBYC6Cv/pFIYE+t105xzdXceq4TJUXwYf2INsg102C4KePc Pf701DWtEQBEdymQa69OXJEmyUufR94n5f48LMutpJ2bGDqrX4FX7gtfvpSED8yzpE6p ckzxtGOzcoqkVR3MKNmBsI3j5CCLzrjR+wd33PuUIm2daW1aUjzPb+Nr8YXHjldBoTPC 4mGw== 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=HNZn/Sss8OCkI4O73uBiQwt1zxld6WDeyc0yafXjo3Y=; b=wPDd85dxE6YxFfyQv5ZTta7wOzKeJHYT16YXWSHs+CddBRrvwvPUpuJsTIeHg7NpyP ez3UKOZ/wcGQ1pZdWvMklW+bVRcozTf6qZS2IPGORuCjCsRCf10lm8NgGjTnm/h5b9vd 3bZihM0h8R6bfIbsgvCOAuT0EwhDmVoL9TCjGFwP6P3jldCOHfn8d86kTJXJpRgEZEJd 1NA3SoSQmBrHhuehw1t7F5+u3vEgJpbR4l+TFqfct2LUwj/VC/Mnu2GJrvIXuR77LmAr 5E3OJ4FyQUFMSWxdkopVpO4i1bnH1+BWdPvs6gCMIMG9AnV5Ly8v81l7Aw9YO1Hq2XVE nsoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=SmfDEBeu; 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 h19-20020a05640250d300b0048e6babc2c4si20641437edb.503.2023.01.12.02.57.45; Thu, 12 Jan 2023 02:58:09 -0800 (PST) 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=SmfDEBeu; 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 S231439AbjALK50 (ORCPT + 99 others); Thu, 12 Jan 2023 05:57:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231960AbjALKz7 (ORCPT ); Thu, 12 Jan 2023 05:55:59 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B94B5DE72; Thu, 12 Jan 2023 02:46:27 -0800 (PST) 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 30C7vmSO020522; Thu, 12 Jan 2023 11:46:10 +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=HNZn/Sss8OCkI4O73uBiQwt1zxld6WDeyc0yafXjo3Y=; b=SmfDEBeuJDre3988Gt33cSPVETkJIuTfeWLfIuN/luzXMIUDg63u6oiaB1RatES4eA8n LkqpmySP9pq2psPR/eO6jPPo/683uWrhZtpBWvZjfbVT/3/WgcTRCzmbl19L5NbVF4Xe 2CXJva4sHgwnYDSRpWkyS8NukYE9HQfvPcV/efCCzRovdjBtZ0qpx9dHZ8gTtNCxhZOh /7bqiRtUI24OMvpUi9+sbx5IZ8mgLcOyhw7nx8g6NTyNTxxmOzRc8UuWanmxDKa75hf1 6mpG5gnjydrJr3jJ8vL8UatwmbXR8eOmUs+tj24zLpmpMsw0VbuS0/Ro+nFRbtaGKg4C fg== 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 3n1k5s1y9j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 12 Jan 2023 11:46:10 +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 6ECD5100038; Thu, 12 Jan 2023 11:46:10 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 6916B214B1C; Thu, 12 Jan 2023 11:46:10 +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:10 +0100 From: Olivier Moysan To: Marek Vasut , Rob Herring , Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , , Subject: [PATCH 06/10] ARM: dts: stm32: adopt generic iio bindings for adc channels on avenger96 Date: Thu, 12 Jan 2023 11:44:41 +0100 Message-ID: <20230112104446.1140551-7-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-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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754814049624455552?= X-GMAIL-MSGID: =?utf-8?q?1754814049624455552?= Use STM32 ADC generic bindings instead of legacy bindings on Avenger96 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 --- .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi b/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi index 50af4a27d6be..62efb550ae64 100644 --- a/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi +++ b/arch/arm/boot/dts/stm32mp15xx-dhcor-avenger96.dtsi @@ -113,15 +113,35 @@ &adc { status = "okay"; adc1: adc@0 { - st,adc-channels = <0 1 6>; - st,min-sample-time-nsecs = <5000>; status = "okay"; + channel@0 { + reg = <0>; + st,min-sample-time-ns = <5000>; + }; + channel@1 { + reg = <1>; + st,min-sample-time-ns = <5000>; + }; + channel@6 { + reg = <6>; + st,min-sample-time-ns = <5000>; + }; }; adc2: adc@100 { - st,adc-channels = <0 1 2>; - st,min-sample-time-nsecs = <5000>; status = "okay"; + channel@0 { + reg = <0>; + st,min-sample-time-ns = <5000>; + }; + channel@1 { + reg = <1>; + st,min-sample-time-ns = <5000>; + }; + channel@2 { + reg = <2>; + st,min-sample-time-ns = <5000>; + }; }; };