Commit 6ff0b90d authored by Krzysztof Kozlowski's avatar 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: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
parent 5343b157
...@@ -67,7 +67,7 @@ i2c_max77836: i2c-gpio-0 { ...@@ -67,7 +67,7 @@ i2c_max77836: i2c-gpio-0 {
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 @@ &i2c_0 { ...@@ -191,7 +191,7 @@ &i2c_0 {
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 @@ &i2c_1 { ...@@ -414,7 +414,7 @@ &i2c_1 {
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 @@ i2c_max77836: i2c-gpio-0 { ...@@ -58,7 +58,7 @@ i2c_max77836: i2c-gpio-0 {
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 @@ &i2c_0 { ...@@ -295,7 +295,7 @@ &i2c_0 {
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 @@ &i2c_1 { ...@@ -626,7 +626,7 @@ &i2c_1 {
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 @@ max8997_pmic@66 { ...@@ -151,7 +151,7 @@ max8997_pmic@66 {
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 @@ mms114-touchscreen@48 { ...@@ -281,7 +281,7 @@ mms114-touchscreen@48 {
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 @@ max8997_pmic@66 { ...@@ -302,7 +302,7 @@ max8997_pmic@66 {
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 @@ gpio_keys { ...@@ -32,7 +32,7 @@ gpio_keys {
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 @@ usb3503: usb3503@08 { ...@@ -266,7 +266,7 @@ usb3503: usb3503@08 {
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 @@ max98090: max98090@10 { ...@@ -484,7 +484,7 @@ max98090: max98090@10 {
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 @@ gpio_keys { ...@@ -44,7 +44,7 @@ gpio_keys {
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 @@ i2c_max77693: i2c-gpio-1 { ...@@ -144,7 +144,7 @@ i2c_max77693: i2c-gpio-1 {
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 @@ cm36651@18 { ...@@ -224,7 +224,7 @@ cm36651@18 {
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 @@ mms114-touchscreen@48 { ...@@ -573,7 +573,7 @@ mms114-touchscreen@48 {
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 @@ &i2c_7 { ...@@ -611,7 +611,7 @@ &i2c_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 @@ &hsi2c_7 { ...@@ -603,7 +603,7 @@ &hsi2c_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 @@ &spi_2 { ...@@ -944,7 +944,7 @@ &spi_2 {
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 @@ max98090: max98090@10 { ...@@ -49,7 +49,7 @@ max98090: max98090@10 {
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 @@ &hsi2c_7 { ...@@ -603,7 +603,7 @@ &hsi2c_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 @@ &spi_2 { ...@@ -913,7 +913,7 @@ &spi_2 {
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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment