Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: ipmi: Convert nuvoton,npcm750-kcs-bmc to DT schema

Convert the nuvoton,npcm750-kcs-bmc binding to DT schema format. It's a
straight-forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Message-ID: <20251014152935.3782463-1-robh@kernel.org>
Signed-off-by: Corey Minyard <corey@minyard.net>

authored by

Rob Herring (Arm) and committed by
Corey Minyard
1986798a 1c35d802

+55 -40
-40
Documentation/devicetree/bindings/ipmi/npcm7xx-kcs-bmc.txt
··· 1 - * Nuvoton NPCM KCS (Keyboard Controller Style) IPMI interface 2 - 3 - The Nuvoton SOCs (NPCM) are commonly used as BMCs 4 - (Baseboard Management Controllers) and the KCS interface can be 5 - used to perform in-band IPMI communication with their host. 6 - 7 - Required properties: 8 - - compatible : should be one of 9 - "nuvoton,npcm750-kcs-bmc" 10 - "nuvoton,npcm845-kcs-bmc", "nuvoton,npcm750-kcs-bmc" 11 - - interrupts : interrupt generated by the controller 12 - - kcs_chan : The KCS channel number in the controller 13 - 14 - Example: 15 - 16 - lpc_kcs: lpc_kcs@f0007000 { 17 - compatible = "nuvoton,npcm750-lpc-kcs", "simple-mfd", "syscon"; 18 - reg = <0xf0007000 0x40>; 19 - reg-io-width = <1>; 20 - 21 - #address-cells = <1>; 22 - #size-cells = <1>; 23 - ranges = <0x0 0xf0007000 0x40>; 24 - 25 - kcs1: kcs1@0 { 26 - compatible = "nuvoton,npcm750-kcs-bmc"; 27 - reg = <0x0 0x40>; 28 - interrupts = <0 9 4>; 29 - kcs_chan = <1>; 30 - status = "disabled"; 31 - }; 32 - 33 - kcs2: kcs2@0 { 34 - compatible = "nuvoton,npcm750-kcs-bmc"; 35 - reg = <0x0 0x40>; 36 - interrupts = <0 9 4>; 37 - kcs_chan = <2>; 38 - status = "disabled"; 39 - }; 40 - };
+55
Documentation/devicetree/bindings/ipmi/nuvoton,npcm750-kcs-bmc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/ipmi/nuvoton,npcm750-kcs-bmc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Nuvoton NPCM KCS BMC 8 + 9 + maintainers: 10 + - Avi Fishman <avifishman70@gmail.com> 11 + - Tomer Maimon <tmaimon77@gmail.com> 12 + - Tali Perry <tali.perry1@gmail.com> 13 + 14 + description: 15 + The Nuvoton SOCs (NPCM) are commonly used as BMCs (Baseboard Management 16 + Controllers) and the KCS interface can be used to perform in-band IPMI 17 + communication with their host. 18 + 19 + properties: 20 + compatible: 21 + oneOf: 22 + - const: nuvoton,npcm750-kcs-bmc 23 + - items: 24 + - enum: 25 + - nuvoton,npcm845-kcs-bmc 26 + - const: nuvoton,npcm750-kcs-bmc 27 + 28 + reg: 29 + maxItems: 1 30 + 31 + interrupts: 32 + maxItems: 1 33 + 34 + kcs_chan: 35 + description: The KCS channel number in the controller 36 + $ref: /schemas/types.yaml#/definitions/uint32 37 + minimum: 1 38 + maximum: 3 39 + 40 + required: 41 + - compatible 42 + - reg 43 + - interrupts 44 + - kcs_chan 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + kcs@0 { 51 + compatible = "nuvoton,npcm750-kcs-bmc"; 52 + reg = <0x0 0x40>; 53 + interrupts = <9 4>; 54 + kcs_chan = <1>; 55 + };