diff options
Diffstat (limited to 'arch/arm64/boot/dts/marvell/cn9130-cf.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/marvell/cn9130-cf.dtsi | 77 |
1 files changed, 68 insertions, 9 deletions
diff --git a/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi b/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi index ad0ab34b6602..49d5d9111454 100644 --- a/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi +++ b/arch/arm64/boot/dts/marvell/cn9130-cf.dtsi @@ -6,6 +6,8 @@ * */ +#include <dt-bindings/input/input.h> + / { aliases { /* label nics same order as armada 388 clearfog */ @@ -16,6 +18,14 @@ mmc1 = &cp0_sdhci0; }; + reg_3p3v: regulator-3p3v { + compatible = "regulator-fixed"; + regulator-name = "3P3V"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + reg_usb3_vbus0: regulator-usb3-vbus0 { compatible = "regulator-fixed"; regulator-name = "vbus0"; @@ -33,6 +43,23 @@ tx-fault-gpios = <&expander0 13 GPIO_ACTIVE_HIGH>; maximum-power-milliwatt = <2000>; }; + + rfkill-gnss { + compatible = "rfkill-gpio"; + label = "m.2 GNSS"; + radio-type = "gps"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 9 GPIO_ACTIVE_HIGH>; + }; + + /* M.2 is B-keyed, so w-disable is for WWAN */ + rfkill-wwan { + compatible = "rfkill-gpio"; + label = "m.2 WWAN"; + radio-type = "wwan"; + /* rfkill-gpio inverts internally */ + shutdown-gpios = <&expander0 8 GPIO_ACTIVE_HIGH>; + }; }; /* SRDS #2 - SFP+ 10GE */ @@ -60,15 +87,23 @@ gpio-hog; gpios = <0 GPIO_ACTIVE_LOW>; input; - line-name = "pcie2.0-clkreq"; + line-name = "pcie1.0-clkreq"; + }; + + m2-ful-card-power-off { + gpio-hog; + gpios = <2 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "m2-ful-card-power-off"; }; /* CON3 */ + /* mini-PCIe can be either WWAN or WLAN */ pcie2-0-w-disable-hog { gpio-hog; gpios = <3 GPIO_ACTIVE_LOW>; output-low; - line-name = "pcie2.0-w-disable"; + line-name = "pcie1.0-w-disable"; }; usb3-ilimit-hog { @@ -78,6 +113,20 @@ line-name = "usb3-current-limit"; }; + usb3-power-hog { + gpio-hog; + gpios = <6 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "usb3-power"; + }; + + m2-reset-hog { + gpio-hog; + gpios = <10 GPIO_ACTIVE_HIGH>; + output-high; + line-name = "m.2 reset"; + }; + m2-devslp-hog { gpio-hog; gpios = <11 GPIO_ACTIVE_HIGH>; @@ -108,7 +157,7 @@ * PCIe uses ARP to assign addresses, or 0x63-0x64. */ clock-frequency = <100000>; - pinctrl-0 = <&cp0_i2c1_pins>; + pinctrl-0 = <&clearfog_i2c1_pins>; pinctrl-names = "default"; status = "okay"; }; @@ -123,7 +172,7 @@ }; &cp0_pinctrl { - cp0_i2c1_pins: cp0-i2c1-pins { + clearfog_i2c1_pins: cp0-i2c1-pins { marvell,pins = "mpp35", "mpp36"; marvell,function = "i2c1"; }; @@ -161,10 +210,13 @@ /* microSD */ &cp0_sdhci0 { + cd-gpios = <&cp0_gpio2 11 GPIO_ACTIVE_LOW>; pinctrl-0 = <&cp0_mmc0_pins>; pinctrl-names = "default"; bus-width = <4>; no-1-8-v; + vmmc-supply = <®_3p3v>; + vqmmc-supply = <®_3p3v>; status = "okay"; }; @@ -173,6 +225,13 @@ pinctrl-0 = <&cp0_spi1_pins &mikro_spi_pins>; }; +/* mikrobus uart */ +&cp0_uart0 { + pinctrl-0 = <&mikro_uart_pins>; + pinctrl-names = "default"; + status = "okay"; +}; + /* * SRDS #1 - USB-3.0 Host on Type-A connector * USB-2.0 Host on mPCI-e connector (CON3) @@ -185,13 +244,13 @@ status = "okay"; }; -&cp0_utmi { +/* SRDS #4 - M.2 USB 3.0 */ +&cp0_usb3_1 { + phy-names = "usb"; + phys = <&cp0_comphy4 1>; status = "okay"; }; -/* mikrobus uart */ -&cp0_uart0 { - pinctrl-0 = <&mikro_uart_pins>; - pinctrl-names = "default"; +&cp0_utmi { status = "okay"; }; |