DT labels for connector device mapping
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest0 of 3 patches 0 repliesNew
Patches in v1 No applies recorded yet
None of the 3 patches the cover letter announces are in this archive.
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] DT labels for connector device mapping
Quoted 15 lines · Rob Herring
Having a common connector interface across different platforms can be problematic for determining which SOC device is connected to which connector pins. The standard DT property "label" is intended to provide a human readable name for a device and can be used to provide this information. Then userspace can can read the label to determine the device mapping. For example:
for f in $(ls -d
/sys/class/tty/tty*); do
label=$(cat $f/device/of_node/label)
if [ "$label" = "LS-UART1" ]; then
# you've found UART1, so do something with it. # $f/dev is the major:minor for the /dev node
fi
done
Quoted 2 lines
This series adds labels on hikey and dragonboard 410c devices for the low speed and high speed connectors. Not tested at all.
should we then use the line-name property on the GPIOs to have a common naming convention across all 96Boards boards?