diff mbox series

[2/3] ARM: dts: qcom-msm8960: use define for interrupt constants

Message ID 20221108184529.26857-2-krzysztof.kozlowski@linaro.org
State New
Headers show
Series [1/3] dt-bindings: pinctrl: qcom,msm8960: convert to dtschema | expand

Commit Message

Krzysztof Kozlowski Nov. 8, 2022, 6:45 p.m. UTC
Replace GIC_PPI, GIC_SPI and interrupt type numbers with appropriate
defines.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 arch/arm/boot/dts/qcom-msm8960-cdp.dts |  2 +-
 arch/arm/boot/dts/qcom-msm8960.dtsi    | 22 ++++++++++++----------
 2 files changed, 13 insertions(+), 11 deletions(-)

Comments

Konrad Dybcio Nov. 8, 2022, 6:49 p.m. UTC | #1
On 08/11/2022 19:45, Krzysztof Kozlowski wrote:
> Replace GIC_PPI, GIC_SPI and interrupt type numbers with appropriate
> defines.
> 
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>

Konrad
>   arch/arm/boot/dts/qcom-msm8960-cdp.dts |  2 +-
>   arch/arm/boot/dts/qcom-msm8960.dtsi    | 22 ++++++++++++----------
>   2 files changed, 13 insertions(+), 11 deletions(-)
> 
> diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
> index cb0f612e6c90..3a484ac53917 100644
> --- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts
> +++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
> @@ -42,7 +42,7 @@ ethernet@0 {
>   		compatible = "micrel,ks8851";
>   		reg = <0>;
>   		interrupt-parent = <&msmgpio>;
> -		interrupts = <90 8>;
> +		interrupts = <90 IRQ_TYPE_LEVEL_LOW>;
>   		spi-max-frequency = <5400000>;
>   		vdd-supply = <&ext_l2>;
>   		vdd-io-supply = <&pm8921_lvs6>;
> diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi
> index 30abf53b062d..2f32e734f18d 100644
> --- a/arch/arm/boot/dts/qcom-msm8960.dtsi
> +++ b/arch/arm/boot/dts/qcom-msm8960.dtsi
> @@ -17,7 +17,7 @@ / {
>   	cpus {
>   		#address-cells = <1>;
>   		#size-cells = <0>;
> -		interrupts = <1 14 0x304>;
> +		interrupts = <GIC_PPI 14 0x304>;
>   
>   		cpu@0 {
>   			compatible = "qcom,krait";
> @@ -52,7 +52,7 @@ memory {
>   
>   	cpu-pmu {
>   		compatible = "qcom,krait-pmu";
> -		interrupts = <1 10 0x304>;
> +		interrupts = <GIC_PPI 10 0x304>;
>   		qcom,no-pc-write;
>   	};
>   
> @@ -105,9 +105,9 @@ intc: interrupt-controller@2000000 {
>   		timer@200a000 {
>   			compatible = "qcom,kpss-timer",
>   				     "qcom,kpss-wdt-msm8960", "qcom,msm-timer";
> -			interrupts = <1 1 0x301>,
> -				     <1 2 0x301>,
> -				     <1 3 0x301>;
> +			interrupts = <GIC_PPI 1 0x301>,
> +				     <GIC_PPI 2 0x301>,
> +				     <GIC_PPI 3 0x301>;
>   			reg = <0x0200a000 0x100>;
>   			clock-frequency = <27000000>,
>   					  <32768>;
> @@ -119,7 +119,7 @@ msmgpio: pinctrl@800000 {
>   			gpio-controller;
>   			gpio-ranges = <&msmgpio 0 0 152>;
>   			#gpio-cells = <2>;
> -			interrupts = <0 16 0x4>;
> +			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
>   			interrupt-controller;
>   			#interrupt-cells = <2>;
>   			reg = <0x800000 0x4000>;
> @@ -255,7 +255,7 @@ ssbi@500000 {
>   			pmicintc: pmic {
>   				compatible = "qcom,pm8921";
>   				interrupt-parent = <&msmgpio>;
> -				interrupts = <104 8>;
> +				interrupts = <104 IRQ_TYPE_LEVEL_LOW>;
>   				#interrupt-cells = <2>;
>   				interrupt-controller;
>   				#address-cells = <1>;
> @@ -265,7 +265,8 @@ pwrkey@1c {
>   					compatible = "qcom,pm8921-pwrkey";
>   					reg = <0x1c>;
>   					interrupt-parent = <&pmicintc>;
> -					interrupts = <50 1>, <51 1>;
> +					interrupts = <50 IRQ_TYPE_EDGE_RISING>,
> +						     <51 IRQ_TYPE_EDGE_RISING>;
>   					debounce = <15625>;
>   					pull-up;
>   				};
> @@ -274,7 +275,8 @@ keypad@148 {
>   					compatible = "qcom,pm8921-keypad";
>   					reg = <0x148>;
>   					interrupt-parent = <&pmicintc>;
> -					interrupts = <74 1>, <75 1>;
> +					interrupts = <74 IRQ_TYPE_EDGE_RISING>,
> +						     <75 IRQ_TYPE_EDGE_RISING>;
>   					debounce = <15>;
>   					scan-delay = <32>;
>   					row-hold = <91500>;
> @@ -283,7 +285,7 @@ keypad@148 {
>   				rtc@11d {
>   					compatible = "qcom,pm8921-rtc";
>   					interrupt-parent = <&pmicintc>;
> -					interrupts = <39 1>;
> +					interrupts = <39 IRQ_TYPE_EDGE_RISING>;
>   					reg = <0x11d>;
>   					allow-set-time;
>   				};
diff mbox series

Patch

diff --git a/arch/arm/boot/dts/qcom-msm8960-cdp.dts b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
index cb0f612e6c90..3a484ac53917 100644
--- a/arch/arm/boot/dts/qcom-msm8960-cdp.dts
+++ b/arch/arm/boot/dts/qcom-msm8960-cdp.dts
@@ -42,7 +42,7 @@  ethernet@0 {
 		compatible = "micrel,ks8851";
 		reg = <0>;
 		interrupt-parent = <&msmgpio>;
-		interrupts = <90 8>;
+		interrupts = <90 IRQ_TYPE_LEVEL_LOW>;
 		spi-max-frequency = <5400000>;
 		vdd-supply = <&ext_l2>;
 		vdd-io-supply = <&pm8921_lvs6>;
diff --git a/arch/arm/boot/dts/qcom-msm8960.dtsi b/arch/arm/boot/dts/qcom-msm8960.dtsi
index 30abf53b062d..2f32e734f18d 100644
--- a/arch/arm/boot/dts/qcom-msm8960.dtsi
+++ b/arch/arm/boot/dts/qcom-msm8960.dtsi
@@ -17,7 +17,7 @@  / {
 	cpus {
 		#address-cells = <1>;
 		#size-cells = <0>;
-		interrupts = <1 14 0x304>;
+		interrupts = <GIC_PPI 14 0x304>;
 
 		cpu@0 {
 			compatible = "qcom,krait";
@@ -52,7 +52,7 @@  memory {
 
 	cpu-pmu {
 		compatible = "qcom,krait-pmu";
-		interrupts = <1 10 0x304>;
+		interrupts = <GIC_PPI 10 0x304>;
 		qcom,no-pc-write;
 	};
 
@@ -105,9 +105,9 @@  intc: interrupt-controller@2000000 {
 		timer@200a000 {
 			compatible = "qcom,kpss-timer",
 				     "qcom,kpss-wdt-msm8960", "qcom,msm-timer";
-			interrupts = <1 1 0x301>,
-				     <1 2 0x301>,
-				     <1 3 0x301>;
+			interrupts = <GIC_PPI 1 0x301>,
+				     <GIC_PPI 2 0x301>,
+				     <GIC_PPI 3 0x301>;
 			reg = <0x0200a000 0x100>;
 			clock-frequency = <27000000>,
 					  <32768>;
@@ -119,7 +119,7 @@  msmgpio: pinctrl@800000 {
 			gpio-controller;
 			gpio-ranges = <&msmgpio 0 0 152>;
 			#gpio-cells = <2>;
-			interrupts = <0 16 0x4>;
+			interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-controller;
 			#interrupt-cells = <2>;
 			reg = <0x800000 0x4000>;
@@ -255,7 +255,7 @@  ssbi@500000 {
 			pmicintc: pmic {
 				compatible = "qcom,pm8921";
 				interrupt-parent = <&msmgpio>;
-				interrupts = <104 8>;
+				interrupts = <104 IRQ_TYPE_LEVEL_LOW>;
 				#interrupt-cells = <2>;
 				interrupt-controller;
 				#address-cells = <1>;
@@ -265,7 +265,8 @@  pwrkey@1c {
 					compatible = "qcom,pm8921-pwrkey";
 					reg = <0x1c>;
 					interrupt-parent = <&pmicintc>;
-					interrupts = <50 1>, <51 1>;
+					interrupts = <50 IRQ_TYPE_EDGE_RISING>,
+						     <51 IRQ_TYPE_EDGE_RISING>;
 					debounce = <15625>;
 					pull-up;
 				};
@@ -274,7 +275,8 @@  keypad@148 {
 					compatible = "qcom,pm8921-keypad";
 					reg = <0x148>;
 					interrupt-parent = <&pmicintc>;
-					interrupts = <74 1>, <75 1>;
+					interrupts = <74 IRQ_TYPE_EDGE_RISING>,
+						     <75 IRQ_TYPE_EDGE_RISING>;
 					debounce = <15>;
 					scan-delay = <32>;
 					row-hold = <91500>;
@@ -283,7 +285,7 @@  keypad@148 {
 				rtc@11d {
 					compatible = "qcom,pm8921-rtc";
 					interrupt-parent = <&pmicintc>;
-					interrupts = <39 1>;
+					interrupts = <39 IRQ_TYPE_EDGE_RISING>;
 					reg = <0x11d>;
 					allow-set-time;
 				};