blob: e2f8d8047e0d491b7c4a6cef204ddad1a502f3e9 [file] [log] [blame]
Stefan Roesea71e2f92019-04-02 10:57:27 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * Device Tree file for the GARDENA smart Gateway (AT91SAM)
4 *
5 * Copyright (C) 2012 Atmel,
6 * 2012 Nicolas Ferre <nicolas.ferre@atmel.com>
7 */
8
9/dts-v1/;
10
11#include "at91sam9g25.dtsi"
12
13/ {
14 model = "GARDENA smart Gateway (AT91SAM)";
15 compatible = "gardena,smart-gateway-at91sam", "atmel,at91sam9";
16
17 aliases {
18 serial0 = &dbgu;
19 };
20
21 chosen {
22 stdout-path = "serial0:115200n8";
23 };
24
25 memory {
26 reg = <0x20000000 0x8000000>;
27 };
28
29 clocks {
30 slow_xtal {
31 clock-frequency = <32768>;
32 };
33
34 main_xtal {
35 clock-frequency = <12000000>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 power_blue {
43 label = "smartgw:power:blue";
44 gpios = <&pioC 21 GPIO_ACTIVE_HIGH>;
45 default-state = "off";
46 };
47
48 power_green {
49 label = "smartgw:power:green";
50 gpios = <&pioC 20 GPIO_ACTIVE_HIGH>;
51 default-state = "on";
52 };
53
54 power_red {
55 label = "smartgw:power:red";
56 gpios = <&pioC 19 GPIO_ACTIVE_HIGH>;
57 default-state = "off";
58 };
59
60 radio_blue {
61 label = "smartgw:radio:blue";
62 gpios = <&pioC 18 GPIO_ACTIVE_HIGH>;
63 default-state = "off";
64 };
65
66 radio_green {
67 label = "smartgw:radio:green";
68 gpios = <&pioC 17 GPIO_ACTIVE_HIGH>;
69 default-state = "off";
70 };
71
72 radio_red {
73 label = "smartgw:radio:red";
74 gpios = <&pioC 16 GPIO_ACTIVE_HIGH>;
75 default-state = "off";
76 };
77
78 internet_blue {
79 label = "smartgw:internet:blue";
80 gpios = <&pioC 15 GPIO_ACTIVE_HIGH>;
81 default-state = "off";
82 };
83
84 internet_green {
85 label = "smartgw:internet:green";
86 gpios = <&pioC 14 GPIO_ACTIVE_HIGH>;
87 default-state = "off";
88 };
89
90 internet_red {
91 label = "smartgw:internet:red";
92 gpios = <&pioC 13 GPIO_ACTIVE_HIGH>;
93 default-state = "off";
94 };
95 };
96};
97
98&dbgu {
99 status = "okay";
100};
101
102&macb0 {
103 phy-mode = "rmii";
104 status = "okay";
105};
106
107&nand0 {
108 nand-bus-width = <8>;
109 nand-ecc-mode = "hw";
110 atmel,has-pmecc; /* Enable PMECC */
111 atmel,pmecc-cap = <2>;
112 atmel,pmecc-sector-size = <512>;
113 nand-on-flash-bbt;
114 status = "okay";
115};
116
117&watchdog {
118 status = "okay";
119 timeout-sec = <16>;
120};