RE: [PATCH 3/3] arm64: dts: imx8: use defines for interrupts

From: Peng Fan
Date: Wed Jun 05 2024 - 21:36:06 EST


> Subject: [PATCH 3/3] arm64: dts: imx8: use defines for interrupts
>
> Replace hard-coded interrupt flags with standard defines for readability. No
> changes in resulting DTBs.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>

Reviewed-by: Peng Fan <peng.fan@xxxxxxx>
> ---
> arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 2 +-
> arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> index 90d1901df2b1..930e14fec423 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi
> @@ -400,7 +400,7 @@ ptn5110: tcpc@50 {
> pinctrl-0 = <&pinctrl_typec1>;
> reg = <0x50>;
> interrupt-parent = <&gpio2>;
> - interrupts = <11 8>;
> + interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
> status = "okay";
>
> typec1_con: connector {
> diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> index c024be33fbcc..6d002fc1b2be 100644
> --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts
> @@ -193,7 +193,7 @@ light-sensor@44 {
> compatible = "isil,isl29023";
> reg = <0x44>;
> interrupt-parent = <&lsio_gpio4>;
> - interrupts = <11 2>;
> + interrupts = <11 IRQ_TYPE_EDGE_FALLING>;
> };
>
> pressure-sensor@60 {
> --
> 2.43.0
>