Commit b79663a5 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson

arm64: dts: qcom: use defines for interrupts

Replace hard-coded interrupt parts (GIC, flags) with standard defines
for readability.  No changes in resulting DTBs.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarKonrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230730180638.23539-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 2c9e45df
...@@ -1975,7 +1975,7 @@ wcnss_iris: iris { ...@@ -1975,7 +1975,7 @@ wcnss_iris: iris {
}; };
smd-edge { smd-edge {
interrupts = <GIC_SPI 142 1>; interrupts = <GIC_SPI 142 IRQ_TYPE_EDGE_RISING>;
qcom,ipc = <&apcs1_mbox 8 17>; qcom,ipc = <&apcs1_mbox 8 17>;
qcom,smd-edge = <6>; qcom,smd-edge = <6>;
qcom,remote-pid = <4>; qcom,remote-pid = <4>;
......
...@@ -439,7 +439,7 @@ apps_smsm: apps@0 { ...@@ -439,7 +439,7 @@ apps_smsm: apps@0 {
hexagon_smsm: hexagon@1 { hexagon_smsm: hexagon@1 {
reg = <1>; reg = <1>;
interrupts = <0 290 IRQ_TYPE_EDGE_RISING>; interrupts = <GIC_SPI 290 IRQ_TYPE_EDGE_RISING>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
......
...@@ -456,7 +456,7 @@ usb3: usb@f92f8800 { ...@@ -456,7 +456,7 @@ usb3: usb@f92f8800 {
usb@f9200000 { usb@f9200000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0xf9200000 0xcc00>; reg = <0xf9200000 0xcc00>;
interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
snps,dis_u2_susphy_quirk; snps,dis_u2_susphy_quirk;
snps,dis_enblslpm_quirk; snps,dis_enblslpm_quirk;
maximum-speed = "high-speed"; maximum-speed = "high-speed";
......
...@@ -589,7 +589,7 @@ smp2p-adsp { ...@@ -589,7 +589,7 @@ smp2p-adsp {
compatible = "qcom,smp2p"; compatible = "qcom,smp2p";
qcom,smem = <443>, <429>; qcom,smem = <443>, <429>;
interrupts = <0 158 IRQ_TYPE_EDGE_RISING>; interrupts = <GIC_SPI 158 IRQ_TYPE_EDGE_RISING>;
mboxes = <&apcs_glb 10>; mboxes = <&apcs_glb 10>;
...@@ -1264,7 +1264,7 @@ gpu: gpu@b00000 { ...@@ -1264,7 +1264,7 @@ gpu: gpu@b00000 {
reg = <0x00b00000 0x3f000>; reg = <0x00b00000 0x3f000>;
reg-names = "kgsl_3d0_reg_memory"; reg-names = "kgsl_3d0_reg_memory";
interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mmcc GPU_GX_GFX3D_CLK>, clocks = <&mmcc GPU_GX_GFX3D_CLK>,
<&mmcc GPU_AHB_CLK>, <&mmcc GPU_AHB_CLK>,
...@@ -3054,7 +3054,7 @@ usb3: usb@6af8800 { ...@@ -3054,7 +3054,7 @@ usb3: usb@6af8800 {
usb3_dwc3: usb@6a00000 { usb3_dwc3: usb@6a00000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0x06a00000 0xcc00>; reg = <0x06a00000 0xcc00>;
interrupts = <0 131 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
phys = <&hsusb_phy1>, <&ssusb_phy_0>; phys = <&hsusb_phy1>, <&ssusb_phy_0>;
phy-names = "usb2-phy", "usb3-phy"; phy-names = "usb2-phy", "usb3-phy";
snps,hird-threshold = /bits/ 8 <0>; snps,hird-threshold = /bits/ 8 <0>;
...@@ -3412,7 +3412,7 @@ usb2: usb@76f8800 { ...@@ -3412,7 +3412,7 @@ usb2: usb@76f8800 {
usb2_dwc3: usb@7600000 { usb2_dwc3: usb@7600000 {
compatible = "snps,dwc3"; compatible = "snps,dwc3";
reg = <0x07600000 0xcc00>; reg = <0x07600000 0xcc00>;
interrupts = <0 138 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>;
phys = <&hsusb_phy2>; phys = <&hsusb_phy2>;
phy-names = "usb2-phy"; phy-names = "usb2-phy";
maximum-speed = "high-speed"; maximum-speed = "high-speed";
...@@ -3426,7 +3426,7 @@ slimbam: dma-controller@9184000 { ...@@ -3426,7 +3426,7 @@ slimbam: dma-controller@9184000 {
qcom,controlled-remotely; qcom,controlled-remotely;
reg = <0x09184000 0x32000>; reg = <0x09184000 0x32000>;
num-channels = <31>; num-channels = <31>;
interrupts = <0 164 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>;
#dma-cells = <1>; #dma-cells = <1>;
qcom,ee = <1>; qcom,ee = <1>;
qcom,num-ees = <2>; qcom,num-ees = <2>;
...@@ -3435,7 +3435,7 @@ slimbam: dma-controller@9184000 { ...@@ -3435,7 +3435,7 @@ slimbam: dma-controller@9184000 {
slim_msm: slim-ngd@91c0000 { slim_msm: slim-ngd@91c0000 {
compatible = "qcom,slim-ngd-v1.5.0"; compatible = "qcom,slim-ngd-v1.5.0";
reg = <0x091c0000 0x2c000>; reg = <0x091c0000 0x2c000>;
interrupts = <0 163 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&slimbam 3>, <&slimbam 4>; dmas = <&slimbam 3>, <&slimbam 4>;
dma-names = "rx", "tx"; dma-names = "rx", "tx";
#address-cells = <1>; #address-cells = <1>;
......
...@@ -1494,7 +1494,7 @@ adreno_gpu: gpu@5000000 { ...@@ -1494,7 +1494,7 @@ adreno_gpu: gpu@5000000 {
"rbcpr", "rbcpr",
"core"; "core";
interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
iommus = <&adreno_smmu 0>; iommus = <&adreno_smmu 0>;
operating-points-v2 = <&gpu_opp_table>; operating-points-v2 = <&gpu_opp_table>;
power-domains = <&rpmpd MSM8998_VDDMX>; power-domains = <&rpmpd MSM8998_VDDMX>;
......
...@@ -1034,7 +1034,7 @@ adreno_gpu: gpu@5000000 { ...@@ -1034,7 +1034,7 @@ adreno_gpu: gpu@5000000 {
reg = <0x05000000 0x40000>; reg = <0x05000000 0x40000>;
reg-names = "kgsl_3d0_reg_memory"; reg-names = "kgsl_3d0_reg_memory";
interrupts = <0 300 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 300 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_GPU_CFG_AHB_CLK>, clocks = <&gcc GCC_GPU_CFG_AHB_CLK>,
<&gpucc GPUCC_RBBMTIMER_CLK>, <&gpucc GPUCC_RBBMTIMER_CLK>,
...@@ -2290,50 +2290,50 @@ timer@17920000 { ...@@ -2290,50 +2290,50 @@ timer@17920000 {
frame@17921000 { frame@17921000 {
frame-number = <0>; frame-number = <0>;
interrupts = <0 8 0x4>, interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>,
<0 7 0x4>; <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17921000 0x1000>, reg = <0x17921000 0x1000>,
<0x17922000 0x1000>; <0x17922000 0x1000>;
}; };
frame@17923000 { frame@17923000 {
frame-number = <1>; frame-number = <1>;
interrupts = <0 9 0x4>; interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17923000 0x1000>; reg = <0x17923000 0x1000>;
status = "disabled"; status = "disabled";
}; };
frame@17924000 { frame@17924000 {
frame-number = <2>; frame-number = <2>;
interrupts = <0 10 0x4>; interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17924000 0x1000>; reg = <0x17924000 0x1000>;
status = "disabled"; status = "disabled";
}; };
frame@17925000 { frame@17925000 {
frame-number = <3>; frame-number = <3>;
interrupts = <0 11 0x4>; interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17925000 0x1000>; reg = <0x17925000 0x1000>;
status = "disabled"; status = "disabled";
}; };
frame@17926000 { frame@17926000 {
frame-number = <4>; frame-number = <4>;
interrupts = <0 12 0x4>; interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17926000 0x1000>; reg = <0x17926000 0x1000>;
status = "disabled"; status = "disabled";
}; };
frame@17927000 { frame@17927000 {
frame-number = <5>; frame-number = <5>;
interrupts = <0 13 0x4>; interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17927000 0x1000>; reg = <0x17927000 0x1000>;
status = "disabled"; status = "disabled";
}; };
frame@17928000 { frame@17928000 {
frame-number = <6>; frame-number = <6>;
interrupts = <0 14 0x4>; interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
reg = <0x17928000 0x1000>; reg = <0x17928000 0x1000>;
status = "disabled"; status = "disabled";
}; };
......
...@@ -440,7 +440,7 @@ touchscreen@38 { ...@@ -440,7 +440,7 @@ touchscreen@38 {
reg = <0x38>; reg = <0x38>;
wakeup-source; wakeup-source;
interrupt-parent = <&tlmm>; interrupt-parent = <&tlmm>;
interrupts = <125 0x2>; interrupts = <125 IRQ_TYPE_EDGE_FALLING>;
vdd-supply = <&vreg_l28a_3p0>; vdd-supply = <&vreg_l28a_3p0>;
vcc-i2c-supply = <&vreg_l14a_1p88>; vcc-i2c-supply = <&vreg_l14a_1p88>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment