Skip to content

petalinuxconfig_xlnx.py: emit disabled UARTs under 'disabled_slaves' - #796

Merged
zeddii merged 1 commit into
devicetree-org:masterfrom
Rajukumar45:master
Aug 4, 2026
Merged

petalinuxconfig_xlnx.py: emit disabled UARTs under 'disabled_slaves'#796
zeddii merged 1 commit into
devicetree-org:masterfrom
Rajukumar45:master

Conversation

@Rajukumar45

Copy link
Copy Markdown
Contributor

QEMU instantiates a serial port for every UART on the SoC, including disabled ones, and numbers them serial0, serial1, ... by base address. For gen-machine-conf to build a matching QEMU '-serial' line, the syshw data must also list the disabled UARTs.

Detect disabled UART nodes the same way as enabled devices (by matching their 'compatible' against the schema's serial driver list) and route them through the existing serial-slave handling into a dedicated 'disabled_slaves' section. Keeping them out of 'slaves' ensures nothing that iterates the slaves (e.g. the Kconfig serial menu) is affected.

  • Accumulate the serial-compatible set during the existing device_type_map build pass instead of a second loop.
  • Omit 'ip_name' when a node has no 'xlnx,ip-name' (disabled UARTs are not annotated by the Xilinx SDT flow) rather than emit an empty value.

QEMU instantiates a serial port for every UART on the SoC, including
disabled ones, and numbers them serial0, serial1, ... by base address.
For gen-machine-conf to build a matching QEMU '-serial' line, the syshw
data must also list the disabled UARTs.

Detect disabled UART nodes the same way as enabled devices (by matching
their 'compatible' against the schema's serial driver list) and route
them through the existing serial-slave handling into a dedicated
'disabled_slaves' section. Keeping them out of 'slaves' ensures nothing
that iterates the slaves (e.g. the Kconfig serial menu) is affected.

- Accumulate the serial-compatible set during the existing
  device_type_map build pass instead of a second loop.
- Omit 'ip_name' when a node has no 'xlnx,ip-name' (disabled UARTs are
  not annotated by the Xilinx SDT flow) rather than emit an empty value.

Signed-off-by: Raju Kumar Pothuraju <rajukumar.pothuraju@amd.com>
@Rajukumar45

Copy link
Copy Markdown
Contributor Author

No extra reviews are necessary.

@zeddii
zeddii merged commit fca7631 into devicetree-org:master Aug 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants