| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/mfd/mediatek,mt6357.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: MediaTek MT6357 PMIC |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Flora Fu <[email protected]> |
| 11 |
- Alexandre Mergnat <[email protected]> |
| 12 |
|
| 13 |
description: | |
| 14 |
MT6357 is a power management system chip containing 5 buck |
| 15 |
converters and 29 LDOs. Supported features are audio codec, |
| 16 |
USB battery charging, fuel gauge, RTC |
| 17 |
|
| 18 |
This is a multifunction device with the following sub modules: |
| 19 |
- Regulator |
| 20 |
- RTC |
| 21 |
- Keys |
| 22 |
|
| 23 |
It is interfaced to host controller using SPI interface by a proprietary hardware |
| 24 |
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.yaml |
| 27 |
|
| 28 |
properties: |
| 29 |
compatible: |
| 30 |
const: mediatek,mt6357 |
| 31 |
|
| 32 |
interrupts: |
| 33 |
maxItems: 1 |
| 34 |
|
| 35 |
interrupt-controller: true |
| 36 |
|
| 37 |
"#interrupt-cells": |
| 38 |
const: 2 |
| 39 |
|
| 40 |
mediatek,hp-pull-down: |
| 41 |
description: |
| 42 |
Earphone driver positive output stage short to |
| 43 |
the audio reference ground. |
| 44 |
type: boolean |
| 45 |
|
| 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: 1700000 |
| 51 |
|
| 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: 1700000 |
| 57 |
|
| 58 |
regulators: |
| 59 |
type: object |
| 60 |
$ref: /schemas/regulator/mediatek,mt6357-regulator.yaml |
| 61 |
unevaluatedProperties: false |
| 62 |
description: |
| 63 |
List of MT6357 BUCKs and LDOs regulators. |
| 64 |
|
| 65 |
rtc: |
| 66 |
type: object |
| 67 |
$ref: /schemas/rtc/rtc.yaml# |
| 68 |
unevaluatedProperties: false |
| 69 |
description: |
| 70 |
MT6357 Real Time Clock. |
| 71 |
properties: |
| 72 |
compatible: |
| 73 |
const: mediatek,mt6357-rtc |
| 74 |
start-year: true |
| 75 |
required: |
| 76 |
- compatible |
| 77 |
|
| 78 |
keys: |
| 79 |
type: object |
| 80 |
$ref: /schemas/input/mediatek,pmic-keys.yaml |
| 81 |
unevaluatedProperties: false |
| 82 |
description: |
| 83 |
MT6357 power and home keys. |
| 84 |
|
| 85 |
required: |
| 86 |
- compatible |
| 87 |
- regulators |
| 88 |
|
| 89 |
additionalProperties: false |
| 90 |
|
| 91 |
examples: |
| 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 |
}; |