uboot-mediatek: add build for BPi-R4
[openwrt/staging/dangole.git] / package / boot / uboot-mediatek / patches / 101-08-arm-dts-enable-i2c-support-for-MediaTek-MT7981.patch
1 From e9467f40d4327cfcb80944a0f12ae195b0d7cd40 Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Wed, 19 Jul 2023 17:16:19 +0800
4 Subject: [PATCH 08/29] arm: dts: enable i2c support for MediaTek MT7981
5
6 This patch enables i2c support for MediaTek MT7981
7
8 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
9 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
10 ---
11 arch/arm/dts/mt7981.dtsi | 14 ++++++++++++++
12 1 file changed, 14 insertions(+)
13
14 --- a/arch/arm/dts/mt7981.dtsi
15 +++ b/arch/arm/dts/mt7981.dtsi
16 @@ -181,6 +181,20 @@
17 status = "disabled";
18 };
19
20 + i2c0: i2c@11007000 {
21 + compatible = "mediatek,mt7981-i2c";
22 + reg = <0x11007000 0x1000>,
23 + <0x10217080 0x80>;
24 + interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
25 + clock-div = <1>;
26 + clocks = <&infracfg_ao CK_INFRA_I2CO_CK>,
27 + <&infracfg_ao CK_INFRA_AP_DMA_CK>;
28 + clock-names = "main", "dma";
29 + #address-cells = <1>;
30 + #size-cells = <0>;
31 + status = "disabled";
32 + };
33 +
34 uart0: serial@11002000 {
35 compatible = "mediatek,hsuart";
36 reg = <0x11002000 0x400>;