diff options
author | James Hogan <james.hogan@imgtec.com> | 2013-04-22 11:46:36 -0400 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2013-07-22 05:55:31 -0400 |
commit | d6cffa4f28695eab44a4268652788b96bb44c441 (patch) | |
tree | e43a1aedbfbd2cdc381e83b4b023e8038e5a7b64 | |
parent | 0a6923f1c0e6d49d7fd16bb8cb75d23675c7fd7a (diff) |
metag: tz1090: select and instantiate gpio-tz1090
Select ARCH_WANT_OPTIONAL_GPIOLIB from SOC_TZ1090 to allow GPIOLIB and
GPIO_TZ1090 (the main gpio driver) to be enabled once it is merged, and
instantiate it from tz1090.dtsi.
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Grant Likely <grant.likely@linaro.org>
-rw-r--r-- | arch/metag/Kconfig.soc | 1 | ||||
-rw-r--r-- | arch/metag/boot/dts/tz1090.dtsi | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/arch/metag/Kconfig.soc b/arch/metag/Kconfig.soc index 50f979c2b02d..973640f46752 100644 --- a/arch/metag/Kconfig.soc +++ b/arch/metag/Kconfig.soc | |||
@@ -16,6 +16,7 @@ config META21_FPGA | |||
16 | 16 | ||
17 | config SOC_TZ1090 | 17 | config SOC_TZ1090 |
18 | bool "Toumaz Xenif TZ1090 SoC (Comet)" | 18 | bool "Toumaz Xenif TZ1090 SoC (Comet)" |
19 | select ARCH_WANT_OPTIONAL_GPIOLIB | ||
19 | select IMGPDC_IRQ | 20 | select IMGPDC_IRQ |
20 | select METAG_LNKGET_AROUND_CACHE | 21 | select METAG_LNKGET_AROUND_CACHE |
21 | select METAG_META21 | 22 | select METAG_META21 |
diff --git a/arch/metag/boot/dts/tz1090.dtsi b/arch/metag/boot/dts/tz1090.dtsi index d0869b19e08e..66cf55de1825 100644 --- a/arch/metag/boot/dts/tz1090.dtsi +++ b/arch/metag/boot/dts/tz1090.dtsi | |||
@@ -55,5 +55,40 @@ | |||
55 | compatible = "img,tz1090-pdc-pinctrl"; | 55 | compatible = "img,tz1090-pdc-pinctrl"; |
56 | reg = <0x02006500 0x100>; | 56 | reg = <0x02006500 0x100>; |
57 | }; | 57 | }; |
58 | |||
59 | gpios: gpios@02005800 { | ||
60 | #address-cells = <1>; | ||
61 | #size-cells = <0>; | ||
62 | compatible = "img,tz1090-gpio"; | ||
63 | reg = <0x02005800 0x90>; | ||
64 | |||
65 | gpios0: bank@0 { | ||
66 | gpio-controller; | ||
67 | interrupt-controller; | ||
68 | #gpio-cells = <2>; | ||
69 | #interrupt-cells = <2>; | ||
70 | reg = <0>; | ||
71 | interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; | ||
72 | gpio-ranges = <&pinctrl 0 0 30>; | ||
73 | }; | ||
74 | gpios1: bank@1 { | ||
75 | gpio-controller; | ||
76 | interrupt-controller; | ||
77 | #gpio-cells = <2>; | ||
78 | #interrupt-cells = <2>; | ||
79 | reg = <1>; | ||
80 | interrupts = <14 IRQ_TYPE_LEVEL_HIGH>; | ||
81 | gpio-ranges = <&pinctrl 0 30 30>; | ||
82 | }; | ||
83 | gpios2: bank@2 { | ||
84 | gpio-controller; | ||
85 | interrupt-controller; | ||
86 | #gpio-cells = <2>; | ||
87 | #interrupt-cells = <2>; | ||
88 | reg = <2>; | ||
89 | interrupts = <15 IRQ_TYPE_LEVEL_HIGH>; | ||
90 | gpio-ranges = <&pinctrl 0 60 30>; | ||
91 | }; | ||
92 | }; | ||
58 | }; | 93 | }; |
59 | }; | 94 | }; |