OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "ox820.dtsi" |
||
4 | |||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | / { |
||
8 | model = "Akitio MyCloud"; |
||
9 | |||
10 | compatible = "akitio,mycloud", "oxsemi,ox820"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "earlyprintk"; |
||
14 | stdout-path = "serial0:115200n8"; |
||
15 | }; |
||
16 | |||
17 | memory { |
||
18 | /* 128Mbytes DDR */ |
||
19 | reg = <0x60000000 0x8000000>; |
||
20 | }; |
||
21 | |||
22 | aliases { |
||
23 | serial0 = &uart0; |
||
24 | gpio0 = &gpio0; |
||
25 | gpio1 = &gpio1; |
||
26 | }; |
||
27 | |||
28 | i2c-gpio { |
||
29 | compatible = "i2c-gpio"; |
||
30 | gpios = <&gpio1 9 0 &gpio1 10 0>; |
||
31 | pinctrl-names = "default"; |
||
32 | pinctrl-0 = <&pinctrl_i2c>; |
||
33 | i2c-gpio,delay-us = <10>; |
||
34 | #address-cells = <1>; |
||
35 | #size-cells = <0>; |
||
36 | ds1307: rtc@68 { |
||
37 | compatible = "dallas,ds1307"; |
||
38 | reg = <0x68>; |
||
39 | }; |
||
40 | }; |
||
41 | |||
42 | gpio-keys-polled { |
||
43 | compatible = "gpio-keys-polled"; |
||
44 | pinctrl-names = "default"; |
||
45 | pinctrl-0 = <&pinctrl_buttons>; |
||
46 | #address-cells = <1>; |
||
47 | #size-cells = <0>; |
||
48 | poll-interval = <100>; |
||
49 | power { |
||
50 | label = "power"; |
||
51 | gpios = <&gpio0 11 1>; |
||
52 | linux,code = <KEY_POWER>; |
||
53 | }; |
||
54 | reset { |
||
55 | label = "reset"; |
||
56 | gpios = <&gpio1 6 1>; |
||
57 | linux,code = <KEY_RESTART>; |
||
58 | }; |
||
59 | }; |
||
60 | |||
61 | gpio-leds { |
||
62 | compatible = "gpio-leds"; |
||
63 | pinctrl-names = "default"; |
||
64 | pinctrl-0 = <&pinctrl_leds>; |
||
65 | status { |
||
66 | label = "akitio:red:status"; |
||
67 | gpios = <&gpio0 29 0>; |
||
68 | }; |
||
69 | }; |
||
70 | |||
71 | gpio-poweroff { |
||
72 | compatible = "gpio-poweroff"; |
||
73 | pinctrl-names = "default"; |
||
74 | pinctrl-0 = <&pinctrl_poweroff>; |
||
75 | gpios = <&gpio1 13 2>; |
||
76 | }; |
||
77 | }; |
||
78 | |||
79 | &pinctrl { |
||
80 | pinctrl_i2c: i2c-0 { |
||
81 | i2c { |
||
82 | pins = "gpio41", "gpio42"; /* MF_B9, MF_B10 */ |
||
83 | function = "gpio"; |
||
84 | /* ToDo: find a way to set debounce for those pins */ |
||
85 | }; |
||
86 | }; |
||
87 | pinctrl_buttons: buttons-0 { |
||
88 | buttons { |
||
89 | pins = "gpio11", "gpio38"; /* MF_A11, MF_B6 GPIO */ |
||
90 | function = "gpio"; |
||
91 | }; |
||
92 | }; |
||
93 | pinctrl_leds: leds-0 { |
||
94 | leds { |
||
95 | pins = "gpio29"; /* MF_A29 GPIO */ |
||
96 | function = "gpio"; |
||
97 | }; |
||
98 | }; |
||
99 | pinctrl_poweroff: poweroff-0 { |
||
100 | poweroff { |
||
101 | pins = "gpio45"; /* MF_B13 GPIO */ |
||
102 | function = "gpio"; |
||
103 | }; |
||
104 | }; |
||
105 | }; |
||
106 | |||
107 | &uart0 { |
||
108 | status = "okay"; |
||
109 | |||
110 | pinctrl-names = "default"; |
||
111 | pinctrl-0 = <&pinctrl_uart0>; |
||
112 | }; |
||
113 | |||
114 | &nandc { |
||
115 | status = "okay"; |
||
116 | |||
117 | pinctrl-names = "default"; |
||
118 | pinctrl-0 = <&pinctrl_nand>; |
||
119 | |||
120 | nand@0 { |
||
121 | reg = <0>; |
||
122 | #address-cells = <1>; |
||
123 | #size-cells = <1>; |
||
124 | nand-ecc-mode = "soft"; |
||
125 | nand-ecc-algo = "hamming"; |
||
126 | |||
127 | partition@0 { |
||
128 | label = "boot"; |
||
129 | reg = <0x0 0x26c0000>; |
||
130 | }; |
||
131 | |||
132 | partition@26c0000 { |
||
133 | label = "ubi"; |
||
134 | reg = <0x26c0000 0xd940000>; |
||
135 | }; |
||
136 | }; |
||
137 | }; |
||
138 | |||
139 | ða { |
||
140 | status = "okay"; |
||
141 | |||
142 | pinctrl-names = "default"; |
||
143 | pinctrl-0 = <&pinctrl_etha_mdio>; |
||
144 | }; |
||
145 | |||
146 | &ehci { |
||
147 | status = "okay"; |
||
148 | }; |
||
149 | |||
150 | &sata { |
||
151 | status = "okay"; |
||
152 | nr-ports = <2>; |
||
153 | }; |
||
154 | |||
155 | &pcie0 { |
||
156 | status = "okay"; |
||
157 | }; |