AnsweredAssumed Answered

Binding to ADE7758 using iio driver DT

Question asked by nilmonto on Oct 19, 2016
Latest reply on Oct 28, 2016 by larsc

Hi, I am trying to bind to ADE7758 - which communicates using an SPI interface - on linux mainline using devicetree declaration. I've successfully get the iio folders on /sys/bus/iio/device but unfortunately I couldn't see the trigger on /sys/bus/iio/device/iio:device0/ as it should be. I am probably missing something on dts declaration, but couldn't figure out what.. I've looked for examples or information on /linux_header_folder/Documentation/devicetree/bindings/iio but there's nothing about meters.

 

Here is the dts:

 

&spi0 {
   pinctrl-names = "default";
   pinctrl-0 =    <&spi0_pins_a>,
                        <&spi0_cs0_pins_a>;
   status = "okay";
   ade7758@0 {
      compatible = "adi,ade7758";
      reg = <0>;
      spi-max-frequency = <1000000>;
      interrupts = <0>;
      interrupt-names = "irq";
   };
};

 

I'd appreciate any help!

Outcomes