Skip to content

Commit

Permalink
dts: bindings: gpio: use hyphens instead of underscore
Browse files Browse the repository at this point in the history
replace underscore with hyphens to comply with device tree spec

Signed-off-by: Jilay Pandya <jilay.pandya@outlook.com>
  • Loading branch information
jilaypandya committed Jan 11, 2025
1 parent d4deeeb commit de24c09
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions boards/snps/em_starterkit/em_starterkit_r23.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
compatible = "snps,creg-gpio";
reg = <0xf0000014 0x4>;
ngpios = <6>;
bit_per_gpio = <1>;
off_val = <0>;
on_val = <1>;
bit-per-gpio = <1>;
off-val = <0>;
on-val = <1>;

gpio-controller;
#gpio-cells = <2>;
Expand Down
6 changes: 3 additions & 3 deletions dts/arc/synopsys/arc_hs4xd.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
compatible = "snps,creg-gpio";
reg = <0xf00014b0 0x4>;
ngpios = <12>;
bit_per_gpio = <2>;
off_val = <0>;
on_val = <2>;
bit-per-gpio = <2>;
off-val = <0>;
on-val = <2>;

gpio-controller;
#gpio-cells = <2>;
Expand Down
6 changes: 3 additions & 3 deletions dts/arc/synopsys/arc_hsdk.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,9 @@
compatible = "snps,creg-gpio";
reg = <0xf00014b0 0x4>;
ngpios = <12>;
bit_per_gpio = <2>;
off_val = <0>;
on_val = <2>;
bit-per-gpio = <2>;
off-val = <0>;
on-val = <2>;

gpio-controller;
#gpio-cells = <2>;
Expand Down
2 changes: 1 addition & 1 deletion dts/arm/renesas/ra/ra8/ra8x1.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <16>;
vbatts_pins = <2 3 4>;
vbatts-pins = <2 3 4>;
status = "disabled";
};

Expand Down
4 changes: 2 additions & 2 deletions dts/bindings/gpio/nuvoton,nct38xx-gpio-port.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ properties:
reg:
required: true

pin_mask:
pin-mask:
type: int
required: true
description: |
Expand All @@ -21,7 +21,7 @@ properties:
NCT3808: <0xdc>
others: <0xff>
pinmux_mask:
pinmux-mask:
type: int
description: |
NCT38XX series port 0 has Pin Multiplexing functionality. However, not
Expand Down
14 changes: 7 additions & 7 deletions dts/bindings/gpio/nuvoton,nct38xx-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ description: |
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xff>;
pinmux_mask = <0xf7>;
pin-mask = <0xff>;
pinmux-mask = <0xf7>;
};
gpio@1 {
Expand All @@ -33,7 +33,7 @@ description: |
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xff>;
pin-mask = <0xff>;
};
};
};
Expand All @@ -53,8 +53,8 @@ description: |
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xdc>;
pinmux_mask = <0xff>;
pin-mask = <0xdc>;
pinmux-mask = <0xff>;
};
};
};
Expand All @@ -74,8 +74,8 @@ description: |
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xdc>;
pinmux_mask = <0xff>;
pin-mask = <0xdc>;
pinmux-mask = <0xff>;
};
};
};
Expand Down
2 changes: 1 addition & 1 deletion dts/bindings/gpio/renesas,ra-gpio-ioport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ properties:
type: int
required: true

vbatts_pins:
vbatts-pins:
type: array
description: Array of vbatt pin on port

Expand Down
6 changes: 3 additions & 3 deletions dts/bindings/gpio/snps,creg-gpio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ properties:
reg:
required: true

bit_per_gpio:
bit-per-gpio:
type: int
required: true

off_val:
off-val:
type: int
required: true

on_val:
on-val:
type: int
required: true

Expand Down
14 changes: 7 additions & 7 deletions tests/drivers/build_all/gpio/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xff>;
pinmux_mask = <0xf7>;
pin-mask = <0xff>;
pinmux-mask = <0xf7>;
};

gpio@1 {
Expand All @@ -182,7 +182,7 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xff>;
pin-mask = <0xff>;
};
};
};
Expand All @@ -201,8 +201,8 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xdc>;
pinmux_mask = <0xff>;
pin-mask = <0xdc>;
pinmux-mask = <0xff>;
};
};
};
Expand All @@ -221,8 +221,8 @@
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
pin_mask = <0xdc>;
pinmux_mask = <0xff>;
pin-mask = <0xdc>;
pinmux-mask = <0xff>;
};
};
};
Expand Down

0 comments on commit de24c09

Please sign in to comment.