Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: at91: dt: switch to standard GPIO flag defines.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>

authored by

Jean-Christophe PLAGNIOL-VILLARD and committed by
Nicolas Ferre
92f8629b 6db64d29

+144 -137
+5 -5
arch/arm/boot/dts/aks-cdu.dts
··· 46 46 }; 47 47 48 48 usb1: gadget@fffa4000 { 49 - atmel,vbus-gpio = <&pioC 15 0>; 49 + atmel,vbus-gpio = <&pioC 15 GPIO_ACTIVE_HIGH>; 50 50 status = "okay"; 51 51 }; 52 52 }; ··· 90 90 compatible = "gpio-leds"; 91 91 92 92 red { 93 - gpios = <&pioC 10 0>; 93 + gpios = <&pioC 10 GPIO_ACTIVE_HIGH>; 94 94 linux,default-trigger = "none"; 95 95 }; 96 96 97 97 green { 98 - gpios = <&pioA 5 1>; 98 + gpios = <&pioA 5 GPIO_ACTIVE_LOW>; 99 99 linux,default-trigger = "none"; 100 100 default-state = "on"; 101 101 }; 102 102 103 103 yellow { 104 - gpios = <&pioB 20 1>; 104 + gpios = <&pioB 20 GPIO_ACTIVE_LOW>; 105 105 linux,default-trigger = "none"; 106 106 }; 107 107 108 108 blue { 109 - gpios = <&pioB 21 1>; 109 + gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 110 110 linux,default-trigger = "none"; 111 111 }; 112 112 };
+8 -8
arch/arm/boot/dts/animeo_ip.dts
··· 123 123 124 124 usb0: ohci@00500000 { 125 125 num-ports = <2>; 126 - atmel,vbus-gpio = <&pioB 15 1>; 126 + atmel,vbus-gpio = <&pioB 15 GPIO_ACTIVE_LOW>; 127 127 status = "okay"; 128 128 }; 129 129 }; ··· 133 133 134 134 power_green { 135 135 label = "power_green"; 136 - gpios = <&pioC 17 0>; 136 + gpios = <&pioC 17 GPIO_ACTIVE_HIGH>; 137 137 linux,default-trigger = "heartbeat"; 138 138 }; 139 139 140 140 power_red { 141 141 label = "power_red"; 142 - gpios = <&pioA 2 0>; 142 + gpios = <&pioA 2 GPIO_ACTIVE_HIGH>; 143 143 }; 144 144 145 145 tx_green { 146 146 label = "tx_green"; 147 - gpios = <&pioC 19 0>; 147 + gpios = <&pioC 19 GPIO_ACTIVE_HIGH>; 148 148 }; 149 149 150 150 tx_red { 151 151 label = "tx_red"; 152 - gpios = <&pioC 18 0>; 152 + gpios = <&pioC 18 GPIO_ACTIVE_HIGH>; 153 153 }; 154 154 }; 155 155 ··· 160 160 161 161 keyswitch_in { 162 162 label = "keyswitch_in"; 163 - gpios = <&pioB 1 0>; 163 + gpios = <&pioB 1 GPIO_ACTIVE_HIGH>; 164 164 linux,code = <28>; 165 165 gpio-key,wakeup; 166 166 }; 167 167 168 168 error_in { 169 169 label = "error_in"; 170 - gpios = <&pioB 2 0>; 170 + gpios = <&pioB 2 GPIO_ACTIVE_HIGH>; 171 171 linux,code = <29>; 172 172 gpio-key,wakeup; 173 173 }; 174 174 175 175 btn { 176 176 label = "btn"; 177 - gpios = <&pioC 23 0>; 177 + gpios = <&pioC 23 GPIO_ACTIVE_HIGH>; 178 178 linux,code = <31>; 179 179 gpio-key,wakeup; 180 180 };
+2 -2
arch/arm/boot/dts/at91-ariag25.dts
··· 156 156 /* little green LED in middle of Aria G25 module */ 157 157 aria_led { 158 158 label = "aria_led"; 159 - gpios = <&pioB 8 0>; /* PB8 */ 159 + gpios = <&pioB 8 GPIO_ACTIVE_HIGH>; /* PB8 */ 160 160 linux,default-trigger = "heartbeat"; 161 161 }; 162 162 ··· 164 164 165 165 onewire@0 { 166 166 compatible = "w1-gpio"; 167 - gpios = <&pioA 21 1>; 167 + gpios = <&pioA 21 GPIO_ACTIVE_LOW>; 168 168 pinctrl-names = "default"; 169 169 pinctrl-0 = <&pinctrl_w1_0>; 170 170 };
+5 -4
arch/arm/boot/dts/at91rm9200.dtsi
··· 11 11 */ 12 12 13 13 #include "skeleton.dtsi" 14 + #include <dt-bindings/gpio/gpio.h> 14 15 15 16 / { 16 17 model = "Atmel AT91RM9200 family SoC"; ··· 504 503 pinctrl-names = "default"; 505 504 pinctrl-0 = <&pinctrl_nand>; 506 505 nand-ecc-mode = "soft"; 507 - gpios = <&pioC 2 0 506 + gpios = <&pioC 2 GPIO_ACTIVE_HIGH 508 507 0 509 - &pioB 1 0 508 + &pioB 1 GPIO_ACTIVE_HIGH 510 509 >; 511 510 status = "disabled"; 512 511 }; ··· 521 520 522 521 i2c@0 { 523 522 compatible = "i2c-gpio"; 524 - gpios = <&pioA 25 0 /* sda */ 525 - &pioA 26 0 /* scl */ 523 + gpios = <&pioA 25 GPIO_ACTIVE_HIGH /* sda */ 524 + &pioA 26 GPIO_ACTIVE_HIGH /* scl */ 526 525 >; 527 526 i2c-gpio,sda-open-drain; 528 527 i2c-gpio,scl-open-drain;
+4 -4
arch/arm/boot/dts/at91rm9200ek.dts
··· 50 50 }; 51 51 52 52 usb1: gadget@fffb0000 { 53 - atmel,vbus-gpio = <&pioD 4 0>; 53 + atmel,vbus-gpio = <&pioD 4 GPIO_ACTIVE_HIGH>; 54 54 status = "okay"; 55 55 }; 56 56 }; ··· 66 66 67 67 ds2 { 68 68 label = "green"; 69 - gpios = <&pioB 0 0x1>; 69 + gpios = <&pioB 0 GPIO_ACTIVE_LOW>; 70 70 linux,default-trigger = "mmc0"; 71 71 }; 72 72 73 73 ds4 { 74 74 label = "yellow"; 75 - gpios = <&pioB 1 0x1>; 75 + gpios = <&pioB 1 GPIO_ACTIVE_LOW>; 76 76 linux,default-trigger = "heartbeat"; 77 77 }; 78 78 79 79 ds6 { 80 80 label = "red"; 81 - gpios = <&pioB 2 0x1>; 81 + gpios = <&pioB 2 GPIO_ACTIVE_LOW>; 82 82 }; 83 83 }; 84 84 };
+5 -4
arch/arm/boot/dts/at91sam9260.dtsi
··· 9 9 */ 10 10 11 11 #include "skeleton.dtsi" 12 + #include <dt-bindings/gpio/gpio.h> 12 13 13 14 / { 14 15 model = "Atmel AT91SAM9260 family SoC"; ··· 568 567 atmel,nand-cmd-offset = <22>; 569 568 pinctrl-names = "default"; 570 569 pinctrl-0 = <&pinctrl_nand>; 571 - gpios = <&pioC 13 0 572 - &pioC 14 0 570 + gpios = <&pioC 13 GPIO_ACTIVE_HIGH 571 + &pioC 14 GPIO_ACTIVE_HIGH 573 572 0 574 573 >; 575 574 status = "disabled"; ··· 585 584 586 585 i2c@0 { 587 586 compatible = "i2c-gpio"; 588 - gpios = <&pioA 23 0 /* sda */ 589 - &pioA 24 0 /* scl */ 587 + gpios = <&pioA 23 GPIO_ACTIVE_HIGH /* sda */ 588 + &pioA 24 GPIO_ACTIVE_HIGH /* scl */ 590 589 >; 591 590 i2c-gpio,sda-open-drain; 592 591 i2c-gpio,scl-open-drain;
+5 -4
arch/arm/boot/dts/at91sam9263.dtsi
··· 7 7 */ 8 8 9 9 #include "skeleton.dtsi" 10 + #include <dt-bindings/gpio/gpio.h> 10 11 11 12 / { 12 13 model = "Atmel AT91SAM9263 family SoC"; ··· 516 515 atmel,nand-cmd-offset = <22>; 517 516 pinctrl-names = "default"; 518 517 pinctrl-0 = <&pinctrl_nand>; 519 - gpios = <&pioA 22 0 520 - &pioD 15 0 518 + gpios = <&pioA 22 GPIO_ACTIVE_HIGH 519 + &pioD 15 GPIO_ACTIVE_HIGH 521 520 0 522 521 >; 523 522 status = "disabled"; ··· 533 532 534 533 i2c@0 { 535 534 compatible = "i2c-gpio"; 536 - gpios = <&pioB 4 0 /* sda */ 537 - &pioB 5 0 /* scl */ 535 + gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */ 536 + &pioB 5 GPIO_ACTIVE_HIGH /* scl */ 538 537 >; 539 538 i2c-gpio,sda-open-drain; 540 539 i2c-gpio,scl-open-drain;
+9 -9
arch/arm/boot/dts/at91sam9263ek.dts
··· 51 51 }; 52 52 53 53 usb1: gadget@fff78000 { 54 - atmel,vbus-gpio = <&pioA 25 0>; 54 + atmel,vbus-gpio = <&pioA 25 GPIO_ACTIVE_HIGH>; 55 55 status = "okay"; 56 56 }; 57 57 ··· 65 65 slot@0 { 66 66 reg = <0>; 67 67 bus-width = <4>; 68 - cd-gpios = <&pioE 18 0>; 69 - wp-gpios = <&pioE 19 0>; 68 + cd-gpios = <&pioE 18 GPIO_ACTIVE_HIGH>; 69 + wp-gpios = <&pioE 19 GPIO_ACTIVE_HIGH>; 70 70 }; 71 71 }; 72 72 ··· 141 141 usb0: ohci@00a00000 { 142 142 num-ports = <2>; 143 143 status = "okay"; 144 - atmel,vbus-gpio = <&pioA 24 0 145 - &pioA 21 0 144 + atmel,vbus-gpio = <&pioA 24 GPIO_ACTIVE_HIGH 145 + &pioA 21 GPIO_ACTIVE_HIGH 146 146 >; 147 147 }; 148 148 }; ··· 152 152 153 153 d3 { 154 154 label = "d3"; 155 - gpios = <&pioB 7 0>; 155 + gpios = <&pioB 7 GPIO_ACTIVE_HIGH>; 156 156 linux,default-trigger = "heartbeat"; 157 157 }; 158 158 159 159 d2 { 160 160 label = "d2"; 161 - gpios = <&pioC 29 1>; 161 + gpios = <&pioC 29 GPIO_ACTIVE_LOW>; 162 162 linux,default-trigger = "nand-disk"; 163 163 }; 164 164 }; ··· 168 168 169 169 left_click { 170 170 label = "left_click"; 171 - gpios = <&pioC 5 1>; 171 + gpios = <&pioC 5 GPIO_ACTIVE_LOW>; 172 172 linux,code = <272>; 173 173 gpio-key,wakeup; 174 174 }; 175 175 176 176 right_click { 177 177 label = "right_click"; 178 - gpios = <&pioC 4 1>; 178 + gpios = <&pioC 4 GPIO_ACTIVE_LOW>; 179 179 linux,code = <273>; 180 180 gpio-key,wakeup; 181 181 };
+2 -2
arch/arm/boot/dts/at91sam9g20ek.dts
··· 17 17 18 18 ds1 { 19 19 label = "ds1"; 20 - gpios = <&pioA 9 0>; 20 + gpios = <&pioA 9 GPIO_ACTIVE_HIGH>; 21 21 linux,default-trigger = "heartbeat"; 22 22 }; 23 23 24 24 ds5 { 25 25 label = "ds5"; 26 - gpios = <&pioA 6 1>; 26 + gpios = <&pioA 6 GPIO_ACTIVE_LOW>; 27 27 }; 28 28 }; 29 29 };
+3 -3
arch/arm/boot/dts/at91sam9g20ek_2mmc.dts
··· 23 23 slot@0 { 24 24 reg = <0>; 25 25 bus-width = <4>; 26 - cd-gpios = <&pioC 2 0>; 26 + cd-gpios = <&pioC 2 GPIO_ACTIVE_HIGH>; 27 27 }; 28 28 }; 29 29 ··· 43 43 44 44 ds1 { 45 45 label = "ds1"; 46 - gpios = <&pioB 9 0>; 46 + gpios = <&pioB 9 GPIO_ACTIVE_HIGH>; 47 47 linux,default-trigger = "heartbeat"; 48 48 }; 49 49 50 50 ds5 { 51 51 label = "ds5"; 52 - gpios = <&pioB 8 1>; 52 + gpios = <&pioB 8 GPIO_ACTIVE_LOW>; 53 53 }; 54 54 }; 55 55 };
+4 -4
arch/arm/boot/dts/at91sam9g20ek_common.dtsi
··· 65 65 }; 66 66 67 67 usb1: gadget@fffa4000 { 68 - atmel,vbus-gpio = <&pioC 5 0>; 68 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 69 69 status = "okay"; 70 70 }; 71 71 ··· 79 79 slot@1 { 80 80 reg = <1>; 81 81 bus-width = <4>; 82 - cd-gpios = <&pioC 9 0>; 82 + cd-gpios = <&pioC 9 GPIO_ACTIVE_HIGH>; 83 83 }; 84 84 }; 85 85 ··· 180 180 181 181 btn3 { 182 182 label = "Button 3"; 183 - gpios = <&pioA 30 1>; 183 + gpios = <&pioA 30 GPIO_ACTIVE_LOW>; 184 184 linux,code = <0x103>; 185 185 gpio-key,wakeup; 186 186 }; 187 187 188 188 btn4 { 189 189 label = "Button 4"; 190 - gpios = <&pioA 31 1>; 190 + gpios = <&pioA 31 GPIO_ACTIVE_LOW>; 191 191 linux,code = <0x104>; 192 192 gpio-key,wakeup; 193 193 };
+5 -4
arch/arm/boot/dts/at91sam9g45.dtsi
··· 10 10 */ 11 11 12 12 #include "skeleton.dtsi" 13 + #include <dt-bindings/gpio/gpio.h> 13 14 14 15 / { 15 16 model = "Atmel AT91SAM9G45 family SoC"; ··· 593 592 atmel,nand-cmd-offset = <22>; 594 593 pinctrl-names = "default"; 595 594 pinctrl-0 = <&pinctrl_nand>; 596 - gpios = <&pioC 8 0 597 - &pioC 14 0 595 + gpios = <&pioC 8 GPIO_ACTIVE_HIGH 596 + &pioC 14 GPIO_ACTIVE_HIGH 598 597 0 599 598 >; 600 599 status = "disabled"; ··· 617 616 618 617 i2c@0 { 619 618 compatible = "i2c-gpio"; 620 - gpios = <&pioA 20 0 /* sda */ 621 - &pioA 21 0 /* scl */ 619 + gpios = <&pioA 20 GPIO_ACTIVE_HIGH /* sda */ 620 + &pioA 21 GPIO_ACTIVE_HIGH /* scl */ 622 621 >; 623 622 i2c-gpio,sda-open-drain; 624 623 i2c-gpio,scl-open-drain;
+15 -15
arch/arm/boot/dts/at91sam9m10g45ek.dts
··· 68 68 slot@0 { 69 69 reg = <0>; 70 70 bus-width = <4>; 71 - cd-gpios = <&pioD 10 0>; 71 + cd-gpios = <&pioD 10 GPIO_ACTIVE_HIGH>; 72 72 }; 73 73 }; 74 74 ··· 81 81 slot@0 { 82 82 reg = <0>; 83 83 bus-width = <4>; 84 - cd-gpios = <&pioD 11 0>; 85 - wp-gpios = <&pioD 29 0>; 84 + cd-gpios = <&pioD 11 GPIO_ACTIVE_HIGH>; 85 + wp-gpios = <&pioD 29 GPIO_ACTIVE_HIGH>; 86 86 }; 87 87 }; 88 88 ··· 139 139 usb0: ohci@00700000 { 140 140 status = "okay"; 141 141 num-ports = <2>; 142 - atmel,vbus-gpio = <&pioD 1 1 143 - &pioD 3 1>; 142 + atmel,vbus-gpio = <&pioD 1 GPIO_ACTIVE_LOW 143 + &pioD 3 GPIO_ACTIVE_LOW>; 144 144 }; 145 145 146 146 usb1: ehci@00800000 { ··· 153 153 154 154 d8 { 155 155 label = "d8"; 156 - gpios = <&pioD 30 0>; 156 + gpios = <&pioD 30 GPIO_ACTIVE_HIGH>; 157 157 linux,default-trigger = "heartbeat"; 158 158 }; 159 159 160 160 d6 { 161 161 label = "d6"; 162 - gpios = <&pioD 0 1>; 162 + gpios = <&pioD 0 GPIO_ACTIVE_LOW>; 163 163 linux,default-trigger = "nand-disk"; 164 164 }; 165 165 166 166 d7 { 167 167 label = "d7"; 168 - gpios = <&pioD 31 1>; 168 + gpios = <&pioD 31 GPIO_ACTIVE_LOW>; 169 169 linux,default-trigger = "mmc0"; 170 170 }; 171 171 }; ··· 175 175 176 176 left_click { 177 177 label = "left_click"; 178 - gpios = <&pioB 6 1>; 178 + gpios = <&pioB 6 GPIO_ACTIVE_LOW>; 179 179 linux,code = <272>; 180 180 gpio-key,wakeup; 181 181 }; 182 182 183 183 right_click { 184 184 label = "right_click"; 185 - gpios = <&pioB 7 1>; 185 + gpios = <&pioB 7 GPIO_ACTIVE_LOW>; 186 186 linux,code = <273>; 187 187 gpio-key,wakeup; 188 188 }; 189 189 190 190 left { 191 191 label = "Joystick Left"; 192 - gpios = <&pioB 14 1>; 192 + gpios = <&pioB 14 GPIO_ACTIVE_LOW>; 193 193 linux,code = <105>; 194 194 }; 195 195 196 196 right { 197 197 label = "Joystick Right"; 198 - gpios = <&pioB 15 1>; 198 + gpios = <&pioB 15 GPIO_ACTIVE_LOW>; 199 199 linux,code = <106>; 200 200 }; 201 201 202 202 up { 203 203 label = "Joystick Up"; 204 - gpios = <&pioB 16 1>; 204 + gpios = <&pioB 16 GPIO_ACTIVE_LOW>; 205 205 linux,code = <103>; 206 206 }; 207 207 208 208 down { 209 209 label = "Joystick Down"; 210 - gpios = <&pioB 17 1>; 210 + gpios = <&pioB 17 GPIO_ACTIVE_LOW>; 211 211 linux,code = <108>; 212 212 }; 213 213 214 214 enter { 215 215 label = "Joystick Press"; 216 - gpios = <&pioB 18 1>; 216 + gpios = <&pioB 18 GPIO_ACTIVE_LOW>; 217 217 linux,code = <28>; 218 218 }; 219 219 };
+5 -4
arch/arm/boot/dts/at91sam9n12.dtsi
··· 8 8 */ 9 9 10 10 #include "skeleton.dtsi" 11 + #include <dt-bindings/gpio/gpio.h> 11 12 12 13 / { 13 14 model = "Atmel AT91SAM9N12 SoC"; ··· 439 438 atmel,nand-cmd-offset = <22>; 440 439 pinctrl-names = "default"; 441 440 pinctrl-0 = <&pinctrl_nand>; 442 - gpios = <&pioD 5 0 443 - &pioD 4 0 441 + gpios = <&pioD 5 GPIO_ACTIVE_HIGH 442 + &pioD 4 GPIO_ACTIVE_HIGH 444 443 0 445 444 >; 446 445 status = "disabled"; ··· 456 455 457 456 i2c@0 { 458 457 compatible = "i2c-gpio"; 459 - gpios = <&pioA 30 0 /* sda */ 460 - &pioA 31 0 /* scl */ 458 + gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */ 459 + &pioA 31 GPIO_ACTIVE_HIGH /* scl */ 461 460 >; 462 461 i2c-gpio,sda-open-drain; 463 462 i2c-gpio,scl-open-drain;
+5 -5
arch/arm/boot/dts/at91sam9n12ek.dts
··· 55 55 slot@0 { 56 56 reg = <0>; 57 57 bus-width = <4>; 58 - cd-gpios = <&pioA 7 0>; 58 + cd-gpios = <&pioA 7 GPIO_ACTIVE_HIGH>; 59 59 }; 60 60 }; 61 61 ··· 95 95 96 96 d8 { 97 97 label = "d8"; 98 - gpios = <&pioB 4 1>; 98 + gpios = <&pioB 4 GPIO_ACTIVE_LOW>; 99 99 linux,default-trigger = "mmc0"; 100 100 }; 101 101 102 102 d9 { 103 103 label = "d6"; 104 - gpios = <&pioB 5 1>; 104 + gpios = <&pioB 5 GPIO_ACTIVE_LOW>; 105 105 linux,default-trigger = "nand-disk"; 106 106 }; 107 107 108 108 d10 { 109 109 label = "d7"; 110 - gpios = <&pioB 6 0>; 110 + gpios = <&pioB 6 GPIO_ACTIVE_HIGH>; 111 111 linux,default-trigger = "heartbeat"; 112 112 }; 113 113 }; ··· 117 117 118 118 enter { 119 119 label = "Enter"; 120 - gpios = <&pioB 4 1>; 120 + gpios = <&pioB 4 GPIO_ACTIVE_LOW>; 121 121 linux,code = <28>; 122 122 gpio-key,wakeup; 123 123 };
+9 -8
arch/arm/boot/dts/at91sam9x5.dtsi
··· 10 10 */ 11 11 12 12 #include "skeleton.dtsi" 13 + #include <dt-bindings/gpio/gpio.h> 13 14 14 15 / { 15 16 model = "Atmel AT91SAM9x5 family SoC"; ··· 665 664 atmel,nand-cmd-offset = <22>; 666 665 pinctrl-names = "default"; 667 666 pinctrl-0 = <&pinctrl_nand>; 668 - gpios = <&pioD 5 0 669 - &pioD 4 0 667 + gpios = <&pioD 5 GPIO_ACTIVE_HIGH 668 + &pioD 4 GPIO_ACTIVE_HIGH 670 669 0 671 670 >; 672 671 status = "disabled"; ··· 689 688 690 689 i2c@0 { 691 690 compatible = "i2c-gpio"; 692 - gpios = <&pioA 30 0 /* sda */ 693 - &pioA 31 0 /* scl */ 691 + gpios = <&pioA 30 GPIO_ACTIVE_HIGH /* sda */ 692 + &pioA 31 GPIO_ACTIVE_HIGH /* scl */ 694 693 >; 695 694 i2c-gpio,sda-open-drain; 696 695 i2c-gpio,scl-open-drain; ··· 704 703 705 704 i2c@1 { 706 705 compatible = "i2c-gpio"; 707 - gpios = <&pioC 0 0 /* sda */ 708 - &pioC 1 0 /* scl */ 706 + gpios = <&pioC 0 GPIO_ACTIVE_HIGH /* sda */ 707 + &pioC 1 GPIO_ACTIVE_HIGH /* scl */ 709 708 >; 710 709 i2c-gpio,sda-open-drain; 711 710 i2c-gpio,scl-open-drain; ··· 719 718 720 719 i2c@2 { 721 720 compatible = "i2c-gpio"; 722 - gpios = <&pioB 4 0 /* sda */ 723 - &pioB 5 0 /* scl */ 721 + gpios = <&pioB 4 GPIO_ACTIVE_HIGH /* sda */ 722 + &pioB 5 GPIO_ACTIVE_HIGH /* scl */ 724 723 >; 725 724 i2c-gpio,sda-open-drain; 726 725 i2c-gpio,scl-open-drain;
+3 -3
arch/arm/boot/dts/at91sam9x5cm.dtsi
··· 75 75 76 76 pb18 { 77 77 label = "pb18"; 78 - gpios = <&pioB 18 1>; 78 + gpios = <&pioB 18 GPIO_ACTIVE_LOW>; 79 79 linux,default-trigger = "heartbeat"; 80 80 }; 81 81 82 82 pd21 { 83 83 label = "pd21"; 84 - gpios = <&pioD 21 0>; 84 + gpios = <&pioD 21 GPIO_ACTIVE_HIGH>; 85 85 }; 86 86 }; 87 87 88 88 1wire_cm { 89 89 compatible = "w1-gpio"; 90 - gpios = <&pioB 18 0>; 90 + gpios = <&pioB 18 GPIO_ACTIVE_HIGH>; 91 91 linux,open-drain; 92 92 pinctrl-names = "default"; 93 93 pinctrl-0 = <&pinctrl_1wire_cm>;
+4 -4
arch/arm/boot/dts/at91sam9x5ek.dtsi
··· 27 27 slot@0 { 28 28 reg = <0>; 29 29 bus-width = <4>; 30 - cd-gpios = <&pioD 15 0>; 30 + cd-gpios = <&pioD 15 GPIO_ACTIVE_HIGH>; 31 31 }; 32 32 }; 33 33 ··· 40 40 slot@0 { 41 41 reg = <0>; 42 42 bus-width = <4>; 43 - cd-gpios = <&pioD 14 0>; 43 + cd-gpios = <&pioD 14 GPIO_ACTIVE_HIGH>; 44 44 }; 45 45 }; 46 46 ··· 86 86 usb0: ohci@00600000 { 87 87 status = "okay"; 88 88 num-ports = <2>; 89 - atmel,vbus-gpio = <&pioD 19 1 90 - &pioD 20 1 89 + atmel,vbus-gpio = <&pioD 19 GPIO_ACTIVE_LOW 90 + &pioD 20 GPIO_ACTIVE_LOW 91 91 >; 92 92 }; 93 93
+2 -2
arch/arm/boot/dts/ethernut5.dts
··· 40 40 }; 41 41 42 42 usb1: gadget@fffa4000 { 43 - atmel,vbus-gpio = <&pioC 5 0>; 43 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 44 44 status = "okay"; 45 45 }; 46 46 }; ··· 52 52 status = "okay"; 53 53 54 54 gpios = <0 55 - &pioC 14 0 55 + &pioC 14 GPIO_ACTIVE_HIGH 56 56 0 57 57 >; 58 58
+1 -1
arch/arm/boot/dts/evk-pro3.dts
··· 31 31 }; 32 32 33 33 usb1: gadget@fffa4000 { 34 - atmel,vbus-gpio = <&pioC 5 0>; 34 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 35 35 status = "okay"; 36 36 }; 37 37
+6 -6
arch/arm/boot/dts/kizbox.dts
··· 94 94 95 95 led1g { 96 96 label = "led1:green"; 97 - gpios = <&pioB 0 1>; 97 + gpios = <&pioB 0 GPIO_ACTIVE_LOW>; 98 98 linux,default-trigger = "none"; 99 99 }; 100 100 101 101 led1r { 102 102 label = "led1:red"; 103 - gpios = <&pioB 1 1>; 103 + gpios = <&pioB 1 GPIO_ACTIVE_LOW>; 104 104 linux,default-trigger = "none"; 105 105 }; 106 106 107 107 led2g { 108 108 label = "led2:green"; 109 - gpios = <&pioB 2 1>; 109 + gpios = <&pioB 2 GPIO_ACTIVE_LOW>; 110 110 linux,default-trigger = "none"; 111 111 default-state = "on"; 112 112 }; 113 113 114 114 led2r { 115 115 label = "led2:red"; 116 - gpios = <&pioB 3 1>; 116 + gpios = <&pioB 3 GPIO_ACTIVE_LOW>; 117 117 linux,default-trigger = "none"; 118 118 }; 119 119 }; ··· 125 125 126 126 reset { 127 127 label = "reset"; 128 - gpios = <&pioB 30 1>; 128 + gpios = <&pioB 30 GPIO_ACTIVE_LOW>; 129 129 linux,code = <0x100>; 130 130 gpio-key,wakeup; 131 131 }; 132 132 133 133 mode { 134 134 label = "mode"; 135 - gpios = <&pioB 31 1>; 135 + gpios = <&pioB 31 GPIO_ACTIVE_LOW>; 136 136 linux,code = <0x101>; 137 137 gpio-key,wakeup; 138 138 };
+1 -1
arch/arm/boot/dts/mpa1600.dts
··· 62 62 63 63 monitor_mute { 64 64 label = "Monitor mute"; 65 - gpios = <&pioC 1 1>; 65 + gpios = <&pioC 1 GPIO_ACTIVE_LOW>; 66 66 linux,code = <113>; 67 67 }; 68 68 };
+7 -7
arch/arm/boot/dts/pm9g45.dts
··· 64 64 slot@0 { 65 65 reg = <0>; 66 66 bus-width = <4>; 67 - cd-gpios = <&pioD 6 0>; 67 + cd-gpios = <&pioD 6 GPIO_ACTIVE_HIGH>; 68 68 }; 69 69 }; 70 70 ··· 81 81 nand-on-flash-bbt; 82 82 pinctrl-0 = <&pinctrl_board_nand>; 83 83 84 - gpios = <&pioD 3 0 85 - &pioC 14 0 84 + gpios = <&pioD 3 GPIO_ACTIVE_HIGH 85 + &pioC 14 GPIO_ACTIVE_HIGH 86 86 0 87 87 >; 88 88 ··· 134 134 135 135 led0 { 136 136 label = "led0"; 137 - gpios = <&pioD 0 1>; 137 + gpios = <&pioD 0 GPIO_ACTIVE_LOW>; 138 138 linux,default-trigger = "nand-disk"; 139 139 }; 140 140 141 141 led1 { 142 142 label = "led1"; 143 - gpios = <&pioD 31 0>; 143 + gpios = <&pioD 31 GPIO_ACTIVE_HIGH>; 144 144 linux,default-trigger = "heartbeat"; 145 145 }; 146 146 }; ··· 152 152 153 153 right { 154 154 label = "SW4"; 155 - gpios = <&pioE 7 1>; 155 + gpios = <&pioE 7 GPIO_ACTIVE_LOW>; 156 156 linux,code = <106>; 157 157 }; 158 158 159 159 up { 160 160 label = "SW3"; 161 - gpios = <&pioE 8 1>; 161 + gpios = <&pioE 8 GPIO_ACTIVE_LOW>; 162 162 linux,code = <103>; 163 163 }; 164 164 };
+1
arch/arm/boot/dts/sama5d3.dtsi
··· 9 9 */ 10 10 11 11 #include "skeleton.dtsi" 12 + #include <dt-bindings/gpio/gpio.h> 12 13 13 14 / { 14 15 model = "Atmel SAMA5D3 family SoC";
+1 -1
arch/arm/boot/dts/sama5d31ek.dts
··· 41 41 leds { 42 42 d3 { 43 43 label = "d3"; 44 - gpios = <&pioE 24 0>; 44 + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; 45 45 }; 46 46 }; 47 47
+1 -1
arch/arm/boot/dts/sama5d34ek.dts
··· 51 51 leds { 52 52 d3 { 53 53 label = "d3"; 54 - gpios = <&pioE 24 0>; 54 + gpios = <&pioE 24 GPIO_ACTIVE_HIGH>; 55 55 }; 56 56 }; 57 57
+1 -1
arch/arm/boot/dts/sama5d35ek.dts
··· 48 48 49 49 pb_user1 { 50 50 label = "pb_user1"; 51 - gpios = <&pioE 27 0>; 51 + gpios = <&pioE 27 GPIO_ACTIVE_HIGH>; 52 52 linux,code = <0x100>; 53 53 gpio-key,wakeup; 54 54 };
+1 -1
arch/arm/boot/dts/sama5d3xcm.dtsi
··· 85 85 86 86 d2 { 87 87 label = "d2"; 88 - gpios = <&pioE 25 1>; /* PE25, conflicts with A25, RXD2 */ 88 + gpios = <&pioE 25 GPIO_ACTIVE_LOW>; /* PE25, conflicts with A25, RXD2 */ 89 89 }; 90 90 }; 91 91 };
+6 -6
arch/arm/boot/dts/sama5d3xmb.dtsi
··· 20 20 slot@0 { 21 21 reg = <0>; 22 22 bus-width = <4>; 23 - cd-gpios = <&pioD 17 0>; 23 + cd-gpios = <&pioD 17 GPIO_ACTIVE_HIGH>; 24 24 }; 25 25 }; 26 26 ··· 62 62 slot@0 { 63 63 reg = <0>; 64 64 bus-width = <4>; 65 - cd-gpios = <&pioD 18 0>; 65 + cd-gpios = <&pioD 18 GPIO_ACTIVE_HIGH>; 66 66 }; 67 67 }; 68 68 ··· 127 127 }; 128 128 129 129 usb0: gadget@00500000 { 130 - atmel,vbus-gpio = <&pioD 29 0>; 130 + atmel,vbus-gpio = <&pioD 29 GPIO_ACTIVE_HIGH>; 131 131 pinctrl-names = "default"; 132 132 pinctrl-0 = <&pinctrl_usba_vbus>; 133 133 status = "okay"; ··· 135 135 136 136 usb1: ohci@00600000 { 137 137 num-ports = <3>; 138 - atmel,vbus-gpio = <&pioD 25 0 139 - &pioD 26 1 140 - &pioD 27 1 138 + atmel,vbus-gpio = <&pioD 25 GPIO_ACTIVE_HIGH 139 + &pioD 26 GPIO_ACTIVE_LOW 140 + &pioD 27 GPIO_ACTIVE_LOW 141 141 >; 142 142 status = "okay"; 143 143 };
+1 -1
arch/arm/boot/dts/tny_a9263.dts
··· 38 38 }; 39 39 40 40 usb1: gadget@fff78000 { 41 - atmel,vbus-gpio = <&pioB 11 0>; 41 + atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; 42 42 status = "okay"; 43 43 }; 44 44 };
+3 -3
arch/arm/boot/dts/usb_a9260_common.dtsi
··· 30 30 }; 31 31 32 32 usb1: gadget@fffa4000 { 33 - atmel,vbus-gpio = <&pioC 5 0>; 33 + atmel,vbus-gpio = <&pioC 5 GPIO_ACTIVE_HIGH>; 34 34 status = "okay"; 35 35 }; 36 36 }; ··· 93 93 94 94 user_led { 95 95 label = "user_led"; 96 - gpios = <&pioB 21 1>; 96 + gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 97 97 linux,default-trigger = "heartbeat"; 98 98 }; 99 99 }; ··· 105 105 106 106 user_pb { 107 107 label = "user_pb"; 108 - gpios = <&pioB 10 1>; 108 + gpios = <&pioB 10 GPIO_ACTIVE_LOW>; 109 109 linux,code = <28>; 110 110 gpio-key,wakeup; 111 111 };
+3 -3
arch/arm/boot/dts/usb_a9263.dts
··· 43 43 }; 44 44 45 45 usb1: gadget@fff78000 { 46 - atmel,vbus-gpio = <&pioB 11 0>; 46 + atmel,vbus-gpio = <&pioB 11 GPIO_ACTIVE_HIGH>; 47 47 status = "okay"; 48 48 }; 49 49 ··· 107 107 108 108 user_led { 109 109 label = "user_led"; 110 - gpios = <&pioB 21 0>; 110 + gpios = <&pioB 21 GPIO_ACTIVE_HIGH>; 111 111 linux,default-trigger = "heartbeat"; 112 112 }; 113 113 }; ··· 119 119 120 120 user_pb { 121 121 label = "user_pb"; 122 - gpios = <&pioB 10 1>; 122 + gpios = <&pioB 10 GPIO_ACTIVE_LOW>; 123 123 linux,code = <28>; 124 124 gpio-key,wakeup; 125 125 };
+11 -11
arch/arm/boot/dts/usb_a9g20-dab-mmx.dtsi
··· 28 28 29 29 user_led1 { 30 30 label = "user_led1"; 31 - gpios = <&pioB 20 1>; 31 + gpios = <&pioB 20 GPIO_ACTIVE_LOW>; 32 32 }; 33 33 34 34 /* 35 35 * led already used by mother board but active as high 36 36 * user_led2 { 37 37 * label = "user_led2"; 38 - * gpios = <&pioB 21 1>; 38 + * gpios = <&pioB 21 GPIO_ACTIVE_LOW>; 39 39 * }; 40 40 */ 41 41 user_led3 { 42 42 label = "user_led3"; 43 - gpios = <&pioB 22 1>; 43 + gpios = <&pioB 22 GPIO_ACTIVE_LOW>; 44 44 }; 45 45 46 46 user_led4 { 47 47 label = "user_led4"; 48 - gpios = <&pioB 23 1>; 48 + gpios = <&pioB 23 GPIO_ACTIVE_LOW>; 49 49 }; 50 50 51 51 red { 52 52 label = "red"; 53 - gpios = <&pioB 24 1>; 53 + gpios = <&pioB 24 GPIO_ACTIVE_LOW>; 54 54 }; 55 55 56 56 orange { 57 57 label = "orange"; 58 - gpios = <&pioB 30 1>; 58 + gpios = <&pioB 30 GPIO_ACTIVE_LOW>; 59 59 }; 60 60 61 61 green { 62 62 label = "green"; 63 - gpios = <&pioB 31 1>; 63 + gpios = <&pioB 31 GPIO_ACTIVE_LOW>; 64 64 }; 65 65 }; 66 66 ··· 71 71 72 72 user_pb1 { 73 73 label = "user_pb1"; 74 - gpios = <&pioB 25 1>; 74 + gpios = <&pioB 25 GPIO_ACTIVE_LOW>; 75 75 linux,code = <0x100>; 76 76 }; 77 77 78 78 user_pb2 { 79 79 label = "user_pb2"; 80 - gpios = <&pioB 13 1>; 80 + gpios = <&pioB 13 GPIO_ACTIVE_LOW>; 81 81 linux,code = <0x101>; 82 82 }; 83 83 84 84 user_pb3 { 85 85 label = "user_pb3"; 86 - gpios = <&pioA 26 1>; 86 + gpios = <&pioA 26 GPIO_ACTIVE_LOW>; 87 87 linux,code = <0x102>; 88 88 }; 89 89 90 90 user_pb4 { 91 91 label = "user_pb4"; 92 - gpios = <&pioC 9 1>; 92 + gpios = <&pioC 9 GPIO_ACTIVE_LOW>; 93 93 linux,code = <0x103>; 94 94 }; 95 95 };