[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aJyC5q0X8mj1xbSB@troy-wujie14pro-arch>
Date: Wed, 13 Aug 2025 20:19:50 +0800
From: Troy Mitchell <troymitchell988@...il.com>
To: Alex Elder <elder@...cstar.com>
Cc: lee@...nel.org, lgirdwood@...il.com, broonie@...nel.org,
alexandre.belloni@...tlin.com, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, mat.jonczyk@...pl, dlan@...too.org,
paul.walmsley@...ive.com, palmer@...belt.com, aou@...s.berkeley.edu,
alex@...ti.fr, linux.amoon@...il.com, troymitchell988@...il.com,
guodong@...cstar.com, linux-rtc@...r.kernel.org,
devicetree@...r.kernel.org, linux-riscv@...ts.infradead.org,
spacemit@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v12 1/7] dt-bindings: mfd: add support the SpacemiT P1
PMIC
On Tue, Aug 12, 2025 at 09:45:02PM -0500, Alex Elder wrote:
> Enable the SpacemiT P1, which is an I2C-controlled PMIC. Initially
> only the RTC and regulators will be supported.
>
> Signed-off-by: Alex Elder <elder@...cstar.com>
> Reviewed-by: Rob Herring (Arm) <robh@...nel.org>
> ---
> .../devicetree/bindings/mfd/spacemit,p1.yaml | 86 +++++++++++++++++++
> 1 file changed, 86 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
>
> diff --git a/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml b/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
> new file mode 100644
> index 0000000000000..5cc34d4934b54
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/spacemit,p1.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/spacemit,p1.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: SpacemiT P1 Power Management Integrated Circuit
> +
> +maintainers:
> + - Troy Mitchell <troymitchell988@...il.com>
You can change it from this to my company email:
troy.mitchell@...ux.spacemit.com
Acked-by: Troy Mitchell <troymitchell988@...il.com>
- Troy
> +
> +description:
> + P1 is an I2C-controlled PMIC produced by SpacemiT. It implements six
> + constant-on-time buck converters and twelve low-dropout regulators.
> + It also contains a load switch, watchdog timer, real-time clock, eight
> + 12-bit ADC channels, and six GPIOs. Additional details are available
> + in the "Power Stone/P1" section at the following link.
> + https://developer.spacemit.com/documentation
> +
> +properties:
> + compatible:
> + const: spacemit,p1
> +
> + reg:
> + maxItems: 1
> +
> + interrupts:
> + maxItems: 1
> +
> + vin-supply:
> + description: Input supply phandle.
> +
> + regulators:
> + type: object
> +
> + patternProperties:
> + "^(buck[1-6]|aldo[1-4]|dldo[1-7])$":
> + type: object
> + $ref: /schemas/regulator/regulator.yaml#
> + unevaluatedProperties: false
> +
> + unevaluatedProperties: false
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> + - |
> + i2c {
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + pmic@41 {
> + compatible = "spacemit,p1";
> + reg = <0x41>;
> + interrupts = <64>;
> +
> + regulators {
> + buck1 {
> + regulator-name = "buck1";
> + regulator-min-microvolt = <500000>;
> + regulator-max-microvolt = <3450000>;
> + regulator-ramp-delay = <5000>;
> + regulator-always-on;
> + };
> +
> + aldo1 {
> + regulator-name = "aldo1";
> + regulator-min-microvolt = <500000>;
> + regulator-max-microvolt = <3400000>;
> + regulator-boot-on;
> + };
> +
> + dldo1 {
> + regulator-name = "dldo1";
> + regulator-min-microvolt = <500000>;
> + regulator-max-microvolt = <3400000>;
> + regulator-boot-on;
> + };
> + };
> + };
> + };
> --
> 2.48.1
>
Powered by blists - more mailing lists