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

dt-bindings: ata: Convert i.MX sata to json-schema

Convert the i.MX sata binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1596611746-29155-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
5deac458 3a52d298

+83 -37
-37
Documentation/devicetree/bindings/ata/imx-sata.txt
··· 1 - * Freescale i.MX AHCI SATA Controller 2 - 3 - The Freescale i.MX SATA controller mostly conforms to the AHCI interface 4 - with some special extensions at integration level. 5 - 6 - Required properties: 7 - - compatible : should be one of the following: 8 - - "fsl,imx53-ahci" for i.MX53 SATA controller 9 - - "fsl,imx6q-ahci" for i.MX6Q SATA controller 10 - - "fsl,imx6qp-ahci" for i.MX6QP SATA controller 11 - - interrupts : interrupt mapping for SATA IRQ 12 - - reg : registers mapping 13 - - clocks : list of clock specifiers, must contain an entry for each 14 - required entry in clock-names 15 - - clock-names : should include "sata", "sata_ref" and "ahb" entries 16 - 17 - Optional properties: 18 - - fsl,transmit-level-mV : transmit voltage level, in millivolts. 19 - - fsl,transmit-boost-mdB : transmit boost level, in milli-decibels 20 - - fsl,transmit-atten-16ths : transmit attenuation, in 16ths 21 - - fsl,receive-eq-mdB : receive equalisation, in milli-decibels 22 - Please refer to the technical documentation or the driver source code 23 - for the list of legal values for these options. 24 - - fsl,no-spread-spectrum : disable spread-spectrum clocking on the SATA 25 - link. 26 - 27 - Examples: 28 - 29 - sata@2200000 { 30 - compatible = "fsl,imx6q-ahci"; 31 - reg = <0x02200000 0x4000>; 32 - interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; 33 - clocks = <&clks IMX6QDL_CLK_SATA>, 34 - <&clks IMX6QDL_CLK_SATA_REF_100M>, 35 - <&clks IMX6QDL_CLK_AHB>; 36 - clock-names = "sata", "sata_ref", "ahb"; 37 - };
+83
Documentation/devicetree/bindings/ata/imx-sata.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/ata/imx-sata.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale i.MX AHCI SATA Controller 8 + 9 + maintainers: 10 + - Shawn Guo <shawn.guo@linaro.org> 11 + 12 + description: | 13 + The Freescale i.MX SATA controller mostly conforms to the AHCI interface 14 + with some special extensions at integration level. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - fsl,imx53-ahci 20 + - fsl,imx6q-ahci 21 + - fsl,imx6qp-ahci 22 + 23 + reg: 24 + maxItems: 1 25 + 26 + interrupts: 27 + maxItems: 1 28 + 29 + clocks: 30 + items: 31 + - description: sata clock 32 + - description: sata reference clock 33 + - description: ahb clock 34 + 35 + clock-names: 36 + items: 37 + - const: sata 38 + - const: sata_ref 39 + - const: ahb 40 + 41 + fsl,transmit-level-mV: 42 + $ref: /schemas/types.yaml#/definitions/uint32 43 + description: transmit voltage level, in millivolts. 44 + 45 + fsl,transmit-boost-mdB: 46 + $ref: /schemas/types.yaml#/definitions/uint32 47 + description: transmit boost level, in milli-decibels. 48 + 49 + fsl,transmit-atten-16ths: 50 + $ref: /schemas/types.yaml#/definitions/uint32 51 + description: transmit attenuation, in 16ths. 52 + 53 + fsl,receive-eq-mdB: 54 + $ref: /schemas/types.yaml#/definitions/uint32 55 + description: receive equalisation, in milli-decibels. 56 + 57 + fsl,no-spread-spectrum: 58 + $ref: /schemas/types.yaml#/definitions/flag 59 + description: if present, disable spread-spectrum clocking on the SATA link. 60 + 61 + required: 62 + - compatible 63 + - reg 64 + - interrupts 65 + - clocks 66 + - clock-names 67 + 68 + additionalProperties: false 69 + 70 + examples: 71 + - | 72 + #include <dt-bindings/clock/imx6qdl-clock.h> 73 + #include <dt-bindings/interrupt-controller/arm-gic.h> 74 + 75 + sata@2200000 { 76 + compatible = "fsl,imx6q-ahci"; 77 + reg = <0x02200000 0x4000>; 78 + interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>; 79 + clocks = <&clks IMX6QDL_CLK_SATA>, 80 + <&clks IMX6QDL_CLK_SATA_REF_100M>, 81 + <&clks IMX6QDL_CLK_AHB>; 82 + clock-names = "sata", "sata_ref", "ahb"; 83 + };