dt-bindings: media: imx8-jpeg: Add clocks entries
Subsystems (4)
Mirela Rabulea
maintainerPATCH v4 1/2 dt-bindings: media: imx8-jpeg: Add clocks entries
From: Fabio Estevam <[email protected]>
The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs need the PER and IPG clocks to be functional, so add the clock entries.
This also fixes the following schema warning:
imx8qm-apalis-eval.dtb: jpegdec@58400000: 'assigned-clock-rates', 'assigned-clocks', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml#
---
Changes since v3:
- Add items for clocks (per Krzysztof's feddback)
- Add description for clocks (per Conor's feddback to the other similar patch from Alexander)
- Add "media:" to the subject
- Add Mirela's signed-off
- For the similar patches that were sent for this issue, should Co-developed-by/Signed-off-by be added? Alexander Stein? Frank Li?
Changes since v2:
- Remove clock-names. (Mirela)
.../devicetree/bindings/media/nxp,imx8-jpeg.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +14 -0
@@ -31,6 +31,14 @@ properties: reg: maxItems: 1 + clocks: + description: + The JPEG decoder/encoder requires two clocks for it's wrapper (AXI and APB), + and one clock for it's core engine (AXI, same source as for the wrapper) + items: + - description: AXI DMA engine clock for fetching JPEG bitstream from memory (per) + - description: IP bus clock for register access (ipg) + interrupts: description: | There are 4 slots available in the IP, which the driver may use
@@ -49,6 +57,7 @@ properties: required: - compatible - reg + - clocks - interrupts - power-domains
@@ -56,12 +65,15 @@ additionalProperties: false examples: - | + #include <dt-bindings/clock/imx8-lpcg.h> #include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/firmware/imx/rsrc.h> jpegdec: jpegdec@58400000 { compatible = "nxp,imx8qxp-jpgdec"; reg = <0x58400000 0x00050000 >; + clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
@@ -76,6 +88,8 @@ examples: jpegenc: jpegenc@58450000 { compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; reg = <0x58450000 0x00050000 >; + clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg__lpcg IMX_LPCG_CLK_4>; interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
2.25.1
Mirela Rabulea
maintainerPATCH v4 2/2 arm64: dts: imx8-ss-img: Remove JPEG clock-names
From: Fabio Estevam <[email protected]>
Per nxp,imx8-jpeg.yaml, the clock-names entry is not valid.
Remove them.
---
Changes since v3:
- Just added "imx8-ss-img:" in the subject
Changes since v2:
- Newly introduced.
arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi | 2 -- 1 file changed, 2 deletions(-)
arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi +0 -2
@@ -21,7 +21,6 @@ jpegdec: jpegdec@58400000 { interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>; clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; - clock-names = "per", "ipg"; assigned-clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; assigned-clock-rates = <200000000>, <200000000>;
@@ -35,7 +34,6 @@ jpegenc: jpegenc@58450000 { interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>; clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; - clock-names = "per", "ipg"; assigned-clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; assigned-clock-rates = <200000000>, <200000000>;
Signature · 1 line
2.25.1
Quoted 5 lines · Mirela Rabulea
From: Fabio Estevam <[email protected]>
The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs need the PER and IPG clocks to be functional, so add the clock entries.
Quoted 9 lines
This also fixes the following schema warning:
imx8qm-apalis-eval.dtb: jpegdec@58400000: 'assigned-clock-rates', 'assigned-clocks', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+'
from schema $id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml#Signed-off-by Fabio Estevam <[email protected]>Signed-off-by Mirela Rabulea <[email protected]>---
Please correct subject. You already got comments on this.
https://lore.kernel.org/linux-devicetree/[email protected]/
Quoted 4 lines
Changes since v3:
- Add items for clocks (per Krzysztof's feddback)
- Add description for clocks (per Conor's feddback to the other similar patch from Alexander)
- Add "media:" to the subject
Where? It was there before, so what did you change?
Quoted 14 lines
- Add Mirela's signed-off
- For the similar patches that were sent for this issue, should Co-developed-by/Signed-off-by be added? Alexander Stein? Frank Li?Changes since v2:
- Remove clock-names. (Mirela).../devicetree/bindings/media/nxp,imx8-jpeg.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+)Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +0
-0
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml properties: · line 37
Quoted 7 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +4
-0@@ -31,6 +31,14 @@ properties: reg: maxItems: 1 + clocks: + description: + The JPEG decoder/encoder requires two clocks for it's wrapper (AXI and APB), + and one clock for it's core engine (AXI, same source as for the wrapper)
Description is now redundant, drop it.
Quoted 8 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +4
-0+ items: + - description: AXI DMA engine clock for fetching JPEG bitstream from memory (per) + - description: IP bus clock for register access (ipg) + interrupts: description: | There are 4 slots available in the IP, which the driver may use
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml properties: · line 62
Quoted 6 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +1
-0@@ -49,6 +57,7 @@ properties: required: - compatible - reg + - clocks - interrupts - power-domains
Best regards,
Krzysztof
Mirela Rabulea
maintainerHi Krzysztof,
Quoted 2 lines · Krzysztof Kozlowski
Please correct subject. You already got comments on this.
https://lore.kernel.org/linux-devicetree/[email protected]/
Sorry I missed that.
I will update the prefix to "media: dt-bindings: nxp,imx8-jpeg:". as you suggested in v2.
Quoted 5 lines
Quoted 4 lines
Changes since v3:
- Add items for clocks (per Krzysztof's feddback)
- Add description for clocks (per Conor's feddback to the other similar patch from Alexander)
- Add "media:" to the subjectWhere? It was there before, so what did you change?
I started from v3 here: https://lore.kernel.org/linux-devicetree/[email protected]/
The subject was: "[PATCH v3 1/3] dt-bindings: imx8-jpeg: Add clocks entries", I had just added "media:". Anyways, will update it again.
Quoted 5 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml properties: · line 37
Quoted 4 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +4
-0+ clocks: + description: + The JPEG decoder/encoder requires two clocks for it's wrapper (AXI and APB), + and one clock for it's core engine (AXI, same source as for the wrapper)Description is now redundant, drop it.
Ok, I will do so in v5.
Thanks a lot for feedback,
Mirela