Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Linus Walleij and committed by
David S. Miller
9c37b09d ef136837

+135
+35
Documentation/devicetree/bindings/firmware/intel,ixp4xx-network-processing-engine.yaml
··· 37 37 should be named with the instance number of the NPE engine used for 38 38 the crypto engine. 39 39 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 + 40 54 required: 41 55 - compatible 42 56 - reg ··· 59 45 60 46 examples: 61 47 - | 48 + #include <dt-bindings/gpio/gpio.h> 49 + 62 50 npe: npe@c8006000 { 63 51 compatible = "intel,ixp4xx-network-processing-engine"; 64 52 reg = <0xc8006000 0x1000>, <0xc8007000 0x1000>, <0xc8008000 0x1000>; 53 + #address-cells = <1>; 54 + #size-cells = <0>; 55 + 56 + hss@0 { 57 + compatible = "intel,ixp4xx-hss"; 58 + reg = <0>; 59 + intel,npe-handle = <&npe 0>; 60 + intel,queue-chl-rxtrig = <&qmgr 12>; 61 + intel,queue-chl-txready = <&qmgr 34>; 62 + intel,queue-pkt-rx = <&qmgr 13>; 63 + intel,queue-pkt-tx = <&qmgr 14>, <&qmgr 15>, <&qmgr 16>, <&qmgr 17>; 64 + intel,queue-pkt-rxfree = <&qmgr 18>, <&qmgr 19>, <&qmgr 20>, <&qmgr 21>; 65 + intel,queue-pkt-txdone = <&qmgr 22>; 66 + cts-gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 67 + rts-gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; 68 + dcd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 69 + dtr-gpios = <&gpio_74 2 GPIO_ACTIVE_LOW>; 70 + clk-internal-gpios = <&gpio_74 0 GPIO_ACTIVE_HIGH>; 71 + }; 65 72 66 73 crypto { 67 74 compatible = "intel,ixp4xx-crypto";
+100
Documentation/devicetree/bindings/net/intel,ixp4xx-hss.yaml
··· 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 <linus.walleij@linaro.org> 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