linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: mfd: Add bindings for the Mediatek MT6360 PMIC
@ 2020-06-16 11:27 Gene Chen
  2020-06-16 13:16 ` Lee Jones
  2020-07-15 19:06 ` Rob Herring
  0 siblings, 2 replies; 3+ messages in thread
From: Gene Chen @ 2020-06-16 11:27 UTC (permalink / raw)
  To: robh+dt, matthias.bgg
  Cc: lee.jones, devicetree, linux-arm-kernel, linux-mediatek,
	linux-kernel, gene_chen, Wilma.Wu, shufan_lee, cy_huang

From: Gene Chen <gene_chen@richtek.com>

Add devicetree binding document support Mediatek MT6360 PMIC

Signed-off-by: Gene Chen <gene_chen@richtek.com>
---
 Documentation/devicetree/bindings/mfd/mt6360.txt | 53 ++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/mt6360.txt

diff --git a/Documentation/devicetree/bindings/mfd/mt6360.txt b/Documentation/devicetree/bindings/mfd/mt6360.txt
new file mode 100644
index 0000000..e25b5c6
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/mt6360.txt
@@ -0,0 +1,53 @@
+MediaTek MT6360 Multifunction Device Driver
+
+MT6360 is a multifunction device with the following sub modules:
+- ADC
+- Battery Charger/OTG boost
+- Flash LED/RGB LED/moonlight LED
+- 2-channel Buck
+- 6-channel LDO
+- USB_PD
+
+It is interfaced to host controller using I2C interface.
+This document describes the binding for MFD device and its sub module.
+
+Required properties:
+- compatible:	Must be "mediatek,mt6360_pmu"
+- reg:			Specifies the I2C slave address of PMIC block, Must be <0x34>
+- interrupts:	I2C device IRQ line connected to the main SoC.
+
+Optional subnodes:
+- ADC
+	Required properties:
+		- compatible: "mediatek,mt6360_adc"
+- battery charger/OTG boost
+	Required properties:
+		- compatible: "mediatek,mt6360_chg"
+- Flash LED/RGB LED/moonlight LED
+	Required properties:
+		- compatible: "mediatek,mt6360_led"
+- 2-channel Buck
+	Required properties:
+		- compatible: "mediatek,mt6360_pmic"
+- 6-channel LDO
+	Required properties:
+		- compatible: "mediatek,mt6360_ldo"
+- USB_PD
+	Required properties:
+		- compatible: "mediatek,mt6360_tcpc"
+
+Example:
+
+	#include <dt-bindings/usb/pd.h>
+
+	pmu: mt6360_pmu@34 {
+		status = "ok";
+		compatible = "mediatek,mt6360_pmu";
+		reg = <0x34>;
+		wakeup-source;
+		interrupts-extended = <&gpio26 0 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "IRQB";
+		interrupt-controller;
+		#interrupt-cells = <2>;
+	};
+
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-15 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-16 11:27 [PATCH] dt-bindings: mfd: Add bindings for the Mediatek MT6360 PMIC Gene Chen
2020-06-16 13:16 ` Lee Jones
2020-07-15 19:06 ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).