diff options
author | Daniel Golle <daniel@makrotopia.org> | 2022-02-10 13:48:10 +0000 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2022-02-10 15:49:18 +0000 |
commit | 7323ef2ffab9f25aa92ea786870150baa9db7004 (patch) | |
tree | be6eb00e8d1da17b531021cc931188e10af04f90 /target/linux/mediatek | |
parent | f9cfe7af1f1f16082eb1fdda89f0331948517f22 (diff) | |
download | upstream-7323ef2ffab9f25aa92ea786870150baa9db7004.tar.gz upstream-7323ef2ffab9f25aa92ea786870150baa9db7004.tar.bz2 upstream-7323ef2ffab9f25aa92ea786870150baa9db7004.zip |
mt7622: bpi-r64: enable using mt7531 switch irq
Now that we support link-state-change interrupts, wire up MT7531 IRQ
line which is connected to GPIO#53 according to the schematics [1].
As a result, PHY state no longer needs to be polled on that board.
[1]: https://forum.banana-pi.org/t/bpi-r64-mt7622-schematic-diagram-public/10118
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek')
-rw-r--r-- | target/linux/mediatek/patches-5.10/180-dts-mt7622-bpi-r64-add-mt7531-irq.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.10/180-dts-mt7622-bpi-r64-add-mt7531-irq.patch b/target/linux/mediatek/patches-5.10/180-dts-mt7622-bpi-r64-add-mt7531-irq.patch new file mode 100644 index 0000000000..80ceb490d4 --- /dev/null +++ b/target/linux/mediatek/patches-5.10/180-dts-mt7622-bpi-r64-add-mt7531-irq.patch @@ -0,0 +1,13 @@ +--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts ++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +@@ -160,6 +160,10 @@ + switch@0 { + compatible = "mediatek,mt7531"; + reg = <0>; ++ interrupt-controller; ++ #interrupt-cells = <1>; ++ interrupt-parent = <&pio>; ++ interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; + reset-gpios = <&pio 54 0>; + + ports { |