Commit bca12924 authored by Maxime Ripard's avatar Maxime Ripard

ARM: sunxi: DT: convert DTs to use common GPIOs includes

Replace the various raw GPIO flags by their definition in the common
dt-bindings header.
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent 71455701
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Mele A1000"; model = "Mele A1000";
compatible = "mele,a1000", "allwinner,sun4i-a10"; compatible = "mele,a1000", "allwinner,sun4i-a10";
...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 { ...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -159,12 +161,12 @@ leds { ...@@ -159,12 +161,12 @@ leds {
red { red {
label = "a1000:red:usr"; label = "a1000:red:usr";
gpios = <&pio 7 10 0>; gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>;
}; };
blue { blue {
label = "a1000:blue:usr"; label = "a1000:blue:usr";
gpios = <&pio 7 20 0>; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -176,7 +178,7 @@ reg_emac_3v3: emac-3v3 { ...@@ -176,7 +178,7 @@ reg_emac_3v3: emac-3v3 {
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 15 0>; gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>;
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "BA10 tvbox"; model = "BA10 tvbox";
compatible = "allwinner,ba10-tvbox", "allwinner,sun4i-a10"; compatible = "allwinner,ba10-tvbox", "allwinner,sun4i-a10";
...@@ -74,7 +76,7 @@ mmc0: mmc@01c0f000 { ...@@ -74,7 +76,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -140,7 +142,7 @@ reg_usb1_vbus: usb1-vbus { ...@@ -140,7 +142,7 @@ reg_usb1_vbus: usb1-vbus {
}; };
reg_usb2_vbus: usb2-vbus { reg_usb2_vbus: usb2-vbus {
gpio = <&pio 7 12 0>; gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Cubietech Cubieboard"; model = "Cubietech Cubieboard";
compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10"; compatible = "cubietech,a10-cubieboard", "allwinner,sun4i-a10";
...@@ -75,7 +77,7 @@ mmc0: mmc@01c0f000 { ...@@ -75,7 +77,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -163,12 +165,12 @@ leds { ...@@ -163,12 +165,12 @@ leds {
blue { blue {
label = "cubieboard:blue:usr"; label = "cubieboard:blue:usr";
gpios = <&pio 7 21 0>; /* LED1 */ gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* LED1 */
}; };
green { green {
label = "cubieboard:green:usr"; label = "cubieboard:green:usr";
gpios = <&pio 7 20 0>; /* LED2 */ gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>; /* LED2 */
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
}; };
......
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Miniand Hackberry"; model = "Miniand Hackberry";
compatible = "miniand,hackberry", "allwinner,sun4i-a10"; compatible = "miniand,hackberry", "allwinner,sun4i-a10";
...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 { ...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -157,7 +159,7 @@ reg_emac_3v3: emac-3v3 { ...@@ -157,7 +159,7 @@ reg_emac_3v3: emac-3v3 {
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 19 0>; gpio = <&pio 7 19 GPIO_ACTIVE_HIGH>;
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
...@@ -166,7 +168,7 @@ reg_usb1_vbus: usb1-vbus { ...@@ -166,7 +168,7 @@ reg_usb1_vbus: usb1-vbus {
reg_usb2_vbus: usb2-vbus { reg_usb2_vbus: usb2-vbus {
pinctrl-0 = <&usb2_vbus_pin_hackberry>; pinctrl-0 = <&usb2_vbus_pin_hackberry>;
gpio = <&pio 7 12 0>; gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "INet-97F Rev 02"; model = "INet-97F Rev 02";
compatible = "primux,inet97fv2", "allwinner,sun4i-a10"; compatible = "primux,inet97fv2", "allwinner,sun4i-a10";
...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 { ...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
......
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "PineRiver Mini X-Plus"; model = "PineRiver Mini X-Plus";
compatible = "pineriver,mini-xplus", "allwinner,sun4i-a10"; compatible = "pineriver,mini-xplus", "allwinner,sun4i-a10";
...@@ -61,7 +63,7 @@ mmc0: mmc@01c0f000 { ...@@ -61,7 +63,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Olimex A10-OLinuXino-LIME"; model = "Olimex A10-OLinuXino-LIME";
compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10"; compatible = "olimex,a10-olinuxino-lime", "allwinner,sun4i-a10";
...@@ -74,7 +76,7 @@ mmc0: mmc@01c0f000 { ...@@ -74,7 +76,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -151,14 +153,14 @@ leds { ...@@ -151,14 +153,14 @@ leds {
green { green {
label = "a10-olinuxino-lime:green:usr"; label = "a10-olinuxino-lime:green:usr";
gpios = <&pio 7 2 0>; gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
gpio = <&pio 2 3 0>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#include "sun4i-a10.dtsi" #include "sun4i-a10.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "LinkSprite pcDuino"; model = "LinkSprite pcDuino";
compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10"; compatible = "linksprite,a10-pcduino", "allwinner,sun4i-a10";
...@@ -75,7 +77,7 @@ mmc0: mmc@01c0f000 { ...@@ -75,7 +77,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
/dts-v1/; /dts-v1/;
#include "sun5i-a10s.dtsi" #include "sun5i-a10s.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 { ...@@ -77,7 +79,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino_micro>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino_micro>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 1 0>; /* PG1 */ cd-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -87,7 +89,7 @@ mmc1: mmc@01c10000 { ...@@ -87,7 +89,7 @@ mmc1: mmc@01c10000 {
pinctrl-0 = <&mmc1_pins_a>, <&mmc1_cd_pin_olinuxino_micro>; pinctrl-0 = <&mmc1_pins_a>, <&mmc1_cd_pin_olinuxino_micro>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 13 0>; /* PG13 */ cd-gpios = <&pio 6 13 GPIO_ACTIVE_HIGH>; /* PG13 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -226,14 +228,14 @@ leds { ...@@ -226,14 +228,14 @@ leds {
green { green {
label = "a10s-olinuxino-micro:green:usr"; label = "a10s-olinuxino-micro:green:usr";
gpios = <&pio 4 3 0>; gpios = <&pio 4 3 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>; pinctrl-0 = <&usb1_vbus_pin_olinuxino_m>;
gpio = <&pio 1 10 0>; gpio = <&pio 1 10 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun5i-a10s.dtsi" #include "sun5i-a10s.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "R7 A10s hdmi tv-stick"; model = "R7 A10s hdmi tv-stick";
compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s"; compatible = "allwinner,r7-tv-dongle", "allwinner,sun5i-a10s";
...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 { ...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_r7>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_r7>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 1 0>; /* PG1 */ cd-gpios = <&pio 6 1 GPIO_ACTIVE_HIGH>; /* PG1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -123,14 +125,14 @@ leds { ...@@ -123,14 +125,14 @@ leds {
green { green {
label = "r7-tv-dongle:green:usr"; label = "r7-tv-dongle:green:usr";
gpios = <&pio 1 2 0>; gpios = <&pio 1 2 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_r7>; pinctrl-0 = <&usb1_vbus_pin_r7>;
gpio = <&pio 6 13 0>; gpio = <&pio 6 13 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun5i-a13.dtsi" #include "sun5i-a13.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "HSG H702"; model = "HSG H702";
compatible = "hsg,h702", "allwinner,sun5i-a13"; compatible = "hsg,h702", "allwinner,sun5i-a13";
...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 { ...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_h702>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 0 0>; /* PG0 */ cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
#include "sun5i-a13.dtsi" #include "sun5i-a13.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Olimex A13-Olinuxino Micro"; model = "Olimex A13-Olinuxino Micro";
compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13"; compatible = "olimex,a13-olinuxino-micro", "allwinner,sun5i-a13";
...@@ -60,7 +62,7 @@ mmc0: mmc@01c0f000 { ...@@ -60,7 +62,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxinom>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxinom>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 0 0>; /* PG0 */ cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -133,14 +135,14 @@ leds { ...@@ -133,14 +135,14 @@ leds {
power { power {
label = "a13-olinuxino-micro:green:power"; label = "a13-olinuxino-micro:green:power";
gpios = <&pio 6 9 0>; gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_olinuxinom>; pinctrl-0 = <&usb1_vbus_pin_olinuxinom>;
gpio = <&pio 6 11 0>; gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
/dts-v1/; /dts-v1/;
#include "sun5i-a13.dtsi" #include "sun5i-a13.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
...@@ -62,7 +64,7 @@ mmc0: mmc@01c0f000 { ...@@ -62,7 +64,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_olinuxino>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 6 0 0>; /* PG0 */ cd-gpios = <&pio 6 0 GPIO_ACTIVE_HIGH>; /* PG0 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -174,14 +176,14 @@ leds { ...@@ -174,14 +176,14 @@ leds {
pinctrl-0 = <&led_pins_olinuxino>; pinctrl-0 = <&led_pins_olinuxino>;
power { power {
gpios = <&pio 6 9 0>; gpios = <&pio 6 9 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_olinuxino>; pinctrl-0 = <&usb1_vbus_pin_olinuxino>;
gpio = <&pio 6 11 0>; gpio = <&pio 6 11 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun6i-a31.dtsi" #include "sun6i-a31.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Allwinner A31 APP4 EVB1 Evaluation Board"; model = "Allwinner A31 APP4 EVB1 Evaluation Board";
compatible = "allwinner,app4-evb1", "allwinner,sun6i-a31"; compatible = "allwinner,app4-evb1", "allwinner,sun6i-a31";
...@@ -87,7 +89,7 @@ uart0: serial@01c28000 { ...@@ -87,7 +89,7 @@ uart0: serial@01c28000 {
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_a>; pinctrl-0 = <&usb1_vbus_pin_a>;
gpio = <&pio 7 27 0>; gpio = <&pio 7 27 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun6i-a31.dtsi" #include "sun6i-a31.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "WITS A31 Colombus Evaluation Board"; model = "WITS A31 Colombus Evaluation Board";
compatible = "wits,colombus", "allwinner,sun6i-a31"; compatible = "wits,colombus", "allwinner,sun6i-a31";
...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 { ...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_colombus>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_colombus>;
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 0 8 0>; /* PA8 */ cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -127,7 +129,7 @@ i2c2: i2c@01c2b400 { ...@@ -127,7 +129,7 @@ i2c2: i2c@01c2b400 {
reg_usb2_vbus: usb2-vbus { reg_usb2_vbus: usb2-vbus {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&usb2_vbus_pin_colombus>; pinctrl-0 = <&usb2_vbus_pin_colombus>;
gpio = <&pio 7 24 0>; gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun6i-a31.dtsi" #include "sun6i-a31.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Merrii A31 Hummingbird"; model = "Merrii A31 Hummingbird";
compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31"; compatible = "merrii,a31-hummingbird", "allwinner,sun6i-a31";
...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 { ...@@ -65,7 +67,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_hummingbird>;
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 0 8 0>; /* PA8 */ cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -139,7 +141,7 @@ gmac: ethernet@01c30000 { ...@@ -139,7 +141,7 @@ gmac: ethernet@01c30000 {
pinctrl-0 = <&gmac_pins_rgmii_a>; pinctrl-0 = <&gmac_pins_rgmii_a>;
phy = <&phy1>; phy = <&phy1>;
phy-mode = "rgmii"; phy-mode = "rgmii";
snps,reset-gpio = <&pio 0 21 0>; snps,reset-gpio = <&pio 0 21 GPIO_ACTIVE_HIGH>;
snps,reset-active-low; snps,reset-active-low;
snps,reset-delays-us = <0 10000 30000>; snps,reset-delays-us = <0 10000 30000>;
status = "okay"; status = "okay";
...@@ -152,7 +154,7 @@ phy1: ethernet-phy@1 { ...@@ -152,7 +154,7 @@ phy1: ethernet-phy@1 {
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_a>; pinctrl-0 = <&usb1_vbus_pin_a>;
gpio = <&pio 7 24 0>; /* PH24 */ gpio = <&pio 7 24 GPIO_ACTIVE_HIGH>; /* PH24 */
status = "okay"; status = "okay";
}; };
}; };
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun6i-a31.dtsi" #include "sun6i-a31.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Mele M9 / A1000G Quad top set box"; model = "Mele M9 / A1000G Quad top set box";
compatible = "mele,m9", "allwinner,sun6i-a31"; compatible = "mele,m9", "allwinner,sun6i-a31";
...@@ -63,7 +65,7 @@ mmc0: mmc@01c0f000 { ...@@ -63,7 +65,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_m9>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 22 0>; /* PH22 */ cd-gpios = <&pio 7 22 GPIO_ACTIVE_HIGH>; /* PH22 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -136,14 +138,14 @@ leds { ...@@ -136,14 +138,14 @@ leds {
blue { blue {
label = "m9:blue:usr"; label = "m9:blue:usr";
gpios = <&pio 7 13 0>; gpios = <&pio 7 13 GPIO_ACTIVE_HIGH>;
}; };
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&usb1_vbus_pin_m9>; pinctrl-0 = <&usb1_vbus_pin_m9>;
gpio = <&pio 2 27 0>; gpio = <&pio 2 27 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "LeMaker Banana Pi"; model = "LeMaker Banana Pi";
compatible = "lemaker,bananapi", "allwinner,sun7i-a20"; compatible = "lemaker,bananapi", "allwinner,sun7i-a20";
...@@ -67,7 +69,7 @@ mmc0: mmc@01c0f000 { ...@@ -67,7 +69,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_bananapi>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 10 0>; /* PH10 */ cd-gpios = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -188,7 +190,7 @@ leds { ...@@ -188,7 +190,7 @@ leds {
green { green {
label = "bananapi:green:usr"; label = "bananapi:green:usr";
gpios = <&pio 7 24 0>; gpios = <&pio 7 24 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -209,6 +211,6 @@ reg_gmac_3v3: gmac-3v3 { ...@@ -209,6 +211,6 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>; startup-delay-us = <100000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 23 0>; gpio = <&pio 7 23 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Cubietech Cubieboard2"; model = "Cubietech Cubieboard2";
compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20"; compatible = "cubietech,cubieboard2", "allwinner,sun7i-a20";
...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 { ...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -120,12 +122,12 @@ leds { ...@@ -120,12 +122,12 @@ leds {
blue { blue {
label = "cubieboard2:blue:usr"; label = "cubieboard2:blue:usr";
gpios = <&pio 7 21 0>; gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
}; };
green { green {
label = "cubieboard2:green:usr"; label = "cubieboard2:green:usr";
gpios = <&pio 7 20 0>; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Cubietech Cubietruck"; model = "Cubietech Cubietruck";
compatible = "cubietech,cubietruck", "allwinner,sun7i-a20"; compatible = "cubietech,cubietruck", "allwinner,sun7i-a20";
...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 { ...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -168,34 +170,34 @@ leds { ...@@ -168,34 +170,34 @@ leds {
blue { blue {
label = "cubietruck:blue:usr"; label = "cubietruck:blue:usr";
gpios = <&pio 7 21 0>; gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>;
}; };
orange { orange {
label = "cubietruck:orange:usr"; label = "cubietruck:orange:usr";
gpios = <&pio 7 20 0>; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
}; };
white { white {
label = "cubietruck:white:usr"; label = "cubietruck:white:usr";
gpios = <&pio 7 11 0>; gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>;
}; };
green { green {
label = "cubietruck:green:usr"; label = "cubietruck:green:usr";
gpios = <&pio 7 7 0>; gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>;
}; };
}; };
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
pinctrl-0 = <&ahci_pwr_pin_cubietruck>; pinctrl-0 = <&ahci_pwr_pin_cubietruck>;
gpio = <&pio 7 12 0>; gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
reg_usb0_vbus: usb0-vbus { reg_usb0_vbus: usb0-vbus {
pinctrl-0 = <&usb0_vbus_pin_a>; pinctrl-0 = <&usb0_vbus_pin_a>;
gpio = <&pio 7 17 0>; gpio = <&pio 7 17 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
...@@ -215,6 +217,6 @@ reg_vmmc3: vmmc3 { ...@@ -215,6 +217,6 @@ reg_vmmc3: vmmc3 {
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 9 0>; gpio = <&pio 7 9 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Merrii A20 Hummingbird"; model = "Merrii A20 Hummingbird";
compatible = "merrii,a20-hummingbird", "allwinner,sun7i-a20"; compatible = "merrii,a20-hummingbird", "allwinner,sun7i-a20";
...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 { ...@@ -25,7 +27,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -184,7 +186,7 @@ gmac: ethernet@01c50000 { ...@@ -184,7 +186,7 @@ gmac: ethernet@01c50000 {
phy-mode = "rgmii"; phy-mode = "rgmii";
phy-supply = <&reg_gmac_vdd>; phy-supply = <&reg_gmac_vdd>;
/* phy reset config */ /* phy reset config */
snps,reset-gpio = <&pio 0 17 0>; /* PA17 */ snps,reset-gpio = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
snps,reset-active-low; snps,reset-active-low;
/* wait 1s after reset, otherwise fail to read phy id */ /* wait 1s after reset, otherwise fail to read phy id */
snps,reset-delays-us = <0 10000 1000000>; snps,reset-delays-us = <0 10000 1000000>;
...@@ -198,13 +200,13 @@ phy1: ethernet-phy@1 { ...@@ -198,13 +200,13 @@ phy1: ethernet-phy@1 {
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>; pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>;
gpio = <&pio 7 15 0>; /* PH15 */ gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
status = "okay"; status = "okay";
}; };
reg_usb1_vbus: usb1-vbus { reg_usb1_vbus: usb1-vbus {
pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>; pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>;
gpio = <&pio 7 2 0>; /* PH2 */ gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
status = "okay"; status = "okay";
}; };
...@@ -220,7 +222,7 @@ reg_mmc3_vdd: mmc3_vdd { ...@@ -220,7 +222,7 @@ reg_mmc3_vdd: mmc3_vdd {
regulator-min-microvolt = <3000000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 9 0>; /* PH9 */ gpio = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
}; };
reg_gmac_vdd: gmac_vdd { reg_gmac_vdd: gmac_vdd {
...@@ -231,6 +233,6 @@ reg_gmac_vdd: gmac_vdd { ...@@ -231,6 +233,6 @@ reg_gmac_vdd: gmac_vdd {
regulator-min-microvolt = <3000000>; regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>; regulator-max-microvolt = <3000000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 16 0>; /* PH16 */ gpio = <&pio 7 16 GPIO_ACTIVE_HIGH>; /* PH16 */
}; };
}; };
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "I12 / Q5 / QT840A A20 tvbox"; model = "I12 / Q5 / QT840A A20 tvbox";
compatible = "allwinner,i12-tvbox", "allwinner,sun7i-a20"; compatible = "allwinner,i12-tvbox", "allwinner,sun7i-a20";
...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 { ...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -179,12 +181,12 @@ leds { ...@@ -179,12 +181,12 @@ leds {
red { red {
label = "i12_tvbox:red:usr"; label = "i12_tvbox:red:usr";
gpios = <&pio 7 9 1>; gpios = <&pio 7 9 GPIO_ACTIVE_LOW>;
}; };
blue { blue {
label = "i12_tvbox:blue:usr"; label = "i12_tvbox:blue:usr";
gpios = <&pio 7 20 0>; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -204,7 +206,7 @@ reg_vmmc3: vmmc3 { ...@@ -204,7 +206,7 @@ reg_vmmc3: vmmc3 {
regulator-min-microvolt = <3300000>; regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 2 0>; gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>;
}; };
reg_vmmc3_io: vmmc3-io { reg_vmmc3_io: vmmc3-io {
...@@ -217,7 +219,7 @@ reg_vmmc3_io: vmmc3-io { ...@@ -217,7 +219,7 @@ reg_vmmc3_io: vmmc3-io {
/* This controls VCC-PI, must be always on! */ /* This controls VCC-PI, must be always on! */
regulator-always-on; regulator-always-on;
enable-active-high; enable-active-high;
gpio = <&pio 7 12 0>; gpio = <&pio 7 12 GPIO_ACTIVE_HIGH>;
}; };
reg_gmac_3v3: gmac-3v3 { reg_gmac_3v3: gmac-3v3 {
...@@ -229,6 +231,6 @@ reg_gmac_3v3: gmac-3v3 { ...@@ -229,6 +231,6 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>; regulator-max-microvolt = <3300000>;
startup-delay-us = <50000>; startup-delay-us = <50000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 21 0>; gpio = <&pio 7 21 GPIO_ACTIVE_HIGH>;
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Mele M3"; model = "Mele M3";
compatible = "mele,m3", "allwinner,sun7i-a20"; compatible = "mele,m3", "allwinner,sun7i-a20";
...@@ -61,7 +63,7 @@ mmc0: mmc@01c0f000 { ...@@ -61,7 +63,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -154,7 +156,7 @@ leds { ...@@ -154,7 +156,7 @@ leds {
blue { blue {
label = "m3:blue:usr"; label = "m3:blue:usr";
gpios = <&pio 7 20 0>; gpios = <&pio 7 20 GPIO_ACTIVE_HIGH>;
}; };
}; };
......
...@@ -52,6 +52,8 @@ ...@@ -52,6 +52,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Olimex A20-OLinuXino-LIME"; model = "Olimex A20-OLinuXino-LIME";
compatible = "olimex,a20-olinuxino-lime", "allwinner,sun7i-a20"; compatible = "olimex,a20-olinuxino-lime", "allwinner,sun7i-a20";
...@@ -62,7 +64,7 @@ mmc0: mmc@01c0f000 { ...@@ -62,7 +64,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -152,14 +154,14 @@ leds { ...@@ -152,14 +154,14 @@ leds {
green { green {
label = "a20-olinuxino-lime:green:usr"; label = "a20-olinuxino-lime:green:usr";
gpios = <&pio 7 2 0>; gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
gpio = <&pio 2 3 0>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -49,6 +49,8 @@ ...@@ -49,6 +49,8 @@
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Olimex A20-OLinuXino-LIME2"; model = "Olimex A20-OLinuXino-LIME2";
compatible = "olimex,a20-olinuxino-lime2", "allwinner,sun7i-a20"; compatible = "olimex,a20-olinuxino-lime2", "allwinner,sun7i-a20";
...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 { ...@@ -59,7 +61,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -199,14 +201,14 @@ leds { ...@@ -199,14 +201,14 @@ leds {
green { green {
label = "a20-olinuxino-lime2:green:usr"; label = "a20-olinuxino-lime2:green:usr";
gpios = <&pio 7 2 0>; gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>; pinctrl-0 = <&ahci_pwr_pin_olinuxinolime>;
gpio = <&pio 2 3 0>; gpio = <&pio 2 3 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
......
...@@ -14,6 +14,8 @@ ...@@ -14,6 +14,8 @@
/dts-v1/; /dts-v1/;
#include "sun7i-a20.dtsi" #include "sun7i-a20.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h> #include <dt-bindings/input/input.h>
/ { / {
...@@ -37,7 +39,7 @@ mmc0: mmc@01c0f000 { ...@@ -37,7 +39,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -47,7 +49,7 @@ mmc3: mmc@01c12000 { ...@@ -47,7 +49,7 @@ mmc3: mmc@01c12000 {
pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>; pinctrl-0 = <&mmc3_pins_a>, <&mmc3_cd_pin_olinuxinom>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 11 0>; /* PH11 */ cd-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -221,7 +223,7 @@ leds { ...@@ -221,7 +223,7 @@ leds {
green { green {
label = "a20-olinuxino-micro:green:usr"; label = "a20-olinuxino-micro:green:usr";
gpios = <&pio 7 2 0>; gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>;
default-state = "on"; default-state = "on";
}; };
}; };
......
...@@ -63,7 +63,7 @@ mmc0: mmc@01c0f000 { ...@@ -63,7 +63,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
vmmc-supply = <&reg_vcc3v3>; vmmc-supply = <&reg_vcc3v3>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 7 1 0>; /* PH1 */ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
...@@ -204,7 +204,7 @@ reg_usb2_vbus: usb2-vbus { ...@@ -204,7 +204,7 @@ reg_usb2_vbus: usb2-vbus {
}; };
reg_ahci_5v: ahci-5v { reg_ahci_5v: ahci-5v {
gpio = <&pio 7 2 0>; gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>;
status = "okay"; status = "okay";
}; };
}; };
...@@ -51,6 +51,8 @@ ...@@ -51,6 +51,8 @@
#include "sun8i-a23.dtsi" #include "sun8i-a23.dtsi"
#include "sunxi-common-regulators.dtsi" #include "sunxi-common-regulators.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Ippo Q8H Dual Core Tablet (v5)"; model = "Ippo Q8H Dual Core Tablet (v5)";
compatible = "ippo,q8h-v5", "allwinner,sun8i-a23"; compatible = "ippo,q8h-v5", "allwinner,sun8i-a23";
...@@ -69,7 +71,7 @@ mmc0: mmc@01c0f000 { ...@@ -69,7 +71,7 @@ mmc0: mmc@01c0f000 {
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_q8h>; pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_q8h>;
vmmc-supply = <&reg_vcc3v0>; vmmc-supply = <&reg_vcc3v0>;
bus-width = <4>; bus-width = <4>;
cd-gpios = <&pio 1 4 0>; /* PB4 */ cd-gpios = <&pio 1 4 GPIO_ACTIVE_HIGH>; /* PB4 */
cd-inverted; cd-inverted;
status = "okay"; status = "okay";
}; };
......
...@@ -50,6 +50,8 @@ ...@@ -50,6 +50,8 @@
/dts-v1/; /dts-v1/;
#include "sun9i-a80.dtsi" #include "sun9i-a80.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
model = "Merrii A80 Optimus Board"; model = "Merrii A80 Optimus Board";
compatible = "merrii,a80-optimus", "allwinner,sun9i-a80"; compatible = "merrii,a80-optimus", "allwinner,sun9i-a80";
...@@ -106,14 +108,14 @@ leds { ...@@ -106,14 +108,14 @@ leds {
led2 { led2 {
label = "optimus:led2:usr"; label = "optimus:led2:usr";
gpios = <&pio 7 1 0>; gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>;
}; };
/* led3 is on PM15, in R_PIO */ /* led3 is on PM15, in R_PIO */
led4 { led4 {
label = "optimus:led4:usr"; label = "optimus:led4:usr";
gpios = <&pio 7 0 0>; gpios = <&pio 7 0 GPIO_ACTIVE_HIGH>;
}; };
}; };
}; };
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
* OTHER DEALINGS IN THE SOFTWARE. * OTHER DEALINGS IN THE SOFTWARE.
*/ */
#include <dt-bindings/gpio/gpio.h>
/ { / {
soc@01c00000 { soc@01c00000 {
pio: pinctrl@01c20800 { pio: pinctrl@01c20800 {
...@@ -89,7 +91,7 @@ reg_ahci_5v: ahci-5v { ...@@ -89,7 +91,7 @@ reg_ahci_5v: ahci-5v {
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
regulator-boot-on; regulator-boot-on;
enable-active-high; enable-active-high;
gpio = <&pio 1 8 0>; gpio = <&pio 1 8 GPIO_ACTIVE_HIGH>;
status = "disabled"; status = "disabled";
}; };
...@@ -101,7 +103,7 @@ reg_usb0_vbus: usb0-vbus { ...@@ -101,7 +103,7 @@ reg_usb0_vbus: usb0-vbus {
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
enable-active-high; enable-active-high;
gpio = <&pio 1 9 0>; gpio = <&pio 1 9 GPIO_ACTIVE_HIGH>;
status = "disabled"; status = "disabled";
}; };
...@@ -113,7 +115,7 @@ reg_usb1_vbus: usb1-vbus { ...@@ -113,7 +115,7 @@ reg_usb1_vbus: usb1-vbus {
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 6 0>; gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>;
status = "disabled"; status = "disabled";
}; };
...@@ -125,7 +127,7 @@ reg_usb2_vbus: usb2-vbus { ...@@ -125,7 +127,7 @@ reg_usb2_vbus: usb2-vbus {
regulator-min-microvolt = <5000000>; regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>; regulator-max-microvolt = <5000000>;
enable-active-high; enable-active-high;
gpio = <&pio 7 3 0>; gpio = <&pio 7 3 GPIO_ACTIVE_HIGH>;
status = "disabled"; status = "disabled";
}; };
......
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