Skip to content

Commit

Permalink
arch: nios2: rename 'altr,gpio-bank-width' -> 'altr,ngpio'
Browse files Browse the repository at this point in the history
There is no more 'altr,gpio-bank-width' in the 'altr,pio-1.0' driver.
There is a 'altr,ngpio' which is  what the property wants to configure.

This change updates all occurrences of 'altr,gpio-bank-width' to
'altr,ngpio'.

Signed-off-by: Alexandru Ardelean <[email protected]>
Signed-off-by: Ley Foon Tan <[email protected]>
  • Loading branch information
commodo authored and Ley Foon Tan committed Apr 10, 2020
1 parent f26e433 commit 6dd5d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/fpga/fpga-region.txt
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Overlay contains:
gpio@10040 {
compatible = "altr,pio-1.0";
reg = <0x10040 0x20>;
altr,gpio-bank-width = <4>;
altr,ngpio = <4>;
#gpio-cells = <2>;
clocks = <2>;
gpio-controller;
Expand Down Expand Up @@ -468,7 +468,7 @@ programming is the FPGA based bridge of fpga_region1.
compatible = "altr,pio-1.0";
reg = <0x10040 0x20>;
clocks = <0x2>;
altr,gpio-bank-width = <0x4>;
altr,ngpio = <0x4>;
resetvalue = <0x0>;
#gpio-cells = <0x2>;
gpio-controller;
Expand Down
4 changes: 2 additions & 2 deletions arch/nios2/boot/dts/10m50_devboard.dts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
led_pio: gpio@180014d0 {
compatible = "altr,pio-1.0";
reg = <0x180014d0 0x00000010>;
altr,gpio-bank-width = <4>;
altr,ngpio = <4>;
resetvalue = <15>;
#gpio-cells = <2>;
gpio-controller;
Expand All @@ -190,7 +190,7 @@
reg = <0x180014c0 0x00000010>;
interrupt-parent = <&cpu>;
interrupts = <6>;
altr,gpio-bank-width = <3>;
altr,ngpio = <3>;
altr,interrupt-type = <2>;
edge_type = <1>;
level_trigger = <0>;
Expand Down

0 comments on commit 6dd5d3b

Please sign in to comment.