40 lines
1.0 KiB
YAML
40 lines
1.0 KiB
YAML
# Copyright (c) 2018, Linaro Limited
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
description: STM32 GPIO node
|
|
|
|
compatible: "st,stm32-gpio"
|
|
|
|
include:
|
|
- name: gpio-controller.yaml
|
|
property-blocklist:
|
|
- ngpios
|
|
- name: base.yaml
|
|
|
|
properties:
|
|
reg:
|
|
required: true
|
|
|
|
clocks:
|
|
required: true
|
|
|
|
"#gpio-cells":
|
|
const: 2
|
|
|
|
ngpios:
|
|
type: int
|
|
default: 16
|
|
description: |
|
|
This property indicates the number of in-use slots of available slots
|
|
for GPIOs. The STM32 GPIO controller typically has all 16 possible port
|
|
IO with few exceptions. It should only be necessary to explicitly set
|
|
this property if the controller itself does not implement all 16 port
|
|
IO register bits; for example PORTE in the STM32WB55xx series which only
|
|
implements the first 5. Package restrictions on the number of exposed
|
|
GPIO should not influence this property. For cases in which there might
|
|
be holes in the slot range, this value should be the max slot number+1.
|
|
|
|
gpio-cells:
|
|
- pin
|
|
- flags
|