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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: soc: fsl: cpm_qe: convert network.txt to yaml

Convert binding doc newwork.txt to yaml format.

HDLC part:
- Convert to "fsl,ucc-hdlc.yaml".
- Add missed reg and interrupt property.
- Update example to pass build.

ethernet part:
- Convert to net/fsl,cpm-enet.yaml
- Add 0x in example, which should be hex value
- Add ref to ethernet-controller.yaml

mdio part:
- Convert to net/fsl,cpm-mdio.yaml
- Add 0x in example, which should be hex value
- Add ref to mdio.yaml

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20240812165041.3815525-1-Frank.Li@nxp.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

authored by

Frank Li and committed by
Rob Herring (Arm)
ca35f283 3496d2d0

+254 -130
+59
Documentation/devicetree/bindings/net/fsl,cpm-enet.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/fsl,cpm-enet.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Network for cpm enet 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - enum: 16 + - fsl,cpm1-scc-enet 17 + - fsl,cpm2-scc-enet 18 + - fsl,cpm1-fec-enet 19 + - fsl,cpm2-fcc-enet 20 + - fsl,qe-enet 21 + - items: 22 + - enum: 23 + - fsl,mpc8272-fcc-enet 24 + - const: fsl,cpm2-fcc-enet 25 + 26 + reg: 27 + minItems: 1 28 + maxItems: 3 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + fsl,cpm-command: 34 + $ref: /schemas/types.yaml#/definitions/uint32 35 + description: cpm command 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - interrupts 41 + 42 + allOf: 43 + - $ref: ethernet-controller.yaml 44 + 45 + unevaluatedProperties: false 46 + 47 + examples: 48 + - | 49 + ethernet@11300 { 50 + compatible = "fsl,mpc8272-fcc-enet", 51 + "fsl,cpm2-fcc-enet"; 52 + reg = <0x11300 0x20 0x8400 0x100 0x11390 1>; 53 + local-mac-address = [ 00 00 00 00 00 00 ]; 54 + interrupts = <20 8>; 55 + interrupt-parent = <&pic>; 56 + phy-handle = <&phy0>; 57 + fsl,cpm-command = <0x12000300>; 58 + }; 59 +
+55
Documentation/devicetree/bindings/net/fsl,cpm-mdio.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/net/fsl,cpm-mdio.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale CPM MDIO Device 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + oneOf: 15 + - enum: 16 + - fsl,pq1-fec-mdio 17 + - fsl,cpm2-mdio-bitbang 18 + - items: 19 + - const: fsl,mpc8272ads-mdio-bitbang 20 + - const: fsl,mpc8272-mdio-bitbang 21 + - const: fsl,cpm2-mdio-bitbang 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + fsl,mdio-pin: 27 + $ref: /schemas/types.yaml#/definitions/uint32 28 + description: pin of port C controlling mdio data 29 + 30 + fsl,mdc-pin: 31 + $ref: /schemas/types.yaml#/definitions/uint32 32 + description: pin of port C controlling mdio clock 33 + 34 + required: 35 + - compatible 36 + - reg 37 + 38 + allOf: 39 + - $ref: mdio.yaml# 40 + 41 + unevaluatedProperties: false 42 + 43 + examples: 44 + - | 45 + mdio@10d40 { 46 + compatible = "fsl,mpc8272ads-mdio-bitbang", 47 + "fsl,mpc8272-mdio-bitbang", 48 + "fsl,cpm2-mdio-bitbang"; 49 + reg = <0x10d40 0x14>; 50 + #address-cells = <1>; 51 + #size-cells = <0>; 52 + fsl,mdio-pin = <12>; 53 + fsl,mdc-pin = <13>; 54 + }; 55 +
+140
Documentation/devicetree/bindings/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,ucc-hdlc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: High-Level Data Link Control(HDLC) 8 + 9 + description: HDLC part in Universal communication controllers (UCCs) 10 + 11 + maintainers: 12 + - Frank Li <Frank.Li@nxp.com> 13 + 14 + properties: 15 + compatible: 16 + const: fsl,ucc-hdlc 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + maxItems: 1 23 + 24 + cell-index: 25 + $ref: /schemas/types.yaml#/definitions/uint32 26 + 27 + rx-clock-name: 28 + $ref: /schemas/types.yaml#/definitions/string 29 + oneOf: 30 + - pattern: "^brg([0-9]|1[0-6])$" 31 + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" 32 + 33 + tx-clock-name: 34 + $ref: /schemas/types.yaml#/definitions/string 35 + oneOf: 36 + - pattern: "^brg([0-9]|1[0-6])$" 37 + - pattern: "^clk([0-9]|1[0-9]|2[0-4])$" 38 + 39 + fsl,tdm-interface: 40 + $ref: /schemas/types.yaml#/definitions/flag 41 + description: Specify that hdlc is based on tdm-interface 42 + 43 + fsl,rx-sync-clock: 44 + $ref: /schemas/types.yaml#/definitions/string 45 + description: rx-sync 46 + enum: 47 + - none 48 + - rsync_pin 49 + - brg9 50 + - brg10 51 + - brg11 52 + - brg13 53 + - brg14 54 + - brg15 55 + 56 + fsl,tx-sync-clock: 57 + $ref: /schemas/types.yaml#/definitions/string 58 + description: tx-sync 59 + enum: 60 + - none 61 + - tsync_pin 62 + - brg9 63 + - brg10 64 + - brg11 65 + - brg13 66 + - brg14 67 + - brg15 68 + 69 + fsl,tdm-framer-type: 70 + $ref: /schemas/types.yaml#/definitions/string 71 + description: required for tdm interface 72 + enum: [e1, t1] 73 + 74 + fsl,tdm-id: 75 + $ref: /schemas/types.yaml#/definitions/uint32 76 + description: number of TDM ID 77 + 78 + fsl,tx-timeslot-mask: 79 + $ref: /schemas/types.yaml#/definitions/uint32 80 + description: 81 + required for tdm interface. 82 + time slot mask for TDM operation. Indicates which time 83 + slots used for transmitting and receiving. 84 + 85 + fsl,rx-timeslot-mask: 86 + $ref: /schemas/types.yaml#/definitions/uint32 87 + description: 88 + required for tdm interface. 89 + time slot mask for TDM operation. Indicates which time 90 + slots used for transmitting and receiving. 91 + 92 + fsl,siram-entry-id: 93 + $ref: /schemas/types.yaml#/definitions/uint32 94 + description: 95 + required for tdm interface 96 + Must be 0,2,4...64. the number of TDM entry. 97 + 98 + fsl,tdm-internal-loopback: 99 + $ref: /schemas/types.yaml#/definitions/flag 100 + description: 101 + optional for tdm interface 102 + Internal loopback connecting on TDM layer. 103 + 104 + fsl,hmask: 105 + $ref: /schemas/types.yaml#/definitions/uint16 106 + description: | 107 + HDLC address recognition. Set to zero to disable 108 + address filtering of packets: 109 + fsl,hmask = /bits/ 16 <0x0000>; 110 + 111 + required: 112 + - compatible 113 + - reg 114 + 115 + additionalProperties: false 116 + 117 + examples: 118 + - | 119 + communication@2000 { 120 + compatible = "fsl,ucc-hdlc"; 121 + reg = <0x2000 0x200>; 122 + rx-clock-name = "clk8"; 123 + tx-clock-name = "clk9"; 124 + fsl,rx-sync-clock = "rsync_pin"; 125 + fsl,tx-sync-clock = "tsync_pin"; 126 + fsl,tx-timeslot-mask = <0xfffffffe>; 127 + fsl,rx-timeslot-mask = <0xfffffffe>; 128 + fsl,tdm-framer-type = "e1"; 129 + fsl,tdm-id = <0>; 130 + fsl,siram-entry-id = <0>; 131 + fsl,tdm-interface; 132 + }; 133 + 134 + - | 135 + communication@2000 { 136 + compatible = "fsl,ucc-hdlc"; 137 + reg = <0x2000 0x200>; 138 + rx-clock-name = "brg1"; 139 + tx-clock-name = "brg1"; 140 + };
-130
Documentation/devicetree/bindings/soc/fsl/cpm_qe/network.txt
··· 1 - * Network 2 - 3 - Currently defined compatibles: 4 - - fsl,cpm1-scc-enet 5 - - fsl,cpm2-scc-enet 6 - - fsl,cpm1-fec-enet 7 - - fsl,cpm2-fcc-enet (third resource is GFEMR) 8 - - fsl,qe-enet 9 - 10 - Example: 11 - 12 - ethernet@11300 { 13 - compatible = "fsl,mpc8272-fcc-enet", 14 - "fsl,cpm2-fcc-enet"; 15 - reg = <11300 20 8400 100 11390 1>; 16 - local-mac-address = [ 00 00 00 00 00 00 ]; 17 - interrupts = <20 8>; 18 - interrupt-parent = <&PIC>; 19 - phy-handle = <&PHY0>; 20 - fsl,cpm-command = <12000300>; 21 - }; 22 - 23 - * MDIO 24 - 25 - Currently defined compatibles: 26 - fsl,pq1-fec-mdio (reg is same as first resource of FEC device) 27 - fsl,cpm2-mdio-bitbang (reg is port C registers) 28 - 29 - Properties for fsl,cpm2-mdio-bitbang: 30 - fsl,mdio-pin : pin of port C controlling mdio data 31 - fsl,mdc-pin : pin of port C controlling mdio clock 32 - 33 - Example: 34 - mdio@10d40 { 35 - compatible = "fsl,mpc8272ads-mdio-bitbang", 36 - "fsl,mpc8272-mdio-bitbang", 37 - "fsl,cpm2-mdio-bitbang"; 38 - reg = <10d40 14>; 39 - #address-cells = <1>; 40 - #size-cells = <0>; 41 - fsl,mdio-pin = <12>; 42 - fsl,mdc-pin = <13>; 43 - }; 44 - 45 - * HDLC 46 - 47 - Currently defined compatibles: 48 - - fsl,ucc-hdlc 49 - 50 - Properties for fsl,ucc-hdlc: 51 - - rx-clock-name 52 - - tx-clock-name 53 - Usage: required 54 - Value type: <string> 55 - Definition : Must be "brg1"-"brg16" for internal clock source, 56 - Must be "clk1"-"clk24" for external clock source. 57 - 58 - - fsl,tdm-interface 59 - Usage: optional 60 - Value type: <empty> 61 - Definition : Specify that hdlc is based on tdm-interface 62 - 63 - The property below is dependent on fsl,tdm-interface: 64 - - fsl,rx-sync-clock 65 - Usage: required 66 - Value type: <string> 67 - Definition : Must be "none", "rsync_pin", "brg9-11" and "brg13-15". 68 - 69 - - fsl,tx-sync-clock 70 - Usage: required 71 - Value type: <string> 72 - Definition : Must be "none", "tsync_pin", "brg9-11" and "brg13-15". 73 - 74 - - fsl,tdm-framer-type 75 - Usage: required for tdm interface 76 - Value type: <string> 77 - Definition : "e1" or "t1".Now e1 and t1 are used, other framer types 78 - are not supported. 79 - 80 - - fsl,tdm-id 81 - Usage: required for tdm interface 82 - Value type: <u32> 83 - Definition : number of TDM ID 84 - 85 - - fsl,tx-timeslot-mask 86 - - fsl,rx-timeslot-mask 87 - Usage: required for tdm interface 88 - Value type: <u32> 89 - Definition : time slot mask for TDM operation. Indicates which time 90 - slots used for transmitting and receiving. 91 - 92 - - fsl,siram-entry-id 93 - Usage: required for tdm interface 94 - Value type: <u32> 95 - Definition : Must be 0,2,4...64. the number of TDM entry. 96 - 97 - - fsl,tdm-internal-loopback 98 - usage: optional for tdm interface 99 - value type: <empty> 100 - Definition : Internal loopback connecting on TDM layer. 101 - - fsl,hmask 102 - usage: optional 103 - Value type: <u16> 104 - Definition: HDLC address recognition. Set to zero to disable 105 - address filtering of packets: 106 - fsl,hmask = /bits/ 16 <0x0000>; 107 - 108 - Example for tdm interface: 109 - 110 - ucc@2000 { 111 - compatible = "fsl,ucc-hdlc"; 112 - rx-clock-name = "clk8"; 113 - tx-clock-name = "clk9"; 114 - fsl,rx-sync-clock = "rsync_pin"; 115 - fsl,tx-sync-clock = "tsync_pin"; 116 - fsl,tx-timeslot-mask = <0xfffffffe>; 117 - fsl,rx-timeslot-mask = <0xfffffffe>; 118 - fsl,tdm-framer-type = "e1"; 119 - fsl,tdm-id = <0>; 120 - fsl,siram-entry-id = <0>; 121 - fsl,tdm-interface; 122 - }; 123 - 124 - Example for hdlc without tdm interface: 125 - 126 - ucc@2000 { 127 - compatible = "fsl,ucc-hdlc"; 128 - rx-clock-name = "brg1"; 129 - tx-clock-name = "brg1"; 130 - };