digilent,pmod-header

Vendor: Digilent, Inc.

Description

GPIO pins exposed on Digilent Pmod header.

The Pmod layout provides standard 100mil spaced, 25mil square,
pin-header style 6-pin (Spec A/C) or 12-pin (Spec B/D) connectors
with currently 7 pin assignments to support different use cases
for GPIO (Type 1), SPI, (Type 2), UART (Type 3), H-Bridge (Type 4),
Dual H-Bridge (Type 5), I2C (Type 6), I2S (Type 7).

The peripheral module board will have a male connector. This will
typically be a right-angle connector, at the board edge, for direct
connection to a host board. The host board will typically have a
12-pin right-angle female connector at the board edge for direct
connection of peripheral module boards.

The power pins of the interface (VCC) provide power from the host to
the peripheral. The complete interface requires that the host provide
the ability to switch the voltage on the power pins between 5V and
3.3V. A reduced functionality subset of the specification allows the
host to provide only 3.3V at the power supply pins, with no ability
to switch. On the 12-pin version of the interface, both power supply
pins switch together and always supply the same voltage. These pins
may be shorted together at either the host end or the peripheral side.

Pin assignment and all specifications can be found at:
https://digilent.com/reference/pmod/start

This binding provides a nexus mapping for 8 pins where parent
pins 0 through 7 correspond as depicted below depending on
related "Spec" and "Type":

                             (Spec B/D) 12-pin   6-pin (Spec A/C)
                                            | \ /
                                            |  |

GPIO (Types 1/1A):                      IO5 4  0 IO1
                                  (PWM) IO6 5  1 IO2 (PWM)
                                        IO7 6  2 IO3
                                        IO8 7  3 IO4
                                        GND -  - GND
                                        VCC -  - VCC

SPI (Types 2/2A):                 (INT) IO5 4  0 CS
                                (RESET) IO6 5  1 MOSI
                                  (CS2) IO7 6  2 MISO
                                  (CS3) IO8 7  3 SCK
                                        GND -  - GND
                                        VCC -  - VCC

UART (Types 3/3A):                (INT) IO5 4  0 CTS (IO1)
                                (RESET) IO6 5  1 TXD
                                        IO7 6  2 RXD
                                        IO8 7  3 RTS (IO4)
                                        GND -  - GND
                                        VCC -  - VCC

H-Bridge (Types 4):                            0 DIR
                                               1 EN (PWM)
                                               2 SA
                                               3 SB
                                               - GND
                                               - VCC

Dual H-Bridge (Types 5):                       0 DIR1
                                               1 EN1
                                               2 DIR2
                                               3 EN2
                                               - GND
                                               - VCC

Dual H-Bridge (Types 5A):              DIR2 4  0 DIR1
                                  (PWM) EN2 5  1 EN1 (PWM)
                                        S2A 6  2 S1A
                                        S2B 7  3 S1B
                                        GND -  - GND
                                        VCC -  - VCC

I2C (Types 6/6A):                       IO5 4  0 N/C (IO1) (INT)
                                        IO6 5  1 N/C (IO2) (RESET)
                                        IO7 6  2 SCL
                                        IO8 7  3 SDA
                                        GND -  - GND
                                        VCC -  - VCC

I2S (Types 7):                          IO5 4  0 LRCLK
                                        IO6 5  1 DAC Data
                                 (MCLK) IO7 6  2 ADC Data
                                        IO8 7  3 BCLK
                                        GND -  - GND
                                        VCC -  - VCC

Properties

Node specific properties

Properties not inherited from the base binding file.

Name

Type

Details

gpio-map

compound

This property is required.

gpio-map-mask

compound

gpio-map-pass-thru

compound

#gpio-cells

int

Number of items to expect in a GPIO specifier

This property is required.

Deprecated node specific properties

Deprecated properties not inherited from the base binding file.

(None)

Base properties

Properties inherited from the base binding file, which defines common properties that may be set on many nodes. Not all of these may apply to the “digilent,pmod-header” compatible.

Name

Type

Details

status

string

indicates the operational status of a device

Legal values: 'ok', 'okay', 'disabled', 'reserved', 'fail', 'fail-sss'

See Important properties for more information.

compatible

string-array

compatible strings

This property is required.

See Important properties for more information.

reg

array

register space

See Important properties for more information.

reg-names

string-array

name of each register space

interrupts

array

interrupts for device

See Important properties for more information.

interrupts-extended

compound

extended interrupt specifier for device

interrupt-names

string-array

name of each interrupt

interrupt-parent

phandle

phandle to interrupt controller node

label

string

Human readable string describing the device (used as device_get_binding() argument)

See Important properties for more information.

This property is deprecated.

clocks

phandle-array

Clock gate information

clock-names

string-array

name of each clock

#address-cells

int

number of address cells in reg property

#size-cells

int

number of size cells in reg property

dmas

phandle-array

DMA channels specifiers

dma-names

string-array

Provided names of DMA channel specifiers

io-channels

phandle-array

IO channels specifiers

io-channel-names

string-array

Provided names of IO channel specifiers

mboxes

phandle-array

mailbox / IPM channels specifiers

mbox-names

string-array

Provided names of mailbox / IPM channel specifiers

power-domains

phandle-array

Power domain specifiers

power-domain-names

string-array

Provided names of power domain specifiers

#power-domain-cells

int

Number of cells in power-domains property

zephyr,deferred-init

boolean

Do not initialize device automatically on boot. Device should be manually
initialized using device_init().

wakeup-source

boolean

Property to identify that a device can be used as wake up source.

When this property is provided a specific flag is set into the
device that tells the system that the device is capable of
wake up the system.

Wake up capable devices are disabled (interruptions will not wake up
the system) by default but they can be enabled at runtime if necessary.

zephyr,pm-device-runtime-auto

boolean

Automatically configure the device for runtime power management after the
init function runs.

zephyr,disabling-power-states

phandles

List of power states that will disable this device power.