Thread (2 messages) flat view 2 messages, 2 authors, 2015-03-08

[PATCH 6/7] ARM: dts: sun7i: Add OOB irq support to boards with broadcom sdio wifi

From: Hans de Goede <hidden>
Date: 2015-03-08 19:19:33
Also in: linux-devicetree

Hi,

On 08-03-15 18:25, Maxime Ripard wrote:
On Sat, Mar 07, 2015 at 08:01:23PM +0100, Hans de Goede wrote:
quoted
Signed-off-by: Hans de Goede <redacted>
---
  arch/arm/boot/dts/sun7i-a20-cubietruck.dts | 11 +++++++++++
  arch/arm/boot/dts/sun7i-a20-i12-tvbox.dts  | 11 +++++++++++
  2 files changed, 22 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
index 0c219a4..8111b0c 100644
--- a/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
+++ b/arch/arm/boot/dts/sun7i-a20-cubietruck.dts
@@ -167,12 +167,23 @@
  };

  &mmc3 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+
Aside from Chen-Yu's comments, that should be in the DTSI.
quoted
  	pinctrl-names = "default";
  	pinctrl-0 = <&mmc3_pins_a>;
  	vmmc-supply = <&reg_vmmc3>;
  	bus-width = <4>;
  	non-removable;
  	status = "okay";
+
+	brcmf: bcrmf at 1 {
+		reg = <1>;
+		compatible = "brcm,bcm4329-fmac";
+		interrupt-parent = <&pio>;
+		interrupts = <10 8>; /* PH10 / EINT10 */
And you can use interrupts-extented here (not that I really care much,
both solutions works for me).
What is interrupts-extended / does interrupts-extended do ?

Ah, found it, Documentation/devicetree/bindings/interrupt-controller/interrupts.txt
says:

The "interrupts-extended" property is a special form for use when a node needs
to reference multiple interrupt parents. Each entry in this property contains
both the parent phandle and the interrupt specifier. "interrupts-extended"
should only be used when a device has multiple interrupt parents.

   Example:
         interrupts-extended = <&intc1 5 1>, <&intc2 1 0>;

So since we do not need multiple interrupt parents here, "interrupts = "
seems to be the better syntax to use, I'll do a new version fixing
ChenYu's comments and moving the #foo-cells to the dtsi.

Thanks for merging the other patches, and for the review.

Regards,

Hans
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help