Skip to content

Commit 6ef096c

Browse files
committed
arch: dts: overlays: Add MAX22531 Overlay
Add device tree overlay for MAX22531 device. Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
1 parent 12dc08f commit 6ef096c

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

arch/arm/boot/dts/overlays/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
311311
rpi-ltc6952.dtbo \
312312
rpi-max14830-i2c.dtbo \
313313
rpi-max14830-spi.dtbo \
314+
rpi-max22531.dtbo \
314315
rpi-max31335.dtbo \
315316
rpi-poe.dtbo \
316317
rpi-poe-plus.dtbo \
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// SPDX-License-Identifier: (GPL-2.0+)
2+
/*
3+
* Device Tree Overlay for MAX22531
4+
*/
5+
6+
/dts-v1/;
7+
/plugin/;
8+
9+
/ {
10+
compatible = "brcm,bcm2835", "brcm,bcm2711", "brcm,bcm2712";
11+
12+
vddl_1v8: fixedregulator@0 {
13+
compatible = "regulator-fixed";
14+
regulator-name = "Power Input for the Logic-Side";
15+
regulator-min-microvolt = <1800000>;
16+
regulator-max-microvolt = <1800000>;
17+
regulator-boot-on;
18+
regulator-always-on;
19+
};
20+
21+
vddpl_3v3: fixedregulator@1 {
22+
compatible = "regulator-fixed";
23+
regulator-name = "Power Input for the Isolated DC-DC Converter";
24+
regulator-min-microvolt = <3300000>;
25+
regulator-max-microvolt = <3300000>;
26+
regulator-boot-on;
27+
regulator-always-on;
28+
};
29+
};
30+
31+
&spi0 {
32+
status = "okay";
33+
34+
max22531@0 {
35+
compatible = "adi,max22531";
36+
reg = <0>; /* Using CS0 on spi0 */
37+
spi-max-frequency = <5000000>;
38+
vddl-supply = <&vddl_1v8>;
39+
vddpl-supply = <&vddpl_3v3>;
40+
};
41+
};

0 commit comments

Comments
 (0)