Ying-Chun Liu (PaulLiu) | 27ea1c5 | 2021-11-05 17:13:24 +0800 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| 2 | /* |
| 3 | * Copyright 2021 Linaro |
| 4 | */ |
| 5 | |
| 6 | /dts-v1/; |
| 7 | /plugin/; |
| 8 | |
| 9 | &{/} { |
| 10 | vref_adc: regulator-vref-adc { |
| 11 | compatible = "regulator-fixed"; |
| 12 | regulator-name = "vref_adc"; |
| 13 | regulator-min-microvolt = <2400000>; |
| 14 | regulator-max-microvolt = <2400000>; |
| 15 | regulator-always-on; |
| 16 | }; |
| 17 | }; |
| 18 | |
| 19 | &ecspi2 { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
| 23 | adc0: adc@0 { |
| 24 | compatible = "maxim,max11108"; |
| 25 | reg = <0>; |
| 26 | vref-supply = <&vref_adc>; |
| 27 | spi-max-frequency = <20000000>; |
| 28 | status = "okay"; |
| 29 | }; |
| 30 | }; |