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

dt-bindings: fsi: p9-occ: Convert to json-schema

Conver to json-schema for the OCC documentation. Also document the fact
that the OCC "bridge" device will often have the hwmon node as a
child.

Signed-off-by: Eddie James <eajames@linux.ibm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240522192524.3286237-5-eajames@linux.ibm.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Eddie James and committed by
Rob Herring (Arm)
408f50d1 29aa58d5

+40 -16
-16
Documentation/devicetree/bindings/fsi/ibm,p9-occ.txt
··· 1 - Device-tree bindings for FSI-attached POWER9/POWER10 On-Chip Controller (OCC) 2 - ----------------------------------------------------------------------------- 3 - 4 - This is the binding for the P9 or P10 On-Chip Controller accessed over FSI from 5 - a service processor. See fsi.txt for details on bindings for FSI slave and CFAM 6 - nodes. The OCC is not an FSI slave device itself, rather it is accessed 7 - through the SBE FIFO. 8 - 9 - Required properties: 10 - - compatible = "ibm,p9-occ" or "ibm,p10-occ" 11 - 12 - Examples: 13 - 14 - occ { 15 - compatible = "ibm,p9-occ"; 16 - };
+40
Documentation/devicetree/bindings/fsi/ibm,p9-occ.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/fsi/ibm,p9-occ.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: IBM FSI-attached On-Chip Controller (OCC) 8 + 9 + maintainers: 10 + - Eddie James <eajames@linux.ibm.com> 11 + 12 + description: 13 + The POWER processor On-Chip Controller (OCC) helps manage power and 14 + thermals for the system, accessed through the FSI-attached SBEFIFO 15 + from a service processor. 16 + 17 + properties: 18 + compatible: 19 + enum: 20 + - ibm,p9-occ 21 + - ibm,p10-occ 22 + 23 + hwmon: 24 + type: object 25 + $ref: /schemas/hwmon/ibm,occ-hwmon.yaml 26 + 27 + required: 28 + - compatible 29 + 30 + additionalProperties: false 31 + 32 + examples: 33 + - | 34 + occ { 35 + compatible = "ibm,p9-occ"; 36 + 37 + hwmon { 38 + compatible = "ibm,p9-occ-hwmon"; 39 + }; 40 + };