summaryrefslogtreecommitdiffstats
path: root/arch/cris/boot/dts/p1343.dts
blob: 6030561d457402a8199aac6dc043f09df5a26f70 (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
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>

/include/ "artpec3.dtsi"

/ {
	model = "Axis P1343 Network Camera";
	compatible = "axis,p1343";

	aliases {
		serial0 = &uart0;
	};

	soc {
		uart0: serial@b003e000 {
			status = "okay";
		};
	};

	i2c {
		compatible = "i2c-gpio";
		gpios = <&gio 3 0 0xa>, <&gio 2 0 0xa>;
		i2c-gpio,delay-us = <2>;
		#address-cells = <1>;
		#size-cells = <0>;

		rtc@51 {
			compatible = "nxp,pcf8563";
			reg = <0x51>;
		};
	};

	leds {
		compatible = "gpio-leds";

		status_green {
			label = "status:green";
			gpios = <&gio 0 GPIO_ACTIVE_LOW 0xc>;
			linux,default-trigger = "heartbeat";
		};

		status_red {
			label = "status:red";
			gpios = <&gio 1 GPIO_ACTIVE_LOW 0xc>;
		};

		network_green {
			label = "network:green";
			gpios = <&gio 2 GPIO_ACTIVE_LOW 0xc>;
		};

		network_red {
			label = "network:red";
			gpios = <&gio 3 GPIO_ACTIVE_LOW 0xc>;
		};

		power_red {
			label = "power:red";
			gpios = <&gio 4 GPIO_ACTIVE_LOW 0xc>;
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

		activity-button@0 {
			label = "Activity Button";
			linux,code = <KEY_FN>;
			gpios = <&gio 13 GPIO_ACTIVE_LOW 0xd>;
		};
	};
};