Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1664793

[PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver

From Valentin Sitdikov <valentin_sitdikov@mentor.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver
Date 2017-06-13 14:30 +0200
Message-ID <tRT7k-7UN-21@gated-at.bofh.it> (permalink)
References <tRT7j-7UN-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


This patch adds documentation for the max7360 bindings.
The max7360 is Multi-functional Device containing gpio,
keypad, pwm and rotary encoder submodules.

Signed-off-by: Andrei Dranitca <Andrei_Dranitca@mentor.com>
Signed-off-by: Valentin Sitdikov <valentin_sitdikov@mentor.com>
---
 Documentation/devicetree/bindings/mfd/max7360.txt | 74 +++++++++++++++++++++++
 1 file changed, 74 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mfd/max7360.txt

diff --git a/Documentation/devicetree/bindings/mfd/max7360.txt b/Documentation/devicetree/bindings/mfd/max7360.txt
new file mode 100644
index 0000000..c2ceaf9
--- /dev/null
+++ b/Documentation/devicetree/bindings/mfd/max7360.txt
@@ -0,0 +1,74 @@
+* Maxim MAX7360 Multi-function Device
+
+The Maxim MAX7360 is a Multi-function Device which includes
+64 key switches, 8 LED drivers/GPIOs, PWM intensity control,
+and rotary switch control.
+
+Required properties:
+- compatible:	Should be the following: "maxim,max7360".
+- reg:		Specifies the I2C slave address of the max7360 block.
+		  It can be 0x38, 0x3a, 0x3c or 0x3e IIUC.
+
+Optional properties:
+- interrupt-parent:	Specifies the phandle of the interrupt controller to
+			  which the interrupts from MAX7360 are routed to.
+- interrupts:		List of IRQ lines specifiers.
+- interrupt-names:	List of "inti" and "intk".
+- interrupt-controller:	Identifies the device as an interrupt controller.
+- #interrupt-cells :	Number of cells to encode an interrupt source,
+			  shall be 1.
+
+Examples:
+
+Without subnodes:
+	max7360@38 {
+		compatible = "maxim,max7360";
+		reg = <0x38>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <23 IRQ_TYPE_LEVEL_LOW>, <23 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "inti", "intk";
+		interrupt-controller;
+		#interrupt-cells = <0x1>;
+	};
+
+With subnodes:
+	max7360@38 {
+		compatible = "maxim,max7360";
+		reg = <0x38>;
+		interrupt-parent = <&gpio1>;
+		interrupts = <23 IRQ_TYPE_LEVEL_LOW>, <23 IRQ_TYPE_LEVEL_LOW>;
+		interrupt-names = "inti", "intk";
+		interrupt-controller;
+		#interrupt-cells = <0x1>;
+
+		gpio {
+			compatible = "maxim,max7360-gpio";
+			gpio-controller;
+			#gpio-cells = <0x2>;
+			interrupt-controller;
+			#interrupt-cells = <0x2>;
+			interrupts = <0>;
+		};
+
+		keypad {
+			compatible = "maxim,max7360-keypad";
+			maxim,debounce_reg = /bits/ 8 <0xef>;
+			maxim,ports_reg = /bits/ 8 <0xae>;
+			linux,keymap = < MATRIX_KEY(0, 0, KEY_F5)
+					 MATRIX_KEY(1, 0, KEY_F4) >;
+			keypad,num-rows = <2>;
+			keypad,num-columns = <1>;
+			interrupts = <1>;
+		};
+
+		pwm {
+			compatible = "maxim,max7360-pwm";
+			#pwm-cells = <0x2>;
+		};
+
+		rotary-encoder {
+			compatible = "maxim,max7360-rotary";
+			interrupts = <2>;
+		};
+
+	};
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v4 0/2] dt-bindings: mfd: Add max7360 mfd driver and DT documentation Valentin Sitdikov <valentin_sitdikov@mentor.com> - 2017-06-13 14:30 +0200
  [PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for the max7360 mfd driver Valentin Sitdikov <valentin_sitdikov@mentor.com> - 2017-06-13 14:30 +0200
    Re: [PATCH 1/2] dt-bindings: mfd: Add DT bindings documentation for  the max7360 mfd driver Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2017-06-13 15:30 +0200
  [PATCH 2/2] mfd: max7360: Add mfd core device driver Valentin Sitdikov <valentin_sitdikov@mentor.com> - 2017-06-13 14:30 +0200
    Re: [PATCH 2/2] mfd: max7360: Add mfd core device driver Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com> - 2017-06-13 15:50 +0200

csiph-web