diff mbox series

[V3,2/2] dt-bindings: arm: rockchip: Add Orange Pi 5b

Message ID 20241013213305.310844-2-cenk.uluisik@googlemail.com (mailing list archive)
State New, archived
Headers show
Series [V3,1/2] arm64: dts: rockchip: Add rk3588-orangepi-5b device tree and refactor | expand

Commit Message

Cenk Uluisik Oct. 13, 2024, 9:32 p.m. UTC
This commit adds the Xunlong Orange Pi 5b entry to the device tree
bindings inside the Documentation folder. I know you said I
should extend the Orange Pi 5 one with an enum, but I made a whole new
entry, because looking at all the other entries, they also create new
entries in a case "like this". I hope this is okay, or maybe I misunderstand something.
Thank you in advance.

Signed-off-by: Cenk Uluisik <cenk.uluisik@googlemail.com>
---
 Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Jimmy Hon Oct. 14, 2024, 3:41 a.m. UTC | #1
On Sun, Oct 13, 2024 at 4:33 PM Cenk Uluisik
<cenk.uluisik@googlemail.com> wrote:
>
> This commit adds the Xunlong Orange Pi 5b entry to the device tree
> bindings inside the Documentation folder. I know you said I
> should extend the Orange Pi 5 one with an enum, but I made a whole new
> entry, because looking at all the other entries, they also create new
> entries in a case "like this". I hope this is okay, or maybe I misunderstand something.
> Thank you in advance.
>

An example of using an enum is the NanoPi R6 boards
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/arm/rockchip.yaml?h=v6.11#n241

>
Krzysztof Kozlowski Oct. 14, 2024, 7:24 a.m. UTC | #2
On Sun, Oct 13, 2024 at 11:32:37PM +0200, Cenk Uluisik wrote:
> This commit adds the Xunlong Orange Pi 5b entry to the device tree
> bindings inside the Documentation folder. I know you said I
> should extend the Orange Pi 5 one with an enum, but I made a whole new
> entry, because looking at all the other entries, they also create new
> entries in a case "like this". I hope this is okay, or maybe I misunderstand something.
> Thank you in advance.

That's not suitable for commit msg. Explain the hardware.

And no, use an enum.


> 
> Signed-off-by: Cenk Uluisik <cenk.uluisik@googlemail.com>
> ---
>  Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
> index 687823e58c22..130f6ccc1658 100644
> --- a/Documentation/devicetree/bindings/arm/rockchip.yaml
> +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
> @@ -1053,6 +1053,11 @@ properties:
>          items:
>            - const: xunlong,orangepi-5
>            - const: rockchip,rk3588s
> +      

Please run scripts/checkpatch.pl and fix reported warnings. Then please
run 'scripts/checkpatch.pl --strict' and (probably) fix more warnings.
Some warnings can be ignored, especially from --strict run, but the code
here looks like it needs a fix. Feel free to get in touch if the warning
is not clear.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml
index 687823e58c22..130f6ccc1658 100644
--- a/Documentation/devicetree/bindings/arm/rockchip.yaml
+++ b/Documentation/devicetree/bindings/arm/rockchip.yaml
@@ -1053,6 +1053,11 @@  properties:
         items:
           - const: xunlong,orangepi-5
           - const: rockchip,rk3588s
+      
+      - description: Xunlong Orange Pi 5B
+        items:
+          - const: xunlong,orangepi-5b
+          - const: rockchip,rk3588s
 
       - description: Zkmagic A95X Z2
         items: