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

dt-bindings: interrupt-controller: Convert aspeed,ast2400-i2c-ic to DT schema

Convert the Aspeed I2C interrupt controller binding to schema format.

Drop the "#address-cells" and "#size-cells" as they are unused and
incorrect anyways.

Reviewed-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Link: https://lore.kernel.org/r/20250505144605.1287121-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+47 -26
-25
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.txt
··· 1 - Device tree configuration for the I2C Interrupt Controller on the AST24XX and 2 - AST25XX SoCs. 3 - 4 - Required Properties: 5 - - #address-cells : should be 1 6 - - #size-cells : should be 1 7 - - #interrupt-cells : should be 1 8 - - compatible : should be "aspeed,ast2400-i2c-ic" 9 - or "aspeed,ast2500-i2c-ic" 10 - - reg : address start and range of controller 11 - - interrupts : interrupt number 12 - - interrupt-controller : denotes that the controller receives and fires 13 - new interrupts for child busses 14 - 15 - Example: 16 - 17 - i2c_ic: interrupt-controller@0 { 18 - #address-cells = <1>; 19 - #size-cells = <1>; 20 - #interrupt-cells = <1>; 21 - compatible = "aspeed,ast2400-i2c-ic"; 22 - reg = <0x0 0x40>; 23 - interrupts = <12>; 24 - interrupt-controller; 25 - };
+46
Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.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/aspeed,ast2400-i2c-ic.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Aspeed I2C Interrupt Controller (AST24XX/AST25XX) 8 + 9 + maintainers: 10 + - Ryan Chen <ryan_chen@aspeedtech.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - aspeed,ast2400-i2c-ic 16 + - aspeed,ast2500-i2c-ic 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + maxItems: 1 23 + 24 + interrupt-controller: true 25 + 26 + '#interrupt-cells': 27 + const: 1 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - '#interrupt-cells' 33 + - interrupts 34 + - interrupt-controller 35 + 36 + additionalProperties: false 37 + 38 + examples: 39 + - | 40 + interrupt-controller@0 { 41 + compatible = "aspeed,ast2400-i2c-ic"; 42 + reg = <0x0 0x40>; 43 + #interrupt-cells = <1>; 44 + interrupts = <12>; 45 + interrupt-controller; 46 + };
+1 -1
MAINTAINERS
··· 2328 2328 L: openbmc@lists.ozlabs.org (moderated for non-subscribers) 2329 2329 S: Maintained 2330 2330 F: Documentation/devicetree/bindings/i2c/aspeed,i2c.yaml 2331 - F: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.txt 2331 + F: Documentation/devicetree/bindings/interrupt-controller/aspeed,ast2400-i2c-ic.yaml 2332 2332 F: drivers/i2c/busses/i2c-aspeed.c 2333 2333 F: drivers/irqchip/irq-aspeed-i2c-ic.c 2334 2334