Hi Baurzhan,

One method not described in this document is listing the device in a
dts. It should probably be added, unfortunately I don't know enough
about this myself to do it. Any volunteer?

I would gladly contribute that as soon as I learn how to do that :) .

just add your ds2482 as child node to the i2c controller like this:


        I2C0: i...@860 {
                compatible = "fsl,mpc823-i2c",
                             "fsl,cpm1-i2c";
                reg = <0x860 0x20 0x3c80 0x30>;
                interrupts = <16>;
                interrupt-parent = <&CPM_PIC>;
                fsl,cpm-command = <0x10>;
                bus-frequency = <100000>;

                w...@aa {
                        reg = <0xaa>;
                        compatible = "dallas,ds2482";
                };
        };


Of course you'll have to replace "aa" with the real i2c address of the device.

Thanks,
Jochen
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to