From patchwork Wed Dec 14 22:20:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 13073625 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 F3947C4332F for ; Wed, 14 Dec 2022 22:21:41 +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=1UWuY0GqPAz+cgrEMDF3FPxY956R8jBUC6nXJxRC5ic=; b=3ZFymb8k/3BVua je25dRW31IxzuUKEEhoxxHwFMTpTboenn3cW49iRJkDYZIJOPXaoqpGgDy+H9Dm6E0Bms76Wm57yr yDtdYmyskCmp7rx7w+JkpukryMUGveSl2mgduLWj57PFzregFIAFCbC2BVJ61y0FyHQMHDJyczJIs Oqyjoas+62zmtW2AKK+VVoOB8WrMcgk9F9QGttB/WrEvYqV5BNa+tmJy6Hs2/wRnr/VwFUKN+CqpO hXf9tN02DSRPagkeJowg/D9y/nO1RFM/pvryqvRBh9Op5St6+pgJ+dPRgmaFYWkYFE8UvvvExUDnc l2srg8g7oaKGuP63kGEg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5a77-003bjl-BT; Wed, 14 Dec 2022 22:20:33 +0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5a73-003bfD-Uw for linux-arm-kernel@lists.infradead.org; Wed, 14 Dec 2022 22:20:31 +0000 Received: by mail-wr1-x42e.google.com with SMTP id i7so1272890wrv.8 for ; Wed, 14 Dec 2022 14:20:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=f08SdDPxY3s7apm0pW8UKA50CDY6FJL0VeamqVNi2UA=; b=Yjc45udOXyFthyeieoMF0iG5GxAXVAOAm3WA9qfLuCaeCLmKptSOjG58ePgvuGXpi9 DWoQX4TPN2WILUT4d2fTwYi1ed4dWBz9Ime0tX4MGrTOhrIvaNDwfZH0zreHeBohxqsA aELRE8ls53U/xplxi7975YKZmQEsTykJopLLo2rjTBulTcqufV8dfOXu34eRKyqLH+bO yJKCWjl07uU+W9J/t0h9yH1bvUEkEfkwMdbOpTdtnH8pDbgfjPEftMq1F+65w0+/xmxF 93NV2qY1VGm5VwirQ0F6VCYhFUFp5Zr5gAbiZ4TsyjFcHlvO2l8AgdOM9Fv53RBal+61 aVXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=f08SdDPxY3s7apm0pW8UKA50CDY6FJL0VeamqVNi2UA=; b=qD2TnGcJObLfO6UxVrTRQCyYZEJ/SY3KdRYLjg/W6oP5mA+QZi7jVFbkTK8FsNuvQg c01t3woa9iqteM4vf8zwWK5gBali2IL+MC45ocbt58/Q6IbRJGKaaUSwRLb+1q1w1WcV qSzdVzjfxepqWBoIS8LmLBlhLOenIpNM8FkjsBQkul6ZFB/bh9eJnYB+fKEWbzZO2S+g f/OrMgtdIzM8y1rODF+BrwRDxdlpl/FpMg7cx0sabsOQbuH49rajw6h1Oq1TBiwNizs7 XlxvHgeMCkvjGDkiU1eBNSQ/lUzLCxp+FXHX4ToTB9D/5MSzM5zwXJYrc+Bus1SvHLvG bNIw== X-Gm-Message-State: ANoB5pmBUvSoMdvzZb2amKoA74vnu+m8mlGP/iPEbHO46ZuE56deGm3r GmYJwimxQc2Mp3E3D46Yubg= X-Google-Smtp-Source: AA0mqf7HYjkDNlcQozVgR36OzLerd5FB4x0I+KKgj+etRfLwfqEbTkYMiL6WxHZlYFmXFQhdZ2aIZQ== X-Received: by 2002:adf:a45b:0:b0:242:64fd:3e05 with SMTP id e27-20020adfa45b000000b0024264fd3e05mr15823475wra.53.1671056427012; Wed, 14 Dec 2022 14:20:27 -0800 (PST) Received: from localhost ([2a02:1210:8629:800:82ee:73ff:feb8:99e3]) by smtp.gmail.com with UTF8SMTPSA id k17-20020adfb351000000b002423edd7e50sm4208950wrd.32.2022.12.14.14.20.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 14 Dec 2022 14:20:26 -0800 (PST) From: Alexander Sverdlin To: linux-iio@vger.kernel.org Cc: Alexander Sverdlin , Hartley Sweeten , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: iio: adc: ep93xx: Add cirrus,ep9301-adc description Date: Wed, 14 Dec 2022 23:20:23 +0100 Message-Id: <20221214222024.951984-1-alexander.sverdlin@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221214_142030_037695_B5CA5B3E X-CRM114-Status: GOOD ( 15.17 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add device tree bindings for Cirrus Logic EP9301/EP9302 internal SoCs' ADC block. Signed-off-by: Alexander Sverdlin --- .../bindings/iio/adc/cirrus,ep9301-adc.yaml | 58 +++++++++++++++++++ MAINTAINERS | 2 + 2 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml diff --git a/Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml b/Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml new file mode 100644 index 000000000000..d0fd24d1be04 --- /dev/null +++ b/Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/adc/cirrus,ep9301-adc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic EP930x internal ADC + +description: | + Cirrus Logic EP9301/EP9302 SoCs' internal ADC block. + + User's manual: + https://cdn.embeddedts.com/resource-attachments/ts-7000_ep9301-ug.pdf + +maintainers: + - Alexander Sverdlin + +properties: + compatible: + const: cirrus,ep9301-adc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + const: ep93xx-adc + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - clocks + - clock-names + +additionalProperties: false + +examples: + - | + #include + soc { + #address-cells = <1>; + #size-cells = <1>; + + adc: adc@80900000 { + compatible = "cirrus,ep9301-adc"; + reg = <0x80900000 0x28>; + clocks = <&syscon EP93XX_CLK_ADC>; + clock-names = "ep93xx-adc"; + interrupt-parent = <&vic1>; + interrupts = <30>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index 69565ac0c224..4a914d5bc2e6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2027,8 +2027,10 @@ M: Hartley Sweeten M: Alexander Sverdlin L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained +F: Documentation/devicetree/bindings/iio/adc/cirrus,ep9301-adc.yaml F: arch/arm/mach-ep93xx/ F: arch/arm/mach-ep93xx/include/mach/ +F: drivers/iio/adc/ep93xx_adc.c ARM/CLKDEV SUPPORT M: Russell King