Skip to content

Commit

Permalink
arch: dts: overlays: add ADI overlays
Browse files Browse the repository at this point in the history
Bring all the ADI custom overlays to the new rpi branch.

Signed-off-by: Nuno Sa <[email protected]>
  • Loading branch information
nunojsa committed Sep 29, 2023
1 parent d6ee37d commit 239bb22
Show file tree
Hide file tree
Showing 63 changed files with 4,883 additions and 0 deletions.
62 changes: 62 additions & 0 deletions arch/arm/boot/dts/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
adafruit18.dtbo \
adau1977-adc.dtbo \
adau7002-simple.dtbo \
adau7118-simple.dtbo \
adis16475.dtbo \
adis16480.dtbo \
ads1015.dtbo \
ads1115.dtbo \
ads7846.dtbo \
Expand Down Expand Up @@ -135,6 +138,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
justboom-dac.dtbo \
justboom-digi.dtbo \
ltc294x.dtbo \
max31827.dtbo \
max98357a.dtbo \
maxtherm.dtbo \
mbed-dac.dtbo \
Expand Down Expand Up @@ -195,12 +199,70 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
ramoops.dtbo \
ramoops-pi4.dtbo \
rotary-encoder.dtbo \
rpi-ada4250.dtbo \
rpi-adin1110.dtbo \
rpi-adin2111.dtbo \
rpi-adau1761.dtbo \
rpi-adau1472.dtbo \
rpi-addi9036.dtbo \
rpi-adf4159.dtbo \
rpi-adf4371.dtbo \
rpi-admv1013.dtbo \
rpi-admv1014.dtbo \
rpi-admv8818.dtbo \
rpi-adrf6780.dtbo \
rpi-ad4130.dtbo \
rpi-ad5592r.dtbo \
rpi-ad5593r.dtbo \
rpi-ad5677r.dtbo \
rpi-ad5686.dtbo \
rpi-ad5679r.dtbo \
rpi-ad5766.dtbo \
rpi-ad7124.dtbo \
rpi-ad7124-8-all-diff.dtbo \
rpi-ad7173.dtbo \
rpi-ad7190.dtbo \
rpi-ad7293.dtbo \
rpi-ad738x.dtbo \
rpi-ad7746.dtbo \
rpi-ad7768-1.dtbo \
rpi-ad74115.dtbo \
rpi-ad74413r.dtbo \
rpi-ad9545-hmc7044.dtbo \
rpi-ad9834.dtbo \
rpi-adar1000.dtbo \
rpi-adgs1408.dtbo \
rpi-adxl313-spi.dtbo \
rpi-adxl313-i2c.dtbo \
rpi-adxl345.dtbo \
rpi-adxl355.dtbo \
rpi-adxl367.dtbo \
rpi-adxl372.dtbo \
rpi-adxl375.dtbo \
rpi-adxrs290.dtbo \
rpi-ad5770r.dtbo \
rpi-ad5791.dtbo \
rpi-adt7420.dtbo \
rpi-backlight.dtbo \
rpi-codeczero.dtbo \
rpi-cn0504.dtbo \
rpi-cn0508.dtbo \
rpi-cn0511.dtbo \
rpi-cn0552.dtbo \
rpi-cn0554.dtbo \
rpi-cn0566.dtbo \
rpi-cn0575.dtbo \
rpi-dacplus.dtbo \
rpi-dacpro.dtbo \
rpi-dc1962c.dtbo \
rpi-digiampplus.dtbo \
rpi-ft5406.dtbo \
rpi-lm75.dtbo \
rpi-ltc2497.dtbo \
rpi-ltc2688.dtbo \
rpi-ltc6952.dtbo \
rpi-max14830-i2c.dtbo \
rpi-max14830-spi.dtbo \
rpi-poe.dtbo \
rpi-poe-plus.dtbo \
rpi-sense.dtbo \
Expand Down
60 changes: 60 additions & 0 deletions arch/arm/boot/dts/overlays/adau7118-simple-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// SPDX-License-Identifier: GPL-2.0

/dts-v1/;
/plugin/;

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&i2s>;
__overlay__ {
status = "okay";
};
};

fragment@1 {
target = <&i2c1>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

adau7118_codec: adau7118-codec@14 {
reg = <0x14>;
#sound-dai-cells = <0>;
compatible = "adi,adau7118";
status = "okay";
};
};
};

