1// SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2/dts-v1/; 3 4#include "mt7621.dtsi" 5 6#include <dt-bindings/gpio/gpio.h> 7#include <dt-bindings/input/input.h> 8 9/ { 10 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; 11 model = "GB-PC1"; 12 13 memory@0 { 14 device_type = "memory"; 15 reg = <0x00000000 0x1c000000>, 16 <0x20000000 0x04000000>; 17 }; 18 19 chosen { 20 bootargs = "console=ttyS0,57600"; 21 }; 22 23 palmbus: palmbus@1e000000 { 24 i2c@900 { 25 status = "okay"; 26 }; 27 }; 28 29 gpio-keys { 30 compatible = "gpio-keys"; 31 32 reset { 33 label = "reset"; 34 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 35 linux,code = <KEY_RESTART>; 36 }; 37 }; 38 39 gpio-leds { 40 compatible = "gpio-leds"; 41 42 power { 43 label = "green:power"; 44 gpios = <&gpio 6 GPIO_ACTIVE_LOW>; 45 linux,default-trigger = "default-on"; 46 }; 47 48 system { 49 label = "green:system"; 50 gpios = <&gpio 8 GPIO_ACTIVE_LOW>; 51 linux,default-trigger = "disk-activity"; 52 }; 53 }; 54}; 55 56&sdhci { 57 status = "okay"; 58}; 59 60&spi0 { 61 status = "okay"; 62 63 m25p80@0 { 64 #address-cells = <1>; 65 #size-cells = <1>; 66 compatible = "jedec,spi-nor"; 67 reg = <0>; 68 spi-max-frequency = <50000000>; 69 broken-flash-reset; 70 71 partition@0 { 72 label = "u-boot"; 73 reg = <0x0 0x30000>; 74 read-only; 75 }; 76 77 partition@30000 { 78 label = "u-boot-env"; 79 reg = <0x30000 0x10000>; 80 read-only; 81 }; 82 83 factory: partition@40000 { 84 label = "factory"; 85 reg = <0x40000 0x10000>; 86 read-only; 87 }; 88 89 partition@50000 { 90 label = "firmware"; 91 reg = <0x50000 0x1fb0000>; 92 }; 93 }; 94}; 95 96&pcie { 97 status = "okay"; 98}; 99 100&pinctrl { 101 pinctrl-names = "default"; 102 pinctrl-0 = <&state_default>; 103 104 state_default: state-default { 105 gpio-pinmux { 106 groups = "rgmii2", "uart3", "wdt"; 107 function = "gpio"; 108 }; 109 }; 110}; 111 112ðernet { 113 pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>; 114}; 115 116&switch0 { 117 ports { 118 port@0 { 119 status = "okay"; 120 label = "ethblack"; 121 }; 122 123 port@4 { 124 status = "okay"; 125 label = "ethblue"; 126 }; 127 }; 128}; 129