1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2019 Stefan Roese <sr@denx.de>
8 /include/ "mt7628a.dtsi"
10 #include <dt-bindings/gpio/gpio.h>
11 #include <dt-bindings/input/input.h>
14 compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc",
16 model = "GARDENA smart Gateway (MT7688)";
19 device_type = "memory";
20 reg = <0x0 0x8000000>;
24 compatible = "gpio-keys";
26 pinctrl-names = "default";
27 pinctrl-0 = <&pinmux_gpio_gpio>; /* GPIO11 */
31 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
32 linux,code =<KEY_PROG1> ;
37 compatible = "gpio-leds";
39 pinctrl-names = "default";
40 pinctrl-0 = <&pinmux_pwm0_gpio>, /* GPIO18 */
41 <&pinmux_pwm1_gpio>, /* GPIO19 */
42 <&pinmux_sdmode_gpio>, /* GPIO22..29 */
43 <&pinmux_p0led_an_gpio>; /* GPIO43 */
45 * <&pinmux_i2s_gpio> (covers GPIO0..3) is needed here as
46 * well for GPIO3. But this is already claimed for uart1
47 * (see below). So we can't include it in this LED node.
51 label = "smartgw:power:blue";
52 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
53 default-state = "off";
57 label = "smartgw:power:green";
58 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
59 default-state = "off";
63 label = "smartgw:power:red";
64 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
65 default-state = "off";
69 label = "smartgw:radio:blue";
70 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
71 default-state = "off";
75 label = "smartgw:radio:green";
76 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
77 default-state = "off";
81 label = "smartgw:radio:red";
82 gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
83 default-state = "off";
87 label = "smartgw:internet:blue";
88 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
89 default-state = "off";
93 label = "smartgw:internet:green";
94 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
95 default-state = "off";
99 label = "smartgw:internet:red";
100 gpios = <&gpio 28 GPIO_ACTIVE_HIGH>;
101 default-state = "off";
105 label = "smartgw:eth:link";
106 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
107 linux,default-trigger = "netdev";
111 label = "smartgw:eth:act";
112 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
113 linux,default-trigger = "netdev";
129 pinctrl-names = "default";
130 pinctrl-0 = <&pinmux_spi_spi>, <&pinmux_spi_cs1_cs>;
133 compatible = "jedec,spi-nor";
135 spi-max-frequency = <40000000>;
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
149 label = "uboot_env0";
150 reg = <0xa0000 0x10000>;
154 label = "uboot_env1";
155 reg = <0xb0000 0x10000>;
158 factory: partition@c0000 {
160 reg = <0xc0000 0x10000>;
167 compatible = "spi-nand";
168 linux,mtd-name = "gd5f";
170 spi-max-frequency = <40000000>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pinmux_i2s_gpio>; /* GPIO0..3 */
183 rts-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
184 cts-gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
190 pinctrl-names = "default";
191 pinctrl-0 = <&pinmux_p2led_an_gpio>, /* GPIO41 */
192 <&pinmux_p3led_an_gpio>; /* GPIO40 */
194 rts-gpios = <&gpio 40 GPIO_ACTIVE_LOW>;
195 cts-gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
204 mediatek,mtd-eeprom = <&factory 0x0000>;