Commit 06a6a774 authored by Sander Vanheule's avatar Sander Vanheule Committed by Bartosz Golaszewski

dt-bindings: gpio: realtek-otto: Add rtl9300 compatible

Add the "realtek,rlt9300-gpio", "realtek,otto-gpio" compatible for GPIO
nodes on the RTL930x SoC series. This SoC requires an extra register
range, defining the interrupt CPU mapping registers.
Signed-off-by: default avatarSander Vanheule <sander@svanheule.net>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarBartosz Golaszewski <brgl@bgdev.pl>
parent 234c5209
...@@ -28,10 +28,10 @@ properties: ...@@ -28,10 +28,10 @@ properties:
- enum: - enum:
- realtek,rtl8380-gpio - realtek,rtl8380-gpio
- realtek,rtl8390-gpio - realtek,rtl8390-gpio
- realtek,rtl9300-gpio
- const: realtek,otto-gpio - const: realtek,otto-gpio
reg: reg: true
maxItems: 1
"#gpio-cells": "#gpio-cells":
const: 2 const: 2
...@@ -50,6 +50,23 @@ properties: ...@@ -50,6 +50,23 @@ properties:
interrupts: interrupts:
maxItems: 1 maxItems: 1
if:
properties:
compatible:
contains:
const: realtek,rtl9300-gpio
then:
properties:
reg:
items:
- description: GPIO and interrupt control
- description: interrupt CPU map
else:
properties:
reg:
items:
- description: GPIO and interrupt control
required: required:
- compatible - compatible
- reg - reg
...@@ -74,5 +91,17 @@ examples: ...@@ -74,5 +91,17 @@ examples:
interrupt-parent = <&rtlintc>; interrupt-parent = <&rtlintc>;
interrupts = <23>; interrupts = <23>;
}; };
- |
gpio@3300 {
compatible = "realtek,rtl9300-gpio", "realtek,otto-gpio";
reg = <0x3300 0x1c>, <0x3338 0x8>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <24>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&rtlintc>;
interrupts = <13>;
};
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment