| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- #include "mt7621.dtsi"
- #include <dt-bindings/gpio/gpio.h>
- #include <dt-bindings/input/input.h>
- #include <dt-bindings/leds/common.h>
- / {
- model = "Ubiquiti UniFi Switch Flex";
- compatible = "ubnt,usw-flex", "mediatek,mt7621-soc";
- aliases {
- led-boot = &led_white;
- led-failsafe = &led_white;
- led-running = &led_blue;
- led-upgrade = &led_blue;
- label-mac-device = &gmac0;
- };
- chosen {
- bootargs-override = "console=ttyS0,115200";
- };
- keys {
- compatible = "gpio-keys";
- reset {
- label = "reset";
- gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
- linux,code = <KEY_RESTART>;
- };
- };
- leds {
- compatible = "gpio-leds";
- led_blue: status_blue {
- function = LED_FUNCTION_STATUS;
- color = <LED_COLOR_ID_BLUE>;
- gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
- };
- led_white: status_white {
- function = LED_FUNCTION_STATUS;
- color = <LED_COLOR_ID_WHITE>;
- gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
- };
- };
- i2c-gpio {
- compatible = "i2c-gpio";
- sda-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
- scl-gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
- i2c-gpio,delay-us = <50>;
- /* Microsemi PD69104B1 PSE controller */
- };
- };
- &gmac0 {
- nvmem-cells = <&macaddr_eeprom>;
- nvmem-cell-names = "mac-address";
- label = "dsa";
- };
- &switch0 {
- ports {
- port@0 {
- status = "okay";
- label = "lan5";
- };
- port@1 {
- status = "okay";
- label = "lan4";
- };
- port@2 {
- status = "okay";
- label = "lan3";
- };
- port@3 {
- status = "okay";
- label = "lan2";
- };
- port@4 {
- status = "okay";
- label = "lan1";
- };
- };
- };
- &state_default {
- gpio {
- groups = "i2c", "uart2", "uart3", "jtag";
- function = "gpio";
- };
- };
- &spi0 {
- status = "okay";
- flash@0 {
- compatible = "jedec,spi-nor";
- reg = <0>;
- spi-max-frequency = <30000000>;
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
- partition@0 {
- label = "u-boot";
- reg = <0x0 0x60000>;
- read-only;
- };
- partition@60000 {
- label = "u-boot-env";
- reg = <0x60000 0x10000>;
- };
- partition@70000 {
- label = "factory";
- reg = <0x70000 0x10000>;
- read-only;
- };
- partition@80000 {
- label = "eeprom";
- reg = <0x80000 0x10000>;
- read-only;
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
- macaddr_eeprom: macaddr@0 {
- reg = <0x0 0x6>;
- };
- };
- };
- partition@90000 {
- label = "bs";
- reg = <0x90000 0x10000>;
- };
- partition@a0000 {
- label = "cfg";
- reg = <0xa0000 0x100000>;
- read-only;
- };
- partition@1a0000 {
- /* Combine kernel0 / kernel1 */
- compatible = "denx,fit";
- label = "firmware";
- reg = <0x1a0000 0xe60000>;
- };
- };
- };
- };
- &xhci {
- status = "disabled";
- };
|