All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-21 12:13 ` Rafał Miłecki
  0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-21 12:13 UTC (permalink / raw)
  To: Florian Fainelli, William Zhang, Anand Gore, Kursad Oney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

It's an UART controller that first appeared on BCM63138 SoC and then was
reused on other bcmbca familiy chipsets.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 .../serial/brcm,bcm63138-hs-uart.yaml         | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml

diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
new file mode 100644
index 000000000000..91a7e945be39
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/brcm,bcm63138-hs-uart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom's BCM63138 High Speed UART
+
+description:
+  High speed serial port controller that was designed to handle Bluetooth
+  devices communication. It supports sending custom frames that need to be
+  processed by a host system.
+
+maintainers:
+  - Rafał Miłecki <rafal@milecki.pl>
+
+allOf:
+  - $ref: serial.yaml#
+
+properties:
+  compatible:
+    const: brcm,bcm63138-hs-uart
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    serial@fffec400 {
+        compatible = "brcm,bcm63138-hs-uart";
+        reg = <0xfffec400 0x1e0>;
+        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+    };
-- 
2.35.3


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

* [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-21 12:13 ` Rafał Miłecki
  0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-21 12:13 UTC (permalink / raw)
  To: Florian Fainelli, William Zhang, Anand Gore, Kursad Oney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

It's an UART controller that first appeared on BCM63138 SoC and then was
reused on other bcmbca familiy chipsets.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 .../serial/brcm,bcm63138-hs-uart.yaml         | 44 +++++++++++++++++++
 1 file changed, 44 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml

diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
new file mode 100644
index 000000000000..91a7e945be39
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/brcm,bcm63138-hs-uart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Broadcom's BCM63138 High Speed UART
+
+description:
+  High speed serial port controller that was designed to handle Bluetooth
+  devices communication. It supports sending custom frames that need to be
+  processed by a host system.
+
+maintainers:
+  - Rafał Miłecki <rafal@milecki.pl>
+
+allOf:
+  - $ref: serial.yaml#
+
+properties:
+  compatible:
+    const: brcm,bcm63138-hs-uart
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - reg
+  - interrupts
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+    serial@fffec400 {
+        compatible = "brcm,bcm63138-hs-uart";
+        reg = <0xfffec400 0x1e0>;
+        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+    };
-- 
2.35.3


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 2/2] ARM: dts: broadcom: Add BCM63138's high speed UART
  2023-11-21 12:13 ` Rafał Miłecki
@ 2023-11-21 12:13   ` Rafał Miłecki
  -1 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-21 12:13 UTC (permalink / raw)
  To: Florian Fainelli, William Zhang, Anand Gore, Kursad Oney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

It's designed for hardwiring Bluetooth devices to it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 arch/arm/boot/dts/broadcom/bcm63138.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
index 93281c47c9ba..bf0538896f0e 100644
--- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
@@ -232,6 +232,12 @@ nand_controller: nand-controller@2000 {
 			interrupt-names = "nand";
 		};
 
