linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] T4240RBD: add device tree entry for W83793
@ 2016-11-14 12:28 Florian Larysch
  2016-11-15  4:59 ` Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Larysch @ 2016-11-14 12:28 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, 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.

Signed-off-by: Florian Larysch <fl@n621.de>
---
 arch/powerpc/boot/dts/fsl/t4240rdb.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/powerpc/boot/dts/fsl/t4240rdb.dts b/arch/powerpc/boot/dts/fsl/t4240rdb.dts
index cc0a264..b35eea1 100644
--- a/arch/powerpc/boot/dts/fsl/t4240rdb.dts
+++ b/arch/powerpc/boot/dts/fsl/t4240rdb.dts
@@ -142,6 +142,10 @@
 				reg = <0x68>;
 				interrupts = <0x1 0x1 0 0>;
 			};
+			hwmon@2f {
+				compatible = "winbond,w83793";
+				reg = <0x2f>;
+			};
 		};
 
 		sdhc@114000 {
-- 
2.10.2

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

* Re: [PATCH] T4240RBD: add device tree entry for W83793
  2016-11-14 12:28 [PATCH] T4240RBD: add device tree entry for W83793 Florian Larysch
@ 2016-11-15  4:59 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2016-11-15  4:59 UTC (permalink / raw)
  To: Florian Larysch; +Cc: linuxppc-dev

On Mon, 2016-11-14 at 13:28 +0100, Florian Larysch wrote:
> 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.
> 
> Signed-off-by: Florian Larysch <fl@n621.de>
> ---
>  arch/powerpc/boot/dts/fsl/t4240rdb.dts | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/powerpc/boot/dts/fsl/t4240rdb.dts
> b/arch/powerpc/boot/dts/fsl/t4240rdb.dts
> index cc0a264..b35eea1 100644
> --- a/arch/powerpc/boot/dts/fsl/t4240rdb.dts
> +++ b/arch/powerpc/boot/dts/fsl/t4240rdb.dts
> @@ -142,6 +142,10 @@
>  				reg = <0x68>;
>  				interrupts = <0x1 0x1 0 0>;
>  			};
> +			hwmon@2f {
> +				compatible = "winbond,w83793";
> +				reg = <0x2f>;
> +			};
>  		};
>  
>  		sdhc@114000 {

Please (in a separate patch) add this to
Documentation/devicetree/bindings/i2c/trivial-devices.txt and CC\
devicetree@vger.kernel.org

Also, please keep the i2c nodes sorted by address.

-Scott

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

end of thread, other threads:[~2016-11-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-14 12:28 [PATCH] T4240RBD: add device tree entry for W83793 Florian Larysch
2016-11-15  4:59 ` Scott Wood

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).