forked from coolsnowwolf/lede
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: mediatek: use cpufreq fix suggested by MediaTek mediatek: add basic mt7988 device tree support mediatek: add mt7988 pinctrl driver support mediatek: add mt7988 clock drivers support kmod-media-core: update kconfig (coolsnowwolf#11735) github: update issue and pr template kernel: bump 5.15 to 5.15.145 (coolsnowwolf#11733)
- Loading branch information
Showing
27 changed files
with
4,395 additions
and
53 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 问题描述 | ||
description: 反馈问题模板 | ||
body: | ||
- type: textarea | ||
id: description | ||
attributes: | ||
label: 详细叙述 | ||
description: 详细叙述问题 | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: duplicate_issue | ||
attributes: | ||
label: 重复 issue | ||
description: 是否搜索了 issues | ||
options: | ||
- label: 没有类似的 issue | ||
required: true | ||
- type: input | ||
id: model_name | ||
attributes: | ||
label: 具体型号 | ||
description: 硬件型号 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: details_log | ||
attributes: | ||
label: 详细日志 | ||
description: make V=s -j1 时的问题日志 | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: discussion | ||
url: https://github.com/coolsnowwolf/lede/discussions | ||
about: Please ask and answer questions here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
Q:你知道这是`pull request`吗?(使用 "x" 选择) | ||
* [ ] 我知道 | ||
# Pull Request 规则,创建时请删除 | ||
|
||
- 禁止有关 "GitHub Actions" 的提交 | ||
- 禁止使用 users.noreply.github.com 提交 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
LINUX_VERSION-5.15 = .144 | ||
LINUX_KERNEL_HASH-5.15.144 = f053afafafce771acbf478afdd16e9aa85b0a0e328205c4f53276062300a5b3b | ||
LINUX_VERSION-5.15 = .145 | ||
LINUX_KERNEL_HASH-5.15.145 = b2a49d87605f3a9491581150315e22337c1afb599efc1e2737481be3a2d6d620 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
200 changes: 200 additions & 0 deletions
200
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7988a-dsa-10g-spim-nand.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <[email protected]> | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "mt7988a-rfb-spim-nand.dtsi" | ||
#include <dt-bindings/pinctrl/mt65xx.h> | ||
|
||
/ { | ||
model = "MediaTek MT7988A DSA 10G SPIM-NAND RFB"; | ||
compatible = "mediatek,mt7988a-dsa-10g-spim-snand", | ||
"mediatek,mt7988a-rfb-snand", | ||
"mediatek,mt7988"; | ||
|
||
chosen { | ||
bootargs = "console=ttyS0,115200n1 loglevel=8 \ | ||
earlycon=uart8250,mmio32,0x11000000 \ | ||
pci=pcie_bus_perf"; | ||
}; | ||
|
||
memory { | ||
reg = <0 0x40000000 0 0x40000000>; | ||
}; | ||
}; | ||
|
||
ð { | ||
pinctrl-0 = <&mdio0_pins>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
|
||
gmac0: mac@0 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <0>; | ||
phy-mode = "internal"; | ||
|
||
fixed-link { | ||
speed = <10000>; | ||
full-duplex; | ||
pause; | ||
}; | ||
}; | ||
|
||
gmac1: mac@1 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <1>; | ||
phy-mode = "internal"; | ||
phy-connection-type = "internal"; | ||
phy = <&phy15>; | ||
}; | ||
|
||
gmac2: mac@2 { | ||
compatible = "mediatek,eth-mac"; | ||
reg = <2>; | ||
phy-mode = "10gbase-kr"; | ||
phy-connection-type = "10gbase-kr"; | ||
phy = <&phy8>; | ||
}; | ||
|
||
mdio0: mdio-bus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
/* external Aquantia AQR113C */ | ||
phy0: ethernet-phy@0 { | ||
reg = <0>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reset-gpios = <&pio 72 1>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <221000>; | ||
}; | ||
|
||
/* external Aquantia AQR113C */ | ||
phy8: ethernet-phy@8 { | ||
reg = <8>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
reset-gpios = <&pio 71 1>; | ||
reset-assert-us = <100000>; | ||
reset-deassert-us = <221000>; | ||
}; | ||
|
||
/* external Maxlinear GPY211C */ | ||
phy5: ethernet-phy@5 { | ||
reg = <5>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
phy-mode = "2500base-x"; | ||
}; | ||
|
||
/* external Maxlinear GPY211C */ | ||
phy13: ethernet-phy@13 { | ||
reg = <13>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
phy-mode = "2500base-x"; | ||
}; | ||
|
||
/* internal 2.5G PHY */ | ||
phy15: ethernet-phy@15 { | ||
reg = <15>; | ||
pinctrl-names = "i2p5gbe-led"; | ||
pinctrl-0 = <&i2p5gbe_led0_pins>; | ||
compatible = "ethernet-phy-ieee802.3-c45"; | ||
phy-mode = "internal"; | ||
}; | ||
}; | ||
}; | ||
|
||
&switch { | ||
status = "okay"; | ||
|
||
ports { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
port@0 { | ||
reg = <0>; | ||
label = "lan0"; | ||
phy-mode = "internal"; | ||
phy-handle = <&gsw_phy0>; | ||
}; | ||
|
||
port@1 { | ||
reg = <1>; | ||
label = "lan1"; | ||
phy-mode = "internal"; | ||
phy-handle = <&gsw_phy1>; | ||
}; | ||
|
||
port@2 { | ||
reg = <2>; | ||
label = "lan2"; | ||
phy-mode = "internal"; | ||
phy-handle = <&gsw_phy2>; | ||
}; | ||
|
||
port@3 { | ||
reg = <3>; | ||
label = "lan3"; | ||
phy-mode = "internal"; | ||
phy-handle = <&gsw_phy3>; | ||
}; | ||
|
||
port@6 { | ||
reg = <6>; | ||
ethernet = <&gmac0>; | ||
phy-mode = "internal"; | ||
|
||
fixed-link { | ||
speed = <10000>; | ||
full-duplex; | ||
pause; | ||
}; | ||
}; | ||
}; | ||
|
||
mdio { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
gsw_phy0: ethernet-phy@0 { | ||
compatible = "ethernet-phy-id03a2.9481"; | ||
reg = <0>; | ||
phy-mode = "internal"; | ||
pinctrl-names = "gbe-led"; | ||
pinctrl-0 = <&gbe0_led0_pins>; | ||
nvmem-cells = <&phy_calibration_p0>; | ||
nvmem-cell-names = "phy-cal-data"; | ||
}; | ||
|
||
gsw_phy1: ethernet-phy@1 { | ||
compatible = "ethernet-phy-id03a2.9481"; | ||
reg = <1>; | ||
phy-mode = "internal"; | ||
pinctrl-names = "gbe-led"; | ||
pinctrl-0 = <&gbe1_led0_pins>; | ||
nvmem-cells = <&phy_calibration_p1>; | ||
nvmem-cell-names = "phy-cal-data"; | ||
}; | ||
|
||
gsw_phy2: ethernet-phy@2 { | ||
compatible = "ethernet-phy-id03a2.9481"; | ||
reg = <2>; | ||
phy-mode = "internal"; | ||
pinctrl-names = "gbe-led"; | ||
pinctrl-0 = <&gbe2_led0_pins>; | ||
nvmem-cells = <&phy_calibration_p2>; | ||
nvmem-cell-names = "phy-cal-data"; | ||
}; | ||
|
||
gsw_phy3: ethernet-phy@3 { | ||
compatible = "ethernet-phy-id03a2.9481"; | ||
reg = <3>; | ||
phy-mode = "internal"; | ||
pinctrl-names = "gbe-led"; | ||
pinctrl-0 = <&gbe3_led0_pins>; | ||
nvmem-cells = <&phy_calibration_p3>; | ||
nvmem-cell-names = "phy-cal-data"; | ||
}; | ||
}; | ||
}; |
70 changes: 70 additions & 0 deletions
70
target/linux/mediatek/files-5.15/arch/arm64/boot/dts/mediatek/mt7988a-rfb-spim-nand.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// SPDX-License-Identifier: (GPL-2.0 OR MIT) | ||
/* | ||
* Copyright (C) 2022 MediaTek Inc. | ||
* Author: Sam.Shih <[email protected]> | ||
*/ | ||
|
||
/dts-v1/; | ||
#include "mt7988a-rfb.dtsi" | ||
|
||
&pio { | ||
spi0_flash_pins: spi0-pins { | ||
mux { | ||
function = "spi"; | ||
groups = "spi0", "spi0_wp_hold"; | ||
}; | ||
}; | ||
}; | ||
|
||
&spi0 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&spi0_flash_pins>; | ||
status = "okay"; | ||
|
||
spi_nand: spi_nand@0 { | ||
compatible = "spi-nand"; | ||
reg = <0>; | ||
spi-max-frequency = <52000000>; | ||
spi-tx-buswidth = <4>; | ||
spi-rx-buswidth = <4>; | ||
}; | ||
|
||
}; | ||
|
||
&spi_nand { | ||
mediatek,nmbm; | ||
mediatek,bmt-max-ratio = <1>; | ||
mediatek,bmt-max-reserved-blocks = <64>; | ||
|
||
partitions { | ||
compatible = "fixed-partitions"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
partition@0 { | ||
label = "BL2"; | ||
reg = <0x00000 0x0100000>; | ||
read-only; | ||
}; | ||
|
||
partition@100000 { | ||
label = "u-boot-env"; | ||
reg = <0x0100000 0x0080000>; | ||
}; | ||
|
||
factory: partition@180000 { | ||
label = "Factory"; | ||
reg = <0x180000 0x0400000>; | ||
}; | ||
|
||
partition@580000 { | ||
label = "FIP"; | ||
reg = <0x580000 0x0200000>; | ||
}; | ||
|
||
partition@780000 { | ||
label = "ubi"; | ||
reg = <0x780000 0x7080000>; | ||
}; | ||
}; | ||
}; |
Oops, something went wrong.