fragment@2 {
target = <&sound>;
sound_overlay: __overlay__ {
compatible = "simple-audio-card";
simple-audio-card,format = "i2s";
simple-audio-card,name = "adau7118";
simple-audio-card,bitclock-slave = <&dailink0_slave>;
simple-audio-card,frame-slave = <&dailink0_slave>;
simple-audio-card,widgets =
"Microphone", "Microphone Jack";
simple-audio-card,routing =
"PDM_DAT0", "Microphone Jack";
status = "okay";
simple-audio-card,cpu {
/* so that bclk is 64x FS */
dai-tdm-slot-num = <2>;
dai-tdm-slot-width = <32>;
sound-dai = <&i2s>;
};
dailink0_slave: simple-audio-card,codec {
sound-dai = <&adau7118_codec>;
};
};
};

__overrides__ {
card-name = <&sound_overlay>,"simple-audio-card,name";
};
};
75 changes: 75 additions & 0 deletions arch/arm/boot/dts/overlays/adis16475-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
};
};

fragment@1 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};

fragment@2 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};

fragment@3 {
target = <&gpio>;
__overlay__ {
adis16475_pins: adis16475_pins {
brcm,pins = <4 12>; // interrupt and reset
brcm,function = <0 1>; // in out
};
};
};
fragment@4 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;

adis16475: adis16475@0 {
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&adis16475_pins>;
spi-cpha;
spi-cpol;
reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
spi-max-frequency = <2000000>;
interrupts = <4 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio>;
};
};
};

__overrides__ {
/*
* This gives an option to use the gpio25 as the data ready pin. This
* must be used for the adis16465/7 families as these devices use the
* 14 pin connector where DR is using gpio25. Note that this should
* not be used for the other devices as the gpio25 is both connected to
* the sync selector and to the sync pin (because the sync and DR pins
* are swapped in the 16 pin connector).
*/
drdy_gpio25 = <&adis16475_pins>,"brcm,pins:0=25",
<&adis16475>,"interrupts:0=25";
device = <&adis16475>,"compatible";
};
};
75 changes: 75 additions & 0 deletions arch/arm/boot/dts/overlays/adis16480-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
/plugin/;

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

/ {
compatible = "brcm,bcm2835";

fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
};
};

fragment@1 {
target = <&spidev0>;
__overlay__ {
status = "disabled";
};
};

fragment@2 {
target = <&spidev1>;
__overlay__ {
status = "disabled";
};
};

fragment@3 {
target = <&gpio>;
__overlay__ {
adis16480_pins: adis16480_pins {
brcm,pins = <6 12>; // interrupt and reset
brcm,function = <0 1>; // in out
};
};
};
fragment@4 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;

adis16480: adis16480@0 {
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&adis16480_pins>;
spi-cpha;
spi-cpol;
reset-gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
spi-max-frequency = <15000000>;
/* use DIO1 as data ready by default */
interrupts = <6 IRQ_TYPE_EDGE_RISING>;
interrupt-parent = <&gpio>;
};
};
};

__overrides__ {
device = <&adis16480>,"compatible";
drdy_dio2 = <&adis16480_pins>,"brcm,pins:0=25",
<&adis16480>,"interrupts:0=25",
<&adis16480>,"interrupt-names=DIO2";
drdy_dio3 = <&adis16480_pins>,"brcm,pins:0=4",
<&adis16480>,"interrupts:0=4",
<&adis16480>,"interrupt-names=DIO3";
drdy_dio4 = <&adis16480_pins>,"brcm,pins:0=5",
<&adis16480>,"interrupts:0=5",
<&adis16480>,"interrupt-names=DIO4";
};
};
33 changes: 33 additions & 0 deletions arch/arm/boot/dts/overlays/max31827-overlay.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// SPDX-License-Identifier: (GPL-2.0+)
/* Overlay for MAX31827EVKIT
*
* Copyright 2023 Analog Devices Inc.
*/

/dts-v1/;
/plugin/;

/ {
compatible = "bcrm, bcm2711";

reg_vdd: regulator {
compatible = "regulator-fixed";
regulator-name = "vdd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-always-on;
};
};

&i2c_arm {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";

temperature-sensor@42 {
compatible = "adi,max31827";
reg = <0x42>;
vref-supply = <&reg_vdd>;
};
};
Loading

0 comments on commit 239bb22

Please sign in to comment.