Skip to content

Commit

Permalink
arm64: dts: uniphier: add GPIO controller nodes
Browse files Browse the repository at this point in the history
The GPIO controller also acts as an interrupt controller and the
interrupt lines are connected to the AIDET block.

Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
masahir0y committed Oct 23, 2017
1 parent 9cd7d03 commit 277b51e
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 0 deletions.
25 changes: 25 additions & 0 deletions arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,31 @@
clocks = <&peri_clk 3>;
};

gpio: gpio@55000000 {
compatible = "socionext,uniphier-gpio";
reg = <0x55000000 0x200>;
interrupt-parent = <&aidet>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 0>,
<&pinctrl 43 0 0>,
<&pinctrl 51 0 0>,
<&pinctrl 96 0 0>,
<&pinctrl 160 0 0>,
<&pinctrl 184 0 0>;
gpio-ranges-group-names = "gpio_range0",
"gpio_range1",
"gpio_range2",
"gpio_range3",
"gpio_range4",
"gpio_range5";
ngpios = <200>;
socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
<21 217 3>;
};

adamv@57920000 {
compatible = "socionext,uniphier-ld11-adamv",
"simple-mfd", "syscon";
Expand Down
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,25 @@
clocks = <&peri_clk 3>;
};

gpio: gpio@55000000 {
compatible = "socionext,uniphier-gpio";
reg = <0x55000000 0x200>;
interrupt-parent = <&aidet>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 0>,
<&pinctrl 96 0 0>,
<&pinctrl 160 0 0>;
gpio-ranges-group-names = "gpio_range0",
"gpio_range1",
"gpio_range2";
ngpios = <205>;
socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
<21 217 3>;
};

adamv@57920000 {
compatible = "socionext,uniphier-ld20-adamv",
"simple-mfd", "syscon";
Expand Down
19 changes: 19 additions & 0 deletions arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,25 @@
clocks = <&peri_clk 3>;
};

gpio: gpio@55000000 {
compatible = "socionext,uniphier-gpio";
reg = <0x55000000 0x200>;
interrupt-parent = <&aidet>;
interrupt-controller;
#interrupt-cells = <2>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pinctrl 0 0 0>,
<&pinctrl 96 0 0>,
<&pinctrl 160 0 0>;
gpio-ranges-group-names = "gpio_range0",
"gpio_range1",
"gpio_range2";
ngpios = <286>;
socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
<21 217 3>;
};

i2c0: i2c@58780000 {
compatible = "socionext,uniphier-fi2c";
status = "disabled";
Expand Down

0 comments on commit 277b51e

Please sign in to comment.