* [PATCH v4] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema
@ 2024-04-25 16:25 Pratik Farkase
2024-04-25 16:33 ` Conor Dooley
0 siblings, 1 reply; 2+ messages in thread
From: Pratik Farkase @ 2024-04-25 16:25 UTC (permalink / raw)
Cc: Pratik Farkase, Florian Fainelli, Conor Dooley,
Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Broadcom internal kernel review list, Ray Jui,
Scott Branden, Pratik Farkase, Stefan Wahren, linux-kernel,
linux-serial, devicetree, linux-rpi-kernel, linux-arm-kernel
Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema.
Created DT schema based on the .txt file which had
`compatible`, `reg` `clocks` and `interrupts` as the
required properties. This binding is used by Broadcom BCM2835
SOC used in some Raspberry PI boards.
Changes from original file:
Implemented complete example which the original txt binding lacked.
Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
---
Changes in v4
- Added Acked-by flag
---
Changes in v3
- Removed unecessary headers from example
- Removed the `uart1` label
- Added Reviewed-by flag
---
Changes in v2
- Updated Maintainers list according to feedback
- Fixed typo `Auxiliar` to `Auxiliary`
---
---
.../bindings/serial/brcm,bcm2835-aux-uart.txt | 18 --------
.../serial/brcm,bcm2835-aux-uart.yaml | 46 +++++++++++++++++++
2 files changed, 46 insertions(+), 18 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt
create mode 100644 Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml
diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt
deleted file mode 100644
index b5cc6297cd1b..000000000000
--- a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-* BCM2835 AUXILIAR UART
-
-Required properties:
-
-- compatible: "brcm,bcm2835-aux-uart"
-- reg: The base address of the UART register bank.
-- interrupts: A single interrupt specifier.
-- clocks: Clock driving the hardware; used to figure out the baud rate
- divisor.
-
-Example:
-
- uart1: serial@7e215040 {
- compatible = "brcm,bcm2835-aux-uart";
- reg = <0x7e215040 0x40>;
- interrupts = <1 29>;
- clocks = <&aux BCM2835_AUX_CLOCK_UART>;
- };
diff --git a/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml
new file mode 100644
index 000000000000..8a31eb56b865
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/brcm,bcm2835-aux-uart.yaml
@@ -0,0 +1,46 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/brcm,bcm2835-aux-uart.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: BCM2835 AUXILIARY UART
+
+maintainers:
+ - Pratik Farkase <pratikfarkase94@gmail.com>
+ - Florian Fainelli <florian.fainelli@broadcom.com>
+ - Stefan Wahren <wahrenst@gmx.net>
+
+allOf:
+ - $ref: serial.yaml
+
+properties:
+ compatible:
+ const: brcm,bcm2835-aux-uart
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/bcm2835-aux.h>
+ serial@7e215040 {
+ compatible = "brcm,bcm2835-aux-uart";
+ reg = <0x7e215040 0x40>;
+ interrupts = <1 29>;
+ clocks = <&aux BCM2835_AUX_CLOCK_UART>;
+ };
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v4] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema
2024-04-25 16:25 [PATCH v4] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema Pratik Farkase
@ 2024-04-25 16:33 ` Conor Dooley
0 siblings, 0 replies; 2+ messages in thread
From: Conor Dooley @ 2024-04-25 16:33 UTC (permalink / raw)
To: Pratik Farkase
Cc: Pratik Farkase, Florian Fainelli, Conor Dooley,
Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Broadcom internal kernel review list, Ray Jui,
Scott Branden, Stefan Wahren, linux-kernel, linux-serial,
devicetree, linux-rpi-kernel, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 853 bytes --]
On Thu, Apr 25, 2024 at 06:25:50PM +0200, Pratik Farkase wrote:
> Convert the Broadcom BCM2835 Auxiliary UART to newer DT schema.
> Created DT schema based on the .txt file which had
> `compatible`, `reg` `clocks` and `interrupts` as the
> required properties. This binding is used by Broadcom BCM2835
> SOC used in some Raspberry PI boards.
> Changes from original file:
> Implemented complete example which the original txt binding lacked.
>
> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
> Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
> Signed-off-by: Pratik Farkase <pratik.farkase@wsisweden.com>
> ---
> Changes in v4
> - Added Acked-by flag
BTW, there's usually no need to resend for tags alone - in the vast
majority of cases maintainer tooling is capable of picking those up when
applying the patch.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-25 16:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-25 16:25 [PATCH v4] dt-bindings: serial: brcm,bcm2835-aux-uart: convert to dtschema Pratik Farkase
2024-04-25 16:33 ` Conor Dooley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox