From patchwork Tue Aug 8 17:25:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 712097 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 515D8C04A6A for ; Tue, 8 Aug 2023 18:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235729AbjHHSY5 (ORCPT ); Tue, 8 Aug 2023 14:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235732AbjHHSY1 (ORCPT ); Tue, 8 Aug 2023 14:24:27 -0400 Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0E0422939; Tue, 8 Aug 2023 10:36:41 -0700 (PDT) Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3787rlQd016340; Tue, 8 Aug 2023 12:35:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=PODMain02222019; bh=S FGoGQF0C9qXyiJopwjeKvCq6hbbNcK+s9km7aBZz3I=; b=EzUr0HvM3svlCTI+q omUKy+3vswT7UduKZ93S2mRWf/BeEpICadFT+SPlE+/gH7dEsB0UsmOg/7VPRz7z 1NRdkXoGbgMCr9OuHICFzq0ZdO6+aqB2VmPXTvZ3PTMqcJZlhWkidcMXWftqnp9h 1wNXbnQmvIHAcSLWOa01OfxMA/XJiHfBMPf+Om9wVadBVH5vDRrJZhsfxXJWAbMK pFsKu/q84/1iZA3BCeSL20+0TAS2I8oZO4rULaKTHMekpsV9r1fSkXN4gIHcC1ZD XYX8W3/yHAPE9Uf3cD+eWhDAiJtRsldQ0BiKfQDkqtHMEJXt7x3OcqgO8O+hIVly kKbxA== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3sb7vt9aeq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 12:35:53 -0500 (CDT) Received: from m0077473.ppops.net (m0077473.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.22/8.17.1.22) with ESMTP id 378HWrRL002574; Tue, 8 Aug 2023 12:35:52 -0500 Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3sb7vt9aek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 08 Aug 2023 12:35:52 -0500 (CDT) Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Tue, 8 Aug 2023 18:35:50 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (141.131.215.158) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.30 via Frontend Transport; Tue, 8 Aug 2023 18:35:50 +0100 Received: by aus-sw-rshr002.ad.cirrus.com (Postfix, from userid 46936) id D50464C0AF4; Tue, 8 Aug 2023 17:35:49 +0000 (UTC) From: James Ogletree To: CC: James Ogletree , Fred Treven , Ben Bright , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Lee Jones" , Wolfram Sang , "Jeff LaBundy" , Peng Fan , Eddie James , Jean Delvare , Arnd Bergmann , Markus Schneider-Pargmann , Jacky Bai , ChiYuan Huang , Randy Dunlap , , , , Subject: [PATCH 1/2] dt-bindings: input: cirrus,cs40l50: Support for CS40L50 Date: Tue, 8 Aug 2023 17:25:06 +0000 Message-ID: <20230808172511.665787-1-james.ogletree@cirrus.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Proofpoint-GUID: UaHV3jza62hB14GT43L7KvQrMmoK1oNG X-Proofpoint-ORIG-GUID: lV9hA8TFxvFocJQC1Gy628cGDSA5DhUC X-Proofpoint-Spam-Reason: safe Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Introduce device tree bindings for the initial commit of the CS40L50 driver. Change-Id: I95369831f947cb32a0a80e81923fd28ace888481 Signed-off-by: James Ogletree --- .../bindings/input/cirrus,cs40l50.yaml | 77 +++++++++++++++++++ MAINTAINERS | 9 +++ 2 files changed, 86 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml diff --git a/Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml b/Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml new file mode 100644 index 000000000000..5437c6beb1b3 --- /dev/null +++ b/Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml @@ -0,0 +1,77 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/cirrus,cs40l50.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Cirrus Logic CS40L50 Advanced Haptic Driver + +maintainers: + - James Ogletree + +description: + CS40L50 is a Haptic Driver with Waveform Memory DSP + and Closed-Loop Algorithms + +properties: + compatible: + enum: + - cirrus,cs40l50 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + VA-supply: + description: Regulator for analog voltage + + VP-supply: + description: Regulator for peak voltage + + VIO-supply: + description: Regulator for digital IO voltage + + cirrus,external-boost: + description: + Bypass the CS40L50 boost converter. + + The amplifier on CS40L50 can be powered internally through the boost + converter, or else can be powered using an external supply. If an + external VA supply is used, the boost converter must be bypassed. + type: boolean + +required: + - compatible + - reg + - interrupts + - reset-gpios + +additionalProperties: false + +examples: + - | + #include + #include + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + cs40l50@34 { + compatible = "cirrus,cs40l50"; + reg = <0x34>; + interrupt-parent = <&gpio>; + interrupts = <113 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio 112 GPIO_ACTIVE_LOW>; + VA-supply = <&dummy_vreg>; + VP-supply = <&dummy_vreg>; + VIO-supply = <&dummy_vreg>; + cirrus,external-boost; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 54ef320bb689..016e5ff3b831 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2081,6 +2081,15 @@ F: arch/arm/boot/compressed/misc-ep93xx.h F: arch/arm/mach-ep93xx/ F: drivers/iio/adc/ep93xx_adc.c +CIRRUS LOGIC HAPTICS DRIVER +M: James Ogletree +M: Fred Treven +M: Ben Bright +L: patches@Qopensource.cirrus.com +S: Supported +T: git https://github.com/CirrusLogic/linux-drivers.git +F: Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml + ARM/CLKDEV SUPPORT M: Russell King L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers)