From: Cunhao Lu <1579567540@qq.com> RK3572 GPIO banks have four parent interrupts and a separate debounce clock. Signed-off-by: Cunhao Lu <1579567540@qq.com> --- .../bindings/gpio/rockchip,gpio-bank.yaml | 24 +++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml index 774e9c7de606..8655854ac0a3 100644 --- a/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml +++ b/Documentation/devicetree/bindings/gpio/rockchip,gpio-bank.yaml @@ -14,12 +14,14 @@ properties: enum: - rockchip,gpio-bank - rockchip,rk3188-gpio-bank0 + - rockchip,rk3572-gpio-bank reg: maxItems: 1 interrupts: - maxItems: 1 + minItems: 1 + maxItems: 4 clocks: minItems: 1 @@ -51,6 +53,26 @@ properties: of this bank, on SoCs such as the RV1106 where each GPIO bank has its own IOC block. +allOf: + - if: + properties: + compatible: + const: rockchip,rk3572-gpio-bank + then: + properties: + interrupts: + items: + - description: GPIO group 0 + - description: GPIO group 1 + - description: GPIO group 2 + - description: GPIO group 3 + clocks: + minItems: 2 + else: + properties: + interrupts: + maxItems: 1 + patternProperties: "^.+-hog(-[0-9]+)?$": type: object -- 2.34.1