Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 1 | // 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 Roese | b54fab5 | 2018-10-09 08:59:12 +0200 | [diff] [blame] | 9 | #include <dt-bindings/gpio/gpio.h> |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 10 | |
| 11 | / { |
| 12 | compatible = "gardena,smart-gateway-mt7688", "ralink,mt7628a-soc"; |
Stefan Roese | f08cc08 | 2019-03-15 09:09:34 +0100 | [diff] [blame] | 13 | model = "GARDENA smart Gateway (MT7688)"; |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 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 Roese | b54fab5 | 2018-10-09 08:59:12 +0200 | [diff] [blame] | 25 | 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>; |
Stefan Roese | b3aa947 | 2019-01-15 13:54:26 +0100 | [diff] [blame] | 37 | default-state = "on"; |
Stefan Roese | b54fab5 | 2018-10-09 08:59:12 +0200 | [diff] [blame] | 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 Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 83 | chosen { |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 84 | stdout-path = &uart0; |
| 85 | }; |
| 86 | }; |
| 87 | |
developer | e3c4a92 | 2019-09-25 17:45:36 +0800 | [diff] [blame] | 88 | &pinctrl { |
| 89 | state_default: pin_state { |
| 90 | p0led { |
| 91 | groups = "p0led_a"; |
| 92 | function = "led"; |
| 93 | }; |
| 94 | }; |
| 95 | }; |
| 96 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 97 | &uart0 { |
| 98 | status = "okay"; |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 99 | }; |
| 100 | |
| 101 | &spi0 { |
| 102 | status = "okay"; |
| 103 | num-cs = <2>; |
| 104 | |
developer | 74d8c58 | 2019-09-25 17:45:40 +0800 | [diff] [blame] | 105 | pinctrl-names = "default"; |
| 106 | pinctrl-0 = <&spi_dual_pins>; |
| 107 | |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 108 | spi-flash@0 { |
| 109 | #address-cells = <1>; |
| 110 | #size-cells = <1>; |
Neil Armstrong | a009fa7 | 2019-02-10 10:16:20 +0000 | [diff] [blame] | 111 | compatible = "jedec,spi-nor"; |
Stefan Roese | 115802d | 2018-08-16 15:27:31 +0200 | [diff] [blame] | 112 | spi-max-frequency = <40000000>; |
| 113 | reg = <0>; |
| 114 | }; |
| 115 | |
| 116 | spi-nand@1 { |
| 117 | #address-cells = <1>; |
| 118 | #size-cells = <1>; |
| 119 | compatible = "spi-nand"; |
| 120 | spi-max-frequency = <40000000>; |
| 121 | reg = <1>; |
| 122 | }; |
| 123 | }; |
developer | e3c4a92 | 2019-09-25 17:45:36 +0800 | [diff] [blame] | 124 | |
| 125 | ð { |
developer | 8a71849 | 2019-09-25 17:45:41 +0800 | [diff] [blame] | 126 | pinctrl-names = "default"; |
| 127 | pinctrl-0 = <&ephy_iot_mode>; |
developer | e3c4a92 | 2019-09-25 17:45:36 +0800 | [diff] [blame] | 128 | mediatek,poll-link-phy = <0>; |
| 129 | }; |