gpio_ext_lna0 {
gpio-hog;
- gpios = <20 0>;
+ gpios = <20 GPIO_ACTIVE_HIGH>;
output-low;
line-name = "hiveap-121:ext:lna0";
};
gpio_ext_lna1 {
gpio-hog;
- gpios = <19 0>;
+ gpios = <19 GPIO_ACTIVE_HIGH>;
output-low;
line-name = "hiveap-121:ext:lna1";
};
gpio_usb_power {
gpio-hog;
- gpios = <15 0>;
+ gpios = <15 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "hiveap-121:power:usb";
};
&gpio {
gpio_ext_lna0 {
gpio-hog;
- gpios = <14 0>;
+ gpios = <14 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "c301:ext:lna0";
};
gpio_ext_lna1 {
gpio-hog;
- gpios = <15 0>;
+ gpios = <15 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "c301:ext:lna1";
};
&gpio {
gpio_ext_lna0 {
gpio-hog;
- gpios = <14 0>;
+ gpios = <14 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ext:lna0";
};
gpio_ext_lna1 {
gpio-hog;
- gpios = <15 0>;
+ gpios = <15 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ext:lna1";
};
&gpio {
gpio_ext_lna0 {
gpio-hog;
- gpios = <15 0>;
+ gpios = <15 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ext:lna0";
};
gpio_ext_lna1 {
gpio-hog;
- gpios = <18 0>;
+ gpios = <18 GPIO_ACTIVE_HIGH>;
output-high;
line-name = "ext:lna1";
};
&gpio {
gpio_usb_power: usb_power {
gpio-hog;
- gpios = <16 0>;
+ gpios = <16 GPIO_ACTIVE_HIGH>;
output-high;
};
};
reset {
label = "reset";
- gpios = <&tlmm 4 1>;
+ gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
};
&blsp1_spi1 {
pinctrl-0 = <&spi_0_pins>;
pinctrl-names = "default";
- cs-gpios = <&tlmm 54 0>, <&tlmm 63 0>;
+ cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, <&tlmm 63 GPIO_ACTIVE_HIGH>;
num-cs = <2>;
status = "okay";
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
- cs-gpios = <&qcom_pinmux 20 0>;
+ cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
flash: flash@0 {
compatible = "jedec,spi-nor";
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
- cs-gpios = <&qcom_pinmux 20 0>;
+ cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
flash@0 {
compatible = "mx25u25635f", "jedec,spi-nor";
button@1 {
label = "Reset push button";
linux,code = <KEY_RESTART>;
- gpios = <&gpio0 28 1>;
+ gpios = <&gpio0 28 GPIO_ACTIVE_LOW>;
};
button@2 {
label = "USB unmount button";
linux,code = <KEY_EJECTCD>;
- gpios = <&gpio0 27 1>;
+ gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
};
};
enable-active-high;
regulator-always-on;
regulator-boot-on;
- gpios = <&gpio0 24 0>;
+ gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>;
};
};
};
};
voice {
label = "blue:sprache";
- gpios = <&gpiomm 4 1>;
+ gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
};
led_usb: usb {
function = LED_FUNCTION_USB;
reg = <0x200000 0x10000>;
interrupt-parent = <&icu0>;
interrupts = <18 19 20 21>;
- gpios = <&gpio1 7 0 &gpio1 8 0>;
+ gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>,
+ <&gpio1 8 GPIO_ACTIVE_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&i2c_pins>;
clocks = <&clock_sys1 14>;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
- reset-gpios = <&pio 54 0>;
+ reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
ports {
#address-cells = <1>;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
- reset-gpios = <&pio 54 0>;
+ reset-gpios = <&pio 54 GPIO_ACTIVE_HIGH>;
ports {
#address-cells = <1>;
switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
- reset-gpios = <&pio 28 0>;
+ reset-gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
- reset-gpios = <&pio 28 0>;
+ reset-gpios = <&pio 28 GPIO_ACTIVE_HIGH>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
- reset-gpios = <&pio 39 0>;
+ reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
ports {
#address-cells = <1>;
switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
- reset-gpios = <&pio 39 0>;
+ reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;
interrupt-controller;
#interrupt-cells = <1>;
interrupt-parent = <&pio>;
*/
/dts-v1/;
+#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/mt65xx.h>
#include "mt7986a.dtsi"
compatible = "ethernet-phy-id67c9.de0a";
reg = <5>;
- reset-gpios = <&pio 6 1>;
+ reset-gpios = <&pio 6 GPIO_ACTIVE_LOW>;
reset-deassert-us = <20000>;
};
switch: switch@1f {
compatible = "mediatek,mt7531";
reg = <31>;
- reset-gpios = <&pio 5 0>;
+ reset-gpios = <&pio 5 GPIO_ACTIVE_HIGH>;
};
};
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/include/ "octeon_3xxx.dtsi"
+#include <dt-bindings/gpio/gpio.h>
/ {
compatible = "cisco,vedge1000", "cavium,cn6130";
reg = <0x00>;
voltage-ranges = <0xce4 0xce4>;
max-frequency = <0x3197500>;
- wp-gpios = <&gpio 0x02 0x00>;
- cd-gpios = <&gpio 0x03 0x01>;
+ wp-gpios = <&gpio 0x02 GPIO_ACTIVE_HIGH>;
+ cd-gpios = <&gpio 0x03 GPIO_ACTIVE_LOW>;
cavium,bus-max-width = <0x04>;
};
};