Skip to content

Commit d6cffa4

Browse files
author
James Hogan
committed
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>
1 parent 0a6923f commit d6cffa4

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

arch/metag/Kconfig.soc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ config META21_FPGA
1616

1717
config SOC_TZ1090
1818
bool "Toumaz Xenif TZ1090 SoC (Comet)"
19+
select ARCH_WANT_OPTIONAL_GPIOLIB
1920
select IMGPDC_IRQ
2021
select METAG_LNKGET_AROUND_CACHE
2122
select METAG_META21

arch/metag/boot/dts/tz1090.dtsi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,40 @@
5555
compatible = "img,tz1090-pdc-pinctrl";
5656
reg = <0x02006500 0x100>;
5757
};
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+
};
5893
};
5994
};

0 commit comments

Comments
 (0)