* [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property
[not found] ` <CGME20211007081135epcas2p2d577fc8dec75471cf42024eda6a45690@epcas2p2.samsung.com>
@ 2021-10-07 8:09 ` Chanho Park
2021-10-15 13:50 ` Rob Herring
0 siblings, 1 reply; 6+ messages in thread
From: Chanho Park @ 2021-10-07 8:09 UTC (permalink / raw)
To: Alim Akhtar, Avri Altman, James E . J . Bottomley,
Martin K . Petersen, Krzysztof Kozlowski
Cc: Bean Huo, Bart Van Assche, Adrian Hunter, Christoph Hellwig,
Can Guo, Jaegeuk Kim, Jaehoon Chung, Gyunghoon Kwon, Sowon Na,
linux-samsung-soc, linux-scsi, Chanho Park, Rob Herring,
devicetree
Add "samsung,sysreg" regmap and the offset to the ufs shareaibility
register for setting io coherency of the samsung ufs. "dma-coherent"
property is also required because the driver code needs to know.
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
.../devicetree/bindings/ufs/samsung,exynos-ufs.yaml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
index b9ca8ef4f2be..d9b7535b872f 100644
--- a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
@@ -54,6 +54,17 @@ properties:
phy-names:
const: ufs-phy
+ samsung,sysreg:
+ $ref: '/schemas/types.yaml#/definitions/phandle'
+ description: phandle for FSYSx sysreg interface, used to control
+ sysreg register bit for UFS IO Coherency
+
+ samsung,ufs-shareability-reg-offset:
+ $ref: '/schemas/types.yaml#/definitions/uint32'
+ description: Offset to the shareability register for io-coherency
+
+ dma-coherent: true
+
required:
- compatible
- reg
--
2.33.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v4 16/16] dt-bindings: ufs: exynos-ufs: add exynosautov9 compatible
[not found] ` <CGME20211007081135epcas2p37b429e366099fd28e517d3d354a848b8@epcas2p3.samsung.com>
@ 2021-10-07 8:09 ` Chanho Park
0 siblings, 0 replies; 6+ messages in thread
From: Chanho Park @ 2021-10-07 8:09 UTC (permalink / raw)
To: Alim Akhtar, Avri Altman, James E . J . Bottomley,
Martin K . Petersen, Krzysztof Kozlowski
Cc: Bean Huo, Bart Van Assche, Adrian Hunter, Christoph Hellwig,
Can Guo, Jaegeuk Kim, Jaehoon Chung, Gyunghoon Kwon, Sowon Na,
linux-samsung-soc, linux-scsi, Chanho Park, Rob Herring,
devicetree, Rob Herring
Below two compatibles can be used for exynosautov9 SoC UFS controller.
- samsung,exynosautov9-ufs: ExynosAutov9 UFS Physical Host
- samsung,exynosautov9-ufs-vh: ExynosAutov9 UFS Virtual Host
Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
index d9b7535b872f..d5cfd99f4337 100644
--- a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
+++ b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
@@ -20,6 +20,8 @@ properties:
compatible:
enum:
- samsung,exynos7-ufs
+ - samsung,exynosautov9-ufs
+ - samsung,exynosautov9-ufs-vh
reg:
items:
--
2.33.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property
2021-10-07 8:09 ` [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property Chanho Park
@ 2021-10-15 13:50 ` Rob Herring
2021-10-18 0:26 ` Chanho Park
2021-10-18 11:07 ` Chanho Park
0 siblings, 2 replies; 6+ messages in thread
From: Rob Herring @ 2021-10-15 13:50 UTC (permalink / raw)
To: Chanho Park
Cc: Alim Akhtar, Avri Altman, James E . J . Bottomley,
Martin K . Petersen, Krzysztof Kozlowski, Bean Huo,
Bart Van Assche, Adrian Hunter, Christoph Hellwig, Can Guo,
Jaegeuk Kim, Jaehoon Chung, Gyunghoon Kwon, Sowon Na,
linux-samsung-soc, linux-scsi, devicetree
On Thu, Oct 07, 2021 at 05:09:31PM +0900, Chanho Park wrote:
> Add "samsung,sysreg" regmap and the offset to the ufs shareaibility
> register for setting io coherency of the samsung ufs. "dma-coherent"
> property is also required because the driver code needs to know.
>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: devicetree@vger.kernel.org
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>
> ---
> .../devicetree/bindings/ufs/samsung,exynos-ufs.yaml | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
> index b9ca8ef4f2be..d9b7535b872f 100644
> --- a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
> +++ b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml
> @@ -54,6 +54,17 @@ properties:
> phy-names:
> const: ufs-phy
>
> + samsung,sysreg:
> + $ref: '/schemas/types.yaml#/definitions/phandle'
> + description: phandle for FSYSx sysreg interface, used to control
> + sysreg register bit for UFS IO Coherency
> +
> + samsung,ufs-shareability-reg-offset:
> + $ref: '/schemas/types.yaml#/definitions/uint32'
> + description: Offset to the shareability register for io-coherency
Make these a single property: <phandle offset>
> +
> + dma-coherent: true
> +
> required:
> - compatible
> - reg
> --
> 2.33.0
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property
2021-10-15 13:50 ` Rob Herring
@ 2021-10-18 0:26 ` Chanho Park
2021-10-18 13:23 ` Rob Herring
2021-10-18 11:07 ` Chanho Park
1 sibling, 1 reply; 6+ messages in thread
From: Chanho Park @ 2021-10-18 0:26 UTC (permalink / raw)
To: 'Rob Herring'
Cc: 'Alim Akhtar', 'Avri Altman',
'James E . J . Bottomley', 'Martin K . Petersen',
'Krzysztof Kozlowski', 'Bean Huo',
'Bart Van Assche', 'Adrian Hunter',
'Christoph Hellwig', 'Can Guo',
'Jaegeuk Kim', 'Jaehoon Chung',
'Gyunghoon Kwon', 'Sowon Na', linux-samsung-soc,
linux-scsi, devicetree
> > + samsung,sysreg:
> > + $ref: '/schemas/types.yaml#/definitions/phandle'
> > + description: phandle for FSYSx sysreg interface, used to control
> > + sysreg register bit for UFS IO Coherency
> > +
> > + samsung,ufs-shareability-reg-offset:
> > + $ref: '/schemas/types.yaml#/definitions/uint32'
> > + description: Offset to the shareability register for io-coherency
>
> Make these a single property: <phandle offset>
As I already mentioned previous e-mail [1], I need to support two ufs
instances for exynosauto v9 soc.
syscon_fsys2: syscon@17c20000 {
compatible = "samsung,exynosautov9-sysreg", "syscon";
reg = <0x17c20000 0x1000>;
};
ufs_0: ufs0@17e00000 {
<snip>
samsung,sysreg = <&syscon_fsys2>;
samsung,ufs-shareability-reg-offset = <0x710>;
};
To be added ufs_1 like below
ufs_1: ufs0@17f00000 {
<snip>
samsung,sysreg = <&syscon_fsys2>;
samsung,ufs-shareability-reg-offset = <0x714>;
};
[1]:
https://lore.kernel.org/linux-scsi/000901d7b0e0$e618b220$b24a1660$@samsung.c
om/
If you prefer them to be separated sysreg phandles which directly pointing
the register, I'm able to change it.
But, the syscon_fsys2 can be used for other IPs as well such as ethernet.
Best Regards,
Chanho Park
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property
2021-10-15 13:50 ` Rob Herring
2021-10-18 0:26 ` Chanho Park
@ 2021-10-18 11:07 ` Chanho Park
1 sibling, 0 replies; 6+ messages in thread
From: Chanho Park @ 2021-10-18 11:07 UTC (permalink / raw)
To: 'Rob Herring', 'Krzysztof Kozlowski'
Cc: 'Alim Akhtar', 'Avri Altman',
'James E . J . Bottomley', 'Martin K . Petersen',
'Bean Huo', 'Bart Van Assche',
'Adrian Hunter', 'Christoph Hellwig',
'Can Guo', 'Jaegeuk Kim', 'Jaehoon Chung',
'Gyunghoon Kwon', 'Sowon Na', linux-samsung-soc,
linux-scsi, devicetree
> > > + samsung,sysreg:
> > > + $ref: '/schemas/types.yaml#/definitions/phandle'
> > > + description: phandle for FSYSx sysreg interface, used to control
> > > + sysreg register bit for UFS IO Coherency
> > > +
> > > + samsung,ufs-shareability-reg-offset:
> > > + $ref: '/schemas/types.yaml#/definitions/uint32'
> > > + description: Offset to the shareability register for
> > > + io-coherency
> >
> > Make these a single property: <phandle offset>
>
> As I already mentioned previous e-mail [1], I need to support two ufs
> instances for exynosauto v9 soc.
>
> syscon_fsys2: syscon@17c20000 {
> compatible = "samsung,exynosautov9-sysreg", "syscon";
> reg = <0x17c20000 0x1000>;
> };
>
> ufs_0: ufs0@17e00000 {
> <snip>
> samsung,sysreg = <&syscon_fsys2>;
> samsung,ufs-shareability-reg-offset = <0x710>; };
>
> To be added ufs_1 like below
> ufs_1: ufs0@17f00000 {
> <snip>
> samsung,sysreg = <&syscon_fsys2>;
> samsung,ufs-shareability-reg-offset = <0x714>; };
>
> [1]: https://lore.kernel.org/linux-
> scsi/000901d7b0e0$e618b220$b24a1660$@samsung.com/
>
> If you prefer them to be separated sysreg phandles which directly pointing
> the register, I'm able to change it.
> But, the syscon_fsys2 can be used for other IPs as well such as ethernet.
Finally, I got your point. You want me to drop
"samsung,ufs-shareability-reg-offset" and put the offset like below.
ufs_0: ufs0@17e00000 {
<snip>
samsung,sysreg = <&syscon_fsys2 0x710>;
To be added ufs_1 like below
ufs_1: ufs0@17f00000 {
<snip>
samsung,sysreg = <&syscon_fsys2 0x714>;
I'll resend the patch with your suggestion.
Krzysztof, could you please hold below on? Or Do I need to make an
additional patch?
https://git.kernel.org/pub/scm/linux/kernel/git/krzk/linux.git/commit/?h=nex
t/dt64&id=31bbac5263aa63dfc8bfed2180bb6a5a3c531681
Best Regards,
Chanho Park
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property
2021-10-18 0:26 ` Chanho Park
@ 2021-10-18 13:23 ` Rob Herring
0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2021-10-18 13:23 UTC (permalink / raw)
To: Chanho Park
Cc: Alim Akhtar, Avri Altman, James E . J . Bottomley,
Martin K . Petersen, Krzysztof Kozlowski, Bean Huo,
Bart Van Assche, Adrian Hunter, Christoph Hellwig, Can Guo,
Jaegeuk Kim, Jaehoon Chung, Gyunghoon Kwon, Sowon Na,
linux-samsung-soc, SCSI, devicetree
On Sun, Oct 17, 2021 at 7:27 PM Chanho Park <chanho61.park@samsung.com> wrote:
>
> > > + samsung,sysreg:
> > > + $ref: '/schemas/types.yaml#/definitions/phandle'
> > > + description: phandle for FSYSx sysreg interface, used to control
> > > + sysreg register bit for UFS IO Coherency
> > > +
> > > + samsung,ufs-shareability-reg-offset:
> > > + $ref: '/schemas/types.yaml#/definitions/uint32'
> > > + description: Offset to the shareability register for io-coherency
> >
> > Make these a single property: <phandle offset>
>
> As I already mentioned previous e-mail [1], I need to support two ufs
> instances for exynosauto v9 soc.
Don't expect me to remember. That was 100s of reviews ago.
>
> syscon_fsys2: syscon@17c20000 {
> compatible = "samsung,exynosautov9-sysreg", "syscon";
> reg = <0x17c20000 0x1000>;
> };
>
> ufs_0: ufs0@17e00000 {
> <snip>
> samsung,sysreg = <&syscon_fsys2>;
> samsung,ufs-shareability-reg-offset = <0x710>;
samsung,ufs-shareability-reg = <&syscon_fsys2 0x710>;
> };
>
> To be added ufs_1 like below
> ufs_1: ufs0@17f00000 {
> <snip>
> samsung,sysreg = <&syscon_fsys2>;
> samsung,ufs-shareability-reg-offset = <0x714>;
samsung,ufs-shareability-reg = <&syscon_fsys2 0x714>;
I still don't see what's the problem?
> };
>
> [1]:
> https://lore.kernel.org/linux-scsi/000901d7b0e0$e618b220$b24a1660$@samsung.c
> om/
>
> If you prefer them to be separated sysreg phandles which directly pointing
> the register, I'm able to change it.
> But, the syscon_fsys2 can be used for other IPs as well such as ethernet.
>
> Best Regards,
> Chanho Park
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-10-18 13:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20211007080934.108804-1-chanho61.park@samsung.com>
[not found] ` <CGME20211007081135epcas2p2d577fc8dec75471cf42024eda6a45690@epcas2p2.samsung.com>
2021-10-07 8:09 ` [PATCH v4 13/16] dt-bindings: ufs: exynos-ufs: add io-coherency property Chanho Park
2021-10-15 13:50 ` Rob Herring
2021-10-18 0:26 ` Chanho Park
2021-10-18 13:23 ` Rob Herring
2021-10-18 11:07 ` Chanho Park
[not found] ` <CGME20211007081135epcas2p37b429e366099fd28e517d3d354a848b8@epcas2p3.samsung.com>
2021-10-07 8:09 ` [PATCH v4 16/16] dt-bindings: ufs: exynos-ufs: add exynosautov9 compatible Chanho Park
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).