dt-bindings: imx8-jpeg: Add clocks entries
Subsystems (4)
Fabio Estevam
reviewerPATCH v2 1/2 dt-bindings: 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 v1:
- None
.../bindings/media/nxp,imx8-jpeg.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +17 -0
@@ -31,6 +31,14 @@ properties: reg: maxItems: 1 + clocks: + maxItems: 2 + + clock-names: + items: + - const: per + - const: ipg + interrupts: description: | There are 4 slots available in the IP, which the driver may use
@@ -49,6 +57,8 @@ properties: required: - compatible - reg + - clocks + - clock-names - interrupts - power-domains
@@ -56,12 +66,16 @@ 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>; + clock-names = "per", "ipg"; interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>,
@@ -76,6 +90,9 @@ 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>; + clock-names = "per", "ipg"; 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.34.1
Fabio Estevam
reviewerPATCH v2 2/2 arm64: imx8qm-ss-img: Fix jpegenc compatible entry
From: Fabio Estevam <[email protected]>
The first compatible entry for the jpegenc should be 'nxp,imx8qm-jpgenc'.
Change it accordingly to fix the following schema warning:
imx8qm-apalis-eval.dtb: jpegenc@58450000: compatible: 'oneOf' conditional failed, one must be fixed:
'nxp,imx8qm-jpgdec' is not one of ['nxp,imx8qxp-jpgdec', 'nxp,imx8qxp-jpgenc'] 'nxp,imx8qm-jpgenc' was expected
'nxp,imx8qxp-jpgdec' was expected
---
Changes since v1:
- Improve the commit log.
arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi +1 -1
@@ -8,5 +8,5 @@ &jpegdec { }; &jpegenc { - compatible = "nxp,imx8qm-jpgdec", "nxp,imx8qxp-jpgenc"; + compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; };
Signature · 1 line
2.34.1
Rob Herring
maintainerQuoted 9 lines · Fabio Estevam
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#
See the prior patch and discussion[1].
Rob
[1] https://lore.kernel.org/all/[email protected]/
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 3 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs need
Subject: media: dt-bindings: nxp,imx8-jpeg:
Best regards,
Krzysztof
Re: [PATCH v2 2/2] arm64: imx8qm-ss-img: Fix jpegenc compatible entry
In reply to Fabio EstevamQuoted 6 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The first compatible entry for the jpegenc should be 'nxp,imx8qm-jpgenc'.
Change it accordingly to fix the following schema warning:
Best regards,
Krzysztof
Quoted 9 lines · Krzysztof Kozlowski
Quoted 3 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs need
Subject: media: dt-bindings: nxp,imx8-jpeg:
Reviewed-by Krzysztof Kozlowski <[email protected]>
Now I spotted Rob's answer, so obviously:
Un-reviewed
Best regards,
Krzysztof
RE: [PATCH v2 2/2] arm64: imx8qm-ss-img: Fix jpegenc compatible entry
In reply to Fabio EstevamQuoted 29 lines
-----Original Message-----
From: Fabio Estevam <[email protected]>
Sent: Friday, September 8, 2023 5:13 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Mirela Rabulea <[email protected]>; [email protected]; [email protected]; Fabio Estevam <[email protected]>
Subject: [PATCH v2 2/2] arm64: imx8qm-ss-img: Fix jpegenc compatible entryCaution: This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email' button
From: Fabio Estevam <[email protected]>
The first compatible entry for the jpegenc should be 'nxp,imx8qm-jpgenc'.
Change it accordingly to fix the following schema warning:
imx8qm-apalis-eval.dtb: jpegenc@58450000: compatible: 'oneOf' conditional failed, one must be fixed:
'nxp,imx8qm-jpgdec' is not one of ['nxp,imx8qxp-jpgdec', 'nxp,imx8qxp-
jpgenc']
'nxp,imx8qm-jpgenc' was expected
'nxp,imx8qxp-jpgdec' was expected
Quoted 2 lines
Fixes 5bb279171afc ("arm64: dts: imx8: Add jpeg encoder/decoder nodes")Signed-off-by Fabio Estevam <[email protected]>
Thanks for the patch!
Quoted 21 lines
---
Changes since v1:
- Improve the commit log.arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi +1
-2@@ -8,5 +8,5 @@ &jpegdec { }; &jpegenc { - compatible = "nxp,imx8qm-jpgdec", "nxp,imx8qxp-jpgenc"; + compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; }; --2.34.1
Mirela Rabulea
maintainerQuoted 53 lines
-----Original Message-----
From: Fabio Estevam <[email protected]>
Sent: Friday, September 8, 2023 5:13 PM
To: [email protected]
Cc: [email protected]; [email protected]; [email protected]; Mirela Rabulea <[email protected]>; [email protected]; [email protected]; Fabio Estevam <[email protected]>
Subject: [PATCH v2 1/2] dt-bindings: imx8-jpeg: Add clocks entriesFrom: 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:
https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdevicetre
e.org%2Fschemas%2Fmedia%2Fnxp%2Cimx8- jpeg.yaml%23&data=05%7C01%7Cmirela.rabulea%40nxp.com%7C69f66da1744 7425f2da308dbb075acd4%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0 %7C638297791671220834%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7 C&sdata=YoF9rQPIu2JP3nqXnQN5POXHhB5NP%2Fk%2FnAreCNk4yNA%3D&rese rved=0Signed-off-by Fabio Estevam <[email protected]>---
Changes since v1:
- None.../bindings/media/nxp,imx8-jpeg.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +7
-0@@ -31,6 +31,14 @@ properties: reg: maxItems: 1 + clocks: + maxItems: 2 + + clock-names: + items: + - const: per + - const: ipg
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml properties:
Quoted 10 lines
Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +4
-0+ interrupts: description: | There are 4 slots available in the IP, which the driver may use @@ -49,6 +57,8 @@ properties: required: - compatible - reg + - clocks + - clock-names
Hi,
As Rob Herring pointed out, there is already a similar patch sent before by Alexander Stein, but Fabio's patch is somewhat more complete, as it makes the "clocks" required, and also updates the example. The errors mentioned in the commit description are indeed fixed.
But I think the "clock-names" should not be required, as the driver does not need the clock names. Other than that, I agree with this patch.
Thanks Alexander & Fabio!
Quoted 32 lines
- interrupts
- power-domainsDocumentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +4
-0@@ -56,12 +66,16 @@ 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>; + clock-names = "per", "ipg"; interrupts = <GIC_SPI 309 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 310 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 311 IRQ_TYPE_LEVEL_HIGH>, @@ -76,6 +90,9 @@examples:
jpegenc: jpegenc@58450000 { compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; reg = <0x58450000 0x00050000 >;Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +3
-1+ clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg__lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; interrupts = <GIC_SPI 305 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 306 IRQ_TYPE_LEVEL_HIGH>, <GIC_SPI 307 IRQ_TYPE_LEVEL_HIGH>, --2.34.1