From: Markuss Broks <markuss.broks@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht,
Markuss Broks <markuss.broks@gmail.com>,
Lee Jones <lee.jones@linaro.org>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org
Subject: [PATCH 2/4] dt-bindings: mfd: Add bindings for Silicon Mitus SM5703 MFD
Date: Thu, 14 Apr 2022 20:06:13 +0300 [thread overview]
Message-ID: <20220414170616.23319-3-markuss.broks@gmail.com> (raw)
In-Reply-To: <20220414170616.23319-1-markuss.broks@gmail.com>
This patch adds device-tree bindings for the Silicon Mitus
SM5703 MFD.
Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
---
.../bindings/mfd/siliconmitus,sm5703.yaml | 96 +++++++++++++++++++
1 file changed, 96 insertions(+)
create mode 100644 Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
diff --git a/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml b/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
new file mode 100644
index 000000000000..cf72bee7a679
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
@@ -0,0 +1,96 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/mfd/siliconmitus,sm5703.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Silicon Mitus multi-function device bindings
+
+maintainers:
+ - Markuss Broks <markuss.broks@gmail.com>
+
+description: |
+ Silicon Mitus SM5703 is a multi-function device, that consists of several
+ modules, designed for a mobile phone use. It consists of
+ LDO, Buck, USBLDO and VBUS regulators, a flash LED driver, a MUIC unit,
+ a fuel gauge and a battery charger circuit. The MUIC and Fuel-Gauge units
+ are separate from the main MFD, having their own i2c lines, while the
+ LED driver, regulators and charger are sharing the main i2c bus of the MFD.
+
+properties:
+ compatible:
+ const:
+ - siliconmitus,sm5703-mfd
+
+ reg:
+ description:
+ I2C slave address.
+ maxItems: 1
+
+ regulators:
+ $ref: ../regulator/siliconmitus,sm5703-regulator.yaml
+ description:
+ List of child nodes that specify the regulators.
+
+ reset-gpio:
+ description:
+ GPIO which is connected to the MRSTB pin.
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - regulators
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mfd@49 {
+ compatible = "siliconmitus,sm5703-mfd";
+ reg = <0x49>;
+
+ reset-gpio = <&msmgpio 24 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&mrstb_default>;
+
+ regulator {
+ compatible = "siliconmitus,sm5703-regulator";
+
+ regulators {
+ sm5703_ldo1: ldo1 {
+ regulator-min-microvolt = <2800000>;
+ regulator-max-microvolt = <2800000>;
+ };
+
+ sm5703_ldo2: ldo2 {
+ regulator-min-microvolt = <1500000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ sm5703_ldo3: ldo3 {
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ sm5703_usbldo1: usbldo1 {
+ regulator-min-microvolt = <4800000>;
+ regulator-max-microvolt = <4800000>;
+ };
+
+ sm5703_usbldo2: usbldo2 {
+ regulator-min-microvolt = <4800000>;
+ regulator-max-microvolt = <4800000>;
+ };
+
+ sm5703_vbus: vbus {
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ };
+ };
+ };
+ };
+ };
--
2.35.1
next prev parent reply other threads:[~2022-04-14 17:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-14 17:06 [PATCH 0/4] Add support for Silicon Mitus SM5703 MFD Markuss Broks
2022-04-14 17:06 ` [PATCH 1/4] dt-bindings: regulator: Add bindings for Silicon Mitus SM5703 regulators Markuss Broks
2022-04-14 17:06 ` Markuss Broks [this message]
2022-04-14 18:59 ` [PATCH 2/4] dt-bindings: mfd: Add bindings for Silicon Mitus SM5703 MFD Rob Herring
2022-04-14 17:06 ` [PATCH 3/4] mfd: sm5703: Add support for " Markuss Broks
2022-04-14 17:06 ` [PATCH 4/4] regulator: sm5703-regulator: Add regulators " Markuss Broks
2022-04-14 17:51 ` Mark Brown
2022-04-14 18:02 ` Markuss Broks
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=20220414170616.23319-3-markuss.broks@gmail.com \
--to=markuss.broks@gmail.com \
--cc=broonie@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski@canonical.com \
--cc=lee.jones@linaro.org \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=phone-devel@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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).