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

dt-bindings: interrupt-controller: Convert qca,ar7100-cpu-intc to DT schema

Convert the Qualcomm Atheros ath79 CPU interrupt controller binding to
schema format.

Link: https://lore.kernel.org/r/20250505144817.1291980-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+61 -44
+61
Documentation/devicetree/bindings/interrupt-controller/qca,ar7100-cpu-intc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/interrupt-controller/qca,ar7100-cpu-intc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Atheros ath79 CPU interrupt controller 8 + 9 + maintainers: 10 + - Alban Bedel <albeu@free.fr> 11 + 12 + description: 13 + On most SoC the IRQ controller need to flush the DDR FIFO before running the 14 + interrupt handler of some devices. This is configured using the 15 + qca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties. 16 + 17 + properties: 18 + compatible: 19 + oneOf: 20 + - items: 21 + - const: qca,ar9132-cpu-intc 22 + - const: qca,ar7100-cpu-intc 23 + - items: 24 + - const: qca,ar7100-cpu-intc 25 + 26 + interrupt-controller: true 27 + 28 + '#interrupt-cells': 29 + const: 1 30 + 31 + qca,ddr-wb-channel-interrupts: 32 + description: List of interrupts needing a write buffer flush 33 + $ref: /schemas/types.yaml#/definitions/uint32-array 34 + 35 + qca,ddr-wb-channels: 36 + description: List of write buffer channel phandles for each interrupt 37 + $ref: /schemas/types.yaml#/definitions/phandle-array 38 + 39 + required: 40 + - compatible 41 + - interrupt-controller 42 + - '#interrupt-cells' 43 + 44 + additionalProperties: false 45 + 46 + examples: 47 + - | 48 + interrupt-controller { 49 + compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc"; 50 + 51 + interrupt-controller; 52 + #interrupt-cells = <1>; 53 + 54 + qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 55 + qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>, 56 + <&ddr_ctrl 0>, <&ddr_ctrl 1>; 57 + }; 58 + 59 + ddr_ctrl: memory-controller { 60 + #qca,ddr-wb-channel-cells = <1>; 61 + };
-44
Documentation/devicetree/bindings/interrupt-controller/qca,ath79-cpu-intc.txt
··· 1 - Binding for Qualcomm Atheros AR7xxx/AR9XXX CPU interrupt controller 2 - 3 - On most SoC the IRQ controller need to flush the DDR FIFO before running 4 - the interrupt handler of some devices. This is configured using the 5 - qca,ddr-wb-channels and qca,ddr-wb-channel-interrupts properties. 6 - 7 - Required Properties: 8 - 9 - - compatible: has to be "qca,<soctype>-cpu-intc", "qca,ar7100-cpu-intc" 10 - as fallback 11 - - interrupt-controller : Identifies the node as an interrupt controller 12 - - #interrupt-cells : Specifies the number of cells needed to encode interrupt 13 - source, should be 1 for intc 14 - 15 - Please refer to interrupts.txt in this directory for details of the common 16 - Interrupt Controllers bindings used by client devices. 17 - 18 - Optional Properties: 19 - 20 - - qca,ddr-wb-channel-interrupts: List of the interrupts needing a write 21 - buffer flush 22 - - qca,ddr-wb-channels: List of phandles to the write buffer channels for 23 - each interrupt. If qca,ddr-wb-channel-interrupts is not present the interrupt 24 - default to the entry's index. 25 - 26 - Example: 27 - 28 - interrupt-controller { 29 - compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc"; 30 - 31 - interrupt-controller; 32 - #interrupt-cells = <1>; 33 - 34 - qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>; 35 - qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>, 36 - <&ddr_ctrl 0>, <&ddr_ctrl 1>; 37 - }; 38 - 39 - ... 40 - 41 - ddr_ctrl: memory-controller@18000000 { 42 - ... 43 - #qca,ddr-wb-channel-cells = <1>; 44 - };