serial0 = &uart4;
mdio-gpio0 = &mdio0;
sdcc1 = &sdcc1;
+
+ led-boot = &power;
+ led-failsafe = &power;
+ led-running = &power;
+ led-upgrade = &power;
};
chosen {
soc {
pinmux@800000 {
- pinctrl-0 = <&mdio0_pins &rgmii2_pins>;
- pinctrl-names = "default";
+ button_pins: button_pins {
+ mux {
+ pins = "gpio53", "gpio54", "gpio65";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-up;
+ };
+ };
i2c4_pins: i2c4_pinmux {
mux {
};
};
+ led_pins: led_pins {
+ mux {
+ pins = "gpio9", "gpio26", "gpio33", "gpio64";
+ function = "gpio";
+ drive-strength = <2>;
+ bias-pull-down;
+ };
+ };
+
mdio0_pins: mdio0_pins {
mux {
pins = "gpio0", "gpio1";
drive-strength = <12>;
};
};
+
+ usb0_pwr_en_pins: usb0_pwr_en_pins {
+ mux {
+ pins = "gpio16", "gpio17";
+ function = "gpio";
+ drive-strength = <12>;
+ };
+
+ pwr {
+ pins = "gpio17";
+ bias-pull-down;
+ output-high;
+ };
+
+ ovc {
+ pins = "gpio16";
+ bias-pull-up;
+ };
+ };
+
+ usb1_pwr_en_pins: usb1_pwr_en_pins {
+ mux {
+ pins = "gpio14", "gpio15";
+ function = "gpio";
+ drive-strength = <12>;
+ };
+
+ pwr {
+ pins = "gpio14";
+ bias-pull-down;
+ output-high;
+ };
+
+ ovc {
+ pins = "gpio15";
+ bias-pull-up;
+ };
+ };
};
gsbi@16300000 {
spi4: spi@1a280000 {
status = "ok";
- spi-max-frequency = <50000000>;
+
pinctrl-0 = <&spi_pins>;
pinctrl-names = "default";
cs-gpios = <&qcom_pinmux 20 GPIO_ACTIVE_HIGH>;
flash: m25p80@0 {
- compatible = "s25fl512s";
+ compatible = "jedec,spi-nor";
#address-cells = <1>;
#size-cells = <1>;
spi-max-frequency = <51200000>;
usb30@0 {
status = "ok";
+
+ pinctrl-0 = <&usb0_pwr_en_pins>;
+ pinctrl-names = "default";
};
usb30@1 {
status = "ok";
+
+ pinctrl-0 = <&usb1_pwr_en_pins>;
+ pinctrl-names = "default";
};
pcie0: pci@1b500000 {
compatible = "virtual,mdio-gpio";
#address-cells = <1>;
#size-cells = <0>;
- gpios = <&qcom_pinmux 1 0 &qcom_pinmux 0 0>;
+ gpios = <&qcom_pinmux 1 GPIO_ACTIVE_HIGH &qcom_pinmux 0 GPIO_ACTIVE_HIGH>;
+ pinctrl-0 = <&mdio0_pins>;
+ pinctrl-names = "default";
phy0: ethernet-phy@0 {
device_type = "ethernet-phy";
qcom,irq = <255>;
mdiobus = <&mdio0>;
+ pinctrl-0 = <&rgmii2_pins>;
+ pinctrl-names = "default";
+
fixed-link {
speed = <1000>;
full-duplex;
amba {
sdcc1: sdcc@12400000 {
- status = "okay";
- dmas = <&sdcc1bam 2>, <&sdcc1bam 1>;
- dma-names = "tx", "rx";
+ status = "okay";
};
};
-
-
-
};
gpio-keys {
compatible = "gpio-keys";
+ pinctrl-0 = <&button_pins>;
+ pinctrl-names = "default";
+
wifi {
label = "wifi";
- gpios = <&qcom_pinmux 6 GPIO_ACTIVE_LOW>;
+ gpios = <&qcom_pinmux 53 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RFKILL>;
+ linux,input-type = <EV_SW>;
};
reset {
gpio-leds {
compatible = "gpio-leds";
+ pinctrl-0 = <&led_pins>;
+ pinctrl-names = "default";
+
internet {
label = "nbg6817:white:internet";
gpios = <&qcom_pinmux 64 GPIO_ACTIVE_HIGH>;
};
- power {
+ power: power {
label = "nbg6817:white:power";
gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
- default-state = "on";
+ default-state = "keep";
};
- wifi {
- label = "nbg6817:amber:wifi";
+ wifi2g {
+ label = "nbg6817:amber:wifi2g";
gpios = <&qcom_pinmux 33 GPIO_ACTIVE_HIGH>;
};
+ /* wifi2g amber from the manual is missing */
+
wifi5g {
label = "nbg6817:amber:wifi5g";
gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
};
- };
- gpio_export {
- compatible = "gpio-export";
- #size-cells = <0>;
-
- usb0_status {
- gpio-export,name = "usb0";
- gpio-export,output = <1>;
- gpios = <&qcom_pinmux 15 GPIO_ACTIVE_HIGH>;
- };
-
- usb1_status {
- gpio-export,name = "usb1";
- gpio-export,output = <1>;
- gpios = <&qcom_pinmux 16 GPIO_ACTIVE_HIGH>;
- };
- usb1_power {
- gpio-export,name = "usb1_power";
- gpio-export,output = <1>;
- gpios = <&qcom_pinmux 14 GPIO_ACTIVE_HIGH>;
- };
- usb2_power {
- gpio-export,name = "usb2_power";
- gpio-export,output = <1>;
- gpios = <&qcom_pinmux 17 GPIO_ACTIVE_HIGH>;
- };
+ /* wifi5g amber from the manual is missing */
};
};