summaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/files-5.4/arch/arm/boot/dts/qcom-ipq4018-meshpoint-one.dts
blob: 2e21b553254d0bcebd57ea2d3b9882346a2c3b88 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/* Copyright (c) 2019, CRISIS INNOVATION LAB d.o.o.
 * Author: Robert Marko <robert@meshpoint.me>
 */

#include "qcom-ipq4018-jalapeno.dtsi"

/ {
	model = "Crisis Innovation Lab MeshPoint.One";
	compatible = "cilab,meshpoint-one";

	aliases {
		led-boot = &led_status;
		led-failsafe = &led_status;
		led-running = &led_status;
		led-upgrade = &led_status;
	};

	soc {
		i2c-gpio {
			status = "okay";

			#address-cells = <1>;
			#size-cells = <0>;

			compatible = "i2c-gpio";
			gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
					 &tlmm 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
					>;

			bme280@76 {
				status = "okay";

				compatible = "bosch,bme280";
				reg = <0x76>;
			};

			pcf2129@51 {
				status = "okay";

				compatible = "nxp,pcf2129";
				reg = <0x51>;
			};

			ina230@40 {
				status = "okay";

				compatible = "ti,ina230";
				reg = <0x40>;
				shunt-resistor = <2000>;
			};

			ina230@44 {
				status = "okay";

				compatible = "ti,ina230";
				reg = <0x44>;
				shunt-resistor = <2000>;
			};
		};
	};

	keys {
		compatible = "gpio-keys";

		reset {
			label = "reset";
			gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_RESTART >;
		};
	};

	leds {
		compatible = "gpio-leds";

		led_status: status {
			label = "meshpoint-one:blue:status";
			gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
		};
	};
};