Linux Audio

Check our new training course

Loading...
Note: File does not exist in v5.4.
  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 = "GnuBee 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	gpio-keys {
 24		compatible = "gpio-keys";
 25
 26		key-reset {
 27			label = "reset";
 28			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
 29			linux,code = <KEY_RESTART>;
 30		};
 31	};
 32
 33	gpio-leds {
 34		compatible = "gpio-leds";
 35
 36		led-power {
 37			label = "green:power";
 38			gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
 39			linux,default-trigger = "default-on";
 40		};
 41
 42		led-system {
 43			label = "green:system";
 44			gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
 45			linux,default-trigger = "disk-activity";
 46		};
 47	};
 48};
 49
 50&mmc {
 51	status = "okay";
 52};
 53
 54&spi0 {
 55	status = "okay";
 56
 57	flash@0 {
 58		#address-cells = <1>;
 59		#size-cells = <1>;
 60		compatible = "jedec,spi-nor";
 61		reg = <0>;
 62		spi-max-frequency = <50000000>;
 63		broken-flash-reset;
 64
 65		partition@0 {
 66			label = "u-boot";
 67			reg = <0x0 0x30000>;
 68			read-only;
 69		};
 70
 71		partition@30000 {
 72			label = "u-boot-env";
 73			reg = <0x30000 0x10000>;
 74			read-only;
 75		};
 76
 77		factory: partition@40000 {
 78			label = "factory";
 79			reg = <0x40000 0x10000>;
 80			read-only;
 81		};
 82
 83		partition@50000 {
 84			label = "firmware";
 85			reg = <0x50000 0x1fb0000>;
 86		};
 87	};
 88};
 89
 90&pcie {
 91	status = "okay";
 92};
 93
 94&switch0 {
 95	ports {
 96		port@0 {
 97			status = "okay";
 98			label = "ethblack";
 99		};
100
101		port@4 {
102			status = "okay";
103			label = "ethblue";
104		};
105	};
106};