kernel: bump 6.1 to 6.1.83
[openwrt/staging/pepe2k.git] / target / linux / mediatek / patches-6.1 / 003-v6.2-arm64-dts-mt7986-add-crypto-related-device-nodes.patch
1 From ffb05357b47f06b2b4d1e14ba89169e28feb727b Mon Sep 17 00:00:00 2001
2 From: Sam Shih <sam.shih@mediatek.com>
3 Date: Sun, 6 Nov 2022 09:50:27 +0100
4 Subject: [PATCH 03/19] arm64: dts: mt7986: add crypto related device nodes
5
6 This patch adds crypto engine support for MT7986.
7
8 Signed-off-by: Vic Wu <vic.wu@mediatek.com>
9 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
10 Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
11 Link: https://lore.kernel.org/r/20221106085034.12582-5-linux@fw-web.de
12 Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
13 ---
14 arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts | 4 ++++
15 arch/arm64/boot/dts/mediatek/mt7986a.dtsi | 15 +++++++++++++++
16 arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts | 4 ++++
17 3 files changed, 23 insertions(+)
18
19 --- a/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
20 +++ b/arch/arm64/boot/dts/mediatek/mt7986a-rfb.dts
21 @@ -25,6 +25,10 @@
22 };
23 };
24
25 +&crypto {
26 + status = "okay";
27 +};
28 +
29 &eth {
30 status = "okay";
31
32 --- a/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
33 +++ b/arch/arm64/boot/dts/mediatek/mt7986a.dtsi
34 @@ -224,6 +224,21 @@
35 status = "disabled";
36 };
37
38 + crypto: crypto@10320000 {
39 + compatible = "inside-secure,safexcel-eip97";
40 + reg = <0 0x10320000 0 0x40000>;
41 + interrupts = <GIC_SPI 116 IRQ_TYPE_LEVEL_HIGH>,
42 + <GIC_SPI 117 IRQ_TYPE_LEVEL_HIGH>,
43 + <GIC_SPI 118 IRQ_TYPE_LEVEL_HIGH>,
44 + <GIC_SPI 119 IRQ_TYPE_LEVEL_HIGH>;
45 + interrupt-names = "ring0", "ring1", "ring2", "ring3";
46 + clocks = <&infracfg CLK_INFRA_EIP97_CK>;
47 + clock-names = "infra_eip97_ck";
48 + assigned-clocks = <&topckgen CLK_TOP_EIP_B_SEL>;
49 + assigned-clock-parents = <&apmixedsys CLK_APMIXED_NET2PLL>;
50 + status = "disabled";
51 + };
52 +
53 uart0: serial@11002000 {
54 compatible = "mediatek,mt7986-uart",
55 "mediatek,mt6577-uart";
56 --- a/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
57 +++ b/arch/arm64/boot/dts/mediatek/mt7986b-rfb.dts
58 @@ -25,6 +25,10 @@
59 };
60 };
61
62 +&crypto {
63 + status = "okay";
64 +};
65 +
66 &eth {
67 status = "okay";
68