|
@@ -40,5 +40,28 @@
|
|
|
interrupts = <2 25>;
|
|
|
clock-frequency = <3000000>;
|
|
|
};
|
|
|
+
|
|
|
+ gpio: gpio {
|
|
|
+ compatible = "brcm,bcm2835-gpio";
|
|
|
+ reg = <0x7e200000 0xb4>;
|
|
|
+ /*
|
|
|
+ * The GPIO IP block is designed for 3 banks of GPIOs.
|
|
|
+ * Each bank has a GPIO interrupt for itself.
|
|
|
+ * There is an overall "any bank" interrupt.
|
|
|
+ * In order, these are GIC interrupts 17, 18, 19, 20.
|
|
|
+ * Since the BCM2835 only has 2 banks, the 2nd bank
|
|
|
+ * interrupt output appears to be mirrored onto the
|
|
|
+ * 3rd bank's interrupt signal.
|
|
|
+ * So, a bank0 interrupt shows up on 17, 20, and
|
|
|
+ * a bank1 interrupt shows up on 18, 19, 20!
|
|
|
+ */
|
|
|
+ interrupts = <2 17>, <2 18>, <2 19>, <2 20>;
|
|
|
+
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+
|
|
|
+ interrupt-controller;
|
|
|
+ #interrupt-cells = <2>;
|
|
|
+ };
|
|
|
};
|
|
|
};
|