|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
| 2 | +/* |
| 3 | + * Overlay for the MAX14001 ADC |
| 4 | + * |
| 5 | + * Copyright (c) 2025 Marilene Andrade Garcia < [email protected]> |
| 6 | + * |
| 7 | + * Datasheet: https://www.analog.com/media/en/technical-documentation/data-sheets/MAX14001-MAX14002.pdf |
| 8 | + */ |
| 9 | + |
| 10 | +/dts-v1/; |
| 11 | +/plugin/; |
| 12 | + |
| 13 | +/ { |
| 14 | + compatible = "brcm,bcm2712"; |
| 15 | +}; |
| 16 | + |
| 17 | +&{/} { |
| 18 | + vdd: fixedregulator@0 { |
| 19 | + compatible = "regulator-fixed"; |
| 20 | + regulator-name = "Isolated DC-DC Power Supply Input Voltage"; |
| 21 | + regulator-min-microvolt = <3300000>; |
| 22 | + regulator-max-microvolt = <3300000>; |
| 23 | + regulator-boot-on; |
| 24 | + regulator-always-on; |
| 25 | + status = "okay"; |
| 26 | + }; |
| 27 | + |
| 28 | + vddl: fixedregulator@1 { |
| 29 | + compatible = "regulator-fixed"; |
| 30 | + regulator-name = "Logic Power Supply Voltage"; |
| 31 | + regulator-min-microvolt = <3300000>; |
| 32 | + regulator-max-microvolt = <3300000>; |
| 33 | + regulator-boot-on; |
| 34 | + regulator-always-on; |
| 35 | + status = "okay"; |
| 36 | + }; |
| 37 | + |
| 38 | + vrefin: fixedregulator@2 { |
| 39 | + compatible = "regulator-fixed"; |
| 40 | + regulator-name = "Reference Input Range Voltage"; |
| 41 | + regulator-min-microvolt = <1250000>; |
| 42 | + regulator-max-microvolt = <1250000>; |
| 43 | + regulator-boot-on; |
| 44 | + regulator-always-on; |
| 45 | + status = "okay"; |
| 46 | + }; |
| 47 | +}; |
| 48 | + |
| 49 | +&spi0 { |
| 50 | + status = "okay"; |
| 51 | + max14001_u51: max14001@0 { |
| 52 | + compatible = "adi,max14001"; |
| 53 | + reg = <0x0>; |
| 54 | + spi-max-frequency = <5000000>; |
| 55 | + vdd-supply = <&vdd>; |
| 56 | + vddl-supply = <&vddl>; |
| 57 | + vrefin-supply = <&vrefin>; |
| 58 | + status = "okay"; |
| 59 | + }; |
| 60 | + max14001_u11: max14001@1 { |
| 61 | + compatible = "adi,max14001"; |
| 62 | + reg = <0x1>; |
| 63 | + spi-max-frequency = <5000000>; |
| 64 | + vdd-supply = <&vdd>; |
| 65 | + vddl-supply = <&vddl>; |
| 66 | + vrefin-supply = <&vrefin>; |
| 67 | + status = "okay"; |
| 68 | + }; |
| 69 | +}; |
| 70 | + |
| 71 | +&spidev0 { |
| 72 | + status = "disabled"; |
| 73 | +}; |
| 74 | + |
| 75 | +&spidev1 { |
| 76 | + status = "disabled"; |
| 77 | +}; |
0 commit comments