Skip to contentSkip to conversation

dt-bindings: hwmon: max20730: adding device tree doc for max20730

PATCH Superseded Chu Lin 3 participants 3 messages Sep 10, 2020 – Sep 22, 2020

Subsystems (2)

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Chu Lin

author
#0 lore raw

PATCH 1/1 dt-bindings: hwmon: max20730: adding device tree doc for max20730

Testing:
make dt_binding_check

---
 .../devicetree/bindings/hwmon/max20730.txt    | 23 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/max20730.txt
Documentation/devicetree/bindings/hwmon/max20730.txt new file +23 -0
new file mode 100644
index 000000000000..3afb42b04567
@@ -0,0 +1,23 @@
+max20730 properties
+
+Required properties:
+- compatible: Must be one of the supported compatible strings:
+	"maxim,max20730" for max20730
+	"maxim,max20734" for max20734
+	"maxim,max20743" for max20743
+- reg: I2C address
+
+Optional properties:
+
+- vout-voltage-divider
+	Resistance of the vout voltage divider.
+	Two numbers, the first number is the output resistor,
+	the second number is the total resistance.
+
+Example:
+
+max20730@10 {
+	compatible = "maxim,max20730";
+	reg = <0x10>;
+	vout-voltage-divider = <1000 2000>;
+};
MAINTAINERS +1 -0
index 0a6ac3f00ed5..a04bf34a65b8 100644
@@ -12371,6 +12371,7 @@ W:	http://www.roeck-us.net/linux/drivers/
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
 S:	Maintained
 F:	Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt
+F:	Documentation/devicetree/bindings/hwmon/max20730.txt
 F:	Documentation/devicetree/bindings/hwmon/max31785.txt
 F:	Documentation/devicetree/bindings/hwmon/ltc2978.txt
 F:	Documentation/hwmon/adm1275
Signature · 1 line
2.28.0.526.ge36021eeef-goog
maintainer
#1 lore raw
Quoted 3 lines · Chu Lin

Testing:
make dt_binding_check

This isn't really an appropriate patch description.

Quoted 3 lines
---
 .../devicetree/bindings/hwmon/max20730.txt    | 23 +++++++++++++++++++

AFAIK this needs to be written as .yaml file.

Guenter

Quoted 46 lines
 MAINTAINERS                                   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/max20730.txt
Documentation/devicetree/bindings/hwmon/max20730.txt new file +23 -0
new file mode 100644
index 000000000000..3afb42b04567
@@ -0,0 +1,23 @@
+max20730 properties
+
+Required properties:
+- compatible: Must be one of the supported compatible strings:
+	"maxim,max20730" for max20730
+	"maxim,max20734" for max20734
+	"maxim,max20743" for max20743
+- reg: I2C address
+
+Optional properties:
+
+- vout-voltage-divider
+	Resistance of the vout voltage divider.
+	Two numbers, the first number is the output resistor,
+	the second number is the total resistance.
+
+Example:
+
+max20730@10 {
+	compatible = "maxim,max20730";
+	reg = <0x10>;
+	vout-voltage-divider = <1000 2000>;
+};
MAINTAINERS +1 -0
index 0a6ac3f00ed5..a04bf34a65b8 100644
@@ -12371,6 +12371,7 @@ W:	http://www.roeck-us.net/linux/drivers/
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
 S:	Maintained
 F:	Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt
+F:	Documentation/devicetree/bindings/hwmon/max20730.txt
 F:	Documentation/devicetree/bindings/hwmon/max31785.txt
 F:	Documentation/devicetree/bindings/hwmon/ltc2978.txt
 F:	Documentation/hwmon/adm1275
maintainer
#2 lore raw
Quoted 6 lines · Guenter Roeck
Quoted 3 lines · Chu Lin

Testing:
make dt_binding_check

This isn't really an appropriate patch description.

And will always pass with a .txt file...

Quoted 6 lines
Quoted 4 lines
---
 .../devicetree/bindings/hwmon/max20730.txt    | 23 +++++++++++++++++++

AFAIK this needs to be written as .yaml file.

Yes.

Quoted 20 lines

Guenter

Quoted 17 lines
 MAINTAINERS                                   |  1 +
 2 files changed, 24 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/hwmon/max20730.txt
Documentation/devicetree/bindings/hwmon/max20730.txt new file +7 -0
new file mode 100644
index 000000000000..3afb42b04567
@@ -0,0 +1,23 @@
+max20730 properties
+
+Required properties:
+- compatible: Must be one of the supported compatible strings:
+	"maxim,max20730" for max20730
+	"maxim,max20734" for max20734
+	"maxim,max20743" for max20743
Quoted 8 lines

Documentation/devicetree/bindings/hwmon/max20730.txt line 15

Quoted 8 lines
Documentation/devicetree/bindings/hwmon/max20730.txt new file +8 -0
+- reg: I2C address
+
+Optional properties:
+
+- vout-voltage-divider
+	Resistance of the vout voltage divider.
+	Two numbers, the first number is the output resistor,
+	the second number is the total resistance.

Is this a common property for this type of device? And what type of device is it because there's no description telling me?

Quoted 22 lines
Quoted 21 lines
Documentation/devicetree/bindings/hwmon/max20730.txt new file +8 -0
+
+Example:
+
+max20730@10 {
+	compatible = "maxim,max20730";
+	reg = <0x10>;
+	vout-voltage-divider = <1000 2000>;
+};
MAINTAINERS +1 -0
index 0a6ac3f00ed5..a04bf34a65b8 100644
@@ -12371,6 +12371,7 @@ W:	http://www.roeck-us.net/linux/drivers/
 T:	git git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
 S:	Maintained
 F:	Documentation/devicetree/bindings/hwmon/ibm,cffps1.txt
+F:	Documentation/devicetree/bindings/hwmon/max20730.txt
 F:	Documentation/devicetree/bindings/hwmon/max31785.txt
 F:	Documentation/devicetree/bindings/hwmon/ltc2978.txt
 F:	Documentation/hwmon/adm1275