ipq40xx: convert to new LED color/function format where possible
[openwrt/staging/nbd.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 <dt-bindings/leds/common.h>
7
8 #include "qcom-ipq4018-jalapeno.dtsi"
9
10 / {
11 model = "Crisis Innovation Lab MeshPoint.One";
12 compatible = "cilab,meshpoint-one";
13
14 aliases {
15 led-boot = &led_status;
16 led-failsafe = &led_status;
17 led-running = &led_status;
18 led-upgrade = &led_status;
19 };
20
21 soc {
22 i2c-gpio {
23 status = "okay";
24
25 #address-cells = <1>;
26 #size-cells = <0>;
27
28 compatible = "i2c-gpio";
29 gpios = <&tlmm 0 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* sda */
30 &tlmm 4 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN) /* scl */
31 >;
32
33 bme280@76 {
34 status = "okay";
35
36 compatible = "bosch,bme280";
37 reg = <0x76>;
38 };
39
40 pcf2129@51 {
41 status = "okay";
42
43 compatible = "nxp,pcf2129";
44 reg = <0x51>;
45 };
46
47 ina230@40 {
48 status = "okay";
49
50 compatible = "ti,ina230";
51 reg = <0x40>;
52 shunt-resistor = <2000>;
53 };
54
55 ina230@44 {
56 status = "okay";
57
58 compatible = "ti,ina230";
59 reg = <0x44>;
60 shunt-resistor = <2000>;
61 };
62 };
63 };
64
65 keys {
66 compatible = "gpio-keys";
67
68 reset {
69 label = "reset";
70 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_RESTART >;
72 };
73 };
74
75 leds {
76 compatible = "gpio-leds";
77
78 led_status: status {
79 function = LED_FUNCTION_STATUS;
80 color = <LED_COLOR_ID_BLUE>;
81 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
82 };
83 };
84 };