Skip to contentSkip to conversation

T4240RBD: add device tree entry for W83793

PATCH Superseded Florian Larysch 2 participants 2 messages Nov 14, 2016 – Nov 15, 2016

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 T4240RBD: add device tree entry for W83793

The T4240RDB contains a W83793 hardware monitoring chip. Add a device tree entry to make the driver attach to it, as the i2c-mpc bus driver dropped support for class-based instantiation of devices a long time ago.

---
 arch/powerpc/boot/dts/fsl/t4240rdb.dts | 4 ++++
 1 file changed, 4 insertions(+)
arch/powerpc/boot/dts/fsl/t4240rdb.dts +4 -0
index cc0a264..b35eea1 100644
@@ -142,6 +142,10 @@
 				reg = <0x68>;
 				interrupts = <0x1 0x1 0 0>;
 			};
+			hwmon@2f {
+				compatible = "winbond,w83793";
+				reg = <0x2f>;
+			};
 		};
 
 		sdhc@114000 {
Signature · 1 line
2.10.2
#1 lore raw
Quoted 24 lines · Florian Larysch

The T4240RDB contains a W83793 hardware monitoring chip. Add a device tree entry to make the driver attach to it, as the i2c-mpc bus driver dropped support for class-based instantiation of devices a long time ago.

---
 arch/powerpc/boot/dts/fsl/t4240rdb.dts | 4 ++++

 1 file changed, 4 insertions(+)
arch/powerpc/boot/dts/fsl/t4240rdb.dts +4 -0
index cc0a264..b35eea1 100644
@@ -142,6 +142,10 @@
  				reg = <0x68>;
  				interrupts = <0x1 0x1 0 0>;
  			};
+			hwmon@2f {
+				compatible = "winbond,w83793";
+				reg = <0x2f>;
+			};
  		};
Quoted 2 lines


  sdhc@114000 {

Please (in a separate patch) add this to Documentation/devicetree/bindings/i2c/trivial-devices.txt and CC\
[email protected]

Also, please keep the i2c nodes sorted by address.

-Scott