mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 16:54:21 +00:00 
			
		
		
		
	dt-bindings: crypto: Convert i.MX sahara to json-schema
Convert the i.MX sahara binding to DT schema format using json-schema. Signed-off-by: Anson Huang <Anson.Huang@nxp.com> Link: https://lore.kernel.org/r/1596595410-26921-3-git-send-email-Anson.Huang@nxp.com Signed-off-by: Rob Herring <robh@kernel.org>
This commit is contained in:
		
							parent
							
								
									921ab31087
								
							
						
					
					
						commit
						21d3aecc88
					
				
					 2 changed files with 37 additions and 15 deletions
				
			
		|  | @ -1,15 +0,0 @@ | ||||||
| Freescale SAHARA Cryptographic Accelerator included in some i.MX chips. |  | ||||||
| Currently only i.MX27 and i.MX53 are supported. |  | ||||||
| 
 |  | ||||||
| Required properties: |  | ||||||
| - compatible : Should be "fsl,<soc>-sahara" |  | ||||||
| - reg : Should contain SAHARA registers location and length |  | ||||||
| - interrupts : Should contain SAHARA interrupt number |  | ||||||
| 
 |  | ||||||
| Example: |  | ||||||
| 
 |  | ||||||
| sah: crypto@10025000 { |  | ||||||
| 	compatible = "fsl,imx27-sahara"; |  | ||||||
| 	reg = <	0x10025000 0x800>; |  | ||||||
| 	interrupts = <75>; |  | ||||||
| }; |  | ||||||
							
								
								
									
										37
									
								
								Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,37 @@ | ||||||
|  | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||||||
|  | %YAML 1.2 | ||||||
|  | --- | ||||||
|  | $id: http://devicetree.org/schemas/crypto/fsl-imx-sahara.yaml# | ||||||
|  | $schema: http://devicetree.org/meta-schemas/core.yaml# | ||||||
|  | 
 | ||||||
|  | title: Freescale SAHARA Cryptographic Accelerator included in some i.MX chips | ||||||
|  | 
 | ||||||
|  | maintainers: | ||||||
|  |   - Steffen Trumtrar <s.trumtrar@pengutronix.de> | ||||||
|  | 
 | ||||||
|  | properties: | ||||||
|  |   compatible: | ||||||
|  |     enum: | ||||||
|  |       - fsl,imx27-sahara | ||||||
|  |       - fsl,imx53-sahara | ||||||
|  | 
 | ||||||
|  |   reg: | ||||||
|  |     maxItems: 1 | ||||||
|  | 
 | ||||||
|  |   interrupts: | ||||||
|  |     maxItems: 1 | ||||||
|  | 
 | ||||||
|  | required: | ||||||
|  |   - compatible | ||||||
|  |   - reg | ||||||
|  |   - interrupts | ||||||
|  | 
 | ||||||
|  | additionalProperties: false | ||||||
|  | 
 | ||||||
|  | examples: | ||||||
|  |   - | | ||||||
|  |     crypto@10025000 { | ||||||
|  |         compatible = "fsl,imx27-sahara"; | ||||||
|  |         reg = < 0x10025000 0x800>; | ||||||
|  |         interrupts = <75>; | ||||||
|  |     }; | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Anson Huang
						Anson Huang