ipq40xx: consolidate DTS files
[oweals/openwrt.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-meshpoint-one.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2019, CRISIS INNOVATION LAB d.o.o.
3  * Author: Robert Marko <robert@meshpoint.me>
4  */
5
6 #include "qcom-ipq4018-jalapeno.dtsi"
7
8 / {
9         model = "Crisis Innovation Lab MeshPoint.One";
10         compatible = "cilab,meshpoint-one";
11
12         aliases {
13                 led-boot = &led_status;
14                 led-failsafe = &led_status;
15                 led-running = &led_status;
16                 led-upgrade = &led_status;
17         };
18
19         soc {
20                 i2c-gpio {
21                         status = "okay";
22
23                         #address-cells = <1>;
24                         #size-cells = <0>;
25
26                         compatible = "i2c-gpio";
27                         gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
28                                          &tlmm 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
29                                         >;
30
31                         bme280@76 {
32                                 status = "okay";
33
34                                 compatible = "bosch,bme280";
35                                 reg = <0x76>;
36                         };
37
38                         pcf2129@51 {
39                                 status = "okay";
40
41                                 compatible = "nxp,pcf2129";
42                                 reg = <0x51>;
43                         };
44
45                         ina230@40 {
46                                 status = "okay";
47
48                                 compatible = "ti,ina230";
49                                 reg = <0x40>;
50                                 shunt-resistor = <2000>;
51                         };
52
53                         ina230@44 {
54                                 status = "okay";
55
56                                 compatible = "ti,ina230";
57                                 reg = <0x44>;
58                                 shunt-resistor = <2000>;
59                         };
60                 };
61         };
62
63         keys {
64                 compatible = "gpio-keys";
65
66                 reset {
67                         label = "reset";
68                         gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
69                         linux,code = <KEY_RESTART >;
70                 };
71         };
72
73         leds {
74                 compatible = "gpio-leds";
75
76                 led_status: status {
77                         label = "meshpoint-one:blue:status";
78                         gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
79                 };
80         };
81 };