From patchwork Tue May 30 12:45:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 100864 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2195102vqr; Tue, 30 May 2023 06:51:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M5gGOMw6G51NRoOwTb9djP5Ud80Uf//bOn/egKr2uiXMpD4FV2Gxg9Bqy7jlraX+rg/Nt X-Received: by 2002:a17:903:1105:b0:1ac:8cd4:7404 with SMTP id n5-20020a170903110500b001ac8cd47404mr2856056plh.35.1685454680401; Tue, 30 May 2023 06:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685454680; cv=none; d=google.com; s=arc-20160816; b=ep9ziLwRy8GWET3R5uz95yJbplj+kNvdO2VEqa+CzVUBNGcvACh2WSdePVGPdFjoX9 lGkdfTql5h5v0HQp73D8FmpsEnLyqt2KU7PmW+IFs1grjZVzQ8pD4LSOffqEp6SLS0Fh FfR9HCFm5DL1B9xoEVOfS5CFmbfyn8euysJGA/LSG1wWoAJjULBPWHbdSWHmzpBSQQ+M XTeo6VxOG4qIvMtNaQN8qq4eT5fcP8c1cKgpF+YQRpcQW9yXHL5c3ekjh/F3jJzwI7xy 44SX+Sfw7SAVBgkBFKtntazPohMmCI1BExR4hBTdSprY4Iaw4cPEb1pRJ6OPNs9Zxbl7 Y+9Q== 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=iQXTMxUt9SX5FwNNn9VT0H47jLLTrjkB+qHe01i2GLc=; b=E9q/TUCKJoG+Ai6Yu8pjlXihMT5mc+nSD8o1+imP/2D4T3QvO+c1NvnWv4XFR1SJyZ 9Twjncuc0714/wGjE0PCQ5Wtfu2sCgsyYBrORWbMlUZ2utHrMe1H8FJfyIKvmtzEYfkK rdvn3EbfWGty9pT6V8rfe2DStZ83hs938yQimFvD2IJtCGPUlfXmsqwRwTNBsgFN2GCF Li1dbZvmhNhpunhk5v0RPU2NjgRuTCjkxWmtuhWRyKyRvn56D1Wk9eRKXMQJpdwYMnpl bFtrhDPepmq/j4ZqdbWwTjA/51CO4nQLY4dfneh0rYRSJk8qROhe7tvzphNEV9WJLbPh xYHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=s5JEeavF; 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 z24-20020a1709028f9800b001ae3fa8de08si11049178plo.576.2023.05.30.06.51.05; Tue, 30 May 2023 06:51: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=s5JEeavF; 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 S230487AbjE3Ms0 (ORCPT + 99 others); Tue, 30 May 2023 08:48:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232280AbjE3MsV (ORCPT ); Tue, 30 May 2023 08:48:21 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E54A7E8; Tue, 30 May 2023 05:47:47 -0700 (PDT) Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UBjP66011761; Tue, 30 May 2023 14:47:18 +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=iQXTMxUt9SX5FwNNn9VT0H47jLLTrjkB+qHe01i2GLc=; b=s5JEeavFkt3QmiggyrZWDMOnFkvRKX/NZLiHdhbEGS1U+seF9hgsQ+oeAKCzDEAo+s9S JK0q2UFm0bvm2Nc4jKvIG6DVYR84VIgxCpNtmMHx3Zkw1YTPdHhyTTEHuJ4Z+mWdSnQt ff8vL6gsQyrDIPApiKI+ifF8Fg0EOhpHn/B14cqx3QhWT9HoyF4gkRoyQ2103p8fzrlb 0gncBFfiivR9gohIcxmh1WE8RpUxA8l+8CsxwFSThZKz7XFMp3ea9B4o4Pll9Scb3o1j fmYQ665Lc2T0ru/2g4rYrkiRbhQKMMvW4jw2du+Gm1yflm+p+k0/rgaDeOVV6WJ69CwS XA== 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 3qvsnnqkcd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 14:47:18 +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 E0DE410002A; Tue, 30 May 2023 14:47:17 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D9B222248D6; Tue, 30 May 2023 14:47:17 +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:47:17 +0200 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue CC: Olivier Moysan , , , , Subject: [PATCH v2 5/9] ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1 Date: Tue, 30 May 2023 14:45:33 +0200 Message-ID: <20230530124538.621760-6-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 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_08,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767327327017086012?= X-GMAIL-MSGID: =?utf-8?q?1767327327017086012?= Use STM32 ADC generic bindings instead of legacy bindings on STM32MP157c-ed1 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 --- arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/stm32mp157c-ed1.dts b/arch/arm/boot/dts/stm32mp157c-ed1.dts index 8beb901be506..66ed5f9921ba 100644 --- a/arch/arm/boot/dts/stm32mp157c-ed1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ed1.dts @@ -103,10 +103,20 @@ &adc { vref-supply = <&vdda>; status = "disabled"; adc1: adc@0 { - st,adc-channels = <0 1 6>; - /* 16.5 ck_cycles sampling time */ - st,min-sample-time-nsecs = <400>; status = "okay"; + channel@0 { + reg = <0>; + /* 16.5 ck_cycles sampling time */ + st,min-sample-time-ns = <400>; + }; + channel@1 { + reg = <1>; + st,min-sample-time-ns = <400>; + }; + channel@6 { + reg = <6>; + st,min-sample-time-ns = <400>; + }; }; };