]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ARM: dts: uniphier: add GPIO controller nodes
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 18 Oct 2017 04:24:32 +0000 (13:24 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 23 Oct 2017 17:08:52 +0000 (02:08 +0900)
The GPIO controller also acts as an interrupt controller and the
interrupt lines are connected to the AIDET block.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
arch/arm/boot/dts/uniphier-ld4.dtsi
arch/arm/boot/dts/uniphier-pro4.dtsi
arch/arm/boot/dts/uniphier-pro5.dtsi
arch/arm/boot/dts/uniphier-pxs2.dtsi
arch/arm/boot/dts/uniphier-sld8.dtsi

index 503700429eb587417ffc25e87e6439519d458390..4f184dca605935257df4a86abd02dc450b58b113 100644 (file)
                        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>;
+                       gpio-ranges-group-names = "gpio_range";
+                       ngpios = <136>;
+                       socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
+               };
+
                i2c0: i2c@58400000 {
                        compatible = "socionext,uniphier-i2c";
                        status = "disabled";
index 4e90f1fdffa703028e556f2d8277951f6cbb4184..13f837354cd70d91fbd3b89230c87f1262355ee6 100644 (file)
                        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>;
+                       gpio-ranges-group-names = "gpio_range";
+                       ngpios = <248>;
+                       socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
+               };
+
                i2c0: i2c@58780000 {
                        compatible = "socionext,uniphier-fi2c";
                        status = "disabled";
index 7aa6145c9a240b2b77443d00ca2638fccd94dd21..dba944fc651bc4a0ec3be80814dcc0e176b6e598 100644 (file)
                        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>;
+                       gpio-ranges-group-names = "gpio_range";
+                       ngpios = <248>;
+                       socionext,interrupt-ranges = <0 48 16>, <16 154 5>;
+               };
+
                i2c0: i2c@58780000 {
                        compatible = "socionext,uniphier-fi2c";
                        status = "disabled";
index d3ee451328bde4a0894d909e6c49624fcd235ca8..a745437e65953a911006dee12c5956af99485aab 100644 (file)
                        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>;
+                       gpio-ranges-group-names = "gpio_range0",
+                                                 "gpio_range1";
+                       ngpios = <232>;
+                       socionext,interrupt-ranges = <0 48 16>, <16 154 5>,
+                                                    <21 217 3>;
+               };
+
                i2c0: i2c@58780000 {
                        compatible = "socionext,uniphier-fi2c";
                        status = "disabled";
index 8e5f6f2b68892ffeb74436d8f81730250b7e904e..1b5e9339cc34247d4c9fc5bf4cc967fa91eccb1e 100644 (file)
                        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 104 0 0>,
+                                     <&pinctrl 112 0 0>;
+                       gpio-ranges-group-names = "gpio_range0",
+                                                 "gpio_range1",
+                                                 "gpio_range2";
+                       ngpios = <136>;
+                       socionext,interrupt-ranges = <0 48 13>, <14 62 2>;
+               };
+
                i2c0: i2c@58400000 {
                        compatible = "socionext,uniphier-i2c";
                        status = "disabled";