Skip to content

serial: 8250_aspeed_vuart: generalized DT properties

Zev Weiss linux-arm-kernel linux-aspeed linux-devicetree linux-serial lkml openbmc 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest4 patches 2 repliesIn review
  2. v54 patches 7 repliesSuperseded
  3. v44 patches 5 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v34 patches2 repliesSuperseded
v23 patches8 repliesSuperseded
v13 patches8 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: serial: 8250: deprecate aspeed,sirq-polarity-senseDocumentation/devicetree/bindings/serial/8250.yaml+1 -00 replies
2/4serial: 8250_aspeed_vuart: refactor sirq and lpc address setting codedrivers/tty/serial/8250/8250_aspeed_vuart.c+35 -160 replies
3/4serial: 8250_aspeed_vuart: add aspeed,lpc-io-reg and aspeed,lpc-interrupts DT propertiesdrivers/tty/serial/8250/8250_aspeed_vuart.c+49 -22 replies
4/4dt-bindings: serial: 8250: add aspeed,lpc-io-reg and aspeed,lpc-interruptsDocumentation/devicetree/bindings/serial/8250.yaml+24 -30 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchJoel StanleyRob HerringAndrew Jeffery
1/4R-b A-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v6 thread

Cover letter [PATCH v6 0/4] serial: 8250_aspeed_vuart: generalized DT properties

This series generalizes the aspeed-vuart driver's device tree properties to cover all the attributes it currently exposes via sysfs.

The aspeed,sirq-polarity-sense property was a bit of a design mistake in that it ties Aspeed VUART SIRQ polarity to SCU register bits that aren't really inherently related to it; the first patch in this series deprecates it (though we hope to eventually remove it).

The rest of the series adds two new properties, aspeed,lpc-io-reg and aspeed,lpc-interrupts. The latter allows describing the SIRQ polarity (along with the interrupt number) directly, providing a simpler replacement for aspeed,sirq-polarity-sense.

Changes since v5 [4]:
- corrected stale DT property name in commit message
- factored aspeed_vuart_map_irq_polarity() out of aspeed_vuart_probe()
- fixed commit message subject line prefixes

Changes since v4 [3]:
- fixed commit reference formatting in commit message

Changes since v3 [2]:
- renamed properties to match aspeed,ast2400-kcs-bmc

Changes since v2 [0]:
- expanded to also handle sirq number and lpc address in addition to sirq polarity
- added default settings if DT properties not specified
- refactored existing sysfs code slightly, adding range checks
- cleaned up 'make dt_binding_check' warnings

Changes since v1 [1]:
- deprecate and retain aspeed,sirq-polarity-sense instead of removing it
- drop e3c246d4i dts addition from this series

[0] https://lore.kernel.org/openbmc/20210401005702.28271-1-zev at bewilderbeest.net/
[1] https://lore.kernel.org/openbmc/20210330002338.335-1-zev at bewilderbeest.net/
[2] https://lore.kernel.org/openbmc/20210402004716.15961-1-zev at bewilderbeest.net/
[3] https://lore.kernel.org/openbmc/20210402182724.20848-1-zev at bewilderbeest.net/
[4] https://lore.kernel.org/openbmc/20210408011637.5361-1-zev at bewilderbeest.net/

Zev Weiss (4):
dt-bindings: serial: 8250: deprecate aspeed,sirq-polarity-sense
serial: 8250_aspeed_vuart: refactor sirq and lpc address setting code
serial: 8250_aspeed_vuart: add aspeed,lpc-io-reg and
aspeed,lpc-interrupts DT properties
dt-bindings: serial: 8250: add aspeed,lpc-io-reg and
aspeed,lpc-interrupts

 .../devicetree/bindings/serial/8250.yaml      |  28 ++++-
 drivers/tty/serial/8250/8250_aspeed_vuart.c   | 102 ++++++++++++++----
 2 files changed, 109 insertions(+), 21 deletions(-)
Signature · 1 line
2.31.1