From patchwork Wed Aug 9 19:10:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Ogletree X-Patchwork-Id: 712455 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 850B0C001E0 for ; Wed, 9 Aug 2023 19:11:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231657AbjHITLJ (ORCPT ); Wed, 9 Aug 2023 15:11:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46512 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbjHITLJ (ORCPT ); Wed, 9 Aug 2023 15:11:09 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B46FF10DA; Wed, 9 Aug 2023 12:11:07 -0700 (PDT) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 379IWpv4006052; Wed, 9 Aug 2023 14:10:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= PODMain02222019; bh=6D1oZiKGdVGOrxf/zjfwYIhZWTsKw3TnNOwfnXBZW5Y=; b= iX94QG6CcdQwjIXvNIfa3HAl2ZHYu2DWcbnqs1iEZuc2H0xZ6EARFKt6NLgYOKTK z+XfzyHiqt32VFG95DoXNoIJcP5YEtxe1RfJS8LEnC5tjOuXDXLiY1rZDg43UrXK DbdUa3fmoOnWzwx4pLzLAD1wA2q/RvCICcZJEurTXgOqvYVk1DEe3DG8fLYDUIUX dNIIcKPCCQCpqghSMq/59fMN9aGTT7R50zRyC8QD5kEnRNMQXucHCz/zY27f1aR6 df0y7TIPT2lzdbYQkcnA6TlopMIgpSD80qXM/20fciiBaqNKwh8LihNHwyOMraNN 33qWxDY8yPhnVbB14kTv8g== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3s9juhv39w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Aug 2023 14:10:41 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) 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; Wed, 9 Aug 2023 20:10:39 +0100 Received: from aus-sw-rshr002.ad.cirrus.com (141.131.215.158) 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 via Frontend Transport; Wed, 9 Aug 2023 20:10:39 +0100 Received: by aus-sw-rshr002.ad.cirrus.com (Postfix, from userid 46936) id 882694C0CD1; Wed, 9 Aug 2023 19:10:38 +0000 (UTC) From: James Ogletree To: CC: James Ogletree , Fred Treven , Ben Bright , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Lee Jones" , Jean Delvare , Arnd Bergmann , Wolfram Sang , Eddie James , Jacky Bai , "Markus Schneider-Pargmann" , ChiYuan Huang , Jeff LaBundy , Randy Dunlap , "Jerome Neanne" , Bartosz Golaszewski , , , , Subject: [PATCH v3 1/2] dt-bindings: input: cirrus,cs40l50: Support for CS40L50 Date: Wed, 9 Aug 2023 19:10:27 +0000 Message-ID: <20230809191032.820271-2-james.ogletree@cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230809191032.820271-1-james.ogletree@cirrus.com> References: <20230809191032.820271-1-james.ogletree@cirrus.com> MIME-Version: 1.0 X-Proofpoint-GUID: Fi9UmRbU1vhAjrA103v1D170KURrtipw X-Proofpoint-ORIG-GUID: Fi9UmRbU1vhAjrA103v1D170KURrtipw 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. Signed-off-by: James Ogletree --- .../bindings/input/cirrus,cs40l50.yaml | 77 +++++++++++++++++++ MAINTAINERS | 8 ++ 2 files changed, 85 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..0da7211efdec --- /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 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>; + + haptic-driver@34 { + compatible = "cirrus,cs40l50"; + reg = <0x34>; + interrupt-parent = <&gpio>; + interrupts = <113 IRQ_TYPE_LEVEL_LOW>; + reset-gpios = <&gpio 112 GPIO_ACTIVE_LOW>; + va-supply = <&vreg>; + vp-supply = <&vreg>; + vio-supply = <&vreg>; + cirrus,external-boost; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 54ef320bb689..2869dd2dbbcf 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2081,6 +2081,14 @@ 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@opensource.cirrus.com +S: Supported +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)