From: Rob Herring <robh@kernel.org>
To: Markuss Broks <markuss.broks@gmail.com>
Cc: linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht,
Lee Jones <lee.jones@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
Liam Girdwood <lgirdwood@gmail.com>,
Mark Brown <broonie@kernel.org>,
devicetree@vger.kernel.org
Subject: Re: [PATCH v3 2/4] dt-bindings: mfd: Add bindings for Silicon Mitus SM5703 MFD
Date: Tue, 19 Apr 2022 09:01:45 -0500 [thread overview]
Message-ID: <Yl7AyYAwkyO3oDrW@robh.at.kernel.org> (raw)
In-Reply-To: <20220415164356.25165-3-markuss.broks@gmail.com>
On Fri, Apr 15, 2022 at 07:43:53PM +0300, Markuss Broks wrote:
> 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 | 95 +++++++++++++++++++
> 1 file changed, 95 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..aa676967593d
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/siliconmitus,sm5703.yaml
> @@ -0,0 +1,95 @@
> +# 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 SM5703 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
'-mfd' is redundant. Drop.
> +
> + reg:
> + description:
> + I2C slave address.
> + maxItems: 1
> +
> + regulators:
> + $ref: ../regulator/siliconmitus,sm5703-regulator.yaml
/schemas/regulator/...
> + description:
> + List of child nodes that specify the regulators.
> +
> + reset-gpio:
'-gpios' is the preferred form even with 1.
Are the MUIC and Fuel-Gauge units independent from this reset?
> + 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 {
'pmic' is the standard name.
> + 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-19 14:01 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-15 16:43 [PATCH v3 0/4] Add support for Silicon Mitus SM5703 MFD Markuss Broks
2022-04-15 16:43 ` [PATCH v3 1/4] dt-bindings: regulator: Add bindings for Silicon Mitus SM5703 regulators Markuss Broks
2022-04-19 14:03 ` Rob Herring
2022-04-15 16:43 ` [PATCH v3 2/4] dt-bindings: mfd: Add bindings for Silicon Mitus SM5703 MFD Markuss Broks
2022-04-19 14:01 ` Rob Herring [this message]
2022-04-19 16:04 ` Markuss Broks
2022-04-15 16:43 ` [PATCH v3 3/4] mfd: sm5703: Add support for " Markuss Broks
2022-04-15 16:43 ` [PATCH v3 4/4] regulator: sm5703-regulator: Add regulators " 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=Yl7AyYAwkyO3oDrW@robh.at.kernel.org \
--to=robh@kernel.org \
--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=markuss.broks@gmail.com \
--cc=phone-devel@vger.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).