提交 6ff0b90d 编写于 作者: K Krzysztof Kozlowski

ARM: dts: exynos: Use human-friendly symbols for interrupt flags in board sources

Replace hard-coded values of interrupt flags with respective macros from
header to increase code readability.
Suggested-by: NMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: NKrzysztof Kozlowski <krzk@kernel.org>
上级 5343b157
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
max77836: subpmic@25 { max77836: subpmic@25 {
compatible = "maxim,max77836"; compatible = "maxim,max77836";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <5 0>; interrupts = <5 IRQ_TYPE_NONE>;
reg = <0x25>; reg = <0x25>;
wakeup-source; wakeup-source;
...@@ -191,7 +191,7 @@ ...@@ -191,7 +191,7 @@
s2mps14_pmic@66 { s2mps14_pmic@66 {
compatible = "samsung,s2mps14-pmic"; compatible = "samsung,s2mps14-pmic";
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <7 0>; interrupts = <7 IRQ_TYPE_NONE>;
reg = <0x66>; reg = <0x66>;
wakeup-source; wakeup-source;
...@@ -414,7 +414,7 @@ ...@@ -414,7 +414,7 @@
fuelgauge@36 { fuelgauge@36 {
compatible = "maxim,max77836-battery"; compatible = "maxim,max77836-battery";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <2 8>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
reg = <0x36>; reg = <0x36>;
}; };
}; };
......
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
max77836: subpmic@25 { max77836: subpmic@25 {
compatible = "maxim,max77836"; compatible = "maxim,max77836";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <5 0>; interrupts = <5 IRQ_TYPE_NONE>;
reg = <0x25>; reg = <0x25>;
wakeup-source; wakeup-source;
...@@ -295,7 +295,7 @@ ...@@ -295,7 +295,7 @@
s2mps14_pmic@66 { s2mps14_pmic@66 {
compatible = "samsung,s2mps14-pmic"; compatible = "samsung,s2mps14-pmic";
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <7 0>; interrupts = <7 IRQ_TYPE_NONE>;
reg = <0x66>; reg = <0x66>;
wakeup-source; wakeup-source;
...@@ -626,7 +626,7 @@ ...@@ -626,7 +626,7 @@
fuelgauge@36 { fuelgauge@36 {
compatible = "maxim,max77836-battery"; compatible = "maxim,max77836-battery";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <2 8>; interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
reg = <0x36>; reg = <0x36>;
}; };
}; };
......
...@@ -151,7 +151,7 @@ ...@@ -151,7 +151,7 @@
compatible = "maxim,max8997-pmic"; compatible = "maxim,max8997-pmic";
reg = <0x66>; reg = <0x66>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <4 0>, <3 0>; interrupts = <4 IRQ_TYPE_NONE>, <3 IRQ_TYPE_NONE>;
max8997,pmic-buck1-dvs-voltage = <1350000>; max8997,pmic-buck1-dvs-voltage = <1350000>;
max8997,pmic-buck2-dvs-voltage = <1100000>; max8997,pmic-buck2-dvs-voltage = <1100000>;
......
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
compatible = "melfas,mms114"; compatible = "melfas,mms114";
reg = <0x48>; reg = <0x48>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <4 2>; interrupts = <4 IRQ_TYPE_EDGE_FALLING>;
x-size = <720>; x-size = <720>;
y-size = <1280>; y-size = <1280>;
avdd-supply = <&tsp_reg>; avdd-supply = <&tsp_reg>;
...@@ -302,7 +302,7 @@ ...@@ -302,7 +302,7 @@
reg = <0x66>; reg = <0x66>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <7 0>; interrupts = <7 IRQ_TYPE_NONE>;
max8997,pmic-buck1-uses-gpio-dvs; max8997,pmic-buck1-uses-gpio-dvs;
max8997,pmic-buck2-uses-gpio-dvs; max8997,pmic-buck2-uses-gpio-dvs;
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
power_key { power_key {
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <3 0>; interrupts = <3 IRQ_TYPE_NONE>;
gpios = <&gpx1 3 GPIO_ACTIVE_LOW>; gpios = <&gpx1 3 GPIO_ACTIVE_LOW>;
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
label = "power key"; label = "power key";
...@@ -266,7 +266,7 @@ ...@@ -266,7 +266,7 @@
max77686: pmic@09 { max77686: pmic@09 {
compatible = "maxim,max77686"; compatible = "maxim,max77686";
interrupt-parent = <&gpx3>; interrupt-parent = <&gpx3>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&max77686_irq>; pinctrl-0 = <&max77686_irq>;
reg = <0x09>; reg = <0x09>;
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
compatible = "maxim,max98090"; compatible = "maxim,max98090";
reg = <0x10>; reg = <0x10>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <0 0>; interrupts = <0 IRQ_TYPE_NONE>;
clocks = <&i2s0 CLK_I2S_CDCLK>; clocks = <&i2s0 CLK_I2S_CDCLK>;
clock-names = "mclk"; clock-names = "mclk";
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
home_key { home_key {
interrupt-parent = <&gpx2>; interrupt-parent = <&gpx2>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>; gpios = <&gpx2 2 GPIO_ACTIVE_HIGH>;
linux,code = <KEY_HOME>; linux,code = <KEY_HOME>;
label = "home key"; label = "home key";
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
max77693@66 { max77693@66 {
compatible = "maxim,max77693"; compatible = "maxim,max77693";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <5 2>; interrupts = <5 IRQ_TYPE_EDGE_FALLING>;
reg = <0x66>; reg = <0x66>;
regulators { regulators {
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
compatible = "capella,cm36651"; compatible = "capella,cm36651";
reg = <0x18>; reg = <0x18>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <2 2>; interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
vled-supply = <&ps_als_reg>; vled-supply = <&ps_als_reg>;
}; };
}; };
...@@ -573,7 +573,7 @@ ...@@ -573,7 +573,7 @@
compatible = "melfas,mms114"; compatible = "melfas,mms114";
reg = <0x48>; reg = <0x48>;
interrupt-parent = <&gpm2>; interrupt-parent = <&gpm2>;
interrupts = <3 2>; interrupts = <3 IRQ_TYPE_EDGE_FALLING>;
x-size = <720>; x-size = <720>;
y-size = <1280>; y-size = <1280>;
avdd-supply = <&ldo23_reg>; avdd-supply = <&ldo23_reg>;
...@@ -611,7 +611,7 @@ ...@@ -611,7 +611,7 @@
max77686: max77686_pmic@09 { max77686: max77686_pmic@09 {
compatible = "maxim,max77686"; compatible = "maxim,max77686";
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
interrupts = <7 0>; interrupts = <7 IRQ_TYPE_NONE>;
reg = <0x09>; reg = <0x09>;
#clock-cells = <1>; #clock-cells = <1>;
......
...@@ -603,7 +603,7 @@ ...@@ -603,7 +603,7 @@
max98090: codec@10 { max98090: codec@10 {
compatible = "maxim,max98090"; compatible = "maxim,max98090";
reg = <0x10>; reg = <0x10>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&max98090_irq>; pinctrl-0 = <&max98090_irq>;
...@@ -944,7 +944,7 @@ ...@@ -944,7 +944,7 @@
cros_ec: cros-ec@0 { cros_ec: cros-ec@0 {
compatible = "google,cros-ec-spi"; compatible = "google,cros-ec-spi";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <5 0>; interrupts = <5 IRQ_TYPE_NONE>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ec_spi_cs &ec_irq>; pinctrl-0 = <&ec_spi_cs &ec_irq>;
reg = <0>; reg = <0>;
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
compatible = "maxim,max98090"; compatible = "maxim,max98090";
reg = <0x10>; reg = <0x10>;
interrupt-parent = <&gpx3>; interrupt-parent = <&gpx3>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
clocks = <&i2s0 CLK_I2S_CDCLK>; clocks = <&i2s0 CLK_I2S_CDCLK>;
clock-names = "mclk"; clock-names = "mclk";
#sound-dai-cells = <0>; #sound-dai-cells = <0>;
......
...@@ -603,7 +603,7 @@ ...@@ -603,7 +603,7 @@
max98091: codec@10 { max98091: codec@10 {
compatible = "maxim,max98091"; compatible = "maxim,max98091";
reg = <0x10>; reg = <0x10>;
interrupts = <2 0>; interrupts = <2 IRQ_TYPE_NONE>;
interrupt-parent = <&gpx0>; interrupt-parent = <&gpx0>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&max98091_irq>; pinctrl-0 = <&max98091_irq>;
...@@ -913,7 +913,7 @@ ...@@ -913,7 +913,7 @@
cros_ec: cros-ec@0 { cros_ec: cros-ec@0 {
compatible = "google,cros-ec-spi"; compatible = "google,cros-ec-spi";
interrupt-parent = <&gpx1>; interrupt-parent = <&gpx1>;
interrupts = <5 0>; interrupts = <5 IRQ_TYPE_NONE>;
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&ec_spi_cs &ec_irq>; pinctrl-0 = <&ec_spi_cs &ec_irq>;
reg = <0>; reg = <0>;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册