@@ -11,3 +11,5 @@ Optional properties:
resource allocation properties
- control-parent: disable and enable interrupts on the parent interrupt
controller, needed for some broken implementations
+- sense-bitfield-width: width of a single sense bitfield in the SENSE register,
+ if different from the default 4 bits
@@ -381,9 +381,12 @@ static int intc_irqpin_probe(struct platform_device *pdev)
for (k = 0; k < p->number_of_irqs; k++)
intc_irqpin_mask_unmask_prio(p, k, 1);
- if (!pdata)
+ if (!pdata) {
p->config.control_parent = of_property_read_bool(pdev->dev.of_node,
"control-parent");
+ of_property_read_u32(pdev->dev.of_node, "sense-bitfield-width",
+ &p->config.sense_bitfield_width);
+ }
/* use more severe masking method if requested */
if (p->config.control_parent) {
Most Renesas irqpin controllers have 4-bit sense fields, however, some have different widths. This patch adds a DT binding to optionally specify such non-standard values. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com> --- .../interrupt-controller/renesas,intc-irqpin.txt | 2 ++ drivers/irqchip/irq-renesas-intc-irqpin.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletions(-)