Skip to content

Commit 9c37b09

Browse files
linuswdavem330
authored andcommitted
dt-bindings: net: Add bindings for IXP4xx V.35 WAN HSS
This adds device tree bindings for the IXP4xx V.35 WAN high speed serial (HSS) link. An example is added to the NPE example where the HSS appears as a child. Cc: [email protected] Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ef13683 commit 9c37b09

File tree

2 files changed

+135
-0
lines changed

2 files changed

+135
-0
lines changed

Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ properties:
3737
should be named with the instance number of the NPE engine used for
3838
the crypto engine.
3939

40+
"#address-cells":
41+
const: 1
42+
43+
"#size-cells":
44+
const: 0
45+
46+
patternProperties:
47+
hss@[0-9]+$:
48+
$ref: /schemas/net/intel,ixp4xx-hss.yaml#
49+
type: object
50+
description: Optional node for the High Speed Serial link (HSS), the
51+
node should be named with the instance number of the NPE engine
52+
used for the HSS.
53+
4054
required:
4155
- compatible
4256
- reg
@@ -45,9 +59,30 @@ additionalProperties: false
4559

4660
examples:
4761
- |
62+
#include <dt-bindings/gpio/gpio.h>
63+
4864
npe: npe@c8006000 {
4965
compatible = "intel,ixp4xx-network-processing-engine";
5066
reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>;
67+
#address-cells = <1>;
68+
#size-cells = <0>;
69+
70+
hss@0 {
71+
compatible = "intel,ixp4xx-hss";
72+
reg = <0>;
73+
intel,npe-handle = <&npe 0>;
74+
intel,queue-chl-rxtrig = <&qmgr 12>;
75+
intel,queue-chl-txready = <&qmgr 34>;
76+
intel,queue-pkt-rx = <&qmgr 13>;
77+
intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>;
78+
intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>;
79+
intel,queue-pkt-txdone = <&qmgr 22>;
80+
cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
81+
rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
82+
dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
83+
dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>;
84+
clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>;
85+
};
5186
5287
crypto {
5388
compatible = "intel,ixp4xx-crypto";
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
# Copyright 2021 Linaro Ltd.
3+
%YAML 1.2
4+
---
5+
$id: "http://devicetree.org/schemas/net/intel,ixp4xx-hss.yaml#"
6+
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7+
8+
title: Intel IXP4xx V.35 WAN High Speed Serial Link (HSS)
9+
10+
maintainers:
11+
- Linus Walleij <[email protected]>
12+
13+
description: |
14+
The Intel IXP4xx HSS makes use of the IXP4xx NPE (Network
15+
Processing Engine) and the IXP4xx Queue Manager to process
16+
V.35 Wideband Modem (WAN) links.
17+
18+
properties:
19+
compatible:
20+
const: intel,ixp4xx-hss
21+
22+
reg:
23+
maxItems: 1
24+
description: The HSS instance
25+
26+
intel,npe-handle:
27+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
28+
maxItems: 1
29+
description: phandle to the NPE this HSS instance is using
30+
and the instance to use in the second cell
31+
32+
intel,queue-chl-rxtrig:
33+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
34+
maxItems: 1
35+
description: phandle to the RX trigger queue on the NPE
36+
37+
intel,queue-chl-txready:
38+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
39+
maxItems: 1
40+
description: phandle to the TX ready queue on the NPE
41+
42+
intel,queue-pkt-rx:
43+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
44+
maxItems: 1
45+
description: phandle to the packet RX queue on the NPE
46+
47+
intel,queue-pkt-tx:
48+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
49+
maxItems: 4
50+
description: phandle to the packet TX0, TX1, TX2 and TX3 queues on the NPE
51+
52+
intel,queue-pkt-rxfree:
53+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
54+
maxItems: 4
55+
description: phandle to the packet RXFREE0, RXFREE1, RXFREE2 and
56+
RXFREE3 queues on the NPE
57+
58+
intel,queue-pkt-txdone:
59+
$ref: '/schemas/types.yaml#/definitions/phandle-array'
60+
maxItems: 1
61+
description: phandle to the packet TXDONE queue on the NPE
62+
63+
cts-gpios:
64+
maxItems: 1
65+
description: Clear To Send (CTS) GPIO line
66+
67+
rts-gpios:
68+
maxItems: 1
69+
description: Ready To Send (RTS) GPIO line
70+
71+
dcd-gpios:
72+
maxItems: 1
73+
description: Data Carrier Detect (DCD) GPIO line
74+
75+
dtr-gpios:
76+
maxItems: 1
77+
description: Data Terminal Ready (DTR) GPIO line
78+
79+
clk-internal-gpios:
80+
maxItems: 1
81+
description: Clock internal GPIO line, driving this high will make the HSS
82+
use internal clocking as opposed to external clocking
83+
84+
required:
85+
- compatible
86+
- reg
87+
- intel,npe-handle
88+
- intel,queue-chl-rxtrig
89+
- intel,queue-chl-txready
90+
- intel,queue-pkt-rx
91+
- intel,queue-pkt-tx
92+
- intel,queue-pkt-rxfree
93+
- intel,queue-pkt-txdone
94+
- cts-gpios
95+
- rts-gpios
96+
- dcd-gpios
97+
- dtr-gpios
98+
- clk-internal-gpios
99+
100+
additionalProperties: false

0 commit comments

Comments
 (0)