|
@@ -15,6 +15,8 @@
|
|
|
#include "sun7i-a20.dtsi"
|
|
|
#include "sunxi-common-regulators.dtsi"
|
|
|
|
|
|
+#include <dt-bindings/gpio/gpio.h>
|
|
|
+
|
|
|
/ {
|
|
|
model = "Merrii A20 Hummingbird";
|
|
|
compatible = "merrii,a20-hummingbird", "allwinner,sun7i-a20";
|
|
@@ -25,7 +27,7 @@
|
|
|
pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>;
|
|
|
vmmc-supply = <®_vcc3v0>;
|
|
|
bus-width = <4>;
|
|
|
- cd-gpios = <&pio 7 1 0>; /* PH1 */
|
|
|
+ cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */
|
|
|
cd-inverted;
|
|
|
status = "okay";
|
|
|
};
|
|
@@ -184,7 +186,7 @@
|
|
|
phy-mode = "rgmii";
|
|
|
phy-supply = <®_gmac_vdd>;
|
|
|
/* 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;
|
|
|
/* wait 1s after reset, otherwise fail to read phy id */
|
|
|
snps,reset-delays-us = <0 10000 1000000>;
|
|
@@ -198,13 +200,13 @@
|
|
|
|
|
|
reg_ahci_5v: ahci-5v {
|
|
|
pinctrl-0 = <&ahci_pwr_pin_a20_hummingbird>;
|
|
|
- gpio = <&pio 7 15 0>; /* PH15 */
|
|
|
+ gpio = <&pio 7 15 GPIO_ACTIVE_HIGH>; /* PH15 */
|
|
|
status = "okay";
|
|
|
};
|
|
|
|
|
|
reg_usb1_vbus: usb1-vbus {
|
|
|
pinctrl-0 = <&usb1_vbus_pin_a20_hummingbird>;
|
|
|
- gpio = <&pio 7 2 0>; /* PH2 */
|
|
|
+ gpio = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
|
|
|
status = "okay";
|
|
|
};
|
|
|
|
|
@@ -220,7 +222,7 @@
|
|
|
regulator-min-microvolt = <3000000>;
|
|
|
regulator-max-microvolt = <3000000>;
|
|
|
enable-active-high;
|
|
|
- gpio = <&pio 7 9 0>; /* PH9 */
|
|
|
+ gpio = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
|
|
|
};
|
|
|
|
|
|
reg_gmac_vdd: gmac_vdd {
|
|
@@ -231,6 +233,6 @@
|
|
|
regulator-min-microvolt = <3000000>;
|
|
|
regulator-max-microvolt = <3000000>;
|
|
|
enable-active-high;
|
|
|
- gpio = <&pio 7 16 0>; /* PH16 */
|
|
|
+ gpio = <&pio 7 16 GPIO_ACTIVE_HIGH>; /* PH16 */
|
|
|
};
|
|
|
};
|