Skip to content

Commit

Permalink
dt-bindings: gpio: fix starfive,jh7100-gpio bindings example
Browse files Browse the repository at this point in the history
In the example, drop surrounding "soc" node and #{address,size}-cells.
By convention, all examples on MMIO bus use #{address,size}-cells = <1>.

Suggested-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Drew Fustini <drew@beagleboard.org>
  • Loading branch information
pdp7 committed Jun 2, 2021
1 parent d73bab0 commit cff88cf
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions Documentation/devicetree/bindings/gpio/starfive,jh7100-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,14 @@ additionalProperties: false

examples:
- |
soc {
#address-cells = <2>;
#size-cells = <2>;
gpio@11910000 {
compatible = "starfive,jh7100-gpio";
reg = <0x0 0x11910000 0x0 0x10000>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <32>;
};
gpio@11910000 {
compatible = "starfive,jh7100-gpio";
reg = <0x11910000 0x10000>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupts = <32>;
};
...

0 comments on commit cff88cf

Please sign in to comment.