From: hauke@hauke-m.de (Hauke Mehrtens) Date: Sat, 27 Sep 2014 22:47:43 +0200 Subject: [PATCH] bcma: use device from DT (brcm,bus-gpio) for SoC GPIO chip In-Reply-To: References: <1411741733-13888-1-git-send-email-zajec5@gmail.com> <2539898.4te2VKk57a@wuerfel> <54267661.5000401@hauke-m.de> Message-ID: <5427226F.8080601@hauke-m.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 09/27/2014 12:37 PM, Rafa? Mi?ecki wrote: > On 27 September 2014 10:33, Hauke Mehrtens 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 = ; 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