Skip to content

Commit 845766b

Browse files
zevweissgregkh
authored andcommitted
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: Rob Herring <[email protected]> Signed-off-by: Zev Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ca03042 commit 845766b

File tree

1 file changed

+24
-3
lines changed
  • Documentation/devicetree/bindings/serial

1 file changed

+24
-3
lines changed

Documentation/devicetree/bindings/serial/8250.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ maintainers:
1212
allOf:
1313
- $ref: /schemas/serial.yaml#
1414
- if:
15-
required:
16-
- aspeed,sirq-polarity-sense
15+
anyOf:
16+
- required:
17+
- aspeed,lpc-io-reg
18+
- required:
19+
- aspeed,lpc-interrupts
20+
- required:
21+
- aspeed,sirq-polarity-sense
1722
then:
1823
properties:
1924
compatible:
@@ -191,6 +196,20 @@ properties:
191196
applicable to aspeed,ast2500-vuart.
192197
deprecated: true
193198

199+
aspeed,lpc-io-reg:
200+
$ref: '/schemas/types.yaml#/definitions/uint32'
201+
description: |
202+
The VUART LPC address. Only applicable to aspeed,ast2500-vuart.
203+
204+
aspeed,lpc-interrupts:
205+
$ref: "/schemas/types.yaml#/definitions/uint32-array"
206+
minItems: 2
207+
maxItems: 2
208+
description: |
209+
A 2-cell property describing the VUART SIRQ number and SIRQ
210+
polarity (IRQ_TYPE_LEVEL_LOW or IRQ_TYPE_LEVEL_HIGH). Only
211+
applicable to aspeed,ast2500-vuart.
212+
194213
required:
195214
- reg
196215
- interrupts
@@ -222,14 +241,16 @@ examples:
222241
};
223242
- |
224243
#include <dt-bindings/clock/aspeed-clock.h>
244+
#include <dt-bindings/interrupt-controller/irq.h>
225245
serial@1e787000 {
226246
compatible = "aspeed,ast2500-vuart";
227247
reg = <0x1e787000 0x40>;
228248
reg-shift = <2>;
229249
interrupts = <8>;
230250
clocks = <&syscon ASPEED_CLK_APB>;
231251
no-loopback-test;
232-
aspeed,sirq-polarity-sense = <&syscon 0x70 25>;
252+
aspeed,lpc-io-reg = <0x3f8>;
253+
aspeed,lpc-interrupts = <4 IRQ_TYPE_LEVEL_LOW>;
233254
};
234255
235256
...

0 commit comments

Comments
 (0)