+		serial@4400 {
+			compatible = "brcm,bcm63138-hs-uart";
+			reg = <0x4400 0x1e0>;
+			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		bootlut: bootlut@8000 {
 			compatible = "brcm,bcm63138-bootlut";
 			reg = <0x8000 0x50>;
-- 
2.35.3


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

* [PATCH 2/2] ARM: dts: broadcom: Add BCM63138's high speed UART
@ 2023-11-21 12:13   ` Rafał Miłecki
  0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-21 12:13 UTC (permalink / raw)
  To: Florian Fainelli, William Zhang, Anand Gore, Kursad Oney,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

From: Rafał Miłecki <rafal@milecki.pl>

It's designed for hardwiring Bluetooth devices to it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
---
 arch/arm/boot/dts/broadcom/bcm63138.dtsi | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boot/dts/broadcom/bcm63138.dtsi b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
index 93281c47c9ba..bf0538896f0e 100644
--- a/arch/arm/boot/dts/broadcom/bcm63138.dtsi
+++ b/arch/arm/boot/dts/broadcom/bcm63138.dtsi
@@ -232,6 +232,12 @@ nand_controller: nand-controller@2000 {
 			interrupt-names = "nand";
 		};
 
+		serial@4400 {
+			compatible = "brcm,bcm63138-hs-uart";
+			reg = <0x4400 0x1e0>;
+			interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
+		};
+
 		bootlut: bootlut@8000 {
 			compatible = "brcm,bcm63138-bootlut";
 			reg = <0x8000 0x50>;
-- 
2.35.3


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
  2023-11-21 12:13 ` Rafał Miłecki
@ 2023-11-21 18:57   ` William Zhang
  -1 siblings, 0 replies; 12+ messages in thread
From: William Zhang @ 2023-11-21 18:57 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, Anand Gore,
	Kursad Oney, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki, farhan.ali

[-- Attachment #1: Type: text/plain, Size: 2152 bytes --]

Hi Rafal,

This same HS UART exists on all the bcmbca SoCs that listed in
brcm,bcmbca.yaml.  I suggest to use bcmbca for all instead of naming
based on each individual chip. This will be consistent with spi, nand
and other common periph blocks used in bcmbca SoCs.

Thanks,
William
On 11/21/2023 04:13 AM, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> It's an UART controller that first appeared on BCM63138 SoC and then was
> reused on other bcmbca familiy chipsets.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> ---
>   .../serial/brcm,bcm63138-hs-uart.yaml         | 44 +++++++++++++++++++
>   1 file changed, 44 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> 
> diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> new file mode 100644
> index 000000000000..91a7e945be39
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/brcm,bcm63138-hs-uart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom's BCM63138 High Speed UART
> +
> +description:
> +  High speed serial port controller that was designed to handle Bluetooth
> +  devices communication. It supports sending custom frames that need to be
> +  processed by a host system.
> +
> +maintainers:
> +  - Rafał Miłecki <rafal@milecki.pl>
> +
> +allOf:
> +  - $ref: serial.yaml#
> +
> +properties:
> +  compatible:
> +    const: brcm,bcm63138-hs-uart
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:
> +  - reg
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +    serial@fffec400 {
> +        compatible = "brcm,bcm63138-hs-uart";
> +        reg = <0xfffec400 0x1e0>;
> +        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
> +    };
> 

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-21 18:57   ` William Zhang
  0 siblings, 0 replies; 12+ messages in thread
From: William Zhang @ 2023-11-21 18:57 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, Anand Gore,
	Kursad Oney, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki, farhan.ali


[-- Attachment #1.1: Type: text/plain, Size: 2152 bytes --]

Hi Rafal,

This same HS UART exists on all the bcmbca SoCs that listed in
brcm,bcmbca.yaml.  I suggest to use bcmbca for all instead of naming
based on each individual chip. This will be consistent with spi, nand
and other common periph blocks used in bcmbca SoCs.

Thanks,
William
On 11/21/2023 04:13 AM, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 
> It's an UART controller that first appeared on BCM63138 SoC and then was
> reused on other bcmbca familiy chipsets.
> 
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
> ---
>   .../serial/brcm,bcm63138-hs-uart.yaml         | 44 +++++++++++++++++++
>   1 file changed, 44 insertions(+)
>   create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> 
> diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> new file mode 100644
> index 000000000000..91a7e945be39
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/serial/brcm,bcm63138-hs-uart.yaml
> @@ -0,0 +1,44 @@
> +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/serial/brcm,bcm63138-hs-uart.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Broadcom's BCM63138 High Speed UART
> +
> +description:
> +  High speed serial port controller that was designed to handle Bluetooth
> +  devices communication. It supports sending custom frames that need to be
> +  processed by a host system.
> +
> +maintainers:
> +  - Rafał Miłecki <rafal@milecki.pl>
> +
> +allOf:
> +  - $ref: serial.yaml#
> +
> +properties:
> +  compatible:
> +    const: brcm,bcm63138-hs-uart
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:
> +  - reg
> +  - interrupts
> +
> +unevaluatedProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/arm-gic.h>
> +
> +    serial@fffec400 {
> +        compatible = "brcm,bcm63138-hs-uart";
> +        reg = <0xfffec400 0x1e0>;
> +        interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
> +    };
> 

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4212 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
  2023-11-21 12:13 ` Rafał Miłecki
@ 2023-11-21 22:38   ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-21 22:38 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, William Zhang,
	Anand Gore, Kursad Oney, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 21/11/2023 13:13, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 

Thank you for your patch. There is something to discuss/improve.

> +
> +properties:
> +  compatible:
> +    const: brcm,bcm63138-hs-uart
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:

Missing compatible.


Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-21 22:38   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-21 22:38 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, William Zhang,
	Anand Gore, Kursad Oney, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 21/11/2023 13:13, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
> 

Thank you for your patch. There is something to discuss/improve.

> +
> +properties:
> +  compatible:
> +    const: brcm,bcm63138-hs-uart
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +required:

Missing compatible.


Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
  2023-11-21 22:38   ` Krzysztof Kozlowski
@ 2023-11-22  6:17     ` Rafał Miłecki
  -1 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-22  6:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Florian Fainelli, William Zhang, Anand Gore,
	Kursad Oney, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 21.11.2023 23:38, Krzysztof Kozlowski wrote:
> On 21/11/2023 13:13, Rafał Miłecki wrote:
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
> 
> Thank you for your patch. There is something to discuss/improve.
> 
>> +
>> +properties:
>> +  compatible:
>> +    const: brcm,bcm63138-hs-uart
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +required:
> 
> Missing compatible.

I stopped putting "compatible" in "required" in schemas back in 2020 :O

Back then I received a comment from Rob [0] in discussion on
[PATCH] dt-bindings: mtd: convert "fixed-partitions" to the json-schema
telling to drop it:

On 10.12.2020 03:48, Rob Herring wrote:
 > And drop 'compatible' as required. It's redundant anyways because the
 > schema will only be applied if compatible matches.

So I'll need some help here please. Should I start including
"compatible" in "required" after all? Or is that situation specific
(could you explain what does it depend on)?

[0] https://lore.kernel.org/linux-devicetree/20201210024840.GA1510718@robh.at.kernel.org/

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-22  6:17     ` Rafał Miłecki
  0 siblings, 0 replies; 12+ messages in thread
From: Rafał Miłecki @ 2023-11-22  6:17 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Florian Fainelli, William Zhang, Anand Gore,
	Kursad Oney, Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 21.11.2023 23:38, Krzysztof Kozlowski wrote:
> On 21/11/2023 13:13, Rafał Miłecki wrote:
>> From: Rafał Miłecki <rafal@milecki.pl>
>>
> 
> Thank you for your patch. There is something to discuss/improve.
> 
>> +
>> +properties:
>> +  compatible:
>> +    const: brcm,bcm63138-hs-uart
>> +
>> +  reg:
>> +    maxItems: 1
>> +
>> +  interrupts:
>> +    maxItems: 1
>> +
>> +required:
> 
> Missing compatible.

I stopped putting "compatible" in "required" in schemas back in 2020 :O

Back then I received a comment from Rob [0] in discussion on
[PATCH] dt-bindings: mtd: convert "fixed-partitions" to the json-schema
telling to drop it:

On 10.12.2020 03:48, Rob Herring wrote:
 > And drop 'compatible' as required. It's redundant anyways because the
 > schema will only be applied if compatible matches.

So I'll need some help here please. Should I start including
"compatible" in "required" after all? Or is that situation specific
(could you explain what does it depend on)?

[0] https://lore.kernel.org/linux-devicetree/20201210024840.GA1510718@robh.at.kernel.org/

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
  2023-11-22  6:17     ` Rafał Miłecki
@ 2023-11-22  7:34       ` Krzysztof Kozlowski
  -1 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-22  7:34 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, William Zhang,
	Anand Gore, Kursad Oney, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 22/11/2023 07:17, Rafał Miłecki wrote:
> On 21.11.2023 23:38, Krzysztof Kozlowski wrote:
>> On 21/11/2023 13:13, Rafał Miłecki wrote:
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>
>> Thank you for your patch. There is something to discuss/improve.
>>
>>> +
>>> +properties:
>>> +  compatible:
>>> +    const: brcm,bcm63138-hs-uart
>>> +
>>> +  reg:
>>> +    maxItems: 1
>>> +
>>> +  interrupts:
>>> +    maxItems: 1
>>> +
>>> +required:
>>
>> Missing compatible.
> 
> I stopped putting "compatible" in "required" in schemas back in 2020 :O
> 
> Back then I received a comment from Rob [0] in discussion on
> [PATCH] dt-bindings: mtd: convert "fixed-partitions" to the json-schema
> telling to drop it:
> 
> On 10.12.2020 03:48, Rob Herring wrote:
>  > And drop 'compatible' as required. It's redundant anyways because the
>  > schema will only be applied if compatible matches.
> 
> So I'll need some help here please. Should I start including
> "compatible" in "required" after all? Or is that situation specific
> (could you explain what does it depend on)?

Hm, it is redundant, true, although I always preferred it listed to be
explicit. But in such case no problem:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


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

* Re: [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART
@ 2023-11-22  7:34       ` Krzysztof Kozlowski
  0 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2023-11-22  7:34 UTC (permalink / raw)
  To: Rafał Miłecki, Florian Fainelli, William Zhang,
	Anand Gore, Kursad Oney, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley
  Cc: Greg Kroah-Hartman, Jiri Slaby, Andre Przywara, Alexandre TORGUE,
	Neil Armstrong, linux-serial, devicetree, linux-arm-kernel,
	bcm-kernel-feedback-list, Rafał Miłecki

On 22/11/2023 07:17, Rafał Miłecki wrote:
> On 21.11.2023 23:38, Krzysztof Kozlowski wrote:
>> On 21/11/2023 13:13, Rafał Miłecki wrote:
>>> From: Rafał Miłecki <rafal@milecki.pl>
>>>
>>
>> Thank you for your patch. There is something to discuss/improve.
>>
>>> +
>>> +properties:
>>> +  compatible:
>>> +    const: brcm,bcm63138-hs-uart
>>> +
>>> +  reg:
>>> +    maxItems: 1
>>> +
>>> +  interrupts:
>>> +    maxItems: 1
>>> +
>>> +required:
>>
>> Missing compatible.
> 
> I stopped putting "compatible" in "required" in schemas back in 2020 :O
> 
> Back then I received a comment from Rob [0] in discussion on
> [PATCH] dt-bindings: mtd: convert "fixed-partitions" to the json-schema
> telling to drop it:
> 
> On 10.12.2020 03:48, Rob Herring wrote:
>  > And drop 'compatible' as required. It's redundant anyways because the
>  > schema will only be applied if compatible matches.
> 
> So I'll need some help here please. Should I start including
> "compatible" in "required" after all? Or is that situation specific
> (could you explain what does it depend on)?

Hm, it is redundant, true, although I always preferred it listed to be
explicit. But in such case no problem:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2023-11-22  7:35 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 12:13 [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART Rafał Miłecki
2023-11-21 12:13 ` Rafał Miłecki
2023-11-21 12:13 ` [PATCH 2/2] ARM: dts: broadcom: Add BCM63138's high speed UART Rafał Miłecki
2023-11-21 12:13   ` Rafał Miłecki
2023-11-21 18:57 ` [PATCH 1/2] dt-bindings: serial: add Broadcom's BCM63138 High Speed UART William Zhang
2023-11-21 18:57   ` William Zhang
2023-11-21 22:38 ` Krzysztof Kozlowski
2023-11-21 22:38   ` Krzysztof Kozlowski
2023-11-22  6:17   ` Rafał Miłecki
2023-11-22  6:17     ` Rafał Miłecki
2023-11-22  7:34     ` Krzysztof Kozlowski
2023-11-22  7:34       ` Krzysztof Kozlowski

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.