Add dt-bindings document for Video Capture/Differentiation Engine (VCD) and Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs.
Unified · Split
| @@ -0,0 +1,43 @@ | ||
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | |
| 2 | +%YAML 1.2 | |
| 3 | +--- | |
| 4 | +$id: http://devicetree.org/schemas/media/nuvoton,npcm-ece.yaml# | |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# | |
| 6 | + | |
| 7 | +title: Nuvoton NPCM Encoding Compression Engine | |
| 8 | + | |
| 9 | +maintainers: | |
| 10 | + - Joseph Liu <kwliu@nuvoton.com> | |
| 11 | + - Marvin Lin <kflin@nuvoton.com> | |
| 12 | + | |
| 13 | +description: | | |
| 14 | + Video Encoding Compression Engine (ECE) present on Nuvoton NPCM SoCs. | |
| 15 | + | |
| 16 | +properties: | |
| 17 | + compatible: | |
| 18 | + enum: | |
| 19 | + - nuvoton,npcm750-ece | |
| 20 | + - nuvoton,npcm845-ece | |
| 21 | + | |
| 22 | + reg: | |
| 23 | + maxItems: 1 | |
| 24 | + | |
| 25 | + resets: | |
| 26 | + maxItems: 1 | |
| 27 | + | |
| 28 | +required: | |
| 29 | + - compatible | |
| 30 | + - reg | |
| 31 | + - resets | |
| 32 | + | |
| 33 | +additionalProperties: false | |
| 34 | + | |
| 35 | +examples: | |
| 36 | + - | | |
| 37 | + #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h> | |
| 38 | + | |
| 39 | + ece: video-codec@f0820000 { | |
| 40 | + compatible = "nuvoton,npcm750-ece"; | |
| 41 | + reg = <0xf0820000 0x2000>; | |
| 42 | + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_ECE>; | |
| 43 | + }; | |
| @@ -0,0 +1,72 @@ | ||
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | |
| 2 | +%YAML 1.2 | |
| 3 | +--- | |
| 4 | +$id: http://devicetree.org/schemas/media/nuvoton,npcm-vcd.yaml# | |
| 5 | +$schema: http://devicetree.org/meta-schemas/core.yaml# | |
| 6 | + | |
| 7 | +title: Nuvoton NPCM Video Capture/Differentiation Engine | |
| 8 | + | |
| 9 | +maintainers: | |
| 10 | + - Joseph Liu <kwliu@nuvoton.com> | |
| 11 | + - Marvin Lin <kflin@nuvoton.com> | |
| 12 | + | |
| 13 | +description: | | |
| 14 | + Video Capture/Differentiation Engine (VCD) present on Nuvoton NPCM SoCs. | |
| 15 | + | |
| 16 | +properties: | |
| 17 | + compatible: | |
| 18 | + enum: | |
| 19 | + - nuvoton,npcm750-vcd | |
| 20 | + - nuvoton,npcm845-vcd | |
| 21 | + | |
| 22 | + reg: | |
| 23 | + maxItems: 1 | |
| 24 | + | |
| 25 | + interrupts: | |
| 26 | + maxItems: 1 | |
| 27 | + | |
| 28 | + resets: | |
| 29 | + maxItems: 1 | |
| 30 | + | |
| 31 | + nuvoton,sysgcr: | |
| 32 | + $ref: /schemas/types.yaml#/definitions/phandle | |
| 33 | + description: phandle to access GCR (Global Control Register) registers. | |
| 34 | + | |
| 35 | + nuvoton,sysgfxi: | |
| 36 | + $ref: /schemas/types.yaml#/definitions/phandle | |
| 37 | + description: phandle to access GFXI (Graphics Core Information) registers. | |
| 38 | + | |
| 39 | + nuvoton,ece: | |
| 40 | + $ref: /schemas/types.yaml#/definitions/phandle | |
| 41 | + description: phandle to access ECE (Encoding Compression Engine) registers. | |
| 42 | + | |
| 43 | + memory-region: | |
| 44 | + maxItems: 1 | |
| 45 | + description: | |
| 46 | + CMA pool to use for buffers allocation instead of the default CMA pool. | |
| 47 | + | |
| 48 | +required: | |
| 49 | + - compatible | |
| 50 | + - reg | |
| 51 | + - interrupts | |
| 52 | + - resets | |
| 53 | + - nuvoton,sysgcr | |
| 54 | + - nuvoton,sysgfxi | |
| 55 | + - nuvoton,ece | |
| 56 | + | |
| 57 | +additionalProperties: false | |
| 58 | + | |
| 59 | +examples: | |
| 60 | + - | | |
| 61 | + #include <dt-bindings/interrupt-controller/arm-gic.h> | |
| 62 | + #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h> | |
| 63 | + | |
| 64 | + vcd: vcd@f0810000 { | |
| 65 | + compatible = "nuvoton,npcm750-vcd"; | |
| 66 | + reg = <0xf0810000 0x10000>; | |
| 67 | + interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; | |
| 68 | + resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_VCD>; | |
| 69 | + nuvoton,sysgcr = <&gcr>; | |
| 70 | + nuvoton,sysgfxi = <&gfxi>; | |
| 71 | + nuvoton,ece = <&ece>; | |
| 72 | + }; | |