Received: by 10.192.165.156 with SMTP id m28csp1375027imm; Wed, 18 Apr 2018 08:41:42 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/igqb/O4YPD4ISnuBWOn5iSlcJ2CmYK4wLHRhULPf5EgZo5OJPsiquVH+hTWVgcstqggSP X-Received: by 10.101.97.130 with SMTP id c2mr2178255pgv.219.1524066102291; Wed, 18 Apr 2018 08:41:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524066102; cv=none; d=google.com; s=arc-20160816; b=YEA3f4LqHnTzEgrKWHRPskbthijyhnDpRkouullXlNSIj1Xq8whj007I2usdmL8I6r EwpVmxmpnscRzjffKe1mAoMWj5XgbjyrQIsl202Vb1JHJAldgSgiB+fOCi0i5P36daQl 9LhWFAHZwkE+PvJaAhyZw8GZeLRdFQ2Uo6Ghf5mU5lCishUdFO9be1OxW4XXLbUkf6Rk SLvolqjTPnHF+zCDs+EHaIuxDog1OWcStVYpavMMDwSWgG9QIeDm1i8QTcOcvyFAv3Qy 5e+QJNpuqVN6iZ+rtcDX9Dw3DemETzHaggA6dc2swt/BOWn5Bd9vETwb68Vmi3+k/doq DLeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=YW9oGvobTFA20mejdsMNDxq6GDNAarklL/XCV7AtGRQ=; b=EJus9hVk1b7ti3MDYLXcE0skC3aj6790A4NwKi0FEAxQnSxZ8OoFuRecxA78vA4LOP Yt+rCkICfAiHSsmXALHG9dkvnfKehU6YYnxIX0oqxUuJllS2COt77neMZSzg9gB1n84M gc8lsNl73CQ8wtlsyaOxpDm4KB7/H6hpV3a0RkdHIMr+3yCtIIkPE81WqAoAoLHnDpUx B8LbvYcaag5KQrXUMkfpv+DwPd5sduKhMkem2qKB570xxLYIkqvFf6jyTf7V7epqXUEZ qbP8pgMH0W9l1YmFvR/SNLvIlxRKH7jfQgCkTNO3DAGx+MPz3RIi197a1YD9YtHnPESn Ebig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i7si1372870pfb.353.2018.04.18.08.41.27; Wed, 18 Apr 2018 08:41:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753884AbeDRPjm (ORCPT + 99 others); Wed, 18 Apr 2018 11:39:42 -0400 Received: from mx07-00178001.pphosted.com ([62.209.51.94]:25973 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753279AbeDRPjM (ORCPT ); Wed, 18 Apr 2018 11:39:12 -0400 Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w3IFYKxT030527; Wed, 18 Apr 2018 17:38:16 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2hds2hcgpg-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 18 Apr 2018 17:38:16 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5C34431; Wed, 18 Apr 2018 15:38:16 +0000 (GMT) Received: from Webmail-eu.st.com (gpxdag5node6.st.com [10.75.127.79]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 3833C53F8; Wed, 18 Apr 2018 15:38:16 +0000 (GMT) Received: from localhost (10.75.127.119) by GPXDAG5NODE6.st.com (10.75.127.79) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Wed, 18 Apr 2018 17:38:15 +0200 From: Fabrice Gasnier To: , , CC: , , , , , , , , , , Subject: [PATCH 1/3] dt-bindings: iio: stm32-adc: add support for STM32MP1. Date: Wed, 18 Apr 2018 17:37:52 +0200 Message-ID: <1524065874-434-2-git-send-email-fabrice.gasnier@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524065874-434-1-git-send-email-fabrice.gasnier@st.com> References: <1524065874-434-1-git-send-email-fabrice.gasnier@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.119] X-ClientProxiedBy: GPXDAG3NODE4.st.com (10.75.127.71) To GPXDAG5NODE6.st.com (10.75.127.79) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-18_03:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document support for STM32MP1 ADC. It's quite similar to STM32H7 ADC. Introduce "st,stm32mp1-adc" compatible to handle variants of this hardware such as vregready flag, interrupts, clock rate. Signed-off-by: Fabrice Gasnier --- Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt index e8bb824..9994384 100644 --- a/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt +++ b/Documentation/devicetree/bindings/iio/adc/st,stm32-adc.txt @@ -24,8 +24,11 @@ Required properties: - compatible: Should be one of: "st,stm32f4-adc-core" "st,stm32h7-adc-core" + "st,stm32mp1-adc-core" - reg: Offset and length of the ADC block register set. -- interrupts: Must contain the interrupt for ADC block. +- interrupts: One or more interrupts for ADC block. Some parts like stm32f4 + and stm32h7 share a common ADC interrupt line. stm32mp1 has separate + lines for each ADC within ADC block. - clocks: Core can use up to two clocks, depending on part used: - "adc" clock: for the analog circuitry, common to all ADCs. It's required on stm32f4. @@ -53,6 +56,7 @@ Required properties: - compatible: Should be one of: "st,stm32f4-adc" "st,stm32h7-adc" + "st,stm32mp1-adc" - reg: Offset of ADC instance in ADC block (e.g. may be 0x0, 0x100, 0x200). - clocks: Input clock private to this ADC instance. It's required only on stm32f4, that has per instance clock input for registers access. -- 1.9.1