Skip to content

Commit 8de7c35

Browse files
committed
iio: adc: Device tree improvements for MAX22530-MAX22532
Improve initial DT Overlay for MAX22530-MAX22532. Add MAX22530-MAX22532 device tree documentation. Signed-off-by: Abhinav Jain <jain.abhinav177@gmail.com>
1 parent 3aec57d commit 8de7c35

File tree

2 files changed

+82
-7
lines changed

2 files changed

+82
-7
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
# Copyright 2025 Abhinav Jain
3+
%YAML 1.2
4+
---
5+
$id: http://devicetree.org/schemas/iio/adc/adi,max22531.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
7+
8+
title: Analog Devices MAX22530-MAX22532 12-bit Field Isolated ADCs
9+
10+
maintainers:
11+
- Abhinav Jain <jain.abhinav177@gmail.com>
12+
13+
description:
14+
Bindings for the Analog Devices Max22530-MAX22532 Field-Side Self-Powered,
15+
4-Channel, 12-bit, Isolated ADCs.
16+
17+
Datasheet can be found here
18+
https://www.analog.com/media/en/technical-documentation/data-sheets/max22530-max22532.pdf
19+
20+
properties:
21+
compatible:
22+
enum:
23+
- adi,max22530
24+
- adi,max22531
25+
- adi,max22532
26+
27+
reg:
28+
maxItems: 1
29+
30+
'#address-cells':
31+
const: 1
32+
33+
'#size-cells':
34+
const: 0
35+
36+
vddl-supply:
37+
description:
38+
Logic power supply.
39+
40+
vddpl-supply:
41+
description:
42+
Isolated DC-DC converter power supply.
43+
44+
required:
45+
- compatible
46+
- reg
47+
- vddl-supply
48+
- vddpl-supply
49+
50+
allOf:
51+
- $ref: /schemas/spi/spi-peripheral-props.yaml#
52+
53+
examples:
54+
- |
55+
spi {
56+
#address-cells = <1>;
57+
#size-cells = <0>;
58+
59+
max22531: adc@0 {
60+
compatible = "adi,max22531";
61+
reg = <0>;
62+
spi-max-frequency = <5000000>;
63+
vddl-supply = <&vddl>;
64+
vddpl-supply = <&vddpl>;
65+
};
66+
};

arch/arm/boot/dts/overlays/rpi-max22531-overlay.dts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,20 @@
77
/plugin/;
88

99
/ {
10-
compatible = "brcm,bcm2835-spi", "brcm,bcm2711";
10+
compatible = "brcm,bcm2835", "brcm,bcm2711", "brcm,bcm2712";
1111

12-
reg_vdd: regulator {
12+
vddl_1v8: fixedregulator@0 {
1313
compatible = "regulator-fixed";
14-
regulator-name = "vdd";
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";
1524
regulator-min-microvolt = <3300000>;
1625
regulator-max-microvolt = <3300000>;
1726
regulator-boot-on;
@@ -23,10 +32,10 @@
2332
status = "okay";
2433

2534
max22531@0 {
26-
compatible = "maxim,max22531";
35+
compatible = "adi,max22531";
2736
reg = <0>; /* Using CS0 on spi0 */
28-
spi-max-frequency = <10000000>;
29-
vref-supply = <&reg_vdd>;
30-
37+
spi-max-frequency = <5000000>;
38+
vddl-supply = <&vddl_1v8>;
39+
vddpl-supply = <&vddpl_3v3>;
3140
};
3241
};

0 commit comments

Comments
 (0)