Skip to content

Commit d55201d

Browse files
jilaypandyakrish2718
authored andcommitted
[nrf fromtree] dts: bindings: spi: use hyphen instead of underscore
use hyphen instead of underscore in order to comply with device tree specification. Signed-off-by: Jilay Pandya <[email protected]> (cherry picked from commit 0a4acd8)
1 parent d1e578b commit d55201d

File tree

7 files changed

+17
-11
lines changed

7 files changed

+17
-11
lines changed

boards/microchip/mec15xxevb_assy6853/mec15xxevb_assy6853.dts

+2-2
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,8 @@
192192

193193
&spi0 {
194194
status = "okay";
195-
port_sel = <0>;
196-
chip_select = <0>;
195+
port-sel = <0>;
196+
chip-select = <0>;
197197
lines = <1>;
198198
pinctrl-0 = < &shd_cs0_n_gpio055
199199
&shd_clk_gpio056

doc/releases/migration-guide-4.2.rst

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ Networking
7272
(because the addr is not a pointer) and must be changed to ``if (lladdr->len == 0)``
7373
if the code wants to check that the link address is not set.
7474

75+
SPI
76+
===
77+
78+
* Renamed the device tree property ``port_sel`` to ``port-sel``.
79+
* Renamed the device tree property ``chip_select`` to ``chip-select``.
80+
7581
Other subsystems
7682
****************
7783

dts/arm/microchip/mec1501hsz.dtsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@
471471
rxdma = <11>;
472472
txdma = <10>;
473473
lines = <1>;
474-
chip_select = <0>;
474+
chip-select = <0>;
475475
dcsckon = <6>;
476476
dckcsoff = <4>;
477477
dldh = <6>;

dts/bindings/spi/microchip,xec-qmspi.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ properties:
1111
reg:
1212
required: true
1313

14-
port_sel:
14+
port-sel:
1515
type: int
1616
required: true
1717
description: SPI Port 0 or 1.
@@ -37,7 +37,7 @@ properties:
3737
required: true
3838
description: QMSPI lines 1, 2, or 4
3939

40-
chip_select:
40+
chip-select:
4141
type: int
4242
required: true
4343
description: Use QMSPI CS0# or CS1#

samples/drivers/espi/boards/mec1501modular_assy6885.overlay

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
&spi0 {
1818
status = "okay";
19-
port_sel = <0>;
20-
chip_select = <0>;
19+
port-sel = <0>;
20+
chip-select = <0>;
2121
lines = <4>;
2222
pinctrl-0 = < &shd_cs0_n_gpio055
2323
&shd_clk_gpio056

samples/drivers/espi/boards/mec15xxevb_assy6853.overlay

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
&spi0 {
2222
status = "okay";
23-
port_sel = <0>;
24-
chip_select = <0>;
23+
port-sel = <0>;
24+
chip-select = <0>;
2525
lines = <4>;
2626
};

tests/boards/mec15xxevb_assy6853/qspi/boards/mec15xxevb_assy6853.overlay

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
&spi0 {
88
status = "okay";
9-
port_sel = <0>;
10-
chip_select = <0>;
9+
port-sel = <0>;
10+
chip-select = <0>;
1111
lines = <4>;
1212

1313
pinctrl-0 = < &shd_cs0_n_gpio055

0 commit comments

Comments
 (0)