2020-03-04 16:42:20 +07:00
|
|
|
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
$id: http://devicetree.org/schemas/mfd/st,stpmic1.yaml#
|
|
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
|
|
|
|
title: STMicroelectonics STPMIC1 Power Management IC bindings
|
|
|
|
|
|
|
|
description: STMicroelectronics STPMIC1 Power Management IC
|
|
|
|
|
|
|
|
maintainers:
|
|
|
|
- pascal Paillet <p.paillet@st.com>
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
const: st,stpmic1
|
|
|
|
|
|
|
|
reg:
|
|
|
|
const: 0x33
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
"#interrupt-cells":
|
|
|
|
const: 2
|
|
|
|
|
|
|
|
interrupt-controller: true
|
|
|
|
|
|
|
|
onkey:
|
|
|
|
type: object
|
|
|
|
|
2020-04-16 07:55:49 +07:00
|
|
|
$ref: ../input/input.yaml
|
2020-03-04 16:42:20 +07:00
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
const: st,stpmic1-onkey
|
|
|
|
|
|
|
|
interrupts:
|
|
|
|
items:
|
|
|
|
- description: onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic
|
|
|
|
- description: onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic
|
|
|
|
|
|
|
|
interrupt-names:
|
|
|
|
items:
|
|
|
|
- const: onkey-falling
|
|
|
|
- const: onkey-rising
|
|
|
|
|
|
|
|
st,onkey-clear-cc-flag:
|
|
|
|
description: onkey is able power on after an over-current shutdown event.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
st,onkey-pu-inactive:
|
|
|
|
description: onkey pull up is not active
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
power-off-time-sec:
|
|
|
|
minimum: 1
|
|
|
|
maximum: 16
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- interrupts
|
|
|
|
- interrupt-names
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
watchdog:
|
|
|
|
type: object
|
|
|
|
|
2020-04-16 07:55:49 +07:00
|
|
|
$ref: ../watchdog/watchdog.yaml
|
2020-03-04 16:42:20 +07:00
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
const: st,stpmic1-wdt
|
|
|
|
|
|
|
|
timeout-sec: true
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
regulators:
|
|
|
|
type: object
|
|
|
|
|
|
|
|
description: |
|
|
|
|
Available Regulators in STPMIC1 device are:
|
|
|
|
- buck1 for Buck BUCK1
|
|
|
|
- buck2 for Buck BUCK2
|
|
|
|
- buck3 for Buck BUCK3
|
|
|
|
- buck4 for Buck BUCK4
|
|
|
|
- ldo1 for LDO LDO1
|
|
|
|
- ldo2 for LDO LDO2
|
|
|
|
- ldo3 for LDO LDO3
|
|
|
|
- ldo4 for LDO LDO4
|
|
|
|
- ldo5 for LDO LDO5
|
|
|
|
- ldo6 for LDO LDO6
|
|
|
|
- vref_ddr for LDO Vref DDR
|
|
|
|
- boost for Buck BOOST
|
|
|
|
- pwr_sw1 for VBUS_OTG switch
|
|
|
|
- pwr_sw2 for SW_OUT switch
|
|
|
|
Switches are fixed voltage regulators with only enable/disable capability.
|
|
|
|
|
|
|
|
properties:
|
|
|
|
compatible:
|
|
|
|
const: st,stpmic1-regulators
|
|
|
|
|
|
|
|
ldo3:
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-min-microvolt: true
|
|
|
|
regulator-max-microvolt: true
|
|
|
|
regulator-allow-bypass: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
ldo4:
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
vref_ddr:
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
boost:
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
patternProperties:
|
|
|
|
"^(buck[1-4]|ldo[1-6]|boost|pwr_sw[1-2])-supply$":
|
|
|
|
description: STPMIC1 voltage regulators supplies
|
|
|
|
|
|
|
|
"^(buck[1-4]|ldo[1-6]|boost|vref_ddr|pwr_sw[1-2])$":
|
2020-04-16 07:55:49 +07:00
|
|
|
$ref: ../regulator/regulator.yaml
|
2020-03-04 16:42:20 +07:00
|
|
|
|
|
|
|
"^ldo[1-2,5-6]$":
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-min-microvolt: true
|
|
|
|
regulator-max-microvolt: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
regulator-enable-ramp-delay: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
"^buck[1-4]$":
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
st,mask-reset:
|
|
|
|
description: mask reset for this regulator,
|
|
|
|
the regulator configuration is maintained during pmic reset.
|
|
|
|
$ref: /schemas/types.yaml#/definitions/flag
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-min-microvolt: true
|
|
|
|
regulator-max-microvolt: true
|
|
|
|
regulator-initial-mode: true
|
|
|
|
regulator-pull-down: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
regulator-enable-ramp-delay: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
"^pwr_sw[1-2]$":
|
|
|
|
type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
interrupts:
|
|
|
|
maxItems: 1
|
|
|
|
|
|
|
|
regulator-name: true
|
|
|
|
regulator-boot-on: true
|
|
|
|
regulator-always-on: true
|
|
|
|
regulator-over-current-protection: true
|
|
|
|
regulator-active-discharge: true
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
additionalProperties: false
|
|
|
|
|
|
|
|
required:
|
|
|
|
- compatible
|
|
|
|
- reg
|
|
|
|
- interrupts
|
|
|
|
- "#interrupt-cells"
|
|
|
|
- interrupt-controller
|
|
|
|
|
|
|
|
examples:
|
|
|
|
- |
|
|
|
|
#include <dt-bindings/mfd/st,stpmic1.h>
|
|
|
|
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
dt-bindings: Fix dtc warnings on reg and ranges in examples
A recent update to dtc and changes to the default warnings introduced
some new warnings in the DT binding examples:
Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.example.dts:23.13-61:
Warning (dma_ranges_format): /example-0/dram-controller@1c01000:dma-ranges: "dma-ranges" property has invalid length (12 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 1)
Documentation/devicetree/bindings/hwmon/adi,axi-fan-control.example.dts:17.22-28.11:
Warning (unit_address_vs_reg): /example-0/fpga-axi@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/memory-controllers/nvidia,tegra186-mc.example.dts:34.13-54:
Warning (dma_ranges_format): /example-0/memory-controller@2c00000:dma-ranges: "dma-ranges" property has invalid length (24 bytes) (parent #address-cells == 1, child #address-cells == 2, #size-cells == 2)
Documentation/devicetree/bindings/mfd/st,stpmic1.example.dts:19.15-79.11:
Warning (unit_address_vs_reg): /example-0/i2c@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/net/qcom,ipq8064-mdio.example.dts:28.23-31.15:
Warning (unit_address_vs_reg): /example-0/mdio@37000000/switch@10: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/rng/brcm,bcm2835.example.dts:17.5-21.11:
Warning (unit_address_vs_reg): /example-0/rng: node has a reg or ranges property, but no unit name
Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.example.dts:20.20-43.11:
Warning (unit_address_vs_reg): /example-0/soc@0: node has a unit name, but no reg or ranges property
Documentation/devicetree/bindings/usb/ingenic,musb.example.dts:18.28-21.11:
Warning (unit_address_vs_reg): /example-0/usb-phy@0: node has a unit name, but no reg or ranges property
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>
Cc: "Nuno Sá" <nuno.sa@analog.com>
Cc: Jean Delvare <jdelvare@suse.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: Mark Brown <broonie@kernel.org>
Cc: linux-hwmon@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org
Cc: netdev@vger.kernel.org
Cc: linux-crypto@vger.kernel.org
Cc: linux-rpi-kernel@lists.infradead.org
Cc: linux-spi@vger.kernel.org
Cc: linux-usb@vger.kernel.org
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
2020-04-10 01:05:24 +07:00
|
|
|
i2c {
|
2020-03-04 16:42:20 +07:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
pmic@33 {
|
|
|
|
compatible = "st,stpmic1";
|
|
|
|
reg = <0x33>;
|
|
|
|
interrupt-parent = <&gpioa>;
|
|
|
|
interrupts = <0 2>;
|
|
|
|
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
|
|
|
|
onkey {
|
|
|
|
compatible = "st,stpmic1-onkey";
|
|
|
|
interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
|
|
|
|
interrupt-names = "onkey-falling", "onkey-rising";
|
|
|
|
power-off-time-sec = <10>;
|
|
|
|
};
|
|
|
|
|
|
|
|
watchdog {
|
|
|
|
compatible = "st,stpmic1-wdt";
|
|
|
|
};
|
|
|
|
|
|
|
|
regulators {
|
|
|
|
compatible = "st,stpmic1-regulators";
|
|
|
|
|
|
|
|
ldo6-supply = <&v3v3>;
|
|
|
|
|
|
|
|
buck1 {
|
|
|
|
regulator-name = "vdd_core";
|
|
|
|
interrupts = <IT_CURLIM_BUCK1 0>;
|
|
|
|
st,mask-reset;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-min-microvolt = <700000>;
|
|
|
|
regulator-max-microvolt = <1200000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
buck3 {
|
|
|
|
regulator-name = "vdd";
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
regulator-boot-on;
|
|
|
|
regulator-pull-down;
|
|
|
|
};
|
|
|
|
|
|
|
|
buck4 {
|
|
|
|
regulator-name = "v3v3";
|
|
|
|
interrupts = <IT_CURLIM_BUCK4 0>;
|
|
|
|
regulator-min-microvolt = <3300000>;
|
|
|
|
regulator-max-microvolt = <3300000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
ldo6 {
|
|
|
|
regulator-name = "v1v8";
|
|
|
|
regulator-min-microvolt = <1800000>;
|
|
|
|
regulator-max-microvolt = <1800000>;
|
|
|
|
regulator-over-current-protection;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
...
|