Skip to content

Commit

Permalink
overlays: Add ADI device-tree overlays
Browse files Browse the repository at this point in the history
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
commodo committed Jul 11, 2019
1 parent 6e1f719 commit 4a5b5b7
Show file tree
Hide file tree
Showing 12 changed files with 709 additions and 0 deletions.
11 changes: 11 additions & 0 deletions arch/arm/boot/dts/overlays/Makefile
Expand Up @@ -105,8 +105,19 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
pwm-ir-tx.dtbo \
qca7000.dtbo \
rotary-encoder.dtbo \
rpi-adf4371.dtbo \
rpi-ad5686.dtbo \
rpi-ad7190.dtbo \
rpi-ad738x.dtbo \
rpi-ad7768.dtbo \
rpi-ad9834.dtbo \
rpi-adgs1408.dtbo \
rpi-adxl372.dtbo \
rpi-adxl375.dtbo \
rpi-ad5770r.dtbo \
rpi-backlight.dtbo \
rpi-cirrus-wm5102.dtbo \
rpi-cn0508.dtbo \
rpi-dac.dtbo \
rpi-display.dtbo \
rpi-ft5406.dtbo \
Expand Down
36 changes: 36 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad5686-overlay.dts
@@ -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>;
};
};
};
};
66 changes: 66 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad5770r-overlay.dts
@@ -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>;
};
};
};
};
64 changes: 64 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad7190-overlay.dts
@@ -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;
};
};
};
};
38 changes: 38 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad738x-overlay.dts
@@ -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>;
};
};
};
};
55 changes: 55 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad7768-overlay.dts
@@ -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";
};
};
};
};
45 changes: 45 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-ad9834-overlay.dts
@@ -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>;
};
};
};
};

36 changes: 36 additions & 0 deletions arch/arm/boot/dts/overlays/rpi-adf4371-overlay.dts
@@ -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";
};
};
};
};

0 comments on commit 4a5b5b7

Please sign in to comment.