136 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: MediaTek MT6357 PMIC8 9maintainers:10 - Flora Fu <flora.fu@mediatek.com>11 - Alexandre Mergnat <amergnat@baylibre.com>12 13description: |14 MT6357 is a power management system chip containing 5 buck15 converters and 29 LDOs. Supported features are audio codec,16 USB battery charging, fuel gauge, RTC17 18 This is a multifunction device with the following sub modules:19 - Regulator20 - RTC21 - Keys22 23 It is interfaced to host controller using SPI interface by a proprietary hardware24 called PMIC wrapper or pwrap. This MFD is a child device of pwrap.25 See the following for pwrap node definitions:26 Documentation/devicetree/bindings/soc/mediatek/mediatek,pwrap.yaml27 28properties:29 compatible:30 const: mediatek,mt635731 32 interrupts:33 maxItems: 134 35 interrupt-controller: true36 37 "#interrupt-cells":38 const: 239 40 mediatek,hp-pull-down:41 description:42 Earphone driver positive output stage short to43 the audio reference ground.44 type: boolean45 46 mediatek,micbias0-microvolt:47 description: Selects MIC Bias 0 output voltage.48 enum: [1700000, 1800000, 1900000, 2000000,49 2100000, 2500000, 2600000, 2700000]50 default: 170000051 52 mediatek,micbias1-microvolt:53 description: Selects MIC Bias 1 output voltage.54 enum: [1700000, 1800000, 1900000, 2000000,55 2100000, 2500000, 2600000, 2700000]56 default: 170000057 58 regulators:59 type: object60 $ref: /schemas/regulator/mediatek,mt6357-regulator.yaml61 unevaluatedProperties: false62 description:63 List of MT6357 BUCKs and LDOs regulators.64 65 rtc:66 type: object67 $ref: /schemas/rtc/rtc.yaml#68 unevaluatedProperties: false69 description:70 MT6357 Real Time Clock.71 properties:72 compatible:73 const: mediatek,mt6357-rtc74 start-year: true75 required:76 - compatible77 78 keys:79 type: object80 $ref: /schemas/input/mediatek,pmic-keys.yaml81 unevaluatedProperties: false82 description:83 MT6357 power and home keys.84 85required:86 - compatible87 - regulators88 89additionalProperties: false90 91examples:92 - |93 #include <dt-bindings/interrupt-controller/arm-gic.h>94 95 pwrap {96 pmic {97 compatible = "mediatek,mt6357";98 99 interrupt-parent = <&pio>;100 interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;101 interrupt-controller;102 #interrupt-cells = <2>;103 104 mediatek,micbias0-microvolt = <1700000>;105 mediatek,micbias1-microvolt = <1700000>;106 107 regulators {108 mt6357_vproc_reg: buck-vproc {109 regulator-name = "vproc";110 regulator-min-microvolt = <518750>;111 regulator-max-microvolt = <1312500>;112 regulator-ramp-delay = <6250>;113 regulator-enable-ramp-delay = <220>;114 regulator-always-on;115 };116 117 // ...118 119 mt6357_vusb33_reg: ldo-vusb33 {120 regulator-name = "vusb33";121 regulator-min-microvolt = <3000000>;122 regulator-max-microvolt = <3100000>;123 regulator-enable-ramp-delay = <264>;124 };125 };126 127 rtc {128 compatible = "mediatek,mt6357-rtc";129 };130 131 keys {132 compatible = "mediatek,mt6357-keys";133 };134 };135 };136