From 3cb02c338c8123e510349f23b20e7f01b518bda6 Mon Sep 17 00:00:00 2001 From: liyuting Date: Fri, 10 May 2024 15:25:07 +0800 Subject: [PATCH] dt-bindings: ipmi: Add bindings for Phytium KCS This patch documents the DT bindings for Phytium KCS interface. Signed-off-by: Li Yuting Signed-off-by: Chen Baozi Signed-off-by: Wang Yinfeng --- .../bindings/ipmi/phytium,kcs-bmc.yaml | 57 +++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Documentation/devicetree/bindings/ipmi/phytium,kcs-bmc.yaml diff --git a/Documentation/devicetree/bindings/ipmi/phytium,kcs-bmc.yaml b/Documentation/devicetree/bindings/ipmi/phytium,kcs-bmc.yaml new file mode 100644 index 0000000000000..335b1886ad80e --- /dev/null +++ b/Documentation/devicetree/bindings/ipmi/phytium,kcs-bmc.yaml @@ -0,0 +1,57 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/ipmi/phytium,kcs-bmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Phytium KCS (Keyboard Controller Style) IPMI interface + +maintainers: + - Chen Baozi + +description: | + The Phytium E-series SOC can be used in BMC which have the KCS interface to + perform in-band IPMI communication with their host. + +properties: + compatible: + const: phytium,kcs-bmc + + interrupts: + maxItems: 1 + + reg: + # maxItems: 3 + items: + - description: IDR register + - description: ODR register + - description: STR register + + kcs_chan: + deprecated: true + $ref: '/schemas/types.yaml#/definitions/uint32' + description: The LPC channel number in the controller + + kcs_addr: + deprecated: true + $ref: '/schemas/types.yaml#/definitions/uint32' + description: The host CPU IO map address + +required: + - compatible + - reg + - interrupts + - kcs_chan + - kcs_addr + +additionalProperties: false + +examples: + - | + kcs0: kcs@24 { + compatible = "phytium,kcs-bmc"; + reg = <0x24 0x1>, <0x30 0x1>, <0x3c 0x1>; + interrupts = ; + kcs_chan = <1>; + kcs_addr = <0xca0>; + };