Commit 845766b6 authored by Zev Weiss's avatar Zev Weiss Committed by Greg Kroah-Hartman

dt-bindings: serial: 8250: add aspeed, lpc-io-reg and aspeed, lpc-interrupts

These correspond to the existing lpc_address, sirq, and sirq_polarity
sysfs attributes; the second element of aspeed,lpc-interrupts provides
a replacement for the deprecated aspeed,sirq-polarity-sense property.
Reviewed-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarZev Weiss <zev@bewilderbeest.net>
Link: https://lore.kernel.org/r/20210412034712.16778-5-zev@bewilderbeest.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca03042f
...@@ -12,8 +12,13 @@ maintainers: ...@@ -12,8 +12,13 @@ maintainers:
allOf: allOf:
- $ref: /schemas/serial.yaml# - $ref: /schemas/serial.yaml#
- if: - if:
required: anyOf:
- aspeed,sirq-polarity-sense - required:
- aspeed,lpc-io-reg
- required:
- aspeed,lpc-interrupts
- required:
- aspeed,sirq-polarity-sense
then: then:
properties: properties:
compatible: compatible:
...@@ -191,6 +196,20 @@ properties: ...@@ -191,6 +196,20 @@ properties:
applicable to aspeed,ast2500-vuart. applicable to aspeed,ast2500-vuart.
deprecated: true deprecated: true
aspeed,lpc-io-reg:
$ref: '/schemas/types.yaml#/definitions/uint32'
description: |
The VUART LPC address. Only applicable to aspeed,ast2500-vuart.
aspeed,lpc-interrupts:
$ref: "/schemas/types.yaml#/definitions/uint32-array"
minItems: 2
maxItems: 2
description: |
A 2-cell property describing the VUART SIRQ number and SIRQ
polarity (IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_LEVEL_HIGH). Only
applicable to aspeed,ast2500-vuart.
required: required:
- reg - reg
- interrupts - interrupts
...@@ -222,6 +241,7 @@ examples: ...@@ -222,6 +241,7 @@ examples:
}; };
- | - |
#include <dt-bindings/clock/aspeed-clock.h> #include <dt-bindings/clock/aspeed-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>
serial@1e787000 { serial@1e787000 {
compatible = "aspeed,ast2500-vuart"; compatible = "aspeed,ast2500-vuart";
reg = <0x1e787000 0x40>; reg = <0x1e787000 0x40>;
...@@ -229,7 +249,8 @@ examples: ...@@ -229,7 +249,8 @@ examples:
interrupts = <8>; interrupts = <8>;
clocks = <&syscon ASPEED_CLK_APB>; clocks = <&syscon ASPEED_CLK_APB>;
no-loopback-test; no-loopback-test;
aspeed,sirq-polarity-sense = <&syscon 0x70 25>; aspeed,lpc-io-reg = <0x3f8>;
aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
}; };
... ...
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment