diff mbox series

[1/2] dt-bindings: soc: ti: am654-serdes-ctrl: Add simple-mfd to compatible items

Message ID 20240625164528.183107-1-afd@ti.com
State Not Applicable
Headers show
Series [1/2] dt-bindings: soc: ti: am654-serdes-ctrl: Add simple-mfd to compatible items | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied fail build log

Commit Message

Andrew Davis June 25, 2024, 4:45 p.m. UTC
This node contains a child which is only probed if simple-mfd is in the
compatible list. Add this here.

Signed-off-by: Andrew Davis <afd@ti.com>
---
 .../devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Andrew Davis June 25, 2024, 4:49 p.m. UTC | #1
On 6/25/24 11:45 AM, Andrew Davis wrote:
> This node contains a child which is only probed if simple-mfd is in the
> compatible list. Add this here.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---

This patch depends on https://www.spinics.net/lists/kernel/msg5253666.html

Andrew

>   .../devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml       | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
> index a10a3b89ae05e..94b36943a50ff 100644
> --- a/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
> +++ b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
> @@ -14,6 +14,7 @@ properties:
>       items:
>         - const: ti,am654-serdes-ctrl
>         - const: syscon
> +      - const: simple-mfd
>   
>     reg:
>       maxItems: 1
> @@ -31,7 +32,7 @@ additionalProperties: false
>   examples:
>     - |
>       clock@4080 {
> -        compatible = "ti,am654-serdes-ctrl", "syscon";
> +        compatible = "ti,am654-serdes-ctrl", "syscon", "simple-mfd";
>           reg = <0x4080 0x4>;
>   
>           mux-controller {
Jan Kiszka June 25, 2024, 7:46 p.m. UTC | #2
On 25.06.24 18:49, Andrew Davis wrote:
> On 6/25/24 11:45 AM, Andrew Davis wrote:
>> This node contains a child which is only probed if simple-mfd is in the
>> compatible list. Add this here.
>>
>> Signed-off-by: Andrew Davis <afd@ti.com>
>> ---
> 
> This patch depends on https://www.spinics.net/lists/kernel/msg5253666.html
> 

But is that patch already scheduled for 6.10 as well?

Jan
Jan Kiszka June 25, 2024, 9:53 p.m. UTC | #3
On 25.06.24 18:45, Andrew Davis wrote:
> The SerDes control nodes contain both a clock and clock mux, this is
> a simple MFD. Add this to the compatible string list.
> 
> Reported-by: Jan Kiszka <jan.kiszka@siemens.com>
> Fixes: da795dc4f2a0 ("arm64: dts: ti: k3-am65: Move SerDes mux nodes under the control node")
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> index 1af3dedde1f67..06ed74197f893 100644
> --- a/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am65-main.dtsi
> @@ -478,7 +478,7 @@ scm_conf: scm-conf@100000 {
>  		ranges = <0x0 0x0 0x00100000 0x1c000>;
>  
>  		serdes0_clk: clock@4080 {
> -			compatible = "ti,am654-serdes-ctrl", "syscon";
> +			compatible = "ti,am654-serdes-ctrl", "syscon", "simple-mfd";
>  			reg = <0x4080 0x4>;
>  
>  			serdes0_mux: mux-controller {
> @@ -489,7 +489,7 @@ serdes0_mux: mux-controller {
>  		};
>  
>  		serdes1_clk: clock@4090 {
> -			compatible = "ti,am654-serdes-ctrl", "syscon";
> +			compatible = "ti,am654-serdes-ctrl", "syscon", "simple-mfd";
>  			reg = <0x4090 0x4>;
>  
>  			serdes1_mux: mux-controller {

Tested-by: Jan Kiszka <jan.kiszka@siemens.com>

Was briefly nervous as the fix initially no longer worked. But I had
switched devices in the meantime, ending up on a SR1.0 variant. And for
that, we are still missing a PCI errata workaround from your SDK in
mainline...

Jan
Andrew Davis June 25, 2024, 10:23 p.m. UTC | #4
On 6/25/24 2:46 PM, Jan Kiszka wrote:
> On 25.06.24 18:49, Andrew Davis wrote:
>> On 6/25/24 11:45 AM, Andrew Davis wrote:
>>> This node contains a child which is only probed if simple-mfd is in the
>>> compatible list. Add this here.
>>>
>>> Signed-off-by: Andrew Davis <afd@ti.com>
>>> ---
>>
>> This patch depends on https://www.spinics.net/lists/kernel/msg5253666.html
>>
> 
> But is that patch already scheduled for 6.10 as well?

I don't think so.. But only [patch 2/2] from this series needs applied
back to 6.10 to fix the issue. This one [Patch 1/2] just removes a dts warning.

Andrew

> 
> Jan
>
Rob Herring June 28, 2024, 9:38 p.m. UTC | #5
On Tue, Jun 25, 2024 at 05:23:22PM -0500, Andrew Davis wrote:
> On 6/25/24 2:46 PM, Jan Kiszka wrote:
> > On 25.06.24 18:49, Andrew Davis wrote:
> > > On 6/25/24 11:45 AM, Andrew Davis wrote:
> > > > This node contains a child which is only probed if simple-mfd is in the
> > > > compatible list. Add this here.
> > > > 
> > > > Signed-off-by: Andrew Davis <afd@ti.com>
> > > > ---
> > > 
> > > This patch depends on https://www.spinics.net/lists/kernel/msg5253666.html
> > > 
> > 
> > But is that patch already scheduled for 6.10 as well?
> 
> I don't think so.. But only [patch 2/2] from this series needs applied
> back to 6.10 to fix the issue. This one [Patch 1/2] just removes a dts warning.

Both or none should be applied...

Rob
Rob Herring June 28, 2024, 9:39 p.m. UTC | #6
On Tue, 25 Jun 2024 11:45:27 -0500, Andrew Davis wrote:
> This node contains a child which is only probed if simple-mfd is in the
> compatible list. Add this here.
> 
> Signed-off-by: Andrew Davis <afd@ti.com>
> ---
>  .../devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml       | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Acked-by: Rob Herring (Arm) <robh@kernel.org>
Andrew Davis June 28, 2024, 11:06 p.m. UTC | #7
On 6/28/24 4:38 PM, Rob Herring wrote:
> On Tue, Jun 25, 2024 at 05:23:22PM -0500, Andrew Davis wrote:
>> On 6/25/24 2:46 PM, Jan Kiszka wrote:
>>> On 25.06.24 18:49, Andrew Davis wrote:
>>>> On 6/25/24 11:45 AM, Andrew Davis wrote:
>>>>> This node contains a child which is only probed if simple-mfd is in the
>>>>> compatible list. Add this here.
>>>>>
>>>>> Signed-off-by: Andrew Davis <afd@ti.com>
>>>>> ---
>>>>
>>>> This patch depends on https://www.spinics.net/lists/kernel/msg5253666.html
>>>>
>>>
>>> But is that patch already scheduled for 6.10 as well?
>>
>> I don't think so.. But only [patch 2/2] from this series needs applied
>> back to 6.10 to fix the issue. This one [Patch 1/2] just removes a dts warning.
> 
> Both or none should be applied...
> 

Both should be applied to master.

Only [2/2] is a fix that should then be backported to v6.10.x to fix an issue in v6.10.

[1/2] has a dependency on a patch that will not be in v6.10 so it cannot be backported,
but luckily [1/2] is just a fix for a DTB check warning. [2/2] doesn't depend on [1/2].
So no issue there, [2/2] should backport cleanly all by itself.

Andrew
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
index a10a3b89ae05e..94b36943a50ff 100644
--- a/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
+++ b/Documentation/devicetree/bindings/soc/ti/ti,am654-serdes-ctrl.yaml
@@ -14,6 +14,7 @@  properties:
     items:
       - const: ti,am654-serdes-ctrl
       - const: syscon
+      - const: simple-mfd
 
   reg:
     maxItems: 1
@@ -31,7 +32,7 @@  additionalProperties: false
 examples:
   - |
     clock@4080 {
-        compatible = "ti,am654-serdes-ctrl", "syscon";
+        compatible = "ti,am654-serdes-ctrl", "syscon", "simple-mfd";
         reg = <0x4080 0x4>;
 
         mux-controller {