linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [RFC] adding hwmon support to sequoia device tree
@ 2008-09-04  9:55 Matthias Fuchs
  2008-09-04 12:25 ` Josh Boyer
  0 siblings, 1 reply; 18+ messages in thread
From: Matthias Fuchs @ 2008-09-04  9:55 UTC (permalink / raw)
  To: linuxppc-dev

Hi,

I added support for the Sequoia on-board I2C temperature sensor to the device.
I am not sure if there is any node naming convention for such devices.
The needed I2C driver can be found under drivers/hwmon in the kernel sources,
so I found "hwmon" suitable for the node.

Do we want to add this to the sequoia dts file? If this is how it should be done,
I will commit a proper patch.


diff --git a/arch/powerpc/boot/dts/sequoia.dts b/arch/powerpc/boot/dts/sequoia.dts
index 72d15f0..82fdfdf 100644
--- a/arch/powerpc/boot/dts/sequoia.dts
+++ b/arch/powerpc/boot/dts/sequoia.dts
@@ -246,13 +246,23 @@
                        };

                        IIC0: i2c@ef600700 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
                                compatible = "ibm,iic-440epx", "ibm,iic";
                                reg = <0xef600700 0x00000014>;
                                interrupt-parent = <&UIC0>;
                                interrupts = <0x2 0x4>;
+
+                               hwmon@48 {
+                                       device_type = "hwmon";
+                                       compatible = "analog,ad7414";
+                                       reg = <0x48>;
+                               };
                        };

                        IIC1: i2c@ef600800 {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
(prepare for adding devices on the 2nd I2C also)

                                compatible = "ibm,iic-440epx", "ibm,iic";
                                reg = <0xef600800 0x00000014>;
                                interrupt-parent = <&UIC0>;


Matthias

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

end of thread, other threads:[~2008-09-09 12:15 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-04  9:55 [RFC] adding hwmon support to sequoia device tree Matthias Fuchs
2008-09-04 12:25 ` Josh Boyer
2008-09-04 12:50   ` Stefan Roese
2008-09-04 14:28   ` Matthias Fuchs
2008-09-04 14:41     ` [PATCH] powerpc/44x: Add hwmon support to Sequoia " Matthias Fuchs
2008-09-05 10:19       ` Stefan Roese
2008-09-05 14:58         ` Matthias Fuchs
2008-09-05 16:00         ` Scott Wood
2008-09-06  0:17           ` Sean MacLennan
2008-09-06 12:07             ` Josh Boyer
2008-09-08  7:57               ` [PATCH V2] " Matthias Fuchs
2008-09-06 12:40             ` [PATCH] " Matthias Fuchs
2008-09-06 11:49               ` Sean MacLennan
2008-09-06 15:07               ` Wolfgang Grandegger
2008-09-08 16:03                 ` Scott Wood
2008-09-09 11:52                   ` Matthias Fuchs
2008-09-09 12:15                     ` Josh Boyer
2008-09-05 14:27     ` [RFC] adding hwmon support to sequoia " Sean MacLennan

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