Thread (24 messages) 24 messages, 6 authors, 2021-03-10

Re: [PATCH v2 2/2] irqchip: add support for BCM6345 external interrupt controller

From: Álvaro Fernández Rojas <hidden>
Date: 2021-02-24 07:11:01
Also in: linux-devicetree, lkml

Hi Florian,
El 24 feb 2021, a las 4:43, Florian Fainelli [off-list ref] escribió:



On 2/23/2021 12:43 PM, Álvaro Fernández Rojas wrote:
quoted
This interrupt controller is present on bcm63xx SoCs in order to generate
interrupts based on GPIO status changes.

Signed-off-by: Álvaro Fernández Rojas <redacted>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
---
[snip]
quoted
+static int __init bcm6345_ext_intc_of_init(struct device_node *node,
+					   struct device_node *parent)
+{
+	int num_irqs, ret = -EINVAL;
+	unsigned i;
+	void __iomem *base;
+	int irqs[MAX_IRQS] = { 0 };
+	u32 shift;
+	bool toggle_clear_on_ack = false;
+
+	num_irqs = of_irq_count(node);
+
+	if (!num_irqs || num_irqs > MAX_IRQS)
+		return -EINVAL;
+
+	if (of_property_read_u32(node, "brcm,field-width", &shift))
+		shift = 4;
This property is not documented in the binding, other than that:
Nice catch, I will add it in next version.
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help