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

dt-bindings: arm: arm,juno-fpga-apb-regs: document FPGA syscon

Add dedicated bindings for the FPGA syscon registers on ARM Juno board,
to fully document the block and also fix dtbs_check warning:

juno.dtb: apbregs@10000: compatible: ['syscon', 'simple-mfd'] is too short

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://lore.kernel.org/r/20240518203903.119608-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>

authored by

Krzysztof Kozlowski and committed by
Sudeep Holla
8373767b 1613e604

+61
+61
Documentation/devicetree/bindings/arm/arm,juno-fpga-apb-regs.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/arm/arm,juno-fpga-apb-regs.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ARM Juno FPGA APB Registers 8 + 9 + maintainers: 10 + - Sudeep Holla <sudeep.holla@arm.com> 11 + 12 + properties: 13 + compatible: 14 + items: 15 + - const: arm,juno-fpga-apb-regs 16 + - const: syscon 17 + - const: simple-mfd 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + ranges: true 23 + 24 + "#address-cells": 25 + const: 1 26 + 27 + "#size-cells": 28 + const: 1 29 + 30 + patternProperties: 31 + "^led@[0-9a-f]+,[0-9a-f]$": 32 + $ref: /schemas/leds/register-bit-led.yaml# 33 + 34 + required: 35 + - compatible 36 + - reg 37 + - ranges 38 + - "#address-cells" 39 + - "#size-cells" 40 + 41 + additionalProperties: false 42 + 43 + examples: 44 + - | 45 + syscon@10000 { 46 + compatible = "arm,juno-fpga-apb-regs", "syscon", "simple-mfd"; 47 + reg = <0x010000 0x1000>; 48 + ranges = <0x0 0x10000 0x1000>; 49 + #address-cells = <1>; 50 + #size-cells = <1>; 51 + 52 + led@8,0 { 53 + compatible = "register-bit-led"; 54 + reg = <0x08 0x04>; 55 + offset = <0x08>; 56 + mask = <0x01>; 57 + label = "vexpress:0"; 58 + linux,default-trigger = "heartbeat"; 59 + default-state = "on"; 60 + }; 61 + };