DT labels for connector device mapping
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | arm64: dts: apq8016-sbc: enable UART0 on LS connectorarch/ | +7 | 0 replies | |
| 2/3 | arm64: dts: apq8016-sbc: add label properties for UART, I2C, and SPIarch/ | +7 | 1 reply | |
| 3/3 | arm64: dts: hikey: add label properties to UARTsarch/ | +7 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Kevin Hilman |
|---|---|
| 1/3 | |
| 2/3 | A-b T-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] DT labels for connector device mapping
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
This series adds labels on hikey and dragonboard 410c devices for the low speed and high speed connectors. Not tested at all.
BTW, there are no platform maintainers listed for these files. Setting them should be enforced for the dts files as DT maintainers mainly review binding docs, not dts files.
Rob
Rob Herring (3):
arm64: dts: apq8016-sbc: enable UART0 on LS connector
arm64: dts: apq8016-sbc: add label properties for UART, I2C, and SPI
arm64: dts: hikey: add label properties to UARTs
arch/arm64/boot/dts/hisilicon/hi6220-hikey.dts | 7 +++++++ arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi | 14 ++++++++++++++ 2 files changed, 21 insertions(+)
Signature · 1 line
2.5.0