* [PATCH v3 1/2] dt-bindings: ufs: Add bindings for Cadence UFS
@ 2018-08-09 13:25 Janek Kotas
2018-08-13 17:37 ` Rob Herring
0 siblings, 1 reply; 3+ messages in thread
From: Janek Kotas @ 2018-08-09 13:25 UTC (permalink / raw)
To: robh+dt, mark.rutland, vinholikatti, jejb, martin.petersen
Cc: devicetree, linux-kernel, linux-scsi
This patch adds a DT binding documentation for
Cadence UFS Host Controller.
Signed-off-by: Jan Kotas <jank@cadence.com>
---
.../devicetree/bindings/ufs/cdns,ufshc.txt | 31 ++++++++++++++++++++++
1 file changed, 31 insertions(+)
create mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
new file mode 100644
index 00000000..a04a4989
--- /dev/null
+++ b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
@@ -0,0 +1,31 @@
+* Cadence Universal Flash Storage (UFS) Controller
+
+UFS nodes are defined to describe on-chip UFS host controllers.
+Each UFS controller instance should have its own node.
+Please see the ufshcd-pltfrm.txt for a list of all available properties.
+
+Required properties:
+- compatible : Compatible list, contains the following controller:
+ "cdns,ufshc"
+ complemented with the JEDEC version:
+ "jedec,ufs-2.0"
+
+- reg : Address and length of the UFS register set.
+- interrupts : One interrupt mapping.
+- freq-table-hz : Clock frequency table.
+ See the ufshcd-pltfrm.txt for details.
+- clocks : List of phandle and clock specifier pairs.
+- clock-names : List of clock input name strings sorted in the same
+ order as the clocks property. "core_clk" is mandatory.
+ Depending on a type of a PHY,
+ the "phy_clk" clock can also be added, if needed.
+
+Example:
+ ufs@fd030000 {
+ compatible = "cdns,ufshc", "jedec,ufs-2.0";
+ reg = <0xfd030000 0x10000>;
+ interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>;
+ freq-table-hz = <0 0>, <0 0>;
+ clocks = <&ufs_core_clk>, <&ufs_phy_clk>;
+ clock-names = "core_clk", "phy_clk";
+ };
--
2.15.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: ufs: Add bindings for Cadence UFS
2018-08-09 13:25 [PATCH v3 1/2] dt-bindings: ufs: Add bindings for Cadence UFS Janek Kotas
@ 2018-08-13 17:37 ` Rob Herring
2018-08-14 7:21 ` Janek Kotas
0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2018-08-13 17:37 UTC (permalink / raw)
To: Janek Kotas
Cc: mark.rutland, vinholikatti, jejb, martin.petersen, devicetree,
linux-kernel, linux-scsi
On Thu, Aug 09, 2018 at 01:25:15PM +0000, Janek Kotas wrote:
> This patch adds a DT binding documentation for
> Cadence UFS Host Controller.
>
> Signed-off-by: Jan Kotas <jank@cadence.com>
> ---
> .../devicetree/bindings/ufs/cdns,ufshc.txt | 31 ++++++++++++++++++++++
> 1 file changed, 31 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
>
> diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
> new file mode 100644
> index 00000000..a04a4989
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
> @@ -0,0 +1,31 @@
> +* Cadence Universal Flash Storage (UFS) Controller
> +
> +UFS nodes are defined to describe on-chip UFS host controllers.
> +Each UFS controller instance should have its own node.
> +Please see the ufshcd-pltfrm.txt for a list of all available properties.
> +
> +Required properties:
> +- compatible : Compatible list, contains the following controller:
> + "cdns,ufshc"
> + complemented with the JEDEC version:
> + "jedec,ufs-2.0"
> +
> +- reg : Address and length of the UFS register set.
> +- interrupts : One interrupt mapping.
> +- freq-table-hz : Clock frequency table.
> + See the ufshcd-pltfrm.txt for details.
> +- clocks : List of phandle and clock specifier pairs.
> +- clock-names : List of clock input name strings sorted in the same
> + order as the clocks property. "core_clk" is mandatory.
> + Depending on a type of a PHY,
> + the "phy_clk" clock can also be added, if needed.
Unfortunately, you went the wrong direction. The '_clk' part is
redundant. Just 'core' and 'phy'.
With that,
Reviewed-by: Rob Herring <robh@kernel.org>
> +
> +Example:
> + ufs@fd030000 {
> + compatible = "cdns,ufshc", "jedec,ufs-2.0";
> + reg = <0xfd030000 0x10000>;
> + interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>;
> + freq-table-hz = <0 0>, <0 0>;
> + clocks = <&ufs_core_clk>, <&ufs_phy_clk>;
> + clock-names = "core_clk", "phy_clk";
> + };
> --
> 2.15.0
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v3 1/2] dt-bindings: ufs: Add bindings for Cadence UFS
2018-08-13 17:37 ` Rob Herring
@ 2018-08-14 7:21 ` Janek Kotas
0 siblings, 0 replies; 3+ messages in thread
From: Janek Kotas @ 2018-08-14 7:21 UTC (permalink / raw)
To: Rob Herring
Cc: Janek Kotas, mark.rutland, vinholikatti, jejb, martin.petersen,
devicetree, linux-kernel, linux-scsi
> On 13 Aug 2018, at 19:37, Rob Herring <robh@kernel.org> wrote:
>
>
> On Thu, Aug 09, 2018 at 01:25:15PM +0000, Janek Kotas wrote:
>> This patch adds a DT binding documentation for
>> Cadence UFS Host Controller.
>>
>> Signed-off-by: Jan Kotas <jank@cadence.com>
>> ---
>> .../devicetree/bindings/ufs/cdns,ufshc.txt | 31 ++++++++++++++++++++++
>> 1 file changed, 31 insertions(+)
>> create mode 100644 Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
>>
>> diff --git a/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
>> new file mode 100644
>> index 00000000..a04a4989
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/ufs/cdns,ufshc.txt
>> @@ -0,0 +1,31 @@
>> +* Cadence Universal Flash Storage (UFS) Controller
>> +
>> +UFS nodes are defined to describe on-chip UFS host controllers.
>> +Each UFS controller instance should have its own node.
>> +Please see the ufshcd-pltfrm.txt for a list of all available properties.
>> +
>> +Required properties:
>> +- compatible : Compatible list, contains the following controller:
>> + "cdns,ufshc"
>> + complemented with the JEDEC version:
>> + "jedec,ufs-2.0"
>> +
>> +- reg : Address and length of the UFS register set.
>> +- interrupts : One interrupt mapping.
>> +- freq-table-hz : Clock frequency table.
>> + See the ufshcd-pltfrm.txt for details.
>> +- clocks : List of phandle and clock specifier pairs.
>> +- clock-names : List of clock input name strings sorted in the same
>> + order as the clocks property. "core_clk" is mandatory.
>> + Depending on a type of a PHY,
>> + the "phy_clk" clock can also be added, if needed.
>
> Unfortunately, you went the wrong direction. The '_clk' part is
> redundant. Just ‘core’ and 'phy'.
I understand, however the rest of the ufs framework uses the '_clk' suffix:
drivers/scsi/ufs/ufshcd.c:6999:
if (!IS_ERR_OR_NULL(clki->clk)) {
if (skip_ref_clk && !strcmp(clki->name, "ref_clk"))
continue;
I wanted it to be consistent, with the rest of the UFS drivers.
Regards,
Jan
> With that,
>
> Reviewed-by: Rob Herring <robh@kernel.org>
>
>> +
>> +Example:
>> + ufs@fd030000 {
>> + compatible = "cdns,ufshc", "jedec,ufs-2.0";
>> + reg = <0xfd030000 0x10000>;
>> + interrupts = <0 1 IRQ_TYPE_LEVEL_HIGH>;
>> + freq-table-hz = <0 0>, <0 0>;
>> + clocks = <&ufs_core_clk>, <&ufs_phy_clk>;
>> + clock-names = "core_clk", "phy_clk";
>> + };
>> --
>> 2.15.0
>>
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe devicetree" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at https://urldefense.proofpoint.com/v2/url?u=http-3A__vger.kernel.org_majordomo-2Dinfo.html&d=DwIBAg&c=aUq983L2pue2FqKFoP6PGHMJQyoJ7kl3s3GZ-_haXqY&r=g7GAQENVXx_RQdyXHInPMg&m=ecjmy2Uvl3hBpMuUQYFm4HSFwpZONkT2Qr8r--7g1w8&s=DbQRv1oGlru0wmHZJhFXzp7ywkGV895PPP_LAy-WBkM&e=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-14 7:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-09 13:25 [PATCH v3 1/2] dt-bindings: ufs: Add bindings for Cadence UFS Janek Kotas
2018-08-13 17:37 ` Rob Herring
2018-08-14 7:21 ` Janek Kotas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.