Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add ADI device-tree overlays
This change groups all overlays into a single commit. The reason for doing it like this is because the rpi-4.14.y branch has been rebased. Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
- Loading branch information
Showing
12 changed files
with
709 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
adc_vref: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <2500000>; | ||
regulator-max-microvolt = <2500000>; | ||
regulator-boot-on; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ad5686r@0{ | ||
compatible = "adi,ad5686r"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
spi-cpha; | ||
vcc-supply = <&adc_vref>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ad5770r@0 { | ||
compatible = "ad5770r"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
vref-supply = <&vref>; | ||
|
||
reset-gpios = <&gpio 22 0>; | ||
|
||
channel@0 { | ||
num = <0>; | ||
adi,range-microamp = <(-60000) 300000>; | ||
}; | ||
|
||
channel@1 { | ||
num = <1>; | ||
adi,range-microamp = <0 140000>; | ||
}; | ||
|
||
channel@2 { | ||
num = <2>; | ||
adi,range-microamp = <0 55000>; | ||
}; | ||
|
||
channel@3 { | ||
num = <3>; | ||
adi,range-microamp = <0 45000>; | ||
}; | ||
|
||
channel@4 { | ||
num = <4>; | ||
adi,range-microamp = <0 45000>; | ||
}; | ||
|
||
channel@5 { | ||
num = <5>; | ||
adi,range-microamp = <0 45000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
vref: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <1250000>; | ||
regulator-max-microvolt = <1250000>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
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 = "/"; | ||
__overlay__ { | ||
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>; | ||
__overlay__ { | ||
#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; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
adc_vref: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <2500000>; | ||
regulator-max-microvolt = <2500000>; | ||
regulator-boot-on; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ad7380@0 { | ||
compatible = "ad7380"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
spi-cpol; | ||
interrupts = <25 2>; | ||
interrupt-parent = <&gpio>; | ||
vref-supply = <&adc_vref>; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
adc_vref: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <4096000>; | ||
regulator-max-microvolt = <4096000>; | ||
regulator-boot-on; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target-path = "/"; | ||
__overlay__ { | ||
clocks { | ||
ad7768_mclk: clock@0 { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <16384000>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ad7768@0{ | ||
compatible = "ad7768-1"; | ||
reg = <0>; | ||
spi-max-frequency = <16000000>; | ||
spi-cpol; | ||
spi-cpha; | ||
#interrupt-cells = <2>; | ||
interrupts = <25 0x2>; | ||
interrupt-parent = <&gpio>; | ||
vref-supply = <&adc_vref>; | ||
clocks = <&ad7768_mclk>; | ||
clock-names = "mclk"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
compatible = "brcm,bcm2708", "brcm,bcm2709"; | ||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
vcc: fixedregulator@0 { | ||
compatible = "regulator-fixed"; | ||
regulator-name = "fixed-supply"; | ||
regulator-min-microvolt = <2500000>; | ||
regulator-max-microvolt = <2500000>; | ||
regulator-boot-on; | ||
}; | ||
|
||
osc: oscillator { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <25000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
ad9833@0{ | ||
#clock-cells = <0>; | ||
compatible = "ad9833"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
spi-cpol; | ||
clocks = <&osc>; | ||
vcc-supply = <&vcc>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/ { | ||
|
||
|
||
fragment@0 { | ||
target-path = "/"; | ||
__overlay__ { | ||
clocks { | ||
adf4371_clkin: clock@0 { | ||
#clock-cells = <0>; | ||
compatible = "fixed-clock"; | ||
clock-frequency = <100000000>; // 100MHz | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@1 { | ||
target = <&spi0>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
adf4371@0 { | ||
compatible = "adi,adf4371"; | ||
reg = <0>; | ||
spi-max-frequency = <1000000>; | ||
clocks = <&adf4371_clkin>; | ||
clock-names = "clkin"; | ||
}; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.