diff mbox series

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

Message ID 20240605153020.104717-3-krzysztof.kozlowski@linaro.org (mailing list archive)
State New, archived
Headers show
Series [1/3] arm64: dts: freescale: use defines for interrupts | expand

Commit Message

Krzysztof Kozlowski June 5, 2024, 3:30 p.m. UTC
Replace hard-coded interrupt flags with standard defines for
readability.  No changes in resulting DTBs.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 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(-)

Comments

Peng Fan June 6, 2024, 1:35 a.m. UTC | #1
> 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@linaro.org>

Reviewed-by: Peng Fan <peng.fan@nxp.com>
> ---
>  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
>
diff mbox series

Patch

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 {