set_usb_led "$boardname:orange:usb"
set_wifi_led "$boardname:orange:wifi"
;;
-gb-pc1)
+gb-pc1|\
+gnubee,gb-pc2)
ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
;;
-gb-pc2)
- ucidef_set_led_switch "lan" "lan" "$board:green:lan" "switch0" "0x01"
- ucidef_set_led_switch "wan" "wan" "$board:green:wan" "switch0" "0x10"
- ucidef_set_led_netdev "eth1-g" "eth1-g" "$board:green:eth1-g" "eth1"
- ucidef_set_led_netdev "eth1-y" "eth1-y" "$board:green:eth1-y" "eth1"
- ;;
gl-mt300a|\
gl-mt300n|\
gl-mt750)
ucidef_add_switch "switch0" \
"1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
;;
- gb-pc1)
+ gb-pc1|\
+ gnubee,gb-pc2)
ucidef_add_switch "switch0" \
"0:lan" "4:lan" "6@eth0"
;;
- gb-pc2)
- ucidef_add_switch "switch0" \
- "4:lan" "0:wan" "6@eth0"
- ;;
gl-mt300n-v2)
ucidef_add_switch "switch0" \
"1:lan" "0:wan" "6@eth0"
bootargs = "console=ttyS0,57600";
};
- palmbus: palmbus@1E000000 {
- i2c@900 {
- status = "okay";
- };
- };
-
gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
};
- lan {
- label = "gb-pc2:green:lan";
+ lan1 {
+ label = "gb-pc2:green:lan1";
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
};
- wan {
- label = "gb-pc2:green:wan";
+ lan2 {
+ label = "gb-pc2:green:lan2";
gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
};
- eth1-y {
- label = "gb-pc2:yellow:eth1-y";
+ lan3-yellow {
+ label = "gb-pc2:yellow:lan3";
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
};
- eth1-g {
- label = "gb-pc2:green:eth1-g";
+ lan3-green {
+ label = "gb-pc2:green:lan3";
gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
};
&sdhci {
status = "okay";
+
+ pinctrl-names = "default";
+ pinctrl-0 = <&sdhci_pins>;
};
&spi0 {
};
&cpuclock {
- compatible = "fixed-clock";
- clock-frequency = <900000000>;
+ compatible = "fixed-clock";
+ clock-frequency = <900000000>;
};
&pcie {
&pinctrl {
state_default: pinctrl0 {
gpio {
- ralink,group = "uart3";
+ ralink,group = "jtag", "rgmii3", "uart3", "wdt";
ralink,function = "gpio";
};
};
endef
TARGET_DEVICES += gb-pc1
-define Device/gb-pc2
+define Device/gnubee_gb-pc2
DTS := GB-PC2
DEVICE_TITLE := GnuBee Personal Cloud Two
DEVICE_PACKAGES := kmod-ata-core kmod-ata-ahci kmod-usb3 kmod-sdhci-mt7620
IMAGE_SIZE := $(ralink_default_fw_size_32M)
endef
-TARGET_DEVICES += gb-pc2
+TARGET_DEVICES += gnubee_gb-pc2
define Device/hc5962
DTS := HC5962