Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 /dts-v1/;
0003 
0004 #include "mt7621.dtsi"
0005 
0006 #include <dt-bindings/gpio/gpio.h>
0007 #include <dt-bindings/input/input.h>
0008 
0009 / {
0010         compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
0011         model = "GB-PC1";
0012 
0013         memory@0 {
0014                 device_type = "memory";
0015                 reg = <0x00000000 0x1c000000>,
0016                       <0x20000000 0x04000000>;
0017         };
0018 
0019         chosen {
0020                 bootargs = "console=ttyS0,57600";
0021         };
0022 
0023         palmbus: palmbus@1e000000 {
0024                 i2c@900 {
0025                         status = "okay";
0026                 };
0027         };
0028 
0029         gpio-keys {
0030                 compatible = "gpio-keys";
0031 
0032                 key-reset {
0033                         label = "reset";
0034                         gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
0035                         linux,code = <KEY_RESTART>;
0036                 };
0037         };
0038 
0039         gpio-leds {
0040                 compatible = "gpio-leds";
0041 
0042                 power {
0043                         label = "green:power";
0044                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
0045                         linux,default-trigger = "default-on";
0046                 };
0047 
0048                 system {
0049                         label = "green:system";
0050                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
0051                         linux,default-trigger = "disk-activity";
0052                 };
0053         };
0054 };
0055 
0056 &sdhci {
0057         status = "okay";
0058 };
0059 
0060 &spi0 {
0061         status = "okay";
0062 
0063         flash@0 {
0064                 #address-cells = <1>;
0065                 #size-cells = <1>;
0066                 compatible = "jedec,spi-nor";
0067                 reg = <0>;
0068                 spi-max-frequency = <50000000>;
0069                 broken-flash-reset;
0070 
0071                 partition@0 {
0072                         label = "u-boot";
0073                         reg = <0x0 0x30000>;
0074                         read-only;
0075                 };
0076 
0077                 partition@30000 {
0078                         label = "u-boot-env";
0079                         reg = <0x30000 0x10000>;
0080                         read-only;
0081                 };
0082 
0083                 factory: partition@40000 {
0084                         label = "factory";
0085                         reg = <0x40000 0x10000>;
0086                         read-only;
0087                 };
0088 
0089                 partition@50000 {
0090                         label = "firmware";
0091                         reg = <0x50000 0x1fb0000>;
0092                 };
0093         };
0094 };
0095 
0096 &pcie {
0097         status = "okay";
0098 };
0099 
0100 &gmac1 {
0101         status = "okay";
0102         phy-handle = <&ethphy4>;
0103 };
0104 
0105 &mdio {
0106         ethphy4: ethernet-phy@4 {
0107                 reg = <4>;
0108         };
0109 };
0110 
0111 &switch0 {
0112         ports {
0113                 port@0 {
0114                         status = "okay";
0115                         label = "ethblack";
0116                 };
0117         };
0118 };