Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/target/linux/ramips/dts/mt7620a_zyxel_nbg6515-ac750.dts b/target/linux/ramips/dts/mt7620a_zyxel_nbg6515-ac750.dts
- new file mode 100644
- index 0000000000..a5473cb094
- --- /dev/null
- +++ b/target/linux/ramips/dts/mt7620a_zyxel_nbg6515-ac750.dts
- @@ -0,0 +1,222 @@
- +#include "mt7620a.dtsi"
- +
- +#include <dt-bindings/input/input.h>
- +#include <dt-bindings/gpio/gpio.h>
- +
- +/*
- + led gpios:
- +
- + phy0 > 5 GHz
- + phy1 > 2.4 Ghz
- +
- + 7 -> power
- + 9 -> reset
- + 10 -> usb
- + 12 -> phy1
- + 13 -> phy0
- + 14 -> wps
- +
- + are the ethernet leds configurable? ethernet switch ports?
- +
- + ethernet switches:
- +
- + mt7620a -> switch0:
- +
- + port0: <not used>
- + port1: <not used>
- + port2: <not used>
- + port3: <not used>
- + port4: <not used>
- + port5: mt7350
- + port6: cpu
- + port7: <not used>
- +
- + mt7350 -> switch1:
- +
- + port0 -> lan4
- + port1 -> lan3
- + port2 -> lan2
- + port3 -> lan1
- + port4 -> wan
- + port5 -> <not used>
- + port6 -> mt7620a
- + port7 -> <not used>
- +*/
- +
- +/ {
- + compatible = "zyxel,nbg6515-ac750", "ralink,mt7620a-soc";
- + model = "Zyxel NBG6515";
- +
- + aliases {
- + led-boot = &led_power;
- + led-failsafe = &led_power;
- + led-running = &led_power;
- + led-upgrade = &led_power;
- + };
- +
- + leds {
- + compatible = "gpio-leds";
- +
- + led_power: power {
- + label = "green:power";
- + gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
- + default-state = "on";
- + };
- +
- + usb {
- + label = "green:usb";
- + gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
- + linux,default-trigger = "usbport";
- + };
- +
- + wlan5g {
- + label = "green:wlan5g";
- + gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
- + linux,default-trigger = "phy0tpt";
- + };
- +
- + wlan2g {
- + label = "green:wlan2g";
- + gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
- + linux,default-trigger = "phy1tpt";
- + };
- +
- + wps {
- + label = "green:wps";
- + gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
- + };
- + };
- +};
- +
- +&spi0 {
- + status = "okay";
- +
- + flash@0 {
- + compatible = "jedec,spi-nor";
- + reg = <0>;
- + spi-max-frequency = <10000000>;
- +
- + partitions {
- + compatible = "fixed-partitions";
- + #address-cells = <1>;
- + #size-cells = <1>;
- +
- + partition@0 {
- + label = "u-boot";
- + reg = <0x0 0x30000>;
- + read-only;
- + };
- +
- + partition@30000 {
- + label = "u-boot-env";
- + reg = <0x30000 0x10000>;
- + read-only;
- + };
- +
- + factory: partition@40000 {
- + label = "factory";
- + reg = <0x40000 0x10000>;
- + read-only;
- + };
- +
- + partition@50000 {
- + compatible = "denx,uimage";
- + label = "firmware";
- + reg = <0x50000 0x7b0000>;
- + };
- + };
- + };
- +};
- +
- +
- +&state_default {
- + gpio {
- + groups = "i2c", "uartf";
- + function = "gpio";
- + };
- +};
- +
- +ðernet {
- + pinctrl-names = "default";
- + pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
- +
- + mtd-mac-address = <&factory 0x48004>;
- + mtd-mac-address-increment = <1>;
- +
- + mediatek,portmap = "llllw";
- +
- + port@5 {
- + status = "okay";
- + mediatek,fixed-link = <1000 1 1 1>;
- + phy-mode = "rgmii";
- + };
- +
- + mdio-bus {
- + status = "okay";
- +
- + phy0: ethernet-phy@0 {
- + reg = <0>;
- + phy-mode = "rgmii";
- + };
- +
- + phy1: ethernet-phy@1 {
- + reg = <1>;
- + phy-mode = "rgmii";
- + };
- +
- + phy2: ethernet-phy@2 {
- + reg = <2>;
- + phy-mode = "rgmii";
- + };
- +
- + phy3: ethernet-phy@3 {
- + reg = <3>;
- + phy-mode = "rgmii";
- + };
- +
- + phy4: ethernet-phy@4 {
- + reg = <4>;
- + phy-mode = "rgmii";
- + };
- +
- + phy1f: ethernet-phy@1f {
- + reg = <0x1f>;
- + phy-mode = "rgmii";
- + };
- + };
- +};
- +
- +&gsw {
- + mediatek,port4 = "gmac";
- +};
- +
- +&pcie {
- + status = "okay";
- +};
- +
- +&ehci {
- + status = "okay";
- +};
- +
- +&ohci {
- + status = "okay";
- +};
- +
- +&pcie0 {
- + wifi@0,0 {
- + reg = <0x0000 0 0 0 0>;
- + mediatek,mtd-eeprom = <&factory 0x8000>;
- + ieee80211-freq-limit = <5000000 6000000>;
- + };
- +};
- +
- +&gpio1 {
- + status = "okay";
- +};
- +
- +&gpio2 {
- + status = "okay";
- +};
- +
- +&gpio3 {
- + status = "okay";
- diff --git a/target/linux/ramips/image/mt7620.mk b/target/linux/ramips/image/mt7620.mk
- index fe41512f36..7deb47f322 100644
- --- a/target/linux/ramips/image/mt7620.mk
- +++ b/target/linux/ramips/image/mt7620.mk
- @@ -895,6 +895,16 @@ define Device/planex_mzk-ex750np
- endef
- TARGET_DEVICES += planex_mzk-ex750np
- +define Device/zyxel_nbg6515-ac750
- + SOC := mt7620a
- + IMAGE_SIZE := 7872k
- + DEVICE_VENDOR := Zyxel
- + DEVICE_MODEL := NBG6515
- + DEVICE_PACKAGES := kmod-mt76x0e
- + SUPPORTED_DEVICES += nbg6515
- +endef
- +TARGET_DEVICES += zyxel_nbg6515-ac750
- +
- define Device/ralink_mt7620a-evb
- SOC := mt7620a
- IMAGE_SIZE := 7872k
Advertisement
Comments
-
- Hello! Does You have 5 GHz ROM for Openwrt 22.03 ? Or its patch compatible with Openwrt 22.03 ? Thank You!
Add Comment
Please, Sign In to add comment
Advertisement