[PATCH v3 06/14] dt-bindings: mfd: Add Mediatek MT6370
Krzysztof Kozlowski
krzysztof.kozlowski at linaro.org
Fri Jun 24 04:39:36 PDT 2022
On 23/06/2022 13:56, ChiaEn Wu wrote:
> From: ChiYuan Huang <cy_huang at richtek.com>
>
> Add Mediatek MT6370 binding documentation.
>
> Signed-off-by: ChiYuan Huang <cy_huang at richtek.com>
> ---
>
> v3
> - Use " in entire patchset
> - Refine ADC description
> - Rename "enable-gpio" to "enable-gpios" in "regualtor"
> - Change "/schemas/" to "../" in every reference of all MT6370 modules
> ---
> .../devicetree/bindings/mfd/mediatek,mt6370.yaml | 280 +++++++++++++++++++++
> include/dt-bindings/iio/adc/mediatek,mt6370_adc.h | 18 ++
> 2 files changed, 298 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/mfd/mediatek,mt6370.yaml
> create mode 100644 include/dt-bindings/iio/adc/mediatek,mt6370_adc.h
>
> diff --git a/Documentation/devicetree/bindings/mfd/mediatek,mt6370.yaml b/Documentation/devicetree/bindings/mfd/mediatek,mt6370.yaml
> new file mode 100644
> index 0000000..fa9da13
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/mfd/mediatek,mt6370.yaml
> @@ -0,0 +1,280 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/mfd/mediatek,mt6370.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Mediatek MT6370 SubPMIC
> +
> +maintainers:
> + - ChiYuan Huang <cy_huang at richtek.com>
> +
> +description: |
> + MT6370 is a highly-integrated smart power management IC, which includes a
> + single cell Li-Ion/Li-Polymer switching battery charger, a USB Type-C &
> + Power Delivery (PD) controller, dual flash LED current sources, a RGB LED
> + driver, a backlight WLED driver, a display bias driver and a general LDO for
> + portable devices.
> +
> +properties:
> + compatible:
> + const: mediatek,mt6370
> +
> + reg:
> + maxItems: 1
> +
> + wakeup-source: true
> +
> + interrupts:
> + maxItems: 1
> +
> + interrupt-controller: true
> +
> + "#interrupt-cells":
> + const: 1
> +
> + adc:
> + type: object
> + description: |
> + Provides 9 channels for system monitoring, including VBUSDIV5 (lower
> + accuracy, higher measure range), VBUSDIV2 (higher accuracy, lower
> + measure range), VBAT, VSYS, CHG_VDDP, TS_BAT, IBUS, IBAT, and TEMP_JC.
> +
> + properties:
> + compatible:
> + const: mediatek,mt6370-adc
> +
> + "#io-channel-cells":
> + const: 1
> +
> + required:
> + - compatible
> + - "#io-channel-cells"
> +
> + backlight:
> + type: object
> + $ref: ../leds/backlight/mediatek,mt6370-backlight.yaml#
This was correct before: /schemas/leds/ ....
Same in other places.
Best regards,
Krzysztof
More information about the Linux-mediatek
mailing list