~funderscore blog cgit wiki get in touch
aboutsummaryrefslogtreecommitdiff
blob: 3f2201e4eef4038a313a2df8495d06ea87dcf98f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright 2021 Linaro
 */

/dts-v1/;
/plugin/;

&{/} {
	vref_adc: regulator-vref-adc {
		compatible = "regulator-fixed";
		regulator-name = "vref_adc";
		regulator-min-microvolt = <2400000>;
		regulator-max-microvolt = <2400000>;
		regulator-always-on;
	};
};

&ecspi2 {
	#address-cells = <1>;
	#size-cells = <0>;

	adc0: adc@0 {
		compatible = "maxim,max11108";
		reg = <0>;
		vref-supply = <&vref_adc>;
		spi-max-frequency = <20000000>;
		status = "okay";
	};
};