@@ -7,7 +7,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Amarula A64-Relic";
@@ -23,8 +23,8 @@ chosen {
i2c {
compatible = "i2c-gpio";
- sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>;
- scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>;
+ sda-gpios = <&pio PE 13 GPIO_ACTIVE_HIGH>;
+ scl-gpios = <&pio PE 12 GPIO_ACTIVE_HIGH>;
i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -40,8 +40,8 @@ ov5640: camera@3c {
AVDD-supply = <®_aldo1>;
DOVDD-supply = <®_dldo3>;
DVDD-supply = <®_eldo3>;
- reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */
- powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */
+ reset-gpios = <&pio PE 14 GPIO_ACTIVE_LOW>; /* CSI-RST-R: PE14 */
+ powerdown-gpios = <&pio PE 15 GPIO_ACTIVE_HIGH>; /* CSI-STBY-R: PE15 */
port {
ov5640_ep: endpoint {
@@ -60,7 +60,7 @@ wifi_pwrseq: wifi-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc 1>;
clock-names = "ext_clock";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* WL-PMU-EN: PL2 */
};
};
@@ -121,8 +121,8 @@ touchscreen@5d {
AVDD28-supply = <®_ldo_io0>; /* VCC-CTP: GPIO0-LDO */
interrupt-parent = <&pio>;
interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
- irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
- reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */
+ irq-gpios = <&pio PH 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
+ reset-gpios = <&pio PH 8 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH8 */
touchscreen-inverted-x;
touchscreen-inverted-y;
};
@@ -314,7 +314,7 @@ &usb_otg {
};
&usbphy {
- usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+ usb0_id_det-gpios = <&pio PH 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <®_drivevbus>;
status = "okay";
};
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "BananaPi-M64";
@@ -38,24 +38,24 @@ leds {
pwr-led {
label = "bananapi-m64:red:pwr";
- gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
+ gpios = <&pio PD 24 GPIO_ACTIVE_HIGH>; /* PD24 */
default-state = "on";
};
green {
label = "bananapi-m64:green:user";
- gpios = <&pio 4 14 GPIO_ACTIVE_HIGH>; /* PE14 */
+ gpios = <&pio PE 14 GPIO_ACTIVE_HIGH>; /* PE14 */
};
blue {
label = "bananapi-m64:blue:user";
- gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */
+ gpios = <&pio PE 15 GPIO_ACTIVE_HIGH>; /* PE15 */
};
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
clocks = <&rtc 1>;
clock-names = "ext_clock";
};
@@ -141,7 +141,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -359,9 +359,9 @@ bluetooth {
clock-names = "lpo";
vbat-supply = <®_dldo2>;
vddio-supply = <®_dldo4>;
- device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
- host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
- shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ device-wakeup-gpios = <&r_pio PL 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+ host-wakeup-gpios = <&r_pio PL 5 GPIO_ACTIVE_HIGH>; /* PL5 */
+ shutdown-gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
};
};
@@ -375,7 +375,7 @@ &usb_power_supply {
};
&usbphy {
- usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+ usb0_id_det-gpios = <&pio PH 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus_power-supply = <&usb_power_supply>;
usb0_vbus-supply = <®_drivevbus>;
status = "okay";
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "FriendlyARM NanoPi A64";
@@ -37,7 +37,7 @@ leds {
blue {
label = "nanopi-a64:blue:status";
- gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */
+ gpios = <&pio PD 24 GPIO_ACTIVE_LOW>; /* PD24 */
};
};
@@ -45,7 +45,7 @@ wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc 1>;
clock-names = "ext_clock";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
};
@@ -113,7 +113,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -44,8 +44,8 @@ touchscreen@5d {
AVDD28-supply = <®_ldo_io0>; /* VDD_CTP: GPIO0-LDO */
interrupt-parent = <&pio>;
interrupts = <7 4 IRQ_TYPE_EDGE_FALLING>;
- irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
- reset-gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */
+ irq-gpios = <&pio PH 4 GPIO_ACTIVE_HIGH>; /* CTP-INT: PH4 */
+ reset-gpios = <&pio PH 11 GPIO_ACTIVE_HIGH>; /* CTP-RST: PH11 */
touchscreen-inverted-x;
touchscreen-inverted-y;
};
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Olimex A64-Olinuxino";
@@ -37,7 +37,7 @@ leds {
led-0 {
label = "a64-olinuxino:red:user";
- gpios = <&pio 4 17 GPIO_ACTIVE_HIGH>; /* PE17 */
+ gpios = <&pio PE 17 GPIO_ACTIVE_HIGH>; /* PE17 */
};
};
@@ -48,13 +48,13 @@ reg_usb1_vbus: usb1-vbus {
regulator-max-microvolt = <5000000>;
regulator-boot-on;
enable-active-high;
- gpio = <&pio 6 9 GPIO_ACTIVE_HIGH>; /* PG9 */
+ gpio = <&pio PG 9 GPIO_ACTIVE_HIGH>; /* PG9 */
status = "okay";
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
};
@@ -118,7 +118,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -341,7 +341,7 @@ &usb_otg {
&usbphy {
status = "okay";
- usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+ usb0_id_det-gpios = <&pio PH 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <®_drivevbus>;
usb1_vbus-supply = <®_usb1_vbus>;
};
@@ -7,7 +7,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "OrangePi Win/Win Plus";
@@ -42,7 +42,7 @@ leds {
status {
label = "orangepi:green:status";
- gpios = <&pio 7 11 GPIO_ACTIVE_HIGH>; /* PH11 */
+ gpios = <&pio PH 11 GPIO_ACTIVE_HIGH>; /* PH11 */
};
};
@@ -53,7 +53,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
regulator-boot-on;
enable-active-high;
- gpio = <&pio 3 14 GPIO_ACTIVE_HIGH>; /* PD14 */
+ gpio = <&pio PD 14 GPIO_ACTIVE_HIGH>; /* PD14 */
status = "okay";
};
@@ -64,13 +64,13 @@ reg_usb1_vbus: usb1-vbus {
regulator-max-microvolt = <5000000>;
regulator-boot-on;
enable-active-high;
- gpio = <&pio 3 7 GPIO_ACTIVE_HIGH>; /* PD7 */
+ gpio = <&pio PD 7 GPIO_ACTIVE_HIGH>; /* PD7 */
status = "okay";
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */
+ reset-gpios = <&r_pio PL 8 GPIO_ACTIVE_LOW>; /* PL8 */
clocks = <&rtc 1>;
clock-names = "ext_clock";
};
@@ -148,7 +148,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
disable-wp;
bus-width = <4>;
status = "okay";
@@ -373,9 +373,9 @@ bluetooth {
clock-names = "lpo";
vbat-supply = <®_dldo2>;
vddio-supply = <®_dldo4>;
- device-wakeup-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
- host-wakeup-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; /* PL5 */
- shutdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ device-wakeup-gpios = <&r_pio PL 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+ host-wakeup-gpios = <&r_pio PL 5 GPIO_ACTIVE_HIGH>; /* PL5 */
+ shutdown-gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
};
};
@@ -406,7 +406,7 @@ &usb_otg {
};
&usbphy {
- usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+ usb0_id_det-gpios = <&pio PH 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus-supply = <®_drivevbus>;
usb1_vbus-supply = <®_usb1_vbus>;
status = "okay";
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Pine64";
@@ -118,7 +118,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -7,7 +7,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/gpio-keys.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pwm/pwm.h>
@@ -26,7 +26,7 @@ backlight: backlight {
pwms = <&pwm 0 50000 0>;
brightness-levels = <0 5 10 15 20 30 40 55 70 85 100>;
default-brightness-level = <2>;
- enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
+ enable-gpios = <&pio PD 23 GPIO_ACTIVE_HIGH>; /* PD23 */
power-supply = <®_vbklt>;
};
@@ -39,7 +39,7 @@ gpio_keys {
lid_switch {
label = "Lid Switch";
- gpios = <&r_pio 0 12 GPIO_ACTIVE_LOW>; /* PL12 */
+ gpios = <&r_pio PL 12 GPIO_ACTIVE_LOW>; /* PL12 */
linux,input-type = <EV_SW>;
linux,code = <SW_LID>;
linux,can-disable;
@@ -65,7 +65,7 @@ reg_vbklt: vbklt {
regulator-name = "vbklt";
regulator-min-microvolt = <18000000>;
regulator-max-microvolt = <18000000>;
- gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
+ gpio = <&pio PH 6 GPIO_ACTIVE_HIGH>; /* PH6 */
enable-active-high;
};
@@ -80,13 +80,13 @@ reg_vcc5v0: vcc5v0 {
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
speaker_amp: audio-amplifier {
compatible = "simple-audio-amplifier";
VCC-supply = <®_vcc5v0>;
- enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+ enable-gpios = <&pio PH 7 GPIO_ACTIVE_HIGH>; /* PH7 */
sound-name-prefix = "Speaker Amp";
};
@@ -143,7 +143,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
disable-wp;
bus-width = <4>;
status = "okay";
@@ -206,7 +206,7 @@ &r_i2c {
anx6345: anx6345@38 {
compatible = "analogix,anx6345";
reg = <0x38>;
- reset-gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */
+ reset-gpios = <&pio PD 24 GPIO_ACTIVE_LOW>; /* PD24 */
dvdd25-supply = <®_dldo2>;
dvdd12-supply = <®_fldo1>;
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
#include <dt-bindings/pwm/pwm.h>
@@ -26,31 +26,31 @@ leds {
blue {
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
- gpios = <&pio 3 20 GPIO_ACTIVE_HIGH>; /* PD20 */
+ gpios = <&pio PD 20 GPIO_ACTIVE_HIGH>; /* PD20 */
};
green {
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_GREEN>;
- gpios = <&pio 3 18 GPIO_ACTIVE_HIGH>; /* PD18 */
+ gpios = <&pio PD 18 GPIO_ACTIVE_HIGH>; /* PD18 */
};
red {
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_RED>;
- gpios = <&pio 3 19 GPIO_ACTIVE_HIGH>; /* PD19 */
+ gpios = <&pio PD 19 GPIO_ACTIVE_HIGH>; /* PD19 */
};
};
speaker_amp: audio-amplifier {
compatible = "simple-audio-amplifier";
- enable-gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
+ enable-gpios = <&pio PC 7 GPIO_ACTIVE_HIGH>; /* PC7 */
sound-name-prefix = "Speaker Amp";
};
vibrator {
compatible = "gpio-vibrator";
- enable-gpios = <&pio 3 2 GPIO_ACTIVE_HIGH>; /* PD2 */
+ enable-gpios = <&pio PD 2 GPIO_ACTIVE_HIGH>; /* PD2 */
vcc-supply = <®_dcdc1>;
};
};
@@ -143,7 +143,7 @@ &mmc0 {
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
vqmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
disable-wp;
bus-width = <4>;
status = "okay";
@@ -9,7 +9,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pwm/pwm.h>
@@ -27,7 +27,7 @@ backlight: backlight {
pwms = <&pwm 0 50000 PWM_POLARITY_INVERTED>;
brightness-levels = <0 16 18 20 22 24 26 29 32 35 38 42 46 51 56 62 68 75 83 91 100>;
default-brightness-level = <15>;
- enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
+ enable-gpios = <&pio PD 23 GPIO_ACTIVE_HIGH>; /* PD23 */
power-supply = <&vdd_bl>;
};
@@ -37,8 +37,8 @@ chosen {
i2c-csi {
compatible = "i2c-gpio";
- sda-gpios = <&pio 4 13 GPIO_ACTIVE_HIGH>; /* PE13 */
- scl-gpios = <&pio 4 12 GPIO_ACTIVE_HIGH>; /* PE12 */
+ sda-gpios = <&pio PE 13 GPIO_ACTIVE_HIGH>; /* PE13 */
+ scl-gpios = <&pio PE 12 GPIO_ACTIVE_HIGH>; /* PE12 */
i2c-gpio,delay-us = <5>;
#address-cells = <1>;
#size-cells = <0>;
@@ -55,8 +55,8 @@ ov5640: camera@3c {
AVDD-supply = <®_dldo3>;
DOVDD-supply = <®_aldo1>;
DVDD-supply = <®_eldo3>;
- reset-gpios = <&pio 4 14 GPIO_ACTIVE_LOW>; /* PE14 */
- powerdown-gpios = <&pio 4 15 GPIO_ACTIVE_HIGH>; /* PE15 */
+ reset-gpios = <&pio PE 14 GPIO_ACTIVE_LOW>; /* PE14 */
+ powerdown-gpios = <&pio PE 15 GPIO_ACTIVE_HIGH>; /* PE15 */
port {
ov5640_ep: endpoint {
@@ -73,7 +73,7 @@ ov5640_ep: endpoint {
speaker_amp: audio-amplifier {
compatible = "simple-audio-amplifier";
- enable-gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; /* PH7 */
+ enable-gpios = <&pio PH 7 GPIO_ACTIVE_HIGH>; /* PH7 */
sound-name-prefix = "Speaker Amp";
};
@@ -82,13 +82,13 @@ vdd_bl: regulator@0 {
regulator-name = "bl-3v3";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
- gpio = <&pio 7 6 GPIO_ACTIVE_HIGH>; /* PH6 */
+ gpio = <&pio PH 6 GPIO_ACTIVE_HIGH>; /* PH6 */
enable-active-high;
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
post-power-on-delay-ms = <200>;
};
};
@@ -158,7 +158,7 @@ panel@0 {
avdd-supply = <®_dc1sw>;
dvdd-supply = <®_dc1sw>;
cvdd-supply = <®_ldo_io1>;
- reset-gpios = <&pio 3 24 GPIO_ACTIVE_HIGH>; /* PD24 */
+ reset-gpios = <&pio PD 24 GPIO_ACTIVE_HIGH>; /* PD24 */
backlight = <&backlight>;
};
};
@@ -179,8 +179,8 @@ touchscreen@5d {
reg = <0x5d>;
interrupt-parent = <&pio>;
interrupts = <7 4 IRQ_TYPE_LEVEL_HIGH>; /* PH4 */
- irq-gpios = <&pio 7 4 GPIO_ACTIVE_HIGH>; /* PH4 */
- reset-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
+ irq-gpios = <&pio PH 4 GPIO_ACTIVE_HIGH>; /* PH4 */
+ reset-gpios = <&pio PH 8 GPIO_ACTIVE_HIGH>; /* PH8 */
AVDD28-supply = <®_ldo_io1>;
};
};
@@ -222,7 +222,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -452,7 +452,7 @@ &usb_power_supply {
};
&usbphy {
- usb0_id_det-gpios = <&pio 7 9 GPIO_ACTIVE_HIGH>; /* PH9 */
+ usb0_id_det-gpios = <&pio PH 9 GPIO_ACTIVE_HIGH>; /* PH9 */
usb0_vbus_power-supply = <&usb_power_supply>;
usb0_vbus-supply = <®_drivevbus>;
usb1_vbus-supply = <®_ldo_io0>;
@@ -6,7 +6,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
&codec_analog {
cpvdd-supply = <®_eldo1>;
@@ -35,7 +35,7 @@ &mmc0 {
non-removable;
disable-wp;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -7,7 +7,7 @@
#include "sun50i-a64.dtsi"
#include "sun50i-a64-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pwm/pwm.h>
@@ -25,7 +25,7 @@ backlight: backlight {
power-supply = <®_dcdc1>;
brightness-levels = <0 5 7 10 14 20 28 40 56 80 112>;
default-brightness-level = <5>;
- enable-gpios = <&pio 3 23 GPIO_ACTIVE_HIGH>; /* PD23 */
+ enable-gpios = <&pio PD 23 GPIO_ACTIVE_HIGH>; /* PD23 */
};
chosen {
@@ -42,7 +42,7 @@ gpio-keys {
lid-switch {
label = "Lid Switch";
- gpios = <&r_pio 0 8 GPIO_ACTIVE_LOW>; /* PL8 */
+ gpios = <&r_pio PL 8 GPIO_ACTIVE_LOW>; /* PL8 */
linux,input-type = <EV_SW>;
linux,code = <SW_LID>;
wakeup-source;
@@ -54,12 +54,12 @@ leds {
capslock {
label = "teres-i:green:capslock";
- gpios = <&pio 2 7 GPIO_ACTIVE_HIGH>; /* PC7 */
+ gpios = <&pio PC 7 GPIO_ACTIVE_HIGH>; /* PC7 */
};
numlock {
label = "teres-i:green:numlock";
- gpios = <&pio 2 4 GPIO_ACTIVE_HIGH>; /* PC4 */
+ gpios = <&pio PC 4 GPIO_ACTIVE_HIGH>; /* PC4 */
};
};
@@ -69,18 +69,18 @@ reg_usb1_vbus: usb1-vbus {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
- gpio = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ gpio = <&r_pio PL 7 GPIO_ACTIVE_HIGH>; /* PL7 */
status = "okay";
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
+ reset-gpios = <&r_pio PL 2 GPIO_ACTIVE_LOW>; /* PL2 */
};
speaker_amp: audio-amplifier {
compatible = "simple-audio-amplifier";
- enable-gpios = <&r_pio 0 12 GPIO_ACTIVE_HIGH>; /* PL12 */
+ enable-gpios = <&r_pio PL 12 GPIO_ACTIVE_HIGH>; /* PL12 */
sound-name-prefix = "Speaker Amp";
};
};
@@ -130,7 +130,7 @@ &i2c0 {
anx6345: anx6345@38 {
compatible = "analogix,anx6345";
reg = <0x38>;
- reset-gpios = <&pio 3 24 GPIO_ACTIVE_LOW>; /* PD24 */
+ reset-gpios = <&pio PD 24 GPIO_ACTIVE_LOW>; /* PD24 */
dvdd25-supply = <®_dldo2>;
dvdd12-supply = <®_dldo3>;
@@ -155,7 +155,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_dcdc1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
disable-wp;
bus-width = <4>;
status = "okay";
@@ -35,7 +35,7 @@ vdd_cpux: gpio-regulator {
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1300000>;
regulator-ramp-delay = <50>; /* 4ms */
- gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
+ gpios = <&r_pio PL 6 GPIO_ACTIVE_HIGH>; /* PL6 */
gpios-states = <0x1>;
states = <1100000 0>, <1300000 1>;
};
@@ -18,7 +18,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <5000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>;
vin-supply = <®_vcc5v0>;
};
};
@@ -5,7 +5,7 @@
/dts-v1/;
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -27,13 +27,13 @@ leds {
pwr {
label = "nanopi:green:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
+ gpios = <&r_pio PL 10 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
status {
label = "nanopi:red:status";
- gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio PA 20 GPIO_ACTIVE_HIGH>;
};
};
@@ -44,7 +44,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>;
};
reg_vcc3v3: vcc3v3 {
@@ -63,14 +63,14 @@ vdd_cpux: gpio-regulator {
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1300000>;
regulator-ramp-delay = <50>; /* 4ms */
- gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>;
+ gpios = <&r_pio PL 6 GPIO_ACTIVE_HIGH>;
gpios-states = <0x1>;
states = <1100000 0>, <1300000 1>;
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&r_pio 0 7 GPIO_ACTIVE_LOW>; /* PL7 */
+ reset-gpios = <&r_pio PL 7 GPIO_ACTIVE_LOW>; /* PL7 */
post-power-on-delay-ms = <200>;
};
};
@@ -110,7 +110,7 @@ ext_rgmii_phy: ethernet-phy@7 {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -4,7 +4,7 @@
/dts-v1/;
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "FriendlyARM NanoPi NEO 2";
@@ -24,13 +24,13 @@ leds {
pwr {
label = "nanopi:green:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
+ gpios = <&r_pio PL 10 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
status {
label = "nanopi:blue:status";
- gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio PA 10 GPIO_ACTIVE_HIGH>;
};
};
@@ -41,7 +41,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>;
};
reg_vcc3v3: vcc3v3 {
@@ -57,7 +57,7 @@ reg_usb0_vbus: usb0-vbus {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
- gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
+ gpio = <&r_pio PL 2 GPIO_ACTIVE_HIGH>; /* PL2 */
status = "okay";
};
};
@@ -89,7 +89,7 @@ ext_rgmii_phy: ethernet-phy@7 {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -114,7 +114,7 @@ &usb_otg {
&usbphy {
/* USB Type-A port's VBUS is always on */
- usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+ usb0_id_det-gpios = <&pio PG 12 GPIO_ACTIVE_HIGH>; /* PG12 */
usb0_vbus-supply = <®_usb0_vbus>;
status = "okay";
};
@@ -4,7 +4,7 @@
/dts-v1/;
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -44,13 +44,13 @@ leds {
pwr {
label = "orangepi:green:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
+ gpios = <&r_pio PL 10 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
status {
label = "orangepi:red:status";
- gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio PA 20 GPIO_ACTIVE_HIGH>;
};
};
@@ -60,7 +60,7 @@ r-gpio-keys {
sw4 {
label = "sw4";
linux,code = <BTN_0>;
- gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+ gpios = <&r_pio PL 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
@@ -72,7 +72,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>;
};
reg_usb0_vbus: usb0-vbus {
@@ -81,7 +81,7 @@ reg_usb0_vbus: usb0-vbus {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
- gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
+ gpio = <&r_pio PL 2 GPIO_ACTIVE_HIGH>; /* PL2 */
status = "okay";
};
};
@@ -153,7 +153,7 @@ &ir {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -226,7 +226,7 @@ &usb_otg {
&usbphy {
/* USB Type-A ports' VBUS is always on */
- usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+ usb0_id_det-gpios = <&pio PG 12 GPIO_ACTIVE_HIGH>; /* PG12 */
usb0_vbus-supply = <®_usb0_vbus>;
status = "okay";
};
@@ -6,7 +6,7 @@
/dts-v1/;
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
/ {
@@ -38,13 +38,13 @@ leds {
pwr {
label = "orangepi:green:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
+ gpios = <&r_pio PL 10 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
status {
label = "orangepi:red:status";
- gpios = <&pio 0 20 GPIO_ACTIVE_HIGH>;
+ gpios = <&pio PA 20 GPIO_ACTIVE_HIGH>;
};
};
@@ -54,7 +54,7 @@ r-gpio-keys {
sw4 {
label = "sw4";
linux,code = <BTN_0>;
- gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
+ gpios = <&r_pio PL 3 GPIO_ACTIVE_LOW>;
};
};
@@ -65,7 +65,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>;
};
reg_vcc3v3: vcc3v3 {
@@ -81,13 +81,13 @@ reg_usb0_vbus: usb0-vbus {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
enable-active-high;
- gpio = <&r_pio 0 2 GPIO_ACTIVE_HIGH>; /* PL2 */
+ gpio = <&r_pio PL 2 GPIO_ACTIVE_HIGH>; /* PL2 */
status = "okay";
};
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&pio 2 14 GPIO_ACTIVE_LOW>; /* PC14 */
+ reset-gpios = <&pio PC 14 GPIO_ACTIVE_LOW>; /* PC14 */
};
};
@@ -154,7 +154,7 @@ &ir {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -207,7 +207,7 @@ &usb_otg {
&usbphy {
/* USB Type-A ports' VBUS is always on */
- usb0_id_det-gpios = <&pio 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
+ usb0_id_det-gpios = <&pio PA 21 GPIO_ACTIVE_HIGH>; /* PA21 */
usb0_vbus-supply = <®_usb0_vbus>;
status = "okay";
};
@@ -5,7 +5,7 @@
/dts-v1/;
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>
@@ -35,13 +35,14 @@ leds {
pwr {
label = "orangepi:green:pwr";
- gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
+ /* FIXME: PA10 or PL10 ? */
+ gpios = <&r_pio PL 10 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
status {
label = "orangepi:red:status";
- gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; /* PA17 */
+ gpios = <&pio PA 17 GPIO_ACTIVE_HIGH>; /* PA17 */
};
};
@@ -52,7 +53,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>; /* PD6 */
};
};
@@ -83,7 +84,7 @@ ext_rgmii_phy: ethernet-phy@1 {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
status = "okay";
};
@@ -135,6 +136,6 @@ &usb_otg {
&usbphy {
/* USB Type-A ports' VBUS is always on */
- usb0_id_det-gpios = <&pio 6 12 GPIO_ACTIVE_HIGH>; /* PG12 */
+ usb0_id_det-gpios = <&pio PG 12 GPIO_ACTIVE_HIGH>; /* PG12 */
status = "okay";
};
@@ -5,7 +5,7 @@
#include "sun50i-h5.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "OrangePi Zero Plus2";
@@ -39,7 +39,7 @@ reg_vcc3v3: vcc3v3 {
wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
- reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */
+ reset-gpios = <&pio PA 9 GPIO_ACTIVE_LOW>; /* PA9 */
post-power-on-delay-ms = <200>;
};
};
@@ -61,7 +61,7 @@ hdmi_out_con: endpoint {
&mmc0 {
vmmc-supply = <®_vcc3v3>;
bus-width = <4>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
status = "okay";
};
@@ -6,7 +6,7 @@
#include "sun50i-h6.dtsi"
#include "sun50i-h6-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Beelink GS1";
@@ -24,7 +24,7 @@ chosen {
connector {
compatible = "hdmi-connector";
type = "a";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
+ ddc-en-gpios = <&pio PH 2 GPIO_ACTIVE_HIGH>; /* PH2 */
port {
hdmi_con_in: endpoint {
@@ -45,7 +45,7 @@ leds {
power {
label = "beelink:white:power";
- gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
default-state = "on";
};
};
@@ -127,7 +127,7 @@ ext_rgmii_phy: ethernet-phy@1 {
&mmc0 {
vmmc-supply = <®_cldo1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
bus-width = <4>;
status = "okay";
};
@@ -6,7 +6,7 @@
#include "sun50i-h6.dtsi"
#include "sun50i-h6-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "OrangePi 3";
@@ -23,7 +23,7 @@ chosen {
connector {
compatible = "hdmi-connector";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
+ ddc-en-gpios = <&pio PH 2 GPIO_ACTIVE_HIGH>; /* PH2 */
type = "a";
port {
@@ -45,13 +45,13 @@ leds {
power {
label = "orangepi:red:power";
- gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
default-state = "on";
};
status {
label = "orangepi:green:status";
- gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ gpios = <&r_pio PL 7 GPIO_ACTIVE_HIGH>; /* PL7 */
};
};
@@ -88,7 +88,7 @@ wifi_pwrseq: wifi-pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc 1>;
clock-names = "ext_clock";
- reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
+ reset-gpios = <&r_pio PM 3 GPIO_ACTIVE_LOW>; /* PM3 */
post-power-on-delay-ms = <200>;
};
};
@@ -130,7 +130,7 @@ hdmi_out_con: endpoint {
&mmc0 {
vmmc-supply = <®_cldo1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>; /* PF6 */
bus-width = <4>;
status = "okay";
};
@@ -316,9 +316,9 @@ bluetooth {
compatible = "brcm,bcm4345c5";
clocks = <&rtc 1>;
clock-names = "lpo";
- device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
- host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
- shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
+ device-wakeup-gpios = <&r_pio PM 2 GPIO_ACTIVE_HIGH>; /* PM2 */
+ host-wakeup-gpios = <&r_pio PM 1 GPIO_ACTIVE_HIGH>; /* PM1 */
+ shutdown-gpios = <&r_pio PM 4 GPIO_ACTIVE_HIGH>; /* PM4 */
max-speed = <1500000>;
};
};
@@ -334,7 +334,7 @@ &usb2otg {
};
&usb2phy {
- usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
+ usb0_id_det-gpios = <&pio PC 15 GPIO_ACTIVE_HIGH>; /* PC15 */
usb0_vbus-supply = <®_vcc5v>;
usb3_vbus-supply = <®_vcc5v>;
status = "okay";
@@ -15,7 +15,7 @@ wifi_pwrseq: wifi_pwrseq {
compatible = "mmc-pwrseq-simple";
clocks = <&rtc 1>;
clock-names = "ext_clock";
- reset-gpios = <&r_pio 1 3 GPIO_ACTIVE_LOW>; /* PM3 */
+ reset-gpios = <&r_pio PM 3 GPIO_ACTIVE_LOW>; /* PM3 */
post-power-on-delay-ms = <200>;
};
};
@@ -66,9 +66,9 @@ bluetooth {
compatible = "brcm,bcm4345c5";
clocks = <&rtc 1>;
clock-names = "lpo";
- device-wakeup-gpios = <&r_pio 1 2 GPIO_ACTIVE_HIGH>; /* PM2 */
- host-wakeup-gpios = <&r_pio 1 1 GPIO_ACTIVE_HIGH>; /* PM1 */
- shutdown-gpios = <&r_pio 1 4 GPIO_ACTIVE_HIGH>; /* PM4 */
+ device-wakeup-gpios = <&r_pio PM 2 GPIO_ACTIVE_HIGH>; /* PM2 */
+ host-wakeup-gpios = <&r_pio PM 1 GPIO_ACTIVE_HIGH>; /* PM1 */
+ shutdown-gpios = <&r_pio PM 4 GPIO_ACTIVE_HIGH>; /* PM4 */
max-speed = <1500000>;
};
};
@@ -19,7 +19,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
enable-active-high;
- gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */
+ gpio = <&pio PD 6 GPIO_ACTIVE_HIGH>; /* PD6 */
vin-supply = <®_aldo2>;
};
};
@@ -6,7 +6,7 @@
#include "sun50i-h6.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "OrangePi One Plus";
@@ -23,7 +23,7 @@ chosen {
connector {
compatible = "hdmi-connector";
type = "a";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
+ ddc-en-gpios = <&pio PH 2 GPIO_ACTIVE_HIGH>; /* PH2 */
port {
hdmi_con_in: endpoint {
@@ -44,13 +44,13 @@ leds {
power {
label = "orangepi:red:power";
- gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
default-state = "on";
};
status {
label = "orangepi:green:status";
- gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ gpios = <&r_pio PL 7 GPIO_ACTIVE_HIGH>; /* PL7 */
};
};
@@ -93,7 +93,7 @@ hdmi_out_con: endpoint {
&mmc0 {
vmmc-supply = <®_cldo1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
bus-width = <4>;
status = "okay";
};
@@ -261,7 +261,7 @@ &usb2otg {
};
&usb2phy {
- usb0_id_det-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */
+ usb0_id_det-gpios = <&pio PC 6 GPIO_ACTIVE_HIGH>; /* PC6 */
usb0_vbus-supply = <®_vcc5v>;
usb3_vbus-supply = <®_vcc5v>;
status = "okay";
@@ -6,7 +6,7 @@
#include "sun50i-h6.dtsi"
#include "sun50i-h6-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Pine H64 model A";
@@ -32,7 +32,7 @@ ext_osc32k: ext_osc32k_clk {
hdmi_connector: connector {
compatible = "hdmi-connector";
type = "a";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
+ ddc-en-gpios = <&pio PH 2 GPIO_ACTIVE_HIGH>; /* PH2 */
port {
hdmi_con_in: endpoint {
@@ -46,17 +46,17 @@ leds {
heartbeat {
label = "pine-h64:green:heartbeat";
- gpios = <&r_pio 0 4 GPIO_ACTIVE_HIGH>; /* PL4 */
+ gpios = <&r_pio PL 4 GPIO_ACTIVE_HIGH>; /* PL4 */
};
link {
label = "pine-h64:white:link";
- gpios = <&r_pio 0 3 GPIO_ACTIVE_HIGH>; /* PL3 */
+ gpios = <&r_pio PL 3 GPIO_ACTIVE_HIGH>; /* PL3 */
};
status {
label = "pine-h64:blue:status";
- gpios = <&r_pio 0 7 GPIO_ACTIVE_HIGH>; /* PL7 */
+ gpios = <&r_pio PL 7 GPIO_ACTIVE_HIGH>; /* PL7 */
};
};
@@ -66,7 +66,7 @@ reg_gmac_3v3: gmac-3v3 {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
startup-delay-us = <100000>;
- gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>;
+ gpio = <&pio PC 16 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
@@ -76,7 +76,7 @@ reg_usb_vbus: vbus {
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
startup-delay-us = <100000>;
- gpio = <&r_pio 0 5 GPIO_ACTIVE_HIGH>;
+ gpio = <&r_pio PL 5 GPIO_ACTIVE_HIGH>;
enable-active-high;
};
};
@@ -132,7 +132,7 @@ ext_rgmii_phy: ethernet-phy@1 {
&mmc0 {
vmmc-supply = <®_cldo1>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
bus-width = <4>;
status = "okay";
};
@@ -6,7 +6,7 @@
#include "sun50i-h6.dtsi"
#include "sun50i-h6-cpu-opp.dtsi"
-#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/gpio/sunxi-gpio.h>
/ {
model = "Tanix TX6";
@@ -22,7 +22,7 @@ chosen {
connector {
compatible = "hdmi-connector";
- ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
+ ddc-en-gpios = <&pio PH 2 GPIO_ACTIVE_HIGH>; /* PH2 */
type = "a";
port {
@@ -86,7 +86,7 @@ &mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
vmmc-supply = <®_vcc3v3>;
- cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>;
+ cd-gpios = <&pio PF 6 GPIO_ACTIVE_LOW>;
bus-width = <4>;
status = "okay";
};