From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50367C77B73 for ; Tue, 30 May 2023 12:47:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232253AbjE3MrG (ORCPT ); Tue, 30 May 2023 08:47:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231626AbjE3MrA (ORCPT ); Tue, 30 May 2023 08:47:00 -0400 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5439AE49; Tue, 30 May 2023 05:46:42 -0700 (PDT) Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UC5UDP018243; Tue, 30 May 2023 14:46:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=Dfpj5XCO79UdCapiGApqIcRuxymrn2cJZCDN8Dsb798=; b=OmbFVyE6ljb7l3QmrVehVJ7eoCrwQzTBaxDSWeBmjNjXG/97i/3cQC65jOKbhhrKaXU8 KuUtnKWDemaTGM8cSfGFH3wtwIbXpRneTGITVu4QaAKR0fMOPhRLnvU0jDHnPq6ayRHc Q/h5tZ7/qK0NtyZY+2B2iavZRwmsZxYjNiu/G4uVfevqnpKBj8YLlnDftVF1T/CoXjBT MB2ZKTnzte/8lPlKGFfCV5ZJ492sxnM/UQVb7hlttJ1piDQwDH37mpY2p8E07wFN8klu ye/mFJTgZq/CA94b8qNkFGNhDloPXLCXQ7B80n+2zuPuIwr1eGAkZcGebgL8un7Urjyi cg== 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 3qwdm5hryn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 14:46:12 +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 634B910002A; Tue, 30 May 2023 14:46:12 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5B65D2248D8; Tue, 30 May 2023 14:46:12 +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:46:12 +0200 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Marek Vasut CC: Olivier Moysan , , , , , Subject: [PATCH v2 0/9] ARM: dts: stm32: add adc internal channels on stm32mp15 Date: Tue, 30 May 2023 14:45:28 +0200 Message-ID: <20230530124538.621760-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs. Add support of vrefint channel by adding access to vrefint calibration data in OTP. The internal channels are defined in STM32MP15 SoC DT according to generic channel bindings. The STM32 driver does not support a mixed use of legacy and generic channels. When generic channels are defined, legacy channel are ignored. This involves that the board device trees using legacy bindings have to be changed to generic bindings. Adopt generic iio bindings on STM32 boards implementing the ADC. Changes in v2: - Add patch from https://lore.kernel.org/linux-arm-kernel/20230518020547.487670-1-marex@denx.de/T/ - Change node name from vrefin_cal to vrefin-cal Marek Vasut (1): ARM: dts: stm32: Update to generic ADC channel binding on DHSOM systems Olivier Moysan (8): ARM: dts: stm32: add adc internal channels to stm32mp15 ARM: dts: stm32: add vrefint calibration on stm32mp15 ARM: dts: stm32: add vrefint support to adc2 on stm32mp15 ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1 ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-drc ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-testbench arch/arm/boot/dts/stm32mp151.dtsi | 17 +++++++++ arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 ++++++-- .../boot/dts/stm32mp157c-emstamp-argon.dtsi | 6 ++- arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi | 18 +++++---- .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 38 +++++++++++++++---- .../dts/stm32mp15xx-dhcor-drc-compact.dtsi | 28 ++++++++++++-- .../boot/dts/stm32mp15xx-dhcor-testbench.dtsi | 28 ++++++++++++-- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 29 +++++++++----- 8 files changed, 142 insertions(+), 38 deletions(-) -- 2.25.1 From mboxrd@z Thu Jan 1 00:00:00 1970 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 E3FE7C77B73 for ; Tue, 30 May 2023 12:46:58 +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: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:In-Reply-To:References: List-Owner; bh=2DRym/tGndkkSVDCRqHcjzbyeEb488B4EegpAO0JTTM=; b=HfBHaMthEcB7mv dSmR9k5b8i9pRs39OKxAfwrxAFYv5UiIN2PgLuVs7fMZ8GUG1o6SD3wqV1jY54y6g8KHtYBOWg2Zn QLcL2BQDU7Y0maq/FAzjTyPB62XxajiZYxke/MvYwY33EW2eBkzQyLR1oGPgbB4ioR7UfsYnTA++2 juhwYupXyIQ93Umir/PSxsjaEzXaEzPJhamIfDlUKjyHnTpOwp3GdItgmAzFfs6UWSxmQ65gqTpKB EYGC+ChDp9l5vxELyuXmmgpmIGWY9QSPsr6OPOt0W0MyXYEWn7ya01ReTGbC6TopGXnnZ+wOW6NPY ZcApNPA8kTzNWwnM6LNw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q3ykH-00Due3-0w; Tue, 30 May 2023 12:46:37 +0000 Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q3yk9-00Duc4-2Y for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2023 12:46:31 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34UC5UDP018243; Tue, 30 May 2023 14:46:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=Dfpj5XCO79UdCapiGApqIcRuxymrn2cJZCDN8Dsb798=; b=OmbFVyE6ljb7l3QmrVehVJ7eoCrwQzTBaxDSWeBmjNjXG/97i/3cQC65jOKbhhrKaXU8 KuUtnKWDemaTGM8cSfGFH3wtwIbXpRneTGITVu4QaAKR0fMOPhRLnvU0jDHnPq6ayRHc Q/h5tZ7/qK0NtyZY+2B2iavZRwmsZxYjNiu/G4uVfevqnpKBj8YLlnDftVF1T/CoXjBT MB2ZKTnzte/8lPlKGFfCV5ZJ492sxnM/UQVb7hlttJ1piDQwDH37mpY2p8E07wFN8klu ye/mFJTgZq/CA94b8qNkFGNhDloPXLCXQ7B80n+2zuPuIwr1eGAkZcGebgL8un7Urjyi cg== 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 3qwdm5hryn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 30 May 2023 14:46:12 +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 634B910002A; Tue, 30 May 2023 14:46:12 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5B65D2248D8; Tue, 30 May 2023 14:46:12 +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:46:12 +0200 From: Olivier Moysan To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Marek Vasut CC: Olivier Moysan , , , , , Subject: [PATCH v2 0/9] ARM: dts: stm32: add adc internal channels on stm32mp15 Date: Tue, 30 May 2023 14:45:28 +0200 Message-ID: <20230530124538.621760-1-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 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_09,2023-05-30_01,2023-05-22_02 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230530_054630_099748_328B1C37 X-CRM114-Status: GOOD ( 15.45 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add STM32 ADC2 internal channels VREFINT and VDDCORE to STM32MP15x SoCs. Add support of vrefint channel by adding access to vrefint calibration data in OTP. The internal channels are defined in STM32MP15 SoC DT according to generic channel bindings. The STM32 driver does not support a mixed use of legacy and generic channels. When generic channels are defined, legacy channel are ignored. This involves that the board device trees using legacy bindings have to be changed to generic bindings. Adopt generic iio bindings on STM32 boards implementing the ADC. Changes in v2: - Add patch from https://lore.kernel.org/linux-arm-kernel/20230518020547.487670-1-marex@denx.de/T/ - Change node name from vrefin_cal to vrefin-cal Marek Vasut (1): ARM: dts: stm32: Update to generic ADC channel binding on DHSOM systems Olivier Moysan (8): ARM: dts: stm32: add adc internal channels to stm32mp15 ARM: dts: stm32: add vrefint calibration on stm32mp15 ARM: dts: stm32: add vrefint support to adc2 on stm32mp15 ARM: dts: stm32: enable adc on stm32mp15xx-dkx boards ARM: dts: stm32: adopt generic iio bindings for adc channels on stm32mp157c-ed1 ARM: dts: stm32: adopt generic iio bindings for adc channels on emstamp-argon ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-drc ARM: dts: stm32: adopt generic iio bindings for adc channels on dhcor-testbench arch/arm/boot/dts/stm32mp151.dtsi | 17 +++++++++ arch/arm/boot/dts/stm32mp157c-ed1.dts | 16 ++++++-- .../boot/dts/stm32mp157c-emstamp-argon.dtsi | 6 ++- arch/arm/boot/dts/stm32mp15xx-dhcom-som.dtsi | 18 +++++---- .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 38 +++++++++++++++---- .../dts/stm32mp15xx-dhcor-drc-compact.dtsi | 28 ++++++++++++-- .../boot/dts/stm32mp15xx-dhcor-testbench.dtsi | 28 ++++++++++++-- arch/arm/boot/dts/stm32mp15xx-dkx.dtsi | 29 +++++++++----- 8 files changed, 142 insertions(+), 38 deletions(-) -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel