Commit 3a31f2d7 authored by Andrew Lunn's avatar Andrew Lunn Committed by Jason Cooper

ARM: DT: Kirkwood: Use symbolic names from gpio.h

Use GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW instead of 0 and 1.
Signed-off-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarJason Cooper <jason@lakedaemon.net>
parent 23301190
...@@ -67,7 +67,7 @@ gpio_keys { ...@@ -67,7 +67,7 @@ gpio_keys {
button@1 { button@1 {
label = "Power push button"; label = "Power push button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -76,17 +76,17 @@ gpio-leds { ...@@ -76,17 +76,17 @@ gpio-leds {
red-fail { red-fail {
label = "cloudbox:red:fail"; label = "cloudbox:red:fail";
gpios = <&gpio0 14 0>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
}; };
blue-sata { blue-sata {
label = "cloudbox:blue:sata"; label = "cloudbox:blue:sata";
gpios = <&gpio0 15 0>; gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
}; };
}; };
gpio_poweroff { gpio_poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
gpios = <&gpio0 17 0>; gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -51,8 +51,8 @@ ehci@50000 { ...@@ -51,8 +51,8 @@ ehci@50000 {
mvsdio@90000 { mvsdio@90000 {
pinctrl-0 = <&pmx_sdio_gpios>; pinctrl-0 = <&pmx_sdio_gpios>;
pinctrl-names = "default"; pinctrl-names = "default";
wp-gpios = <&gpio1 5 0>; wp-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
cd-gpios = <&gpio1 6 0>; cd-gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
......
...@@ -24,24 +24,24 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd ...@@ -24,24 +24,24 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd
blue-power { blue-power {
label = "dns320:blue:power"; label = "dns320:blue:power";
gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */ gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
blue-usb { blue-usb {
label = "dns320:blue:usb"; label = "dns320:blue:usb";
gpios = <&gpio1 11 1>; /* GPIO 43 Active Low */ gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
}; };
orange-l_hdd { orange-l_hdd {
label = "dns320:orange:l_hdd"; label = "dns320:orange:l_hdd";
gpios = <&gpio0 28 1>; /* GPIO 28 Active Low */ gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
}; };
orange-r_hdd { orange-r_hdd {
label = "dns320:orange:r_hdd"; label = "dns320:orange:r_hdd";
gpios = <&gpio0 27 1>; /* GPIO 27 Active Low */ gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
}; };
orange-usb { orange-usb {
label = "dns320:orange:usb"; label = "dns320:orange:usb";
gpios = <&gpio1 3 1>; /* GPIO 35 Active Low */ gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; /* GPIO 35 */
}; };
}; };
......
...@@ -24,24 +24,24 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd ...@@ -24,24 +24,24 @@ &pmx_led_red_left_hdd &pmx_led_red_right_hdd
white-power { white-power {
label = "dns325:white:power"; label = "dns325:white:power";
gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */ gpios = <&gpio0 26 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
white-usb { white-usb {
label = "dns325:white:usb"; label = "dns325:white:usb";
gpios = <&gpio1 11 1>; /* GPIO 43 Active Low */ gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; /* GPIO 43 */
}; };
red-l_hdd { red-l_hdd {
label = "dns325:red:l_hdd"; label = "dns325:red:l_hdd";
gpios = <&gpio0 28 1>; /* GPIO 28 Active Low */ gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
}; };
red-r_hdd { red-r_hdd {
label = "dns325:red:r_hdd"; label = "dns325:red:r_hdd";
gpios = <&gpio0 27 1>; /* GPIO 27 Active Low */ gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
}; };
red-usb { red-usb {
label = "dns325:red:usb"; label = "dns325:red:usb";
gpios = <&gpio0 29 1>; /* GPIO 29 Active Low */ gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
}; };
}; };
......
...@@ -16,17 +16,17 @@ gpio_keys { ...@@ -16,17 +16,17 @@ gpio_keys {
button@1 { button@1 {
label = "Power button"; label = "Power button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 2 1>; gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "USB unmount button"; label = "USB unmount button";
linux,code = <KEY_EJECTCD>; linux,code = <KEY_EJECTCD>;
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
button@3 { button@3 {
label = "Reset button"; label = "Reset button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -35,8 +35,8 @@ gpio_fan { ...@@ -35,8 +35,8 @@ gpio_fan {
compatible = "gpio-fan"; compatible = "gpio-fan";
pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>; pinctrl-0 = <&pmx_fan_high_speed &pmx_fan_low_speed>;
pinctrl-names = "default"; pinctrl-names = "default";
gpios = <&gpio1 14 1 gpios = <&gpio1 14 GPIO_ACTIVE_LOW
&gpio1 13 1>; &gpio1 13 GPIO_ACTIVE_LOW>;
gpio-fan,speed-map = <0 0 gpio-fan,speed-map = <0 0
3000 1 3000 1
6000 2>; 6000 2>;
...@@ -46,7 +46,7 @@ gpio_poweroff { ...@@ -46,7 +46,7 @@ gpio_poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
pinctrl-0 = <&pmx_power_off>; pinctrl-0 = <&pmx_power_off>;
pinctrl-names = "default"; pinctrl-names = "default";
gpios = <&gpio1 4 0>; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
}; };
ocp@f1000000 { ocp@f1000000 {
......
...@@ -42,12 +42,12 @@ gpio-leds { ...@@ -42,12 +42,12 @@ gpio-leds {
health { health {
label = "status:green:health"; label = "status:green:health";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
fault { fault {
label = "status:orange:fault"; label = "status:orange:fault";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
}; };
regulators { regulators {
......
...@@ -87,15 +87,15 @@ gpio-leds { ...@@ -87,15 +87,15 @@ gpio-leds {
bluetooth { bluetooth {
label = "dreamplug:blue:bluetooth"; label = "dreamplug:blue:bluetooth";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
wifi { wifi {
label = "dreamplug:green:wifi"; label = "dreamplug:green:wifi";
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
}; };
wifi-ap { wifi-ap {
label = "dreamplug:green:wifi_ap"; label = "dreamplug:green:wifi_ap";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
...@@ -85,44 +85,44 @@ &pmx_led_right_cap_2 &pmx_led_right_cap_3 ...@@ -85,44 +85,44 @@ &pmx_led_right_cap_2 &pmx_led_right_cap_3
health { health {
label = "status:green:health"; label = "status:green:health";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
fault { fault {
label = "status:orange:fault"; label = "status:orange:fault";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
left0 { left0 {
label = "status:white:left0"; label = "status:white:left0";
gpios = <&gpio1 10 0>; gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
}; };
left1 { left1 {
label = "status:white:left1"; label = "status:white:left1";
gpios = <&gpio1 11 0>; gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
}; };
left2 { left2 {
label = "status:white:left2"; label = "status:white:left2";
gpios = <&gpio1 12 0>; gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
}; };
left3 { left3 {
label = "status:white:left3"; label = "status:white:left3";
gpios = <&gpio1 13 0>; gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
}; };
right0 { right0 {
label = "status:white:right0"; label = "status:white:right0";
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
}; };
right1 { right1 {
label = "status:white:right1"; label = "status:white:right1";
gpios = <&gpio1 7 0>; gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
}; };
right2 { right2 {
label = "status:white:right2"; label = "status:white:right2";
gpios = <&gpio1 8 0>; gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
}; };
right3 { right3 {
label = "status:white:right3"; label = "status:white:right3";
gpios = <&gpio1 9 0>; gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
}; };
}; };
regulators { regulators {
...@@ -141,7 +141,7 @@ usb_power: regulator@1 { ...@@ -141,7 +141,7 @@ usb_power: regulator@1 {
enable-active-high; enable-active-high;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio0 29 0>; gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
......
...@@ -60,19 +60,19 @@ gpio-leds { ...@@ -60,19 +60,19 @@ gpio-leds {
health-r { health-r {
label = "guruplug:red:health"; label = "guruplug:red:health";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
health-g { health-g {
label = "guruplug:green:health"; label = "guruplug:green:health";
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
wmode-r { wmode-r {
label = "guruplug:red:wmode"; label = "guruplug:red:wmode";
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
}; };
wmode-g { wmode-g {
label = "guruplug:green:wmode"; label = "guruplug:green:wmode";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
...@@ -64,12 +64,12 @@ gpio_keys { ...@@ -64,12 +64,12 @@ gpio_keys {
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio0 29 1>; gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 28 1>; gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -81,16 +81,16 @@ gpio-leds { ...@@ -81,16 +81,16 @@ gpio-leds {
green-os { green-os {
label = "ib62x0:green:os"; label = "ib62x0:green:os";
gpios = <&gpio0 25 0>; gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
red-os { red-os {
label = "ib62x0:red:os"; label = "ib62x0:red:os";
gpios = <&gpio0 22 0>; gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;
}; };
usb-copy { usb-copy {
label = "ib62x0:red:usb_copy"; label = "ib62x0:red:usb_copy";
gpios = <&gpio0 27 0>; gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -98,7 +98,7 @@ gpio_poweroff { ...@@ -98,7 +98,7 @@ gpio_poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
pinctrl-0 = <&pmx_power_off>; pinctrl-0 = <&pmx_power_off>;
pinctrl-names = "default"; pinctrl-names = "default";
gpios = <&gpio0 24 0>; gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -94,37 +94,37 @@ &pmx_led_usb2 &pmx_led_usb3 ...@@ -94,37 +94,37 @@ &pmx_led_usb2 &pmx_led_usb3
led-level { led-level {
label = "led_level"; label = "led_level";
gpios = <&gpio1 9 0>; gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
power-blue { power-blue {
label = "power:blue"; label = "power:blue";
gpios = <&gpio1 10 0>; gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
power-red { power-red {
label = "power:red"; label = "power:red";
gpios = <&gpio1 11 0>; gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
}; };
usb1 { usb1 {
label = "usb1:blue"; label = "usb1:blue";
gpios = <&gpio1 12 0>; gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
}; };
usb2 { usb2 {
label = "usb2:blue"; label = "usb2:blue";
gpios = <&gpio1 13 0>; gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
}; };
usb3 { usb3 {
label = "usb3:blue"; label = "usb3:blue";
gpios = <&gpio1 14 0>; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
}; };
usb4 { usb4 {
label = "usb4:blue"; label = "usb4:blue";
gpios = <&gpio1 15 0>; gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
}; };
otb { otb {
label = "otb:blue"; label = "otb:blue";
gpios = <&gpio1 16 0>; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -138,13 +138,13 @@ gpio_keys { ...@@ -138,13 +138,13 @@ gpio_keys {
button@1 { button@1 {
label = "OTB Button"; label = "OTB Button";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
debounce-interval = <100>; debounce-interval = <100>;
}; };
}; };
......
...@@ -127,20 +127,20 @@ gpio-leds { ...@@ -127,20 +127,20 @@ gpio-leds {
power_led { power_led {
label = "status:white:power_led"; label = "status:white:power_led";
gpios = <&gpio0 16 0>; gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
default-state = "keep"; default-state = "keep";
}; };
rebuild_led { rebuild_led {
label = "status:white:rebuild_led"; label = "status:white:rebuild_led";
gpios = <&gpio1 4 0>; gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
}; };
health_led { health_led {
label = "status:red:health_led"; label = "status:red:health_led";
gpios = <&gpio1 5 0>; gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
}; };
backup_led { backup_led {
label = "status:blue:backup_led"; label = "status:blue:backup_led";
gpios = <&gpio0 15 0>; gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
}; };
}; };
gpio-keys { gpio-keys {
...@@ -155,17 +155,17 @@ gpio-keys { ...@@ -155,17 +155,17 @@ gpio-keys {
Power { Power {
label = "Power Button"; label = "Power Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio0 14 1>; gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
}; };
Reset { Reset {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 12 1>; gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
}; };
OTB { OTB {
label = "OTB Button"; label = "OTB Button";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio1 3 1>; gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
...@@ -38,8 +38,8 @@ serial@12000 { ...@@ -38,8 +38,8 @@ serial@12000 {
i2c@0 { i2c@0 {
compatible = "i2c-gpio"; compatible = "i2c-gpio";
gpios = < &gpio0 8 0 /* sda */ gpios = < &gpio0 8 GPIO_ACTIVE_HIGH /* sda */
&gpio0 9 0 >; /* scl */ &gpio0 9 GPIO_ACTIVE_HIGH>; /* scl */
i2c-gpio,delay-us = <2>; /* ~100 kHz */ i2c-gpio,delay-us = <2>; /* ~100 kHz */
}; };
}; };
......
...@@ -109,19 +109,19 @@ gpio_keys { ...@@ -109,19 +109,19 @@ gpio_keys {
button@1 { button@1 {
label = "Function Button"; label = "Function Button";
linux,code = <KEY_OPTION>; linux,code = <KEY_OPTION>;
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "Power-on Switch"; label = "Power-on Switch";
linux,code = <KEY_RESERVED>; linux,code = <KEY_RESERVED>;
linux,input-type = <5>; linux,input-type = <5>;
gpios = <&gpio1 10 1>; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
}; };
button@3 { button@3 {
label = "Power-auto Switch"; label = "Power-auto Switch";
linux,code = <KEY_ESC>; linux,code = <KEY_ESC>;
linux,input-type = <5>; linux,input-type = <5>;
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -134,28 +134,28 @@ &pmx_led_info &pmx_led_power ...@@ -134,28 +134,28 @@ &pmx_led_info &pmx_led_power
led@1 { led@1 {
label = "lsxl:blue:func"; label = "lsxl:blue:func";
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
}; };
led@2 { led@2 {
label = "lsxl:red:alarm"; label = "lsxl:red:alarm";
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
led@3 { led@3 {
label = "lsxl:amber:info"; label = "lsxl:amber:info";
gpios = <&gpio1 6 1>; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
}; };
led@4 { led@4 {
label = "lsxl:blue:power"; label = "lsxl:blue:power";
gpios = <&gpio1 7 1>; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
led@5 { led@5 {
label = "lsxl:red:func"; label = "lsxl:red:func";
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -163,13 +163,13 @@ gpio_fan { ...@@ -163,13 +163,13 @@ gpio_fan {
compatible = "gpio-fan"; compatible = "gpio-fan";
pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>; pinctrl-0 = <&pmx_fan_low &pmx_fan_high &pmx_fan_lock>;
pinctrl-names = "default"; pinctrl-names = "default";
gpios = <&gpio0 19 1 gpios = <&gpio0 19 GPIO_ACTIVE_LOW
&gpio0 18 1>; &gpio0 18 GPIO_ACTIVE_LOW>;
gpio-fan,speed-map = <0 3 gpio-fan,speed-map = <0 3
1500 2 1500 2
3250 1 3250 1
5000 0>; 5000 0>;
alarm-gpios = <&gpio1 8 0>; alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
}; };
restart_poweroff { restart_poweroff {
......
...@@ -110,7 +110,7 @@ mvsdio@90000 { ...@@ -110,7 +110,7 @@ mvsdio@90000 {
pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>; pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
pinctrl-names = "default"; pinctrl-names = "default";
status = "okay"; status = "okay";
cd-gpios = <&gpio1 15 1>; cd-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
/* No WP GPIO */ /* No WP GPIO */
}; };
}; };
...@@ -126,36 +126,36 @@ &pmx_led_user0g &pmx_led_misc ...@@ -126,36 +126,36 @@ &pmx_led_user0g &pmx_led_misc
health { health {
label = "status:green:health"; label = "status:green:health";
gpios = <&gpio0 7 1>; gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
}; };
user1o { user1o {
label = "user1:orange"; label = "user1:orange";
gpios = <&gpio1 8 1>; gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
user1g { user1g {
label = "user1:green"; label = "user1:green";
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
user0o { user0o {
label = "user0:orange"; label = "user0:orange";
gpios = <&gpio1 12 1>; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
user0g { user0g {
label = "user0:green"; label = "user0:green";
gpios = <&gpio1 13 1>; gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
misc { misc {
label = "status:orange:misc"; label = "status:orange:misc";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
......
...@@ -90,17 +90,17 @@ gpio-leds { ...@@ -90,17 +90,17 @@ gpio-leds {
green-status { green-status {
label = "gtw:green:Status"; label = "gtw:green:Status";
gpios = <&gpio0 20 0>; gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
}; };
red-status { red-status {
label = "gtw:red:Status"; label = "gtw:red:Status";
gpios = <&gpio0 21 0>; gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
}; };
green-usb { green-usb {
label = "gtw:green:USB"; label = "gtw:green:USB";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -114,12 +114,12 @@ gpio_keys { ...@@ -114,12 +114,12 @@ gpio_keys {
button@1 { button@1 {
label = "SWR Button"; label = "SWR Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 15 1>; gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "WPS Button"; label = "WPS Button";
linux,code = <KEY_WPS_BUTTON>; linux,code = <KEY_WPS_BUTTON>;
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi" #include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi" #include "kirkwood-6282.dtsi"
......
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "kirkwood.dtsi" #include "kirkwood.dtsi"
#include "kirkwood-6282.dtsi" #include "kirkwood-6282.dtsi"
......
...@@ -65,7 +65,7 @@ gpio_keys { ...@@ -65,7 +65,7 @@ gpio_keys {
button@1 { button@1 {
label = "Power push button"; label = "Power push button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 0 0>; gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -74,13 +74,13 @@ gpio-leds { ...@@ -74,13 +74,13 @@ gpio-leds {
red-fail { red-fail {
label = "ns2:red:fail"; label = "ns2:red:fail";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
}; };
gpio_poweroff { gpio_poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
gpios = <&gpio0 31 0>; gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -25,7 +25,7 @@ gpio-leds { ...@@ -25,7 +25,7 @@ gpio-leds {
blue-sata { blue-sata {
label = "ns2:blue:sata"; label = "ns2:blue:sata";
gpios = <&gpio0 30 1>; gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ide-disk"; linux,default-trigger = "ide-disk";
}; };
}; };
......
...@@ -22,10 +22,10 @@ sata@80000 { ...@@ -22,10 +22,10 @@ sata@80000 {
gpio_fan { gpio_fan {
compatible = "gpio-fan"; compatible = "gpio-fan";
gpios = <&gpio0 22 1 gpios = <&gpio0 22 GPIO_ACTIVE_LOW
&gpio0 7 1 &gpio0 7 GPIO_ACTIVE_LOW
&gpio1 1 1 &gpio1 1 GPIO_ACTIVE_LOW
&gpio0 23 1>; &gpio0 23 GPIO_ACTIVE_LOW>;
gpio-fan,speed-map = gpio-fan,speed-map =
< 0 0 < 0 0
1500 15 1500 15
...@@ -36,7 +36,7 @@ &gpio1 1 1 ...@@ -36,7 +36,7 @@ &gpio1 1 1
3300 10 3300 10
4300 9 4300 9
5500 8>; 5500 8>;
alarm-gpios = <&gpio0 25 1>; alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
}; };
ns2-leds { ns2-leds {
......
...@@ -23,10 +23,10 @@ sata@80000 { ...@@ -23,10 +23,10 @@ sata@80000 {
gpio_fan { gpio_fan {
compatible = "gpio-fan"; compatible = "gpio-fan";
gpios = <&gpio0 22 1 gpios = <&gpio0 22 GPIO_ACTIVE_LOW
&gpio0 7 1 &gpio0 7 GPIO_ACTIVE_LOW
&gpio1 1 1 &gpio1 1 GPIO_ACTIVE_LOW
&gpio0 23 1>; &gpio0 23 GPIO_ACTIVE_LOW>;
gpio-fan,speed-map = gpio-fan,speed-map =
< 0 0 < 0 0
3000 15 3000 15
...@@ -37,7 +37,7 @@ &gpio1 1 1 ...@@ -37,7 +37,7 @@ &gpio1 1 1
7140 10 7140 10
7980 9 7980 9
9200 8>; 9200 8>;
alarm-gpios = <&gpio0 25 1>; alarm-gpios = <&gpio0 25 GPIO_ACTIVE_LOW>;
}; };
ns2-leds { ns2-leds {
......
...@@ -40,7 +40,7 @@ gpio_poweroff { ...@@ -40,7 +40,7 @@ gpio_poweroff {
compatible = "gpio-poweroff"; compatible = "gpio-poweroff";
pinctrl-0 = <&pmx_pwr_off>; pinctrl-0 = <&pmx_pwr_off>;
pinctrl-names = "default"; pinctrl-names = "default";
gpios = <&gpio1 16 0>; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>;
}; };
regulators { regulators {
...@@ -58,7 +58,7 @@ usb0_power_off: regulator@1 { ...@@ -58,7 +58,7 @@ usb0_power_off: regulator@1 {
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-always-on; regulator-always-on;
regulator-boot-on; regulator-boot-on;
gpio = <&gpio0 21 0>; gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
......
...@@ -120,17 +120,17 @@ gpio_keys { ...@@ -120,17 +120,17 @@ gpio_keys {
button@1 { button@1 {
label = "Power Button"; label = "Power Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
}; };
button@2 { button@2 {
label = "Copy Button"; label = "Copy Button";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
button@3 { button@3 {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -145,43 +145,43 @@ &pmx_led_copy_green &pmx_led_copy_red ...@@ -145,43 +145,43 @@ &pmx_led_copy_green &pmx_led_copy_red
green-sys { green-sys {
label = "nsa310:green:sys"; label = "nsa310:green:sys";
gpios = <&gpio0 28 0>; gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
}; };
red-sys { red-sys {
label = "nsa310:red:sys"; label = "nsa310:red:sys";
gpios = <&gpio0 29 0>; gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
}; };
green-hdd { green-hdd {
label = "nsa310:green:hdd"; label = "nsa310:green:hdd";
gpios = <&gpio1 9 0>; gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
}; };
red-hdd { red-hdd {
label = "nsa310:red:hdd"; label = "nsa310:red:hdd";
gpios = <&gpio1 10 0>; gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
}; };
green-esata { green-esata {
label = "nsa310:green:esata"; label = "nsa310:green:esata";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
red-esata { red-esata {
label = "nsa310:red:esata"; label = "nsa310:red:esata";
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
green-usb { green-usb {
label = "nsa310:green:usb"; label = "nsa310:green:usb";
gpios = <&gpio0 15 0>; gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
}; };
red-usb { red-usb {
label = "nsa310:red:usb"; label = "nsa310:red:usb";
gpios = <&gpio0 16 0>; gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
}; };
green-copy { green-copy {
label = "nsa310:green:copy"; label = "nsa310:green:copy";
gpios = <&gpio1 7 0>; gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
}; };
red-copy { red-copy {
label = "nsa310:red:copy"; label = "nsa310:red:copy";
gpios = <&gpio1 8 0>; gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
...@@ -108,17 +108,17 @@ gpio_keys { ...@@ -108,17 +108,17 @@ gpio_keys {
button@1 { button@1 {
label = "Power Button"; label = "Power Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 14 0>; gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
}; };
button@2 { button@2 {
label = "Copy Button"; label = "Copy Button";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
button@3 { button@3 {
label = "Reset Button"; label = "Reset Button";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 4 1>; gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -127,39 +127,39 @@ gpio-leds { ...@@ -127,39 +127,39 @@ gpio-leds {
green-sys { green-sys {
label = "nsa310:green:sys"; label = "nsa310:green:sys";
gpios = <&gpio0 28 0>; gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
}; };
red-sys { red-sys {
label = "nsa310:red:sys"; label = "nsa310:red:sys";
gpios = <&gpio0 29 0>; gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
}; };
green-hdd { green-hdd {
label = "nsa310:green:hdd"; label = "nsa310:green:hdd";
gpios = <&gpio1 9 0>; gpios = <&gpio1 9 GPIO_ACTIVE_HIGH>;
}; };
red-hdd { red-hdd {
label = "nsa310:red:hdd"; label = "nsa310:red:hdd";
gpios = <&gpio1 10 0>; gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
}; };
green-esata { green-esata {
label = "nsa310:green:esata"; label = "nsa310:green:esata";
gpios = <&gpio0 12 0>; gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
}; };
red-esata { red-esata {
label = "nsa310:red:esata"; label = "nsa310:red:esata";
gpios = <&gpio0 13 0>; gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
}; };
green-usb { green-usb {
label = "nsa310:green:usb"; label = "nsa310:green:usb";
gpios = <&gpio0 15 0>; gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
}; };
green-copy { green-copy {
label = "nsa310:green:copy"; label = "nsa310:green:copy";
gpios = <&gpio1 7 0>; gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
}; };
red-copy { red-copy {
label = "nsa310:red:copy"; label = "nsa310:red:copy";
gpios = <&gpio1 8 0>; gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
...@@ -101,17 +101,17 @@ gpio-leds { ...@@ -101,17 +101,17 @@ gpio-leds {
led-red { led-red {
label = "obsa6:red:stat"; label = "obsa6:red:stat";
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
}; };
led-green { led-green {
label = "obsa6:green:stat"; label = "obsa6:green:stat";
gpios = <&gpio1 10 1>; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
}; };
led-yellow { led-yellow {
label = "obsa6:yellow:stat"; label = "obsa6:yellow:stat";
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -125,7 +125,7 @@ gpio_keys { ...@@ -125,7 +125,7 @@ gpio_keys {
button@1 { button@1 {
label = "Init Button"; label = "Init Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
......
...@@ -126,17 +126,17 @@ gpio-leds { ...@@ -126,17 +126,17 @@ gpio-leds {
led-red { led-red {
label = "obsa7:red:stat"; label = "obsa7:red:stat";
gpios = <&gpio1 9 1>; gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
}; };
led-green { led-green {
label = "obsa7:green:stat"; label = "obsa7:green:stat";
gpios = <&gpio1 10 1>; gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
}; };
led-yellow { led-yellow {
label = "obsa7:yellow:stat"; label = "obsa7:yellow:stat";
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
}; };
}; };
...@@ -150,7 +150,7 @@ gpio_keys { ...@@ -150,7 +150,7 @@ gpio_keys {
button@1 { button@1 {
label = "Init Button"; label = "Init Button";
linux,code = <KEY_POWER>; linux,code = <KEY_POWER>;
gpios = <&gpio1 6 0>; gpios = <&gpio1 6 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
......
...@@ -24,8 +24,8 @@ mvsdio@90000 { ...@@ -24,8 +24,8 @@ mvsdio@90000 {
pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>; pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>;
pinctrl-names = "default"; pinctrl-names = "default";
status = "okay"; status = "okay";
cd-gpios = <&gpio1 12 1>; cd-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
wp-gpios = <&gpio1 15 0>; wp-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -36,7 +36,7 @@ gpio-leds { ...@@ -36,7 +36,7 @@ gpio-leds {
health { health {
label = "sheevaplug:blue:health"; label = "sheevaplug:blue:health";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
}; };
......
...@@ -31,13 +31,13 @@ gpio-leds { ...@@ -31,13 +31,13 @@ gpio-leds {
health { health {
label = "sheevaplug:blue:health"; label = "sheevaplug:blue:health";
gpios = <&gpio1 17 1>; gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
default-state = "keep"; default-state = "keep";
}; };
misc { misc {
label = "sheevaplug:red:misc"; label = "sheevaplug:red:misc";
gpios = <&gpio1 14 1>; gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
...@@ -131,25 +131,25 @@ &pmx_led_sys_blue &pmx_led_wifi_green ...@@ -131,25 +131,25 @@ &pmx_led_sys_blue &pmx_led_wifi_green
disk { disk {
label = "topkick:yellow:disk"; label = "topkick:yellow:disk";
gpios = <&gpio0 21 1>; gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
linux,default-trigger = "ide-disk"; linux,default-trigger = "ide-disk";
}; };
system2 { system2 {
label = "topkick:red:system"; label = "topkick:red:system";
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
system { system {
label = "topkick:blue:system"; label = "topkick:blue:system";
gpios = <&gpio1 6 1>; gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
default-state = "on"; default-state = "on";
}; };
wifi { wifi {
label = "topkick:green:wifi"; label = "topkick:green:wifi";
gpios = <&gpio1 7 1>; gpios = <&gpio1 7 GPIO_ACTIVE_LOW>;
}; };
wifi2 { wifi2 {
label = "topkick:yellow:wifi"; label = "topkick:yellow:wifi";
gpios = <&gpio1 16 1>; gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
}; };
}; };
regulators { regulators {
......
...@@ -42,12 +42,12 @@ gpio_keys { ...@@ -42,12 +42,12 @@ gpio_keys {
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio0 15 1>; gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio0 16 1>; gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
...@@ -52,12 +52,12 @@ gpio_keys { ...@@ -52,12 +52,12 @@ gpio_keys {
button@1 { button@1 {
label = "USB Copy"; label = "USB Copy";
linux,code = <KEY_COPY>; linux,code = <KEY_COPY>;
gpios = <&gpio1 11 1>; gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
}; };
button@2 { button@2 {
label = "Reset"; label = "Reset";
linux,code = <KEY_RESTART>; linux,code = <KEY_RESTART>;
gpios = <&gpio1 5 1>; gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
}; };
}; };
}; };
......
/include/ "skeleton.dtsi" /include/ "skeleton.dtsi"
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
#include <dt-bindings/gpio/gpio.h>
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16)) #define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
......
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