Skip to content

Commit

Permalink
acpi-prop: Make UART device properties to use global namespace (#188)
Browse files Browse the repository at this point in the history
Several Operating Systems are already using device property names for
16550-compatible UARTs in global namespace. Adding riscv- prefix will
make multiple software components to change. DSD guide also allows to
continue to use the same property names which are already in use. So,
remove riscv-uart prefix requirement for UART devices.

Also, add reg-offset property which is also currently used by OS
drivers.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
  • Loading branch information
vlsunil authored Aug 6, 2024
1 parent de710c4 commit 19e5f9b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions acpi-prop.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,20 @@ Request for additional property names in the `rscv-` namespace should be made as

[[acpi-props-uart]]
==== Properties for UART Devices
Generic 16550-compatible UART devices can have below device properties in the global name space
since Operating Systems are already using them.

[width=100%]
[%header, cols="10,5,25"]
|===
| Property (`rscv-uart-*`) ^| Type | Description
| Property ^| Type | Description
| `clock-frequency` | Integer | Clock feeding the IP block in Hz.
3+| _A value of zero will preclude the ability to set the baud rate, or
to configure a disabled device._
| `reg-offset` | Integer | Offset to apply to the register map base address from the start of the registers.
| `reg-shift` | Integer | Quantity to shift the register offsets by.
| `reg-io-width` | Integer | The size (in bytes) of the register accesses that should be performed on the device.
3+| _1, 2, 4 or 8._
| `rx-fifo-size` | Integer | The receive FIFO size (in bytes).
| `fifo-size` | Integer | The FIFO size (in bytes).
|===

0 comments on commit 19e5f9b

Please sign in to comment.