这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions package/firmware/linux-firmware/aeonsemi.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package/aeonsemi-as21xxx-firmware = $(call Package/firmware-default,Aeonsemi AS21xxx Ethernet PHY firmware,,LICENSE.aeonsemi)
define Package/aeonsemi-as21xxx-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/aeonsemi
$(CP) \
$(PKG_BUILD_DIR)/aeonsemi/as21x1x_fw.bin \
$(1)/lib/firmware
endef

$(eval $(call BuildPackage,aeonsemi-as21xxx-firmware))
11 changes: 11 additions & 0 deletions package/firmware/linux-firmware/airoha.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,14 @@ endif
endef

$(eval $(call BuildPackage,airoha-en8811h-firmware))

Package/airoha-en7581-npu-firmware = $(call Package/firmware-default,Airoha EN7581 NPU firmware,,LICENSE.airoha)
define Package/airoha-en7581-npu-firmware/install
$(INSTALL_DIR) $(1)/lib/firmware/airoha
$(CP) \
$(PKG_BUILD_DIR)/airoha/en7581_npu_data.bin \
$(PKG_BUILD_DIR)/airoha/en7581_npu_rv32.bin \
$(1)/lib/firmware/airoha
endef

$(eval $(call BuildPackage,airoha-en7581-npu-firmware))
17 changes: 17 additions & 0 deletions package/kernel/linux/modules/netdevices.mk
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,23 @@ endef
$(eval $(call KernelPackage,phy-vitesse))


define KernelPackage/phy-aeonsemi-as21xxx
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Aeonsemi AS21xxx 10G Ethernet PHY
DEPENDS:=+aeonsemi-as21xxx-firmware +kmod-libphy
KCONFIG:=CONFIG_AS21XXX_PHY
FILES:= \
$(LINUX_DIR)/drivers/net/phy/as21xxx.ko
AUTOLOAD:=$(call AutoLoad,18,as21xxx)
endef

define KernelPackage/phy-aeonsemi-as21x1x/description
Kernel modules for Aeonsemi AS21x1x 10G Ethernet PHY
endef

$(eval $(call KernelPackage,phy-aeonsemi-as21xxx))


define KernelPackage/phy-airoha-en8811h
SUBMENU:=$(NETWORK_DEVICES_MENU)
TITLE:=Airoha EN8811H 2.5G Ethernet PHY
Expand Down
58 changes: 49 additions & 9 deletions target/linux/airoha/dts/an7581.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -17,29 +17,39 @@
#size-cells = <2>;
ranges;

npu-binary@84000000 {
atf@80000000 {
no-map;
reg = <0x0 0x80000000 0x0 0x200000>;
};

npu_binary: npu-binary@84000000 {
no-map;
reg = <0x0 0x84000000 0x0 0xa00000>;
};

npu-flag@84b0000 {
qdma0_buf: qdma0-buf@87000000 {
no-map;
reg = <0x0 0x87000000 0x0 0x2000000>;
};

qdma1_buf: qdma1-buf@89000000 {
no-map;
reg = <0x0 0x84b00000 0x0 0x100000>;
reg = <0x0 0x89000000 0x0 0x1000000>;
};

npu-pkt@85000000 {
npu_pkt: npu-pkt@8a000000 {
no-map;
reg = <0x0 0x85000000 0x0 0x1a00000>;
reg = <0x0 0x8a000000 0x0 0x2c00000>;
};

npu-phyaddr@86b00000 {
npu_txpkt: npu-txpkt@8cc00000 {
no-map;
reg = <0x0 0x86b00000 0x0 0x100000>;
reg = <0x0 0x8cc00000 0x0 0x4000000>;
};

npu-rxdesc@86d00000 {
npu_txbufid: npu-txbufid@90c00000 {
no-map;
reg = <0x0 0x86d00000 0x0 0x100000>;
reg = <0x0 0x90c00000 0x0 0x6800>;
};
};

Expand Down Expand Up @@ -666,6 +676,31 @@
};
};

npu: npu@1e900000 {
compatible = "airoha,en7581-npu";
reg = <0x0 0x1e900000 0x0 0x313000>;
interrupts = <GIC_SPI 125 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 113 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 120 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 121 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 122 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 123 IRQ_TYPE_LEVEL_HIGH>;
memory-region = <&npu_binary>, <&npu_pkt>, <&npu_txpkt>,
<&npu_txbufid>;
memory-region-names = "binary", "pkt", "tx-pkt",
"tx-bufid";
status = "disabled";
};

eth: ethernet@1fb50000 {
compatible = "airoha,en7581-eth";
reg = <0 0x1fb50000 0 0x2600>,
Expand Down Expand Up @@ -696,6 +731,11 @@
<GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;

memory-region = <&qdma0_buf>, <&qdma1_buf>;
memory-region-names = "qdma0-buf", "qdma1-buf";

airoha,npu = <&npu>;

status = "disabled";

#address-cells = <1>;
Expand Down
Loading