Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7987306rdb; Thu, 4 Jan 2024 14:39:09 -0800 (PST) X-Google-Smtp-Source: AGHT+IGRBWQ5Rxy6AkNgFj9Ywh075Cyv3xs0Fw62AXJnbDw3quuToN9VMK4LJ68BdssIySyLKFFS X-Received: by 2002:a05:6a00:988:b0:6da:35e8:b3d6 with SMTP id u8-20020a056a00098800b006da35e8b3d6mr1382731pfg.54.1704407949673; Thu, 04 Jan 2024 14:39:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704407949; cv=none; d=google.com; s=arc-20160816; b=p59EYFD4+Cex5VyjG3BuPMfOAd47WRg/T/rwKJXChuqFTbWJGag14DJnaHfN4B31ad Jey3oLKZaC/8pw7qsAISUT4b05RN1ktQ0HLgnVv2jvnEC+g8+1lXCo0evVNpyTkhLo58 V1j2ZT80MzPUGTvKYjGenl9LCjSwej1KEZEfpylMRROimmM67/t9/bUJRn1qabFGUxBE EgQqLywZG6e2MLxKhYNisiMDR/jby3SF8rc5cC8XKIf/IPLl+l3oFTp50sdrJmv1PePd KHog+MqlMLHUGSNf9rgGI2dG8cTPt9PFu9dxxNaPLcfnK6k6NWaMpUEEyob20KbtRvjU 1ydg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=47IHhsRme6l9Ja8GxBg5XecVkHApII8gwWqYXN4mq3Y=; fh=X0bnRRC15K60KVzGOm+3yol1tbUQkucrlbwwX4uryLY=; b=ZkPHv8/FLuX7DRYwIcTU0NjAWuZwNfH8qaDkGh1rRRCsNMTys/qWhjCtDcZ3cJp/sJ 5iM0zni1jFuEoG0fA/72vRUzkX1osTkoLFZx7+e7f8WcziUpyaLr7kz28HIrmLeYAp/+ EqsSpKTPKT4oCZwINbCV/cbfQXQ+HI358Omv6i3ZdFexQsXFKJMHMxE3W5aA/4sjpNpR iFVpJYzl3BVLgcz+MXg7amZjO1Gc3fad5azG6RxQ4skLmoFkdDiveHyQmriRfExZIzCP f/5E6lcpT3pXOYcqdR9D5uG2DCX9T7nmslGsk5GiN4UqRNYzCy81zrwga7S3z6qI4HjB UMKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=RuRRBQby; spf=pass (google.com: domain of linux-kernel+bounces-17293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t63-20020a638142000000b005c600ffa335si266503pgd.217.2024.01.04.14.39.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 14:39:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=RuRRBQby; spf=pass (google.com: domain of linux-kernel+bounces-17293-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17293-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5474328596D for ; Thu, 4 Jan 2024 22:39:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1CBFF2CCDA; Thu, 4 Jan 2024 22:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=cirrus.com header.i=@cirrus.com header.b="RuRRBQby" X-Original-To: linux-kernel@vger.kernel.org Received: from mx0b-001ae601.pphosted.com (mx0a-001ae601.pphosted.com [67.231.149.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C3D7B2C86E; Thu, 4 Jan 2024 22:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=opensource.cirrus.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=opensource.cirrus.com Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 404LkQVq009725; Thu, 4 Jan 2024 16:38:06 -0600 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=47IHhsRme6l9Ja8GxBg5XecVkHApII8gwWqYXN4mq3Y=; b= RuRRBQbyRNSjTF9xu8VEznAHyPKLTAoXlD63oOCxbqLI6A4dcybeyY6ARZj+nnIN 5x1akOXeR51ms4JM6Wltd2DlmYOWr8DOWAPRNtH4SlFxL0TI9dtyBWpZXm24pE7O 95x/PcQXisVlrIoZzXI+ng9s0QmY+/8ooWZmg6IqnicT+p+uFemg/FXT2jMm9uR2 2G8ZOcHx7lp62ZhoeNMlp8rwf0hvDuBOdAOCotSFWfFbNWuQ+upd0E5zizUN56cz 0Z+U6s5m8AytQSl0hNgQcV2hKO+h9hs3gQp0Z5C4Q6dP7LM71TkDVqPZXW7fta47 KgQr5xFM+VBZAt/8G8D0Vw== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0a-001ae601.pphosted.com (PPS) with ESMTPS id 3ve137rcy3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 04 Jan 2024 16:38:06 -0600 (CST) Received: from ediex02.ad.cirrus.com (198.61.84.81) 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.40; Thu, 4 Jan 2024 22:38:04 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.40 via Frontend Transport; Thu, 4 Jan 2024 22:37:49 +0000 Received: from aus-sw-rshr002.ad.cirrus.com (aus-sw-rshr002.ad.cirrus.com [141.131.145.53]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 6093B468; Thu, 4 Jan 2024 22:37:44 +0000 (UTC) From: James Ogletree To: CC: James Ogletree , Krzysztof Kozlowski , James Ogletree , Fred Treven , Ben Bright , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Simon Trimmer , Charles Keepax , Richard Fitzgerald , Lee Jones , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , James Schulman , David Rhodes , Sebastian Reichel , Alexandre Belloni , Jacky Bai , Jeff LaBundy , Peng Fan , Weidong Wang , Arnd Bergmann , Herve Codina , Shenghao Ding <13916275206@139.com>, Ryan Lee , Linus Walleij , Ajye Huang , Maxim Kochetkov , Shuming Fan , "open list:CIRRUS LOGIC HAPTIC DRIVERS" , "open list:INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN)..." , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:SOUND - SOC LAYER / DYNAMIC AUDIO POWER MANAGEM..." , "moderated list:CIRRUS LOGIC AUDIO CODEC DRIVERS" Subject: [PATCH v5 2/5] dt-bindings: input: cirrus,cs40l50: Add initial DT binding Date: Thu, 4 Jan 2024 22:36:35 +0000 Message-ID: <20240104223643.876292-3-jogletre@opensource.cirrus.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240104223643.876292-1-jogletre@opensource.cirrus.com> References: <20240104223643.876292-1-jogletre@opensource.cirrus.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-GUID: slAtk5iK3Dj2JYwLAZaDDqK_7YdZ3WJV X-Proofpoint-ORIG-GUID: slAtk5iK3Dj2JYwLAZaDDqK_7YdZ3WJV X-Proofpoint-Spam-Reason: safe The CS40L50 is a haptic driver with waveform memory, integrated DSP, and closed-loop algorithms. Add a YAML DT binding document for this device. Reviewed-by: Krzysztof Kozlowski Signed-off-by: James Ogletree --- .../bindings/input/cirrus,cs40l50.yaml | 70 +++++++++++++++++++ MAINTAINERS | 8 +++ 2 files changed, 78 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..6a5bdafed56b --- /dev/null +++ b/Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml @@ -0,0 +1,70 @@ +# 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, + integrated DSP, and closed-loop algorithms. + +properties: + compatible: + enum: + - cirrus,cs40l50 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + va-supply: + description: Power supply for internal analog circuits. + + vp-supply: + description: Power supply for always-on circuits. + + vio-supply: + description: Power supply for digital input/output. + + vamp-supply: + description: Power supply for the Class D amplifier. + +required: + - compatible + - reg + - interrupts + - reset-gpios + - vp-supply + - vio-supply + +additionalProperties: false + +examples: + - | + #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>; + vp-supply = <&vreg>; + vio-supply = <&vreg>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index dd5de540ec0b..b71017a187f8 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -4933,6 +4933,14 @@ F: sound/pci/hda/cs* F: sound/pci/hda/hda_cs_dsp_ctl.* F: sound/soc/codecs/cs* +CIRRUS LOGIC HAPTIC DRIVERS +M: James Ogletree +M: Fred Treven +M: Ben Bright +L: patches@opensource.cirrus.com +S: Supported +F: Documentation/devicetree/bindings/input/cirrus,cs40l50.yaml + CIRRUS LOGIC DSP FIRMWARE DRIVER M: Simon Trimmer M: Charles Keepax -- 2.25.1