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-dac:ad5360 [11 Feb 2016 20:51] – [Status] Lars-Peter Clausenresources:tools-software:linux-drivers:iio-dac:ad5360 [29 Jan 2024 13:00] (current) – [Example device tree] Avoid error message "debugfs: Directory 'fixed-supply' with parent 'regulator' already present!" Ilario Gelmetti
Line 12: Line 12:
   * [[adi>AD5373]]   * [[adi>AD5373]]
  
- 
-===== Reference Circuits ===== 
- 
-  * [[adi>CN0123]] 
-  * [[adi>CN0131]] 
 ===== Evaluation Boards ===== ===== Evaluation Boards =====
  
Line 43: Line 38:
 ^ Function ^ File ^ ^ Function ^ File ^
 | driver  | [[git.linux.org>drivers/iio/dac/ad5360.c]] | | driver  | [[git.linux.org>drivers/iio/dac/ad5360.c]] |
 +
 +====== Example device tree ======
 +<code c>
 + fragment@0 {
 + target-path = "/";
 + __overlay__ {
 + vref0: fixedregulator@0 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply0";
 + regulator-min-microvolt = <3000000>;
 + regulator-max-microvolt = <3000000>;
 + regulator-boot-on;
 + };
 + vref1: fixedregulator@1 {
 + compatible = "regulator-fixed";
 + regulator-name = "fixed-supply1";
 + regulator-min-microvolt = <3000000>;
 + regulator-max-microvolt = <3000000>;
 + regulator-boot-on;
 + };
 + };
 + };
 +
 + fragment@1 {
 + target = <&spi0>;
 + __overlay__ {
 + #address-cells = <1>;
 + #size-cells = <0>;
 + status = "okay";
 +
 + ad5370@0{
 + compatible = "adi,ad5370";
 + reg = <0>;
 + spi-max-frequency = <1000000>;
 + spi-cpha;
 + vref0-supply = <&vref0>;
 + vref1-supply = <&vref1>;
 + };
 + };
 + };
 +};
 +</code>
  
 ====== Example platform device initialization ====== ====== Example platform device initialization ======
resources/tools-software/linux-drivers/iio-dac/ad5360.1455220280.txt.gz · Last modified: 11 Feb 2016 20:51 by Lars-Peter Clausen