* [PATCH 1/6] dt-bindings: serial: add missing "additionalProperties" on child nodes
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-11 18:17 ` [PATCH 2/6] dt-bindings: serial: add common properties schema for UART children Krzysztof Kozlowski
` (6 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
All nodes need an explicit additionalProperties or unevaluatedProperties
unless a $ref has one that's false. Add missing additionalProperties
for serial-attached devices.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree.
The context of the next patch depends on this one.
---
Documentation/devicetree/bindings/serial/serial.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml
index ffc9198ae214..40e05dd37826 100644
--- a/Documentation/devicetree/bindings/serial/serial.yaml
+++ b/Documentation/devicetree/bindings/serial/serial.yaml
@@ -92,6 +92,7 @@ patternProperties:
if:
type: object
then:
+ additionalProperties: true
description:
Serial attached devices shall be a child node of the host UART device
the slave device is attached to. It is expected that the attached
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 2/6] dt-bindings: serial: add common properties schema for UART children
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
2024-08-11 18:17 ` [PATCH 1/6] dt-bindings: serial: add missing "additionalProperties" on child nodes Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-11 18:17 ` [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory Krzysztof Kozlowski
` (5 subsequent siblings)
7 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
Properties should be defined in only one place, thus add new
serial-peripheral-props.yaml schema with definition of common properties
for UART-connected devices (children of UART controller): current-speed
and max-speed. The schema can be referenced by individual devices using
these properties.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree.
This is the dependency for all further patches.
---
.../bindings/serial/serial-peripheral-props.yaml | 41 ++++++++++++++++++++++
.../devicetree/bindings/serial/serial.yaml | 23 +-----------
2 files changed, 42 insertions(+), 22 deletions(-)
diff --git a/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml b/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml
new file mode 100644
index 000000000000..b4a73214d20d
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/serial-peripheral-props.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/serial/serial-peripheral-props.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Common Properties for Serial-attached Devices
+
+maintainers:
+ - Rob Herring <robh@kernel.org>
+ - Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+description:
+ Devices connected over serial/UART, expressed as children of a serial
+ controller, might need similar properties, e.g. for configuring the baud
+ rate.
+
+properties:
+ max-speed:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ The maximum baud rate the device operates at.
+ This should only be present if the maximum is less than the slave
+ device can support. For example, a particular board has some
+ signal quality issue or the host processor can't support higher
+ baud rates.
+
+ current-speed:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description: |
+ The current baud rate the device operates at.
+ This should only be present in case a driver has no chance to know
+ the baud rate of the slave device.
+ Examples:
+ * device supports auto-baud
+ * the rate is setup by a bootloader and there is no way to reset
+ the device
+ * device baud rate is configured by its firmware but there is no
+ way to request the actual settings
+
+additionalProperties: true
diff --git a/Documentation/devicetree/bindings/serial/serial.yaml b/Documentation/devicetree/bindings/serial/serial.yaml
index 40e05dd37826..30c85768d980 100644
--- a/Documentation/devicetree/bindings/serial/serial.yaml
+++ b/Documentation/devicetree/bindings/serial/serial.yaml
@@ -93,6 +93,7 @@ patternProperties:
type: object
then:
additionalProperties: true
+ $ref: serial-peripheral-props.yaml#
description:
Serial attached devices shall be a child node of the host UART device
the slave device is attached to. It is expected that the attached
@@ -104,28 +105,6 @@ patternProperties:
description:
Compatible of the device connected to the serial port.
- max-speed:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- The maximum baud rate the device operates at.
- This should only be present if the maximum is less than the slave
- device can support. For example, a particular board has some
- signal quality issue or the host processor can't support higher
- baud rates.
-
- current-speed:
- $ref: /schemas/types.yaml#/definitions/uint32
- description: |
- The current baud rate the device operates at.
- This should only be present in case a driver has no chance to know
- the baud rate of the slave device.
- Examples:
- * device supports auto-baud
- * the rate is setup by a bootloader and there is no way to reset
- the device
- * device baud rate is configured by its firmware but there is no
- way to request the actual settings
-
required:
- compatible
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
2024-08-11 18:17 ` [PATCH 1/6] dt-bindings: serial: add missing "additionalProperties" on child nodes Krzysztof Kozlowski
2024-08-11 18:17 ` [PATCH 2/6] dt-bindings: serial: add common properties schema for UART children Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-23 16:11 ` Linus Walleij
2024-08-11 18:17 ` [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml Krzysztof Kozlowski
` (4 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
Some Bluetooth devices bindings are in net/ and some are in
net/bluetooth/, so bring some consistency by putting everything in
net/bluetooth. Rename few bindings to match preferred naming
style: "vendor,device".
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree.
This is the dependency for another Bluetooth patch.
---
.../net/{broadcom-bluetooth.yaml => bluetooth/brcm,bluetooth.yaml} | 2 +-
.../net/{marvell-bluetooth.yaml => bluetooth/marvell,88w8897.yaml} | 2 +-
.../net/{mediatek-bluetooth.txt => bluetooth/mediatek,bluetooth.txt} | 0
.../net/{nokia-bluetooth.txt => bluetooth/nokia,h4p-bluetooth.txt} | 0
.../net/{realtek-bluetooth.yaml => bluetooth/realtek,bluetooth.yaml} | 2 +-
Documentation/devicetree/bindings/net/{ => bluetooth}/ti,bluetooth.yaml | 2 +-
MAINTAINERS | 2 +-
7 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
similarity index 98%
rename from Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
rename to Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
index 4a1bfc2b3584..e49e4146736f 100644
--- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
-$id: http://devicetree.org/schemas/net/broadcom-bluetooth.yaml#
+$id: http://devicetree.org/schemas/net/bluetooth/brcm,bluetooth.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Broadcom Bluetooth Chips
diff --git a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
similarity index 92%
rename from Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
rename to Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
index 188a42ca6ceb..60b90cd62013 100644
--- a/Documentation/devicetree/bindings/net/marvell-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
%YAML 1.2
---
-$id: http://devicetree.org/schemas/net/marvell-bluetooth.yaml#
+$id: http://devicetree.org/schemas/net/bluetooth/marvell,88w8897.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Marvell Bluetooth chips
diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt
similarity index 100%
rename from Documentation/devicetree/bindings/net/mediatek-bluetooth.txt
rename to Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt
diff --git a/Documentation/devicetree/bindings/net/nokia-bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth/nokia,h4p-bluetooth.txt
similarity index 100%
rename from Documentation/devicetree/bindings/net/nokia-bluetooth.txt
rename to Documentation/devicetree/bindings/net/bluetooth/nokia,h4p-bluetooth.txt
diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
similarity index 95%
rename from Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
rename to Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
index 043e118c605c..993c607eaa49 100644
--- a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
%YAML 1.2
---
-$id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml#
+$id: http://devicetree.org/schemas/net/bluetooth/realtek,bluetooth.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: RTL8723BS/RTL8723CS/RTL8821CS/RTL8822CS Bluetooth
diff --git a/Documentation/devicetree/bindings/net/ti,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
similarity index 96%
rename from Documentation/devicetree/bindings/net/ti,bluetooth.yaml
rename to Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
index 81616f9fb493..1f507ddccc3c 100644
--- a/Documentation/devicetree/bindings/net/ti,bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
-$id: http://devicetree.org/schemas/net/ti,bluetooth.yaml#
+$id: http://devicetree.org/schemas/net/bluetooth/ti,bluetooth.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Texas Instruments Bluetooth Chips
diff --git a/MAINTAINERS b/MAINTAINERS
index 494bcb5e6f35..ae9a81df25ce 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14269,8 +14269,8 @@ M: Sean Wang <sean.wang@mediatek.com>
L: linux-bluetooth@vger.kernel.org
L: linux-mediatek@lists.infradead.org (moderated for non-subscribers)
S: Maintained
+F: Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt
F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml
-F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt
F: drivers/bluetooth/btmtkuart.c
MEDIATEK BOARD LEVEL SHUTDOWN DRIVERS
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory
2024-08-11 18:17 ` [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory Krzysztof Kozlowski
@ 2024-08-23 16:11 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2024-08-23 16:11 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Johan Hovold,
Liam Girdwood, Mark Brown, Daniel Kaehn, linux-serial,
linux-kernel, devicetree, linux-bluetooth, netdev, linux-mediatek,
linux-arm-kernel, linux-sound
On Sun, Aug 11, 2024 at 8:17 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> Some Bluetooth devices bindings are in net/ and some are in
> net/bluetooth/, so bring some consistency by putting everything in
> net/bluetooth. Rename few bindings to match preferred naming
> style: "vendor,device".
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Excellent, thanks for cleaning this up.
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
` (2 preceding siblings ...)
2024-08-11 18:17 ` [PATCH 3/6] dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-23 16:12 ` Linus Walleij
2024-08-11 18:17 ` [PATCH 5/6] dt-bindings: bluetooth: " Krzysztof Kozlowski
` (3 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
The "current-speed" property is not a common property for all GNSS
devices, but only to these connected with serial. Drop the property
from the common GNSS properties schema and instead reference common
serial properties schema (for children of UART controllers).
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree. It depends on
the serial patch adding serial-peripheral-props.yaml.
---
Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml | 1 +
Documentation/devicetree/bindings/gnss/gnss-common.yaml | 5 -----
Documentation/devicetree/bindings/gnss/mediatek.yaml | 1 +
Documentation/devicetree/bindings/gnss/sirfstar.yaml | 1 +
Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml | 1 +
5 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml b/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml
index c21549e0fba6..089166089498 100644
--- a/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml
+++ b/Documentation/devicetree/bindings/gnss/brcm,bcm4751.yaml
@@ -18,6 +18,7 @@ description:
allOf:
- $ref: gnss-common.yaml#
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/gnss/gnss-common.yaml b/Documentation/devicetree/bindings/gnss/gnss-common.yaml
index 963b926e30a7..d4430d2d6855 100644
--- a/Documentation/devicetree/bindings/gnss/gnss-common.yaml
+++ b/Documentation/devicetree/bindings/gnss/gnss-common.yaml
@@ -35,11 +35,6 @@ properties:
GPIO line, this is used.
maxItems: 1
- current-speed:
- description: The baudrate in bits per second of the device as it comes
- online, current active speed.
- $ref: /schemas/types.yaml#/definitions/uint32
-
additionalProperties: true
examples:
diff --git a/Documentation/devicetree/bindings/gnss/mediatek.yaml b/Documentation/devicetree/bindings/gnss/mediatek.yaml
index c0eb35beb2ef..2b9e5be4ebf3 100644
--- a/Documentation/devicetree/bindings/gnss/mediatek.yaml
+++ b/Documentation/devicetree/bindings/gnss/mediatek.yaml
@@ -15,6 +15,7 @@ description:
allOf:
- $ref: gnss-common.yaml#
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/gnss/sirfstar.yaml b/Documentation/devicetree/bindings/gnss/sirfstar.yaml
index 0bbe684d82e1..7e5da89a5ad7 100644
--- a/Documentation/devicetree/bindings/gnss/sirfstar.yaml
+++ b/Documentation/devicetree/bindings/gnss/sirfstar.yaml
@@ -21,6 +21,7 @@ description:
allOf:
- $ref: gnss-common.yaml#
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
index cd80668182b6..7d4b6d49e5ee 100644
--- a/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
+++ b/Documentation/devicetree/bindings/gnss/u-blox,neo-6m.yaml
@@ -8,6 +8,7 @@ title: U-blox GNSS Receiver
allOf:
- $ref: gnss-common.yaml#
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
maintainers:
- Johan Hovold <johan@kernel.org>
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml
2024-08-11 18:17 ` [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml Krzysztof Kozlowski
@ 2024-08-23 16:12 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2024-08-23 16:12 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Johan Hovold,
Liam Girdwood, Mark Brown, Daniel Kaehn, linux-serial,
linux-kernel, devicetree, linux-bluetooth, netdev, linux-mediatek,
linux-arm-kernel, linux-sound
On Sun, Aug 11, 2024 at 8:17 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> The "current-speed" property is not a common property for all GNSS
> devices, but only to these connected with serial. Drop the property
> from the common GNSS properties schema and instead reference common
> serial properties schema (for children of UART controllers).
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 5/6] dt-bindings: bluetooth: reference serial-peripheral-props.yaml
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
` (3 preceding siblings ...)
2024-08-11 18:17 ` [PATCH 4/6] dt-bindings: gnss: reference serial-peripheral-props.yaml Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-23 16:12 ` Linus Walleij
2024-08-11 18:17 ` [PATCH 6/6] ASoC: dt-bindings: serial-midi: " Krzysztof Kozlowski
` (2 subsequent siblings)
7 siblings, 1 reply; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
Reference common serial properties schema (for children of UART
controllers) to bring common definition of "current-speed" and
"max-speed" properties.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree. It depends on
the serial patch adding serial-peripheral-props.yaml.
---
.../bindings/net/bluetooth/brcm,bluetooth.yaml | 31 +++++++++++-----------
.../bindings/net/bluetooth/marvell,88w8897.yaml | 4 +--
.../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 4 +--
.../bindings/net/bluetooth/realtek,bluetooth.yaml | 3 +++
.../bindings/net/bluetooth/ti,bluetooth.yaml | 3 +++
5 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
index e49e4146736f..3c410cadff23 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/brcm,bluetooth.yaml
@@ -119,29 +119,28 @@ properties:
items:
- const: host-wakeup
- max-speed: true
- current-speed: true
-
required:
- compatible
dependencies:
brcm,requires-autobaud-mode: [ shutdown-gpios ]
-if:
- not:
- properties:
- compatible:
- contains:
- enum:
- - brcm,bcm20702a1
- - brcm,bcm4329-bt
- - brcm,bcm4330-bt
-then:
- properties:
- reset-gpios: false
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+ - if:
+ not:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - brcm,bcm20702a1
+ - brcm,bcm4329-bt
+ - brcm,bcm4330-bt
+ then:
+ properties:
+ reset-gpios: false
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
diff --git a/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
index 60b90cd62013..2fc36874deb7 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/marvell,88w8897.yaml
@@ -19,13 +19,13 @@ properties:
- mrvl,88w8897
- mrvl,88w8997
- max-speed:
- description: see Documentation/devicetree/bindings/serial/serial.yaml
+ max-speed: true
required:
- compatible
allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
- if:
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
index 68c5ed111417..67f95e60ed3a 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/qualcomm-bluetooth.yaml
@@ -98,8 +98,7 @@ properties:
vddwlmx-supply:
description: VDD_WLMX supply regulator handle
- max-speed:
- description: see Documentation/devicetree/bindings/serial/serial.yaml
+ max-speed: true
firmware-name:
description: specify the name of nvm firmware to load
@@ -118,6 +117,7 @@ additionalProperties: false
allOf:
- $ref: bluetooth-controller.yaml#
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
- if:
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
index 993c607eaa49..7d567122bac9 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/realtek,bluetooth.yaml
@@ -46,6 +46,9 @@ properties:
required:
- compatible
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
additionalProperties: false
examples:
diff --git a/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
index 1f507ddccc3c..290abc22e18a 100644
--- a/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/bluetooth/ti,bluetooth.yaml
@@ -74,6 +74,9 @@ properties:
required:
- compatible
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
additionalProperties: false
examples:
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 5/6] dt-bindings: bluetooth: reference serial-peripheral-props.yaml
2024-08-11 18:17 ` [PATCH 5/6] dt-bindings: bluetooth: " Krzysztof Kozlowski
@ 2024-08-23 16:12 ` Linus Walleij
0 siblings, 0 replies; 12+ messages in thread
From: Linus Walleij @ 2024-08-23 16:12 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Johan Hovold,
Liam Girdwood, Mark Brown, Daniel Kaehn, linux-serial,
linux-kernel, devicetree, linux-bluetooth, netdev, linux-mediatek,
linux-arm-kernel, linux-sound
On Sun, Aug 11, 2024 at 8:17 PM Krzysztof Kozlowski
<krzysztof.kozlowski@linaro.org> wrote:
> Reference common serial properties schema (for children of UART
> controllers) to bring common definition of "current-speed" and
> "max-speed" properties.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 6/6] ASoC: dt-bindings: serial-midi: reference serial-peripheral-props.yaml
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
` (4 preceding siblings ...)
2024-08-11 18:17 ` [PATCH 5/6] dt-bindings: bluetooth: " Krzysztof Kozlowski
@ 2024-08-11 18:17 ` Krzysztof Kozlowski
2024-08-12 16:05 ` [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Conor Dooley
2024-08-19 19:39 ` Rob Herring
7 siblings, 0 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-11 18:17 UTC (permalink / raw)
To: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn
Cc: linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound,
Krzysztof Kozlowski
Reference common serial properties schema (for children of UART
controllers) to bring common definition of "current-speed" and
"max-speed" properties.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
This patch should probably go via Rob's Devicetree tree. It depends on
the serial patch adding serial-peripheral-props.yaml.
---
Documentation/devicetree/bindings/sound/serial-midi.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/sound/serial-midi.yaml b/Documentation/devicetree/bindings/sound/serial-midi.yaml
index f6a807329a5a..3b2f6dd5bffa 100644
--- a/Documentation/devicetree/bindings/sound/serial-midi.yaml
+++ b/Documentation/devicetree/bindings/sound/serial-midi.yaml
@@ -22,6 +22,9 @@ description:
configure the clocks of the parent serial device so that a requested baud of 38.4 kBaud
results in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default)
+allOf:
+ - $ref: /schemas/serial/serial-peripheral-props.yaml#
+
properties:
compatible:
const: serial-midi
--
2.43.0
^ permalink raw reply related [flat|nested] 12+ messages in thread* Re: [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
` (5 preceding siblings ...)
2024-08-11 18:17 ` [PATCH 6/6] ASoC: dt-bindings: serial-midi: " Krzysztof Kozlowski
@ 2024-08-12 16:05 ` Conor Dooley
2024-08-19 19:39 ` Rob Herring
7 siblings, 0 replies; 12+ messages in thread
From: Conor Dooley @ 2024-08-12 16:05 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Rob Herring, Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski,
Conor Dooley, Marcel Holtmann, Luiz Augusto von Dentz,
David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Matthias Brugger, AngeloGioacchino Del Regno, Linus Walleij,
Johan Hovold, Liam Girdwood, Mark Brown, Daniel Kaehn,
linux-serial, linux-kernel, devicetree, linux-bluetooth, netdev,
linux-mediatek, linux-arm-kernel, linux-sound
[-- Attachment #1: Type: text/plain, Size: 739 bytes --]
On Sun, Aug 11, 2024 at 08:17:03PM +0200, Krzysztof Kozlowski wrote:
> Hi,
>
> Add serial-peripheral-props.yaml for devices being connected over
> serial/UART.
>
> Maybe the schema should be rather called serial-common-props.yaml? Or
> serial-device-common-props.yaml?
>
> Dependencies/merging - Devicetree tree?
> =======================================
> Entire patchset should be taken via one tree, preferably Rob's
> Devicetree because of context/hunk dependencies and dependency on
> introduced serial-peripheral-props.yaml file.
The whole idea seems reasonable to me, but I question whether it is
worth tagging it if Rob's gonna be the one applying it.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread* Re: [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml
2024-08-11 18:17 [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Krzysztof Kozlowski
` (6 preceding siblings ...)
2024-08-12 16:05 ` [PATCH 0/6] dt-bindings: add serial-peripheral-props.yaml Conor Dooley
@ 2024-08-19 19:39 ` Rob Herring
7 siblings, 0 replies; 12+ messages in thread
From: Rob Herring @ 2024-08-19 19:39 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Greg Kroah-Hartman, Jiri Slaby, Krzysztof Kozlowski, Conor Dooley,
Marcel Holtmann, Luiz Augusto von Dentz, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Matthias Brugger,
AngeloGioacchino Del Regno, Linus Walleij, Johan Hovold,
Liam Girdwood, Mark Brown, Daniel Kaehn, linux-serial,
linux-kernel, devicetree, linux-bluetooth, netdev, linux-mediatek,
linux-arm-kernel, linux-sound
On Sun, Aug 11, 2024 at 08:17:03PM +0200, Krzysztof Kozlowski wrote:
> Hi,
>
> Add serial-peripheral-props.yaml for devices being connected over
> serial/UART.
>
> Maybe the schema should be rather called serial-common-props.yaml? Or
> serial-device-common-props.yaml?
>
> Dependencies/merging - Devicetree tree?
> =======================================
> Entire patchset should be taken via one tree, preferably Rob's
> Devicetree because of context/hunk dependencies and dependency on
> introduced serial-peripheral-props.yaml file.
>
> Best regards,
> Krzysztof
>
> ---
> Krzysztof Kozlowski (6):
> dt-bindings: serial: add missing "additionalProperties" on child nodes
> dt-bindings: serial: add common properties schema for UART children
> dt-bindings: bluetooth: move Bluetooth bindings to dedicated directory
> dt-bindings: gnss: reference serial-peripheral-props.yaml
> dt-bindings: bluetooth: reference serial-peripheral-props.yaml
> ASoC: dt-bindings: serial-midi: reference serial-peripheral-props.yaml
>
> .../devicetree/bindings/gnss/brcm,bcm4751.yaml | 1 +
> .../devicetree/bindings/gnss/gnss-common.yaml | 5 ---
> .../devicetree/bindings/gnss/mediatek.yaml | 1 +
> .../devicetree/bindings/gnss/sirfstar.yaml | 1 +
> .../devicetree/bindings/gnss/u-blox,neo-6m.yaml | 1 +
> .../brcm,bluetooth.yaml} | 33 +++++++++--------
> .../marvell,88w8897.yaml} | 6 ++--
> .../mediatek,bluetooth.txt} | 0
> .../nokia,h4p-bluetooth.txt} | 0
> .../bindings/net/bluetooth/qualcomm-bluetooth.yaml | 4 +--
> .../realtek,bluetooth.yaml} | 5 ++-
> .../bindings/net/{ => bluetooth}/ti,bluetooth.yaml | 5 ++-
> .../bindings/serial/serial-peripheral-props.yaml | 41 ++++++++++++++++++++++
> .../devicetree/bindings/serial/serial.yaml | 24 ++-----------
> .../devicetree/bindings/sound/serial-midi.yaml | 3 ++
> MAINTAINERS | 2 +-
> 16 files changed, 80 insertions(+), 52 deletions(-)
Series applied, thanks.
Rob
^ permalink raw reply [flat|nested] 12+ messages in thread