# \[PATCH\] bcma: use device from DT (brcm,bus-gpio) for SoC GPIO chip

- From: Hauke Mehrtens \<hauke@hauke-m.de\>
- Date: 2014-09-27 20:47:43 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2014/09/8097677
- Thread: https://ratatoskr.run/linux-arm-kernel/2014/09/8097677/t.md

```text
On 09/27/2014 12:37 PM, Rafa? Mi?ecki wrote:
> On 27 September 2014 10:33, Hauke Mehrtens [ref] wrote:
>> I would make GPIO a subdevive of chipcommon. The chipcommon core has an
>> own IRQ which is also used for GPIO.
> 
> Which ChipCommon do yo mean?
> 1) chipcommonA (compatible = "simple-bus")
> 2) chipcommon at 0 (child of axi at 18000000 AKA brcm,bus-axi)

We should combine this (both are describing the same core) I added
chipcommonA to get some serial without adding bcma support first. When
we have dts support added to bcma, I would like to remove chipcommonA
from dtsi and add a chipcommon as a child of axi.

> 
> It seems that for some reason both of them use IRQ 85, while the IRQ
> for ChipCommon is 117 I believe.

That's the same.

In the dtsi file it says:
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
this will result in the IRQ number 117, when it is GIC_SPI you have to
add 32 to the irq number to get the actual number which will be given to
request_irq().

Hauke
```
