Skip to content

Commit 83c1ee7

Browse files
marwaiehm-stkartben
authored andcommitted
dts: bindings: usb: Introduce STM32N6 OTG HS compatible
Add STM32N6 USB OTG HS compatible 'st,stm32n6-otghs' that doesn't require pinctrl-0 and pinctrl-names. Signed-off-by: IBEN EL HADJ MESSAOUD Marwa <[email protected]>
1 parent fe6366b commit 83c1ee7

File tree

3 files changed

+42
-21
lines changed

3 files changed

+42
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Copyright (c) 2025, STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Common fields for STM32 OTGHS controller
5+
6+
include: [usb-ep.yaml, pinctrl-device.yaml]
7+
8+
properties:
9+
reg:
10+
required: true
11+
12+
interrupts:
13+
required: true
14+
15+
ram-size:
16+
type: int
17+
required: true
18+
description: |
19+
Size of USB dedicated RAM. STM32 SOC's reference
20+
manual defines a shared FIFO size.
21+
22+
phys:
23+
type: phandle
24+
description: PHY provider specifier
25+
26+
clocks:
27+
required: true

dts/bindings/usb/st,stm32-otghs.yaml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,16 @@
11
# Copyright (c) 2017, I-SENSE group of ICCS
2+
# Copyright (c) 2025, STMicroelectronics
23
# SPDX-License-Identifier: Apache-2.0
34

45
description: STM32 OTGHS controller
56

67
compatible: "st,stm32-otghs"
78

8-
include: [usb-ep.yaml, pinctrl-device.yaml]
9+
include: st,stm32-otghs-common.yaml
910

1011
properties:
11-
reg:
12-
required: true
13-
14-
interrupts:
15-
required: true
16-
1712
pinctrl-0:
1813
required: true
1914

2015
pinctrl-names:
2116
required: true
22-
23-
ram-size:
24-
type: int
25-
required: true
26-
description: |
27-
Size of USB dedicated RAM. STM32 SOC's reference
28-
manual defines a shared FIFO size.
29-
30-
phys:
31-
type: phandle
32-
description: PHY provider specifier
33-
34-
clocks:
35-
required: true
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright (c) 2025, STMicroelectronics
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
description: |
5+
STM32N6 OTGHS controller
6+
7+
In the STM32N6 series, the `pinctrl-0` and `pinctrl-names` properties are not required
8+
for the USB OTG HS peripheral configuration. This is because the pin multiplexing
9+
for the USB OTG HS peripheral are handled automatically by the hardware.
10+
11+
compatible: "st,stm32n6-otghs"
12+
13+
include: st,stm32-otghs-common.yaml

0 commit comments

Comments
 (0)