Skip to content
Commit e56721b8 authored by Jay Vasanth's avatar Jay Vasanth Committed by Carles Cufí
Browse files

dts: gpio: Add Microchip XEC GPIO macros for use in device tree



Microchip XEC devices specify GPIO pin using octal numbering and
organize pins in banks of 32. Chip documentation does not use
bank naming rather naming each pin by its octal number. This has
led to the developer having to calculate the bit position of a pin
in its 32-bit bank when a specifying the pin for GPIO usage. We
created a set of defines for all possible GPIO pins that specify
the DT GPIO bank name used in the chip level DTSI files and the
bit position in that bank.

Signed-off-by: default avatarJay Vasanth <jay.vasanth@microchip.com>
parent 5d9db9dc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment