summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/ox810se-wd-mbwe.dts
blob: c59e06ff2423a826b9f82e7f3766efb27aa35f07 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition
 *
 * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
 */

/dts-v1/;
#include "ox810se.dtsi"

/ {
	model = "Western Digital My Book World Edition";

	compatible = "wd,mbwe", "oxsemi,ox810se";

	chosen {
		bootargs = "console=ttyS1,115200n8 earlyprintk=serial";
	};

	memory {
		/* 128Mbytes DDR */
		reg = <0x48000000 0x8000000>;
	};

	aliases {
		serial1 = &uart1;
		gpio0 = &gpio0;
		gpio1 = &gpio1;
	};

	gpio-keys-polled {
		compatible = "gpio-keys-polled";
		#address-cells = <1>;
		#size-cells = <0>;
		poll-interval = <100>;

		power {
			label = "power";
			gpios = <&gpio0 0 1>;
			linux,code = <0x198>;
		};

		recovery {
			label = "recovery";
			gpios = <&gpio0 4 1>;
			linux,code = <0xab>;
		};
	};

	leds {
		compatible = "gpio-leds";

		a0 {
			label = "activity0";
			gpios = <&gpio0 25 0>;
			default-state = "keep";
		};

		a1 {
			label = "activity1";
			gpios = <&gpio0 26 0>;
			default-state = "keep";
		};

		a2 {
			label = "activity2";
			gpios = <&gpio0 5 0>;
			default-state = "keep";
		};

		a3 {
			label = "activity3";
			gpios = <&gpio0 6 0>;
			default-state = "keep";
		};

		a4 {
			label = "activity4";
			gpios = <&gpio0 7 0>;
			default-state = "keep";
		};

		a5 {
			label = "activity5";
			gpios = <&gpio1 2 0>;
			default-state = "keep";
		};
	};

	i2c-gpio {
		compatible = "i2c-gpio";
		gpios = <&gpio0 3 0 /* sda */
			 &gpio0 2 0 /* scl */
			 >;
		i2c-gpio,delay-us = <2>;        /* ~100 kHz */
		#address-cells = <1>;
		#size-cells = <0>;

		rtc0: rtc@48 {
			compatible = "st,m41t00";
			reg = <0x68>;
		};
	};
};

&etha {
	status = "okay";
};

&uart1 {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_uart1>;
};