Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edac: Add Phytium edac controller support #145

Merged
merged 2 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions Documentation/devicetree/bindings/edac/phytium,pe220x-edac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/edac/phytium,pe220x-edac.yaml
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Phytium Pe220x SoC EDAC node
maintainers:
- Zhu Honglei <[email protected]>

description: |
EDAC node is defined to describe on-chip error detection and correction.

properties:
compatible:
const: phytium,pe220x-edac

reg:
maxItems: 3

interrupts:
minItems: 2
items:
- description: Interrupt-specifier for RAS error IRQ(s).

required:
- compatible: Shall be "phytium,pe220x-edac".
- reg: Shall be the Pe220x RAS resource.
- interrupts: Interrupt-specifier for RAS error IRQ(s).

examples:
- |
edac: edac@32b28000 {
compatible = "phytium,pe220x-edac";
reg = <0x0 0x32b28000 0x0 0x1000>,
<0x0 0x31400000 0x0 0x1000>,
<0x0 0x31401000 0x0 0x1000>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>,
};
7 changes: 7 additions & 0 deletions drivers/edac/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,13 @@ config EDAC_TI
help
Support for error detection and correction on the TI SoCs.

config EDAC_PHYTIUM
tristate "Phytium Pe220x SoC"
depends on (ARM64)
help
Support for error detection and correction on the
Phytium Pe220x family of SOCs.

config EDAC_QCOM
tristate "QCOM EDAC Controller"
depends on ARCH_QCOM && QCOM_LLCC
Expand Down
1 change: 1 addition & 0 deletions drivers/edac/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ obj-$(CONFIG_EDAC_ARMADA_XP) += armada_xp_edac.o
obj-$(CONFIG_EDAC_SYNOPSYS) += synopsys_edac.o
obj-$(CONFIG_EDAC_XGENE) += xgene_edac.o
obj-$(CONFIG_EDAC_TI) += ti_edac.o
obj-$(CONFIG_EDAC_PHYTIUM) += phytium_edac.o
obj-$(CONFIG_EDAC_QCOM) += qcom_edac.o
obj-$(CONFIG_EDAC_ASPEED) += aspeed_edac.o
obj-$(CONFIG_EDAC_BLUEFIELD) += bluefield_edac.o
Expand Down
Loading