Skip to content

Commit

Permalink
dts: bindings: nordic: Require pinctrl-names together with pinctrl-0
Browse files Browse the repository at this point in the history
... so that a clear devicetree error is reported when the pinctrl-names
property is missing, not a quite cryptic compilation error about an
undeclared PINCTRL_STATE_*_UPPER_TOKEN symbol in pinctrl.h.

Signed-off-by: Andrzej Głąbek <[email protected]>
  • Loading branch information
anangl authored and nashif committed Aug 2, 2024
1 parent 0efbbcb commit 791ba98
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dts/bindings/audio/nordic,nrf-pdm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

clock-source:
type: string
default: "PCLK32M_HFXO"
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/can/nordic,nrf-can.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ properties:

pinctrl-0:
required: true

pinctrl-names:
required: true
3 changes: 3 additions & 0 deletions dts/bindings/flash_controller/nordic,nrf-qspi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ properties:

pinctrl-0:
required: true

pinctrl-names:
required: true
3 changes: 3 additions & 0 deletions dts/bindings/i2c/nordic,nrf-twi-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

easydma-maxcnt-bits:
type: int
required: true
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/i2s/nordic,nrf-i2s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

clock-source:
type: string
default: "PCLK32M_HFXO"
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/pwm/nordic,nrf-pwm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

center-aligned:
type: boolean
description: Set this to use center-aligned (up and down) counter mode.
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/sensor/nordic,nrf-qdec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

enable-pin:
type: int
description: |
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/serial/nordic,nrf-uart-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

disable-rx:
type: boolean
description: |
Expand Down
3 changes: 3 additions & 0 deletions dts/bindings/spi/nordic,nrf-spi-common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ properties:
pinctrl-0:
required: true

pinctrl-names:
required: true

max-frequency:
type: int
required: true
Expand Down

0 comments on commit 791ba98

Please sign in to comment.