1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7628an.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "jotale,js76x8", "mediatek,mt7628an-soc";
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 label = "green:system";
27 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
32 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
38 compatible = "gpio-keys";
42 gpios = <&gpio 38 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RESTART>;
50 groups = "refclk", "wdt", "wled_an";
58 pinctrl-names = "default";
59 pinctrl-0 = <&spi_pins>, <&spi_cs1_pins>;
62 compatible = "jedec,spi-nor";
64 spi-max-frequency = <40000000>;
67 compatible = "fixed-partitions";
79 reg = <0x30000 0x10000>;
83 factory: partition@40000 {
84 compatible = "nvmem-cells";
86 reg = <0x40000 0x10000>;
91 eeprom_factory_0: eeprom@0 {
95 macaddr_factory_28: macaddr@28 {
100 firmware: partition@50000 {
101 compatible = "denx,uimage";
103 /* reg property is set based on flash size in DTS files */
126 nvmem-cells = <&macaddr_factory_28>;
127 nvmem-cell-names = "mac-address";
138 nvmem-cells = <&eeprom_factory_0>;
139 nvmem-cell-names = "eeprom";