From 138a7e2a75280a2ed30715bbeddee8d47557c531 Mon Sep 17 00:00:00 2001 From: Cheng Yulai Date: Tue, 26 May 2026 16:17:10 +0800 Subject: [PATCH 1/4] dt-bindings: Phytium: Update snoop controller This patch update the DT description for the Phytium snoop controller. Signed-off-by: Li Yuze Signed-off-by: Wang Yinfeng Signed-off-by: Xia Qian --- .../bindings/misc/phytium,snoop-ctrl.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml diff --git a/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml b/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml new file mode 100644 index 0000000000000..db6f165a7dc5e --- /dev/null +++ b/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/misc/phytium,snoop-ctrl.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Phytium BMC Snoop Controller + +maintainers: + - Lan Hengyu + +description: + The snoop controller allows the BMC to listen on and record the data + bytes written by the Host to the target I/O ports. + +properties: + compatible: + items: + - enum: + - phytium,snoop-ctrl + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + snoop-ports: + $ref: /schemas/types.yaml#/definitions/uint32-array + description: Ports to snoop + +required: + - compatible + - interrupts + - snoop-ports + +examples: + - | + snoop: snoop@28010000 { + compatible = "phytium,snoop-ctrl"; + reg = <0x0 0x28010000 0x1000>; + interrupts = ; + + snoop-ports = <0x80>; + }; From a965af9b78e4a10115a09f35f084d424b7191387 Mon Sep 17 00:00:00 2001 From: Cheng Yulai Date: Tue, 26 May 2026 16:28:11 +0800 Subject: [PATCH 2/4] dt-bindings: Phytium: Update snoop controller description This patch update the description for the Phytium snoop controller to ensure its driver is functioning normally. Signed-off-by: Li Yuze Signed-off-by: Wang Yinfeng Signed-off-by: Xia Qian --- .../devicetree/bindings/misc/phytium,snoop-ctrl.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml b/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml index db6f165a7dc5e..05b8353f7e9f6 100644 --- a/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml +++ b/Documentation/devicetree/bindings/misc/phytium,snoop-ctrl.yaml @@ -36,9 +36,8 @@ required: examples: - | snoop: snoop@28010000 { - compatible = "phytium,snoop-ctrl"; - reg = <0x0 0x28010000 0x1000>; + compatible = "phytium,snoop-ctrl", "syscon"; + reg = <0x0 0x28010000 0x0 0x1000>; interrupts = ; - - snoop-ports = <0x80>; + snoop-ports = <0x80 0x81>; }; From 2a78c8df7742b7c576c886fd0081136f1f285018 Mon Sep 17 00:00:00 2001 From: Cheng Yulai Date: Tue, 26 May 2026 16:37:58 +0800 Subject: [PATCH 3/4] dts: phytium: Add snoop node description for pe220x platforms This patch add snoop description for pe220x platforms, which usually used as BMC cards. Signed-off-by: Li Yuze Signed-off-by: Xia Qian --- arch/arm64/boot/dts/phytium/pe220x.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/boot/dts/phytium/pe220x.dtsi b/arch/arm64/boot/dts/phytium/pe220x.dtsi index 732e4ad04084c..23b1cca507a07 100644 --- a/arch/arm64/boot/dts/phytium/pe220x.dtsi +++ b/arch/arm64/boot/dts/phytium/pe220x.dtsi @@ -251,6 +251,13 @@ status = "disabled"; }; + snoop: snoop@28010000 { + compatible = "phytium,snoop-ctrl"; + reg = <0x0 0x28010000 0x1000>; + interrupts = ; + snoop-ports = <0x80>; + }; + lpc: lpc@28010000 { compatible = "simple-mfd", "syscon"; reg = <0x0 0x28010000 0x0 0x1000>; From 6ae0162ac0e8768cfab0a66d12f19dd2226eeef0 Mon Sep 17 00:00:00 2001 From: Cheng Yulai Date: Tue, 26 May 2026 16:41:01 +0800 Subject: [PATCH 4/4] dts: phytium: Update snoop node description for pe220x platforms This patch update the snoop node description for pe220x platforms to ensure its driver is functioning normally. Signed-off-by: Li Yuze Signed-off-by: Wang Yinfeng Signed-off-by: Xia Qian --- arch/arm64/boot/dts/phytium/pe220x.dtsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/phytium/pe220x.dtsi b/arch/arm64/boot/dts/phytium/pe220x.dtsi index 23b1cca507a07..7bed7227c952f 100644 --- a/arch/arm64/boot/dts/phytium/pe220x.dtsi +++ b/arch/arm64/boot/dts/phytium/pe220x.dtsi @@ -252,10 +252,11 @@ }; snoop: snoop@28010000 { - compatible = "phytium,snoop-ctrl"; - reg = <0x0 0x28010000 0x1000>; + compatible = "phytium,snoop-ctrl", "syscon"; + reg = <0x0 0x28010000 0x0 0x1000>; interrupts = ; - snoop-ports = <0x80>; + snoop-ports = <0x80 0x81>; + status = "disabled"; }; lpc: lpc@28010000 {