Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1072518ybl; Wed, 4 Dec 2019 16:26:01 -0800 (PST) X-Google-Smtp-Source: APXvYqzg1GnrFtathdVWTnM+N9gsllcEwiZZb9K34Zk1veeedZ1AtAGry24t/N2it/DXBJJaqazY X-Received: by 2002:a9d:7592:: with SMTP id s18mr4890650otk.130.1575505561676; Wed, 04 Dec 2019 16:26:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575505561; cv=none; d=google.com; s=arc-20160816; b=NhW9lnl1yxC13TNjRwzEQQdd0xslxLJYxF2gMwdu5BBOjRNGhi9b1OWxm9AORiTP8Z qbTYY7tZBkKqlzQiXPBPcjf5BJUJQ5BNBjNFyGpHHvFNa+4MDLra5CYQjee8Aak6YfCI /qWvfUeHLY8PqA3djguXk74eAD2SJPlT6L81rXs90GxIRrFWEm0x68c1HZMtFvVVnBYb yK6LYP2Eg2ej4IH8/AgS1lA6IopluvdSWkCGUAX2L3nP8X88yB3BsBqdcbqHmKeJWBEH b6jkb5Ql8ex4Wic1pcwP754YCanl9td2Z2BmxYYn5NvbHusydHXKgkS/dDT9XdCnwV9c W4Cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=RRaDHpq7QdPnXGx2ogBvJhbit1GW9d7XrCq2HQShK1Q=; b=0RMlLBLVLSJ3HRyNHj7RyP6ne8QkgN1LFgNZgA2olB6Qdm2DPlBX03xY25q8OZEPgs Wyfm+w6ZCSxee9hVUKX1Qz+1F2i1gDBf0rMbjRbwBwbsQFqqZ6YGMh3wpTcmq6lSC4zB eRSMo2mpmWDobn8QlEvU47TquXCY2/HDbKJeLmkGxGbV44xA9nkrfhO3QLjHXngxE31A toPxNOETuH26yLUvaY3AnR5ggwhEltFfcXxOA4jVMB+f6UkOSP+sxmqf+YGMx+2wAAAQ WyWQotVPSrMrC0lu8+0ZLFwnOlGFy77foOJ9Jqxwn3O0hzGsOMTTvCgQjSf1TmukuV6t suug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=rGMse0ea; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z10si2121029oto.50.2019.12.04.16.25.49; Wed, 04 Dec 2019 16:26:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@onstation.org header.s=default header.b=rGMse0ea; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728683AbfLEAZS (ORCPT + 99 others); Wed, 4 Dec 2019 19:25:18 -0500 Received: from onstation.org ([52.200.56.107]:54108 "EHLO onstation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728557AbfLEAZL (ORCPT ); Wed, 4 Dec 2019 19:25:11 -0500 Received: from localhost.localdomain (c-98-239-145-235.hsd1.wv.comcast.net [98.239.145.235]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: masneyb) by onstation.org (Postfix) with ESMTPSA id 65DCD538A5; Thu, 5 Dec 2019 00:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=onstation.org; s=default; t=1575505510; bh=2OX8S2TwxbSrcYZ5mPRrewqOvJrOWqLNCom5xuy7YCM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rGMse0ea89HvvjHNUxTuQd6nyWDAByRfnP7z+y1yHCcxXq3kYDKvyl4gE3uU24jiN YfIRb/Dw/hbiuRjSr0dtJPj6G+IzUWqleAqtnFMcORWQXyMVB/fL4lstuPrfh0HZTV h11Bl2jx5CvcrcZmtABsqMix7F7hAsfrsG3lUvFE= From: Brian Masney To: sboyd@kernel.org, dmitry.torokhov@gmail.com, robh+dt@kernel.org Cc: mark.rutland@arm.com, agross@kernel.org, bjorn.andersson@linaro.org, mturquette@baylibre.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 4/7] dt-bindings: Input: introduce new clock vibrator bindings Date: Wed, 4 Dec 2019 19:25:00 -0500 Message-Id: <20191205002503.13088-5-masneyb@onstation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191205002503.13088-1-masneyb@onstation.org> References: <20191205002503.13088-1-masneyb@onstation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for clock-based vibrator devices where the speed can be controlled by changing the duty cycle. Signed-off-by: Brian Masney --- .../bindings/input/clk-vibrator.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/clk-vibrator.yaml diff --git a/Documentation/devicetree/bindings/input/clk-vibrator.yaml b/Documentation/devicetree/bindings/input/clk-vibrator.yaml new file mode 100644 index 000000000000..2103a5694fad --- /dev/null +++ b/Documentation/devicetree/bindings/input/clk-vibrator.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/input/clk-vibrator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Clock vibrator + +maintainers: + - Brian Masney + +description: | + Support for clock-based vibrator devices where the speed can be controlled + by changing the duty cycle. + +properties: + compatible: + const: clk-vibrator + + clocks: + maxItems: 1 + + clock-names: + description: output clock that controls the speed + items: + - const: core + + clock-frequency: true + + enable-gpios: + maxItems: 1 + + vcc-supply: + description: Regulator that provides power + +required: + - compatible + - clocks + - clock-names + - clock-frequency + +examples: + - | + #include + #include + + vibrator { + compatible = "clk-vibrator"; + + vcc-supply = <&pm8941_l19>; + + clocks = <&mmcc CAMSS_GP1_CLK>; + clock-names = "core"; + clock-frequency = <24000>; + + enable-gpios = <&msmgpio 60 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&vibrator_pin>; + }; -- 2.21.0