-
Notifications
You must be signed in to change notification settings - Fork 850
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch: dts: overlays: add ADI overlays
Bring all the ADI custom overlays to the new rpi branch. Signed-off-by: Nuno Sa <[email protected]>
- Loading branch information
Showing
63 changed files
with
4,883 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,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"; | ||
}; | ||
}; |
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,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"; | ||
}; | ||
}; |
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,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"; | ||
}; | ||
}; |
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,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 = <®_vdd>; | ||
}; | ||
}; |
Oops, something went wrong.