devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: serial: Describe ARM dcc interface
@ 2023-12-21 14:05 Michal Simek
  2023-12-21 21:11 ` Rob Herring
  2023-12-22  8:20 ` Krzysztof Kozlowski
  0 siblings, 2 replies; 5+ messages in thread
From: Michal Simek @ 2023-12-21 14:05 UTC (permalink / raw)
  To: linux-kernel, monstr, michal.simek, git
  Cc: Conor Dooley, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-serial

Debug Communication Channel (DCC) provides the way how to pass data between
target CPU and host via JTAG interface. Every CPU has own interface for
communication via dbgdtrtx_el0 and dbgdtrrx_el0 registers.

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

This communication interface is used for flash programming on Xilinx
SOCs from U-Boot.
https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/serial/arm_dcc.c

---
 .../devicetree/bindings/serial/arm,dcc.yaml   | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/arm,dcc.yaml

diff --git a/Documentation/devicetree/bindings/serial/arm,dcc.yaml b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
new file mode 100644
index 000000000000..fd0589356617
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/arm,dcc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: ARM DCC (Data communication channel) serial emulation
+
+maintainers:
+  - Michal Simek <michal.simek@amd.com>
+
+description: |
+  ARM DCC (Data communication channel) serial emulation interface available
+  via JTAG can be also used as one of serial line tightly coupled with every
+  ARM CPU available in the system.
+
+properties:
+  compatible:
+    const: arm,dcc
+
+required:
+  - compatible
+
+additionalProperties: false
+
+examples:
+  - |
+    serial {
+      compatible = "arm,dcc";
+    };
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] dt-bindings: serial: Describe ARM dcc interface
  2023-12-21 14:05 [PATCH] dt-bindings: serial: Describe ARM dcc interface Michal Simek
@ 2023-12-21 21:11 ` Rob Herring
  2023-12-22  8:20 ` Krzysztof Kozlowski
  1 sibling, 0 replies; 5+ messages in thread
From: Rob Herring @ 2023-12-21 21:11 UTC (permalink / raw)
  To: Michal Simek
  Cc: linux-kernel, michal.simek, Conor Dooley, Greg Kroah-Hartman,
	Jiri Slaby, linux-serial, monstr, Rob Herring, git, devicetree,
	Krzysztof Kozlowski


On Thu, 21 Dec 2023 15:05:09 +0100, Michal Simek wrote:
> Debug Communication Channel (DCC) provides the way how to pass data between
> target CPU and host via JTAG interface. Every CPU has own interface for
> communication via dbgdtrtx_el0 and dbgdtrrx_el0 registers.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
> This communication interface is used for flash programming on Xilinx
> SOCs from U-Boot.
> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/serial/arm_dcc.c
> 
> ---
>  .../devicetree/bindings/serial/arm,dcc.yaml   | 30 +++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/serial/arm,dcc.yaml
> 

Reviewed-by: Rob Herring <robh@kernel.org>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] dt-bindings: serial: Describe ARM dcc interface
  2023-12-21 14:05 [PATCH] dt-bindings: serial: Describe ARM dcc interface Michal Simek
  2023-12-21 21:11 ` Rob Herring
@ 2023-12-22  8:20 ` Krzysztof Kozlowski
  2024-01-02 15:32   ` Michal Simek
  1 sibling, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-22  8:20 UTC (permalink / raw)
  To: Michal Simek, linux-kernel, monstr, michal.simek, git
  Cc: Conor Dooley, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-serial

On 21/12/2023 15:05, Michal Simek wrote:
> Debug Communication Channel (DCC) provides the way how to pass data between
> target CPU and host via JTAG interface. Every CPU has own interface for
> communication via dbgdtrtx_el0 and dbgdtrrx_el0 registers.
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
> This communication interface is used for flash programming on Xilinx
> SOCs from U-Boot.
> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/serial/arm_dcc.c
> 
> ---
>  .../devicetree/bindings/serial/arm,dcc.yaml   | 30 +++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/serial/arm,dcc.yaml
> 
> diff --git a/Documentation/devicetree/bindings/serial/arm,dcc.yaml b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
> new file mode 100644
> index 000000000000..fd0589356617
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
> @@ -0,0 +1,30 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/arm,dcc.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: ARM DCC (Data communication channel) serial emulation
> +
> +maintainers:
> +  - Michal Simek <michal.simek@amd.com>
> +
> +description: |
> +  ARM DCC (Data communication channel) serial emulation interface available
> +  via JTAG can be also used as one of serial line tightly coupled with every
> +  ARM CPU available in the system.
> +
> +properties:
> +  compatible:
> +    const: arm,dcc
> +
> +required:
> +  - compatible

no allOf: with $ref to serial.yaml? Does it differ somehow?

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] dt-bindings: serial: Describe ARM dcc interface
  2023-12-22  8:20 ` Krzysztof Kozlowski
@ 2024-01-02 15:32   ` Michal Simek
  2024-01-03 20:22     ` Rob Herring
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2024-01-02 15:32 UTC (permalink / raw)
  To: Krzysztof Kozlowski, linux-kernel, monstr, michal.simek, git
  Cc: Conor Dooley, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
	Rob Herring, devicetree, linux-serial



On 12/22/23 09:20, Krzysztof Kozlowski wrote:
> On 21/12/2023 15:05, Michal Simek wrote:
>> Debug Communication Channel (DCC) provides the way how to pass data between
>> target CPU and host via JTAG interface. Every CPU has own interface for
>> communication via dbgdtrtx_el0 and dbgdtrrx_el0 registers.
>>
>> Signed-off-by: Michal Simek <michal.simek@amd.com>
>> ---
>>
>> This communication interface is used for flash programming on Xilinx
>> SOCs from U-Boot.
>> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/serial/arm_dcc.c
>>
>> ---
>>   .../devicetree/bindings/serial/arm,dcc.yaml   | 30 +++++++++++++++++++
>>   1 file changed, 30 insertions(+)
>>   create mode 100644 Documentation/devicetree/bindings/serial/arm,dcc.yaml
>>
>> diff --git a/Documentation/devicetree/bindings/serial/arm,dcc.yaml b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
>> new file mode 100644
>> index 000000000000..fd0589356617
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
>> @@ -0,0 +1,30 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/serial/arm,dcc.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: ARM DCC (Data communication channel) serial emulation
>> +
>> +maintainers:
>> +  - Michal Simek <michal.simek@amd.com>
>> +
>> +description: |
>> +  ARM DCC (Data communication channel) serial emulation interface available
>> +  via JTAG can be also used as one of serial line tightly coupled with every
>> +  ARM CPU available in the system.
>> +
>> +properties:
>> +  compatible:
>> +    const: arm,dcc
>> +
>> +required:
>> +  - compatible
> 
> no allOf: with $ref to serial.yaml? Does it differ somehow?

Valid one could be only nodename format and maybe label.
Others are not relevant. But if that's fine I can also add it.

Thanks,
Michal


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] dt-bindings: serial: Describe ARM dcc interface
  2024-01-02 15:32   ` Michal Simek
@ 2024-01-03 20:22     ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2024-01-03 20:22 UTC (permalink / raw)
  To: Michal Simek
  Cc: Krzysztof Kozlowski, linux-kernel, monstr, michal.simek, git,
	Conor Dooley, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
	devicetree, linux-serial

On Tue, Jan 2, 2024 at 8:32 AM Michal Simek <michal.simek@amd.com> wrote:
>
>
>
> On 12/22/23 09:20, Krzysztof Kozlowski wrote:
> > On 21/12/2023 15:05, Michal Simek wrote:
> >> Debug Communication Channel (DCC) provides the way how to pass data between
> >> target CPU and host via JTAG interface. Every CPU has own interface for
> >> communication via dbgdtrtx_el0 and dbgdtrrx_el0 registers.
> >>
> >> Signed-off-by: Michal Simek <michal.simek@amd.com>
> >> ---
> >>
> >> This communication interface is used for flash programming on Xilinx
> >> SOCs from U-Boot.
> >> https://source.denx.de/u-boot/u-boot/-/blob/master/drivers/serial/arm_dcc.c
> >>
> >> ---
> >>   .../devicetree/bindings/serial/arm,dcc.yaml   | 30 +++++++++++++++++++
> >>   1 file changed, 30 insertions(+)
> >>   create mode 100644 Documentation/devicetree/bindings/serial/arm,dcc.yaml
> >>
> >> diff --git a/Documentation/devicetree/bindings/serial/arm,dcc.yaml b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
> >> new file mode 100644
> >> index 000000000000..fd0589356617
> >> --- /dev/null
> >> +++ b/Documentation/devicetree/bindings/serial/arm,dcc.yaml
> >> @@ -0,0 +1,30 @@
> >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> >> +%YAML 1.2
> >> +---
> >> +$id: http://devicetree.org/schemas/serial/arm,dcc.yaml#
> >> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> >> +
> >> +title: ARM DCC (Data communication channel) serial emulation
> >> +
> >> +maintainers:
> >> +  - Michal Simek <michal.simek@amd.com>
> >> +
> >> +description: |
> >> +  ARM DCC (Data communication channel) serial emulation interface available
> >> +  via JTAG can be also used as one of serial line tightly coupled with every
> >> +  ARM CPU available in the system.
> >> +
> >> +properties:
> >> +  compatible:
> >> +    const: arm,dcc
> >> +
> >> +required:
> >> +  - compatible
> >
> > no allOf: with $ref to serial.yaml? Does it differ somehow?
>
> Valid one could be only nodename format and maybe label.
> Others are not relevant. But if that's fine I can also add it.

Yeah, I think serial.yaml mostly doesn't apply here. Not really worth
including for just the node name.

Greg may have already processed this, so you might want to resend. Or
wait a few days and I'll just apply it.

Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-01-03 20:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-21 14:05 [PATCH] dt-bindings: serial: Describe ARM dcc interface Michal Simek
2023-12-21 21:11 ` Rob Herring
2023-12-22  8:20 ` Krzysztof Kozlowski
2024-01-02 15:32   ` Michal Simek
2024-01-03 20:22     ` Rob Herring

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).