From: Fengping Yu <fengping.yu@mediatek.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
Matthias Brugger <matthias.bgg@gmail.com>,
Catalin Marinas <catalin.marinas@arm.com>,
"Yingjoe Chen" <yingjoe.chen@mediatek.com>,
Pavel Machek <pavel@ucw.cz>,
"Jacek Anaszewski" <jacek.anaszewski@gmail.com>
Cc: "fengping.yu" <fengping.yu@mediatek.com>,
linux-mediatek@lists.infradead.org,
linux-arm-kernel@lists.infradead.org,
linux-input@vger.kernel.org
Subject: [PATCH v1 1/3] dt-bindings:Add vibrator devicetree documentation
Date: Mon, 15 Jun 2020 19:42:02 +0800 [thread overview]
Message-ID: <20200615114203.116656-2-fengping.yu@mediatek.com> (raw)
In-Reply-To: <20200615114203.116656-1-fengping.yu@mediatek.com>
From: "fengping.yu" <fengping.yu@mediatek.com>
Add Mediatek regulator vibrator dt-bindings doc as yaml schema
Signed-off-by: fengping.yu <fengping.yu@mediatek.com>
---
.../bindings/input/regulator-vibrator.yaml | 65 +++++++++++++++++++
1 file changed, 65 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/regulator-vibrator.yaml
diff --git a/Documentation/devicetree/bindings/input/regulator-vibrator.yaml b/Documentation/devicetree/bindings/input/regulator-vibrator.yaml
new file mode 100644
index 000000000000..6511a8a80aff
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/regulator-vibrator.yaml
@@ -0,0 +1,65 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+version: 1
+
+$id: http://devicetree.org/schemas/input/regulator-vibrator.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Mediatek's regulator vibrator device tree bindings
+
+maintainer:
+ - Fengping Yu <fengping.yu@mediatek.com>
+
+description: |
+ Registers a regulator device as vibrator, where the on/off capability is controlled by a regulator.
+
+properties:
+ compatible:
+ const: "regulator-vibrator"
+
+ vibr-supply:
+ description: Power supply to the vibrator.
+ refs:Documentation/devicetree/bindings/regulator/regulator.txt for details.
+
+ max-volt:
+ description: The maximum voltage value supplied to the vibrator regulator.
+ The unit of the voltage is micro.
+
+ min-volt:
+ description: The minimum voltage value supplied to the vibrator regulator.
+ The unit of the voltage is micro.
+
+ min-limit:
+ description: The minimum duration time in ms for vibrator, default is 15ms.
+ If user request smaller duration, the default value will be used
+ instead. The default value comes from the smallest unit that can
+ be sensored.
+
+ max-limit:
+ description: The maximum duration time in ms for vibrator. If not set, it means
+ no max limitation.
+
+required:
+ - compatible
+ - min-volt
+ - max-volt
+
+examples:
+ - |
+
+ mt6359_vibr_ldo_reg: ldo_vibr {
+ regulator-name = "vibr";
+ regulator-min-microvolt = <1200000>;
+ regulator-max-microvolt = <3300000>;
+ regulator-enable-ramp-delay = <240>;
+ };
+
+ regulator_vibrator {
+ compatible = "regulator-vibrator";
+ min-volt = <2300000>;
+ max-volt = <3200000>;
+ min-limit = <25>;
+ max-limit = <15000>;
+ vib-supply = <&mt6359_vibr_ldo_reg>;
+ };
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
next prev parent reply other threads:[~2020-06-15 11:52 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-15 11:42 [PATCH v1] Add vibrator driver support for Mediatek SoCs Fengping Yu
2020-06-15 11:42 ` Fengping Yu [this message]
2020-06-16 10:58 ` [PATCH v1 1/3] dt-bindings:Add vibrator devicetree documentation Pavel Machek
2020-06-15 11:42 ` [PATCH v1 2/3] drivers: input: misc: Add mtk vibrator driver Fengping Yu
2020-06-15 15:07 ` kernel test robot
2020-06-15 15:51 ` kernel test robot
2020-06-16 11:02 ` Pavel Machek
2020-06-16 11:03 ` Pavel Machek
2020-06-15 11:42 ` [PATCH v1 3/3] defconfig: Add CONFIG_INPUT_REGULATOR_VIBRATOR=m Fengping Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200615114203.116656-2-fengping.yu@mediatek.com \
--to=fengping.yu@mediatek.com \
--cc=catalin.marinas@arm.com \
--cc=dmitry.torokhov@gmail.com \
--cc=jacek.anaszewski@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=pavel@ucw.cz \
--cc=yingjoe.chen@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).