arm64: dts: rockchip: Add Firefly ITX-3588J Board
Subsystems (3)
v3 cover arm64: dts: rockchip: Add Firefly ITX-3588J Board
This is the 3rd draft of the device tree proposal for the Firefly ITX-3588J board. The same functionality issues as before are still outstanding; however I have cleaned up the style and structure as per the comments by Heiko Stübner on version 2. Of particular note is the splitting of the device tree source into two files because this platform actually consists of two boards: the ITX-3588J baseboard and a single Core-3588J compute module stuck in a slot on it.
- Shimrra Shai.
Shimrra Shai (3):
arm64: dts: rockchip: add DTs for Firefly ITX-3588J and its Core-3588J
SoM
dt-bindings: pinctrl: add header for PCA9555 GPIO extender bindings on
some Rockchip-based devices
dt-bindings: arm: rockchip: Add Firefly ITX-3588J board
.../devicetree/bindings/arm/rockchip.yaml | 7 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3588-firefly-core-3588j.dtsi | 453 +++++++++++ .../dts/rockchip/rk3588-firefly-itx-3588j.dts | 712 ++++++++++++++++++ .../dt-bindings/pinctrl/rockchip-pca9555.h | 31 + 5 files changed, 1204 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dts create mode 100644 include/dt-bindings/pinctrl/rockchip-pca9555.h
Signature · 1 line
2.45.2
PATCH v3 1/3 arm64: dts: rockchip: add DTs for Firefly ITX-3588J and its Core-3588J SoM
Main DTS for the boards and Makefile addition.
--- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3588-firefly-core-3588j.dtsi | 453 +++++++++++ .../dts/rockchip/rk3588-firefly-itx-3588j.dts | 712 ++++++++++++++++++ 3 files changed, 1166 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dts
arch/arm64/boot/dts/rockchip/Makefile +1 -0
@@ -137,6 +137,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-wifi.dtbo dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6b-io.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-v10.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-firefly-itx-3588j.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-friendlyelec-cm3588-nas.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-jaguar.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6.dtb
arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi new file +453 -0
453 lines not on this page · raw message
arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dts new file +712 -0
712 lines not on this page · raw message
Signature · 1 line
2.45.2
PATCH v3 2/3 dt-bindings: pinctrl: add header for PCA9555 GPIO extender bindings on some Rockchip-based devices
In reply to Shimrra ShaiIt seemed a bit disputed whether this was actually necessary, but I am including it nonetheless. It makes it slightly clearer how the pins on the PCA9555 GPIO extender used on the board are actuated than would be evident from the numbers alone, since according to the spec sheets for it by NXP:
https://www.nxp.com/docs/en/data-sheet/PCA9555.pdf
there are two banks of controllable pins, IO0 and IO1, which are labeled equivalently to the labels provided below.
Also sorry @Heiko Stübner for adding your name on it; I had cut this off a BSP source file that was longer. Since this file contains only this isolated section, which was written by someone else, I put their authorship on it instead. Unfortunately I do not know who "daijh" is, only that they used that handle on GitLab to submit this code piece and I got the indicated email address.
--- .../dt-bindings/pinctrl/rockchip-pca9555.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dt-bindings/pinctrl/rockchip-pca9555.h
include/dt-bindings/pinctrl/rockchip-pca9555.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* +* Bindings for the PCA9555 GPIO extender used on some Rockchip devices, e.g. +* Firefly. +* +* Copyright (C) 2022 Zhongshan Tianqi Intelligent Technology Co., Ltd. +* Authors: daijh <[email protected]> +* Shimrra Shai <[email protected]> +*/ + +#ifndef __ROCKCHIP_PCA9555_H__ +#define __ROCKCHIP_PCA9555_H__ + +#define PCA_IO0_0 0 +#define PCA_IO0_1 1 +#define PCA_IO0_2 2 +#define PCA_IO0_3 3 +#define PCA_IO0_4 4 +#define PCA_IO0_5 5 +#define PCA_IO0_6 6 +#define PCA_IO0_7 7 +#define PCA_IO1_0 8 +#define PCA_IO1_1 9 +#define PCA_IO1_2 10 +#define PCA_IO1_3 11 +#define PCA_IO1_4 12 +#define PCA_IO1_5 13 +#define PCA_IO1_6 14 +#define PCA_IO1_7 15 + +#endif
Signature · 1 line
2.45.2
PATCH v3 3/3 dt-bindings: arm: rockchip: Add Firefly ITX-3588J board
In reply to Shimrra ShaiUpdated DT binding documentation per @Heiko Stübner's suggestion, to reflect the bipartite nature of the board.
--- Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/devicetree/bindings/arm/rockchip.yaml +7 -0
@@ -167,6 +167,13 @@ properties: - const: engicam,px30-core - const: rockchip,px30 + - description: Firefly Core-3588J-based boards + items: + - enum: + - firefly,itx-3588j + - const: firefly,core-3588j + - const: rockchip,rk3588 + - description: Firefly Core-PX30-JD4 on MB-JD4-PX30 baseboard items: - const: firefly,px30-jd4-core-mb
Signature · 1 line
2.45.2
Re: [PATCH v3 2/3] dt-bindings: pinctrl: add header for PCA9555 GPIO extender bindings on some Rockchip-based devices
In reply to Shimrra ShaiQuoted 33 lines · Shimrra Shai
It seemed a bit disputed whether this was actually necessary, but I am including it nonetheless. It makes it slightly clearer how the pins on the PCA9555 GPIO extender used on the board are actuated than would be evident from the numbers alone, since according to the spec sheets for it by NXP:
https://www.nxp.com/docs/en/data-sheet/PCA9555.pdf
there are two banks of controllable pins, IO0 and IO1, which are labeled equivalently to the labels provided below.
Also sorry @Heiko Stübner for adding your name on it; I had cut this off a BSP source file that was longer. Since this file contains only this isolated section, which was written by someone else, I put their authorship on it instead. Unfortunately I do not know who "daijh" is, only that they used that handle on GitLab to submit this code piece and I got the indicated email address.
Signed-off-by Shimrra Shai <[email protected]>--- .../dt-bindings/pinctrl/rockchip-pca9555.h | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dt-bindings/pinctrl/rockchip-pca9555.hinclude/dt-bindings/pinctrl/rockchip-pca9555.h new file +4
-0@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* +* Bindings for the PCA9555 GPIO extender used on some Rockchip devices, e.g. +* Firefly.
include/dt-bindings/pinctrl/rockchip-pca9555.h line 14
Quoted 10 lines
include/dt-bindings/pinctrl/rockchip-pca9555.h new file +10
-0+* +* Copyright (C) 2022 Zhongshan Tianqi Intelligent Technology Co., Ltd. +* Authors: daijh <[email protected]> +* Shimrra Shai <[email protected]> +*/ + +#ifndef __ROCKCHIP_PCA9555_H__ +#define __ROCKCHIP_PCA9555_H__ + +#define PCA_IO0_0 0
1. There is no user of these bindings.
2. It's meaningless to map 0 to 0...
Drop entire patch.
Best regards,
Krzysztof
Re: [PATCH v3 1/3] arm64: dts: rockchip: add DTs for Firefly ITX-3588J and its Core-3588J SoM
In reply to Shimrra ShaiQuoted 29 lines · Shimrra Shai
Main DTS for the boards and
Makefileaddition.Signed-off-by Shimrra Shai <[email protected]>--- arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3588-firefly-core-3588j.dtsi | 453 +++++++++++ .../dts/rockchip/rk3588-firefly-itx-3588j.dts | 712 ++++++++++++++++++ 3 files changed, 1166 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtsarch/arm64/boot/dts/rockchip/Makefile +1
-0@@ -137,6 +137,7 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-io.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6a-wifi.dtbo dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-edgeble-neu6b-io.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-evb1-v10.dtb +dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-firefly-itx-3588j.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-friendlyelec-cm3588-nas.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-jaguar.dtb dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3588-nanopc-t6.dtbarch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi new file +0
-0
arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi line 9
Quoted 9 lines
arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi new file +9
-0@@ -0,0 +1,453 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) + +#include <dt-bindings/gpio/gpio.h> +#include <dt-bindings/pinctrl/rockchip.h> + +#include "rk3588.dtsi" + +/ { + compatible = "firefly,core-3588j", "rockchip,rk3588";
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.
It does not look like you tested the DTS against bindings. Please run 'make dtbs_check W=1' (see Documentation/devicetree/bindings/writing-schema.rst or
https://www.linaro.org/blog/tips-and-tricks-for-validating-devicetree-sources-with-the-devicetree-schema/
for instructions).
Maybe you need to update your dtschema and yamllint. Don't rely on distro packages for dtschema and be sure you are using the latest released dtschema.
Best regards,
Krzysztof
Re: [PATCH v3 3/3] dt-bindings: arm: rockchip: Add Firefly ITX-3588J board
In reply to Shimrra ShaiQuoted 8 lines · Shimrra Shai
Updated DT binding documentation per @Heiko Stübner's suggestion, to reflect the bipartite nature of the board.
Signed-off-by Shimrra Shai <[email protected]>--- Documentation/devicetree/bindings/arm/rockchip.yaml | 7 +++++++ 1 file changed, 7 insertions(+)
Order your patches correctly (bindings are always before users), so you won't receive feedback of undocumented compatibles. See submitting patches in bindings directory.
Best regards,
Krzysztof
Rob Herring (Arm)
maintainerQuoted 27 lines · Shimrra Shai
This is the 3rd draft of the device tree proposal for the Firefly ITX-3588J board. The same functionality issues as before are still outstanding; however I have cleaned up the style and structure as per the comments by Heiko Stübner on version 2. Of particular note is the splitting of the device tree source into two files because this platform actually consists of two boards: the ITX-3588J baseboard and a single Core-3588J compute module stuck in a slot on it.
- Shimrra Shai.
Shimrra Shai (3):
arm64: dts: rockchip: add DTs for Firefly ITX-3588J and its Core-3588J
SoM
dt-bindings: pinctrl: add header for PCA9555 GPIO extender bindings on
some Rockchip-based devices
dt-bindings: arm: rockchip: Add Firefly ITX-3588J board.../devicetree/bindings/arm/rockchip.yaml | 7 + arch/arm64/boot/dts/rockchip/Makefile | 1 + .../rockchip/rk3588-firefly-core-3588j.dtsi | 453 +++++++++++ .../dts/rockchip/rk3588-firefly-itx-3588j.dts | 712 ++++++++++++++++++ .../dt-bindings/pinctrl/rockchip-pca9555.h | 31 + 5 files changed, 1204 insertions(+) create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-core-3588j.dtsi create mode 100644 arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dts create mode 100644 include/dt-bindings/pinctrl/rockchip-pca9555.h
Quoted 4 lines
--
2.45.2
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
New warnings running 'make CHECK_DTBS=y rockchip/rk3588-firefly-itx-3588j.dtb' for [email protected]:
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi:355.39-358.4: Warning (clocks_property): /display-subsystem: Missing property '#clock-cells' in node /phy@fed60000 or bad phandle (referred from clocks[0])
also defined at arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dts:292.20-295.3arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtb: display-subsystem: 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/display/rockchip/rockchip-drm.yaml#arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtb: pmic@0: Unevaluated properties are not allowed ('rk806_dvs1_pwrdn' was unexpected)
from schema $id: http://devicetree.org/schemas/mfd/rockchip,rk806.yaml#arch/arm64/boot/dts/rockchip/rk3588-firefly-itx-3588j.dtb: pcie@fe170000: Unevaluated properties are not allowed ('rockchip,skip-scan-in-resume' was unexpected)
from schema $id: http://devicetree.org/schemas/pci/rockchip-dw-pcie.yaml#