Wiki

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
resources:tools-software:linux-drivers:iio-adc:ad7192 [21 Oct 2015 20:33] – [Status] layout Lars-Peter Clausenresources:tools-software:linux-drivers:iio-adc:ad7192 [08 Feb 2019 14:51] (current) – [Device tree support] Mircea Caprioru
Line 5: Line 5:
   * [[adi>AD7190]]   * [[adi>AD7190]]
   * [[adi>AD7192]]   * [[adi>AD7192]]
-  * [[adi>AD7193]]+  * [[adi>AD7193]] (Upstream 4.6+)
   * [[adi>AD7194]]   * [[adi>AD7194]]
   * [[adi>AD7195]]   * [[adi>AD7195]]
Line 13: Line 13:
   * [[adi>CN0102]]   * [[adi>CN0102]]
   * [[adi>CN0155]]   * [[adi>CN0155]]
 +  * [[adi>CN0209]]
   * [[adi>CN0251]]   * [[adi>CN0251]]
 +  * [[adi>CN0287]]
 +  * [[adi>CN0371]]
 +
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
  
   * [[adi>EVAL-AD7190EBZ]]   * [[adi>EVAL-AD7190EBZ]]
   * [[adi>EVAL-AD7192EBZ]]   * [[adi>EVAL-AD7192EBZ]]
 +  * [[adi>EVAL-AD7193EBZ]]
   * [[adi>EVAL-AD7194EBZ]]   * [[adi>EVAL-AD7194EBZ]]
   * [[adi>EVAL-AD7195EBZ]]   * [[adi>EVAL-AD7195EBZ]]
Line 31: Line 36:
  
 ^ Source ^ Mainlined? ^ ^ Source ^ Mainlined? ^
-| [[git.linux.org>drivers/staging/iio/adc/ad7192.c|git]] | [[git.linux.org>drivers/staging/iio/adc/ad7192.c|git]]  |+| [[git.linux.org>drivers/staging/iio/adc/ad7192.c|git]] | [[git.linux.org>drivers/staging/iio/adc/ad7192.c|yes]]  |
 ===== Files ===== ===== Files =====
  
Line 128: Line 133:
 </code> </code>
  
 +====== Device tree support ======
 +Device tree is the new method for describing non-discoverable hardware in Linux. This replaces former structure based method. For configuring a device using this drivers please follow the example bellow: 
 +
 +<code>
 +/dts-v1/;
 +/plugin/;
 +
 +/ {
 +
 + fragment@0 {
 + target-path = "/";
 + dvdd: fixedregulator@0 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply";
 + regulator-min-microvolt = <3300000>;
 + regulator-max-microvolt = <3300000>;
 + regulator-boot-on;
 + };
 + };
 +
 + fragment@1 {
 + target-path = "/";
 + avdd: fixedregulator@1 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply2";
 + regulator-min-microvolt = <3300000>;
 + regulator-max-microvolt = <3300000>;
 + regulator-boot-on;
 + };
 + };
 +
 + fragment@3 {
 + target = <&spi0>;
 + #address-cells = <1>;
 + #size-cells = <0>;
 + status = "okay";
 +
 + ad7190@0 {
 + compatible = "adi,ad7190";
 + reg = <0>;
 + spi-max-frequency = <1000000>;
 + spi-cpol;
 + spi-cpha;
 + #interrupt-cells = <2>;
 + interrupts = <25 0x2>;
 + interrupt-parent = <&gpio>;
 + dvdd-supply = <&dvdd>;
 + avdd-supply = <&avdd>;
 +
 + adi,reference-voltage-mv = /bits/ 16  <3300>;
 + adi,clock-source-select = [02];
 + adi,refin2-pins-enable;
 + adi,rejection-60-Hz-enable;
 + adi,chop-enable;
 + adi,buffer-enable;
 + adi,burnout-currents-enable;
 + adi,sinc3-filter-enable;
 + adi,unipolar-enable;
 + };
 + };
 +};
 +</code>
 +
 +<note important> Interrupt pin connection - interrupts = <25 0x2>; this line means that gpio pin 25 is used for the interrupt and it must be connect to the DOUT/RDY pin of AD7192 along with the SPI MISO.  
 + </note>
 ====== Adding Linux driver support ====== ====== Adding Linux driver support ======
  
Line 155: Line 225:
  
 </code> </code>
 +
  
 ====== Hardware configuration ====== ====== Hardware configuration ======
resources/tools-software/linux-drivers/iio-adc/ad7192.1445452412.txt.gz · Last modified: 21 Oct 2015 20:33 by Lars-Peter Clausen