blob: d8d88686bb60b374f8b24b732b64a26a4faa7a35 [file] [log] [blame]
Stefan Roese88dc4092018-08-16 15:27:31 +02001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright (C) 2018 Stefan Roese <sr@denx.de>
4 */
5
6/dts-v1/;
7
8#include "mt7628a.dtsi"
Stefan Roese840293b2018-10-09 08:59:12 +02009#include <dt-bindings/gpio/gpio.h>
Stefan Roese88dc4092018-08-16 15:27:31 +020010
11/ {
12 compatible = "gardena,smart-gateway-mt7688", "ralink,mt7628a-soc";
13 model = "Gardena smart-Gateway-MT7688";
14
15 aliases {
16 serial0 = &uart0;
17 spi0 = &spi0;
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x08000000>;
23 };
24
Stefan Roese840293b2018-10-09 08:59:12 +020025 leds {
26 compatible = "gpio-leds";
27
28 power_blue {
29 label = "smartgw:power:blue";
30 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
31 default-state = "off";
32 };
33
34 power_green {
35 label = "smartgw:power:green";
36 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
37 default-state = "off";
38 };
39
40 power_red {
41 label = "smartgw:power:red";
42 gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
43 default-state = "off";
44 };
45
46 radio_blue {
47 label = "smartgw:radio:blue";
48 gpios = <&gpio0 23 GPIO_ACTIVE_HIGH>;
49 default-state = "off";
50 };
51
52 radio_green {
53 label = "smartgw:radio:green";
54 gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
55 default-state = "off";
56 };
57
58 radio_red {
59 label = "smartgw:radio:red";
60 gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
61 default-state = "off";
62 };
63
64 internet_blue {
65 label = "smartgw:internet:blue";
66 gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>;
67 default-state = "off";
68 };
69
70 internet_green {
71 label = "smartgw:internet:green";
72 gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
73 default-state = "off";
74 };
75
76 internet_red {
77 label = "smartgw:internet:red";
78 gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
79 default-state = "off";
80 };
81 };
82
Stefan Roese88dc4092018-08-16 15:27:31 +020083 chosen {
Stefan Roese88dc4092018-08-16 15:27:31 +020084 stdout-path = &uart0;
85 };
86};
87
88&uart0 {
89 status = "okay";
90 clock-frequency = <40000000>;
91};
92
93&spi0 {
94 status = "okay";
95 num-cs = <2>;
96
97 spi-flash@0 {
98 #address-cells = <1>;
99 #size-cells = <1>;
100 compatible = "spi-flash", "jedec,spi-nor";
101 spi-max-frequency = <40000000>;
102 reg = <0>;
103 };
104
105 spi-nand@1 {
106 #address-cells = <1>;
107 #size-cells = <1>;
108 compatible = "spi-nand";
109 spi-max-frequency = <40000000>;
110 reg = <1>;
111 };
112};