2024-06-05 15:30:46

by Krzysztof Kozlowski

[permalink] [raw]
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 <[email protected]>
---
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



2024-06-06 01:36:07

by Peng Fan

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

> 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 <[email protected]>

Reviewed-by: Peng Fan <[email protected]>
> ---
> 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
>