dt-bindings: gpio: altera: Fix altr,interrupt-type property
Subsystems (2)
PATCH 1/1 dt-bindings: gpio: altera: Fix altr,interrupt-type property
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
--- Documentation/devicetree/bindings/gpio/gpio-altera.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/gpio/gpio-altera.txt +2 -2
@@ -12,7 +12,7 @@ Required properties: - #interrupt-cells : Should be 1. The interrupt type is fixed in the hardware. - The first cell is the GPIO offset number within the GPIO controller. - interrupts: Specify the interrupt. -- altr,interrupt-trigger: Specifies the interrupt trigger type the GPIO +- altr,interrupt-type: Specifies the interrupt trigger type the GPIO hardware is synthesized. This field is required if the Altera GPIO controller used has IRQ enabled as the interrupt type is not software controlled, but hardware synthesized. Required if GPIO is used as an interrupt
@@ -35,7 +35,7 @@ gpio_altr: gpio@0xff200000 { reg = <0xff200000 0x10>; interrupts = <0 45 4>; altr,ngpio = <32>; - altr,interrupt-trigger = <IRQ_TYPE_EDGE_RISING>; + altr,interrupt-type = <IRQ_TYPE_EDGE_RISING>; #gpio-cells = <2>; gpio-controller; #interrupt-cells = <1>;
Signature · 1 line
2.7.0
Quoted 7 lines · Marek Vasut
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
On a related note. The Altera QSYS 15.0 device tree tools generate this label this as altr,interrupt_type
Note: '_' instead of '-'.
I've locally patch the driver to look for both names.
Not sure if this is something that should be fixed in the driver or require user to to post process the generated dts.
I haven't reported the issue to Altera either.
Signature · 2 lines
Regards Phil Reid
Quoted 11 lines · Phil Reid
Quoted 7 lines · Marek Vasut
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
On a related note. The Altera QSYS 15.0 device tree tools generate this label this as altr,interrupt_type
Aaaaaaargh :-(
Quoted 6 lines
Note: '_' instead of '-'.
I've locally patch the driver to look for both names. Not sure if this is something that should be fixed in the driver or require user to to post process the generated dts.I haven't reported the issue to Altera either.
It's the tools which should be fixed in this case.
Since mainline does not mention this binding with '_' anywhere, it's not part of ABI and I would really go for fixing the tools in this case.
Thanks for the report!
Signature · 2 lines
Best regards, Marek Vasut
Hey Marex, Phil
Sorry for the late reply, something went wrong with my open source mail account.
Yes the tool needs to be fixed, we're expecting to fix it once socfpga-4.1 LTSi branch is ready to be released. We don't fix it now to keep it compatible with the "old and released" socfpga-3.10-ltsi branch.
Thanks
Quoted 28 lines · On Tue, 2016-03-01 at 02:29 +0100, [email protected] wrote:
Quoted 11 lines · Phil Reid
Quoted 7 lines · Marek Vasut
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
On a related note. The Altera QSYS 15.0 device tree tools generate this label this as altr,interrupt_type
Aaaaaaargh :-(
Quoted 6 lines
Note: '_' instead of '-'.
I've locally patch the driver to look for both names. Not sure if this is something that should be fixed in the driver or require user to to post process the generated dts.I haven't reported the issue to Altera either.
It's the tools which should be fixed in this case.
Since mainline does not mention this binding with '_' anywhere, it's not part of ABI and I would really go for fixing the tools in this case.
Thanks for the report!
Quoted 1 line · Tien Hock Loh
Hey Marek, Phil
Hi Tien,
Quoted 2 lines
Sorry for the late reply, something went wrong with my open source mail account.
No problem.
Quoted 3 lines
Yes the tool needs to be fixed, we're expecting to fix it once socfpga-4.1 LTSi branch is ready to be released. We don't fix it now to keep it compatible with the "old and released" socfpga-3.10-ltsi branch.
You can patch the old and released branch to support both bindings :)
Quoted 32 lines
Thanks
Quoted 28 lines · On Tue, 2016-03-01 at 02:29 +0100, [email protected] wrote:
Quoted 11 lines · Phil Reid
Quoted 7 lines · Marek Vasut
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
On a related note. The Altera QSYS 15.0 device tree tools generate this label this as altr,interrupt_type
Aaaaaaargh :-(
Quoted 6 lines
Note: '_' instead of '-'.
I've locally patch the driver to look for both names. Not sure if this is something that should be fixed in the driver or require user to to post process the generated dts.I haven't reported the issue to Altera either.
It's the tools which should be fixed in this case.
Since mainline does not mention this binding with '_' anywhere, it's not part of ABI and I would really go for fixing the tools in this case.
Thanks for the report!
Signature · 2 lines
Best regards, Marek Vasut
Quoted 10 lines · Marek Vasut
The altr,interrupt-trigger property is not used by the driver. Instead, altr,interrupt-type is used by the driver and the driver does not probe if this property is not specified. Therefore, it is expected that there are no users of the -trigger property in the wild and that this is a typo in the documentation for the altera-pio controller. This patch fixes the typo.
Signed-off-by Marek Vasut <[email protected]>Cc Tien Hock Loh <[email protected]>Cc Linus Walleij <[email protected]>
Patch applied.
Yours,
Linus Walleij