Linux 5.6.13
[linux/fpc-iii.git] / arch / arm / boot / dts / ox810se-wd-mbwe.dts
blob7e2fcb220aea321f68fdc305a9e816ccdc75e502
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3  * wd-mbwe.dtsi - Device tree file for Western Digital My Book World Edition
4  *
5  * Copyright (C) 2016 Neil Armstrong <narmstrong@baylibre.com>
6  */
8 /dts-v1/;
9 #include "ox810se.dtsi"
11 / {
12         model = "Western Digital My Book World Edition";
14         compatible = "wd,mbwe", "oxsemi,ox810se";
16         chosen {
17                 bootargs = "console=ttyS1,115200n8 earlyprintk=serial";
18         };
20         memory {
21                 /* 128Mbytes DDR */
22                 reg = <0x48000000 0x8000000>;
23         };
25         aliases {
26                 serial1 = &uart1;
27                 gpio0 = &gpio0;
28                 gpio1 = &gpio1;
29         };
31         gpio-keys-polled {
32                 compatible = "gpio-keys-polled";
33                 #address-cells = <1>;
34                 #size-cells = <0>;
35                 poll-interval = <100>;
37                 power {
38                         label = "power";
39                         gpios = <&gpio0 0 1>;
40                         linux,code = <0x198>;
41                 };
43                 recovery {
44                         label = "recovery";
45                         gpios = <&gpio0 4 1>;
46                         linux,code = <0xab>;
47                 };
48         };
50         leds {
51                 compatible = "gpio-leds";
53                 a0 {
54                         label = "activity0";
55                         gpios = <&gpio0 25 0>;
56                         default-state = "keep";
57                 };
59                 a1 {
60                         label = "activity1";
61                         gpios = <&gpio0 26 0>;
62                         default-state = "keep";
63                 };
65                 a2 {
66                         label = "activity2";
67                         gpios = <&gpio0 5 0>;
68                         default-state = "keep";
69                 };
71                 a3 {
72                         label = "activity3";
73                         gpios = <&gpio0 6 0>;
74                         default-state = "keep";
75                 };
77                 a4 {
78                         label = "activity4";
79                         gpios = <&gpio0 7 0>;
80                         default-state = "keep";
81                 };
83                 a5 {
84                         label = "activity5";
85                         gpios = <&gpio1 2 0>;
86                         default-state = "keep";
87                 };
88         };
90         i2c-gpio {
91                 compatible = "i2c-gpio";
92                 gpios = <&gpio0 3 0 /* sda */
93                          &gpio0 2 0 /* scl */
94                          >;
95                 i2c-gpio,delay-us = <2>;        /* ~100 kHz */
96                 #address-cells = <1>;
97                 #size-cells = <0>;
99                 rtc0: rtc@48 {
100                         compatible = "st,m41t00";
101                         reg = <0x68>;
102                 };
103         };
106 &uart1 {
107         status = "okay";
109         pinctrl-names = "default";
110         pinctrl-0 = <&pinctrl_uart1>;