Received: by 2002:a05:6358:51dd:b0:131:369:b2a3 with SMTP id 29csp29092rwl; Wed, 9 Aug 2023 10:23:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFxsFajnR7gTqsYIuya6z10ymE0pgqhVjefRQ6L/2c+/uObOYM/U6pvaki3UfghB3rhQURV X-Received: by 2002:a17:906:5a5e:b0:994:1844:caec with SMTP id my30-20020a1709065a5e00b009941844caecmr2192706ejc.77.1691601791398; Wed, 09 Aug 2023 10:23:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691601791; cv=none; d=google.com; s=arc-20160816; b=bPbx4ceZg9b84l6avvquXsmxL2CKc/jDXDSoexk5p8PXKiKLrQayknwhnAyv9uYtn+ dKKGzodawcjpflAQrOihYHLh3+igyJtg5tp7gwldnO+Z5yp0gSQxdogtgzP3W6o94gEC 7GolpB76aNZ07eZbdLXnz1wKbUtdW+wkq5wfH4WUWPceMtPzCMzb9BkKoW3nmQDK/FWL BQYXHyuXeqNHtXpVm0WIh41cM8XE4x33q5ivkQELXIsYb13YVQjX5SMUrttv41G51YHW K90fsE5/+qk8xF4wN3+I5XRZX8PPGrJT9QyZH6fO9OmFHCPqRXsePjaAvJr2icYHFwj+ gmqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=JB0AZ/AXR8/rd/bfazMug5AWdtpOlH1XPhUoSyJ8lWA=; fh=s2XyeDJC7pq9cn6ol5sC7IfwqcUt2kJBYK10kvatK+c=; b=UpROHmAJpc83oYu9GbzPq/XwAI1Y3RYeO/QV6xPnBMrQMCgKlKIbUg3p7tyCx4KMaL iU2szSty0naKxk69QaqN0tp7G3Vo3Vs3TqTLcqTXPjp2W5X/SkVtUA8vtM9+b/vdKopi ALSTleoS6IpKzJlcllY5MFA6OKX7QgnBT7sjBZxl7DEBtfAqIRS8YXBMjsFPUaAPw2T8 mEzMoD1srnUoB+Lpbr5zXtTJWF40vdRh3nNLEWPdJQ9BkDEfLUMsirjSxfFGGAHVfzER PaJUuj0ALL9MNhsZXcoa/mBmlsVUAvyhG1lPfJ7hbZsmpZbKesp0gaTyUnICOpcksGHR ARcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=UjTM4QRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170906708300b00992b32e3e3esi8790906ejk.468.2023.08.09.10.22.47; Wed, 09 Aug 2023 10:23:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=UjTM4QRF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232549AbjHINyu (ORCPT + 99 others); Wed, 9 Aug 2023 09:54:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbjHINyt (ORCPT ); Wed, 9 Aug 2023 09:54:49 -0400 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 638052108; Wed, 9 Aug 2023 06:54:47 -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 379C2kWv024607; Wed, 9 Aug 2023 08:54:10 -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=JB0AZ/AXR8/rd/bfazMug5AWdtpOlH1XPhUoSyJ8lWA=; b= UjTM4QRFg2nM7SHoJsSIBsO528fO3R0QBeNbGcj/EE6JPM6TqwUDVnoLdtEic99M wLdDgrDL4AZGk6ii28/bOSni5j04UMYEGWqUCbv4z31aQGZobxTx307xFCJ1EM6E 6sfS7KMErdcvMtNnhAyRn08weZI4/Q7oY+K9CYmnEegCZXJlvPs3/Gvnr/WhVTeM gsUY94fQdBO788jVU7yYJRXonbUmhErTqLEZMpDT2L4udoAuBW6Hb0GzCFUE7jRd KAjkKAwLOScdAgEey/wKG55PsrYOp0d+k9NoeMGhCASvnaoV8ZLosVtWj5zWKw7R 4blUsOSZnx/QNKto5+s0nw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3s9juhur4t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Aug 2023 08:54:10 -0500 (CDT) Received: from m0077474.ppops.net (m0077474.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.22/8.17.1.22) with ESMTP id 379DnVJH001955; Wed, 9 Aug 2023 08:54:09 -0500 Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3s9juhur4q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 09 Aug 2023 08:54:09 -0500 (CDT) Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex02.ad.cirrus.com (198.61.84.81) 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 14:54:08 +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 14:54:08 +0100 Received: by aus-sw-rshr002.ad.cirrus.com (Postfix, from userid 46936) id 3A2594C0CD1; Wed, 9 Aug 2023 13:54:07 +0000 (UTC) From: James Ogletree To: CC: James Ogletree , Fred Treven , Ben Bright , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Lee Jones" , Eddie James , Jacky Bai , Arnd Bergmann , Jeff LaBundy , Markus Schneider-Pargmann , "Randy Dunlap" , ChiYuan Huang , "Jean Delvare" , Joel Stanley , , , , Subject: [PATCH v2 1/2] dt-bindings: input: cirrus,cs40l50: Support for CS40L50 Date: Wed, 9 Aug 2023 13:53:09 +0000 Message-ID: <20230809135313.731706-2-james.ogletree@cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230809135313.731706-1-james.ogletree@cirrus.com> References: <20230809135313.731706-1-james.ogletree@cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: beVh5qQetXHHil0yygJ6wSwAODfQ_9CY X-Proofpoint-ORIG-GUID: bDajHZhNjbklE4dPlNtzoXg51lZi0k5R X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 | 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) -- 2.25.1