* [PATCH v2] dt-bindings: rtc: zynqmp: Add support for Versal/Versal NET SoCs
@ 2024-03-06 12:36 Michal Simek
2024-03-06 17:53 ` Conor Dooley
0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2024-03-06 12:36 UTC (permalink / raw)
To: linux-kernel, monstr, michal.simek, git
Cc: Alexandre Belloni, Conor Dooley, Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:REAL TIME CLOCK (RTC) SUBSYSTEM
Add support for Versal and Versal NET SoCs. Both of them should use the
same IP core but differences can be in integration part that's why create
separate compatible strings.
Also describe optional power-domains property. It is optional because power
domain doesn't need to be onwed by non secure firmware hence no access to
control it via any driver.
Signed-off-by: Michal Simek <michal.simek@amd.com>
---
Changes in v2:
- Change subject
- Add compatible string for versal and versal NET
- Update commit message to reflect why power domain is optional.
.../devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
index d1f5eb996dba..5652df8ec121 100644
--- a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
+++ b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
@@ -18,7 +18,10 @@ allOf:
properties:
compatible:
- const: xlnx,zynqmp-rtc
+ enum:
+ - xlnx,versal-rtc
+ - xlnx,versal-net-rtc
+ - xlnx,zynqmp-rtc
reg:
maxItems: 1
@@ -48,6 +51,9 @@ properties:
default: 0x198233
deprecated: true
+ power-domains:
+ maxItems: 1
+
required:
- compatible
- reg
--
2.36.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH v2] dt-bindings: rtc: zynqmp: Add support for Versal/Versal NET SoCs
2024-03-06 12:36 [PATCH v2] dt-bindings: rtc: zynqmp: Add support for Versal/Versal NET SoCs Michal Simek
@ 2024-03-06 17:53 ` Conor Dooley
2024-03-07 9:43 ` Michal Simek
0 siblings, 1 reply; 3+ messages in thread
From: Conor Dooley @ 2024-03-06 17:53 UTC (permalink / raw)
To: Michal Simek
Cc: linux-kernel, monstr, michal.simek, git, Alexandre Belloni,
Conor Dooley, Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:REAL TIME CLOCK (RTC) SUBSYSTEM
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
On Wed, Mar 06, 2024 at 01:36:34PM +0100, Michal Simek wrote:
> Add support for Versal and Versal NET SoCs. Both of them should use the
> same IP core but differences can be in integration part that's why create
> separate compatible strings.
>
> Also describe optional power-domains property. It is optional because power
> domain doesn't need to be onwed by non secure firmware hence no access to
> control it via any driver.
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
> Changes in v2:
> - Change subject
> - Add compatible string for versal and versal NET
> - Update commit message to reflect why power domain is optional.
>
> .../devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml | 8 +++++++-
> 1 file changed, 7 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
> index d1f5eb996dba..5652df8ec121 100644
> --- a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
> +++ b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
> @@ -18,7 +18,10 @@ allOf:
>
> properties:
> compatible:
> - const: xlnx,zynqmp-rtc
> + enum:
> + - xlnx,versal-rtc
> + - xlnx,versal-net-rtc
> + - xlnx,zynqmp-rtc
You sure chief? I don't see a driver patch alongside this adding these
new versal compatibles there, so should these versal compatibles not
fall back to the zynqmp one?
Thanks,
Conor.
>
> reg:
> maxItems: 1
> @@ -48,6 +51,9 @@ properties:
> default: 0x198233
> deprecated: true
>
> + power-domains:
> + maxItems: 1
> +
> required:
> - compatible
> - reg
> --
> 2.36.1
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v2] dt-bindings: rtc: zynqmp: Add support for Versal/Versal NET SoCs
2024-03-06 17:53 ` Conor Dooley
@ 2024-03-07 9:43 ` Michal Simek
0 siblings, 0 replies; 3+ messages in thread
From: Michal Simek @ 2024-03-07 9:43 UTC (permalink / raw)
To: Conor Dooley
Cc: linux-kernel, monstr, michal.simek, git, Alexandre Belloni,
Conor Dooley, Krzysztof Kozlowski, Rob Herring,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
moderated list:ARM/ZYNQ ARCHITECTURE,
open list:REAL TIME CLOCK (RTC) SUBSYSTEM
On 3/6/24 18:53, Conor Dooley wrote:
> On Wed, Mar 06, 2024 at 01:36:34PM +0100, Michal Simek wrote:
>> Add support for Versal and Versal NET SoCs. Both of them should use the
>> same IP core but differences can be in integration part that's why create
>> separate compatible strings.
>>
>> Also describe optional power-domains property. It is optional because power
>> domain doesn't need to be onwed by non secure firmware hence no access to
>> control it via any driver.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> Changes in v2:
>> - Change subject
>> - Add compatible string for versal and versal NET
>> - Update commit message to reflect why power domain is optional.
>>
>> .../devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml | 8 +++++++-
>> 1 file changed, 7 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
>> index d1f5eb996dba..5652df8ec121 100644
>> --- a/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
>> +++ b/Documentation/devicetree/bindings/rtc/xlnx,zynqmp-rtc.yaml
>> @@ -18,7 +18,10 @@ allOf:
>>
>> properties:
>> compatible:
>> - const: xlnx,zynqmp-rtc
>> + enum:
>> + - xlnx,versal-rtc
>> + - xlnx,versal-net-rtc
>> + - xlnx,zynqmp-rtc
>
> You sure chief? I don't see a driver patch alongside this adding these
> new versal compatibles there, so should these versal compatibles not
> fall back to the zynqmp one?
works for me too.
Thanks,
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-07 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-06 12:36 [PATCH v2] dt-bindings: rtc: zynqmp: Add support for Versal/Versal NET SoCs Michal Simek
2024-03-06 17:53 ` Conor Dooley
2024-03-07 9:43 ` Michal Simek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox