riscv: dts: spacemit: enable WLAN and Bluetooth on DeepComputing FML13V05
Subsystems (3)
cover riscv: dts: spacemit: enable WLAN and Bluetooth on DeepComputing FML13V05
This series updates the DeepComputing FML13V05 device tree to describes the console UART as 115200n8, add rfkill nodes for WLAN and Bluetooth, model the 3.3V supply of the WLAN module, and enable PCIe node.
The series is based on next-20261113. The DeepComputing FML13V05 device tree depends on [1]. The PCIe driver depends on[2], which in turn depends on [3] and [4]. The PCIe node depends on [5].
[1] https://lore.kernel.org/all/20261109033154.361399-1-sandie.cao
@deepcomputing.io/
[2] https://lore.kernel.org/all/20260929083755.458238-1-inochiama
@gmail.com/
[3] https://github.com/spacemit-com/linux-6.18/commits/k3-br-v1.0.y/drivers/pci/controller/dwc/pcie-spacemit-k1.c
[4] https://lore.kernel.org/linux-phy/20260904083709.425893-1-inochiama
@gmail.com/
[5] https://lore.kernel.org/spacemit/20260727094726.890179-3-inochiama
@gmail.com/
---
Sandie Cao (5):
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add 115200n8 to
stdout-path
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add rfkill node for
WLAN
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add rfkill node for
Bluetooth
riscv: dts: spacemit: k3-deepcomputing-fml13v05: add WLAN power
regulator
riscv: dts: spacemit: k3-deepcomputing-fml13v05: enable PCIe
.../spacemit/k3-deepcomputing-fml13v05.dts | 60 ++++++++++++++++++- 1 file changed, 59 insertions(+), 1 deletion(-)
base-commit: 4bc415760dd40fcff23deb073333984dd15d418d
Signature · 1 line
2.43.0
PATCH 1/5 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add 115200n8 to stdout-path
Specify the console options in stdout-path so the kernel configures the FML13V05 debug UART (uart0) at 115200 baud, 8 data bits and no parity.
--- arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +1 -1
@@ -15,7 +15,7 @@ aliases { }; chosen { - stdout-path = "serial0"; + stdout-path = "serial0:115200n8"; }; memory@100000000 {
Signature · 1 line
2.43.0
PATCH 2/5 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add rfkill node for WLAN
In reply to Sandie CaoExpose the WLAN enable signal of the FML13V05 as an rfkill-gpio device so the WLAN driver or userspace can toggle it, following the K3 Pico-ITX board.
--- arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +7 -0
@@ -30,6 +30,13 @@ reg_aux_vcc5v: regulator-aux-vcc5v { regulator-max-microvolt = <5000000>; regulator-always-on; }; + + rfkill-pcie-wlan { + compatible = "rfkill-gpio"; + label = "rfkill-pcie-wlan"; + radio-type = "wlan"; + shutdown-gpios = <&gpio K3_GPIO(35) GPIO_ACTIVE_HIGH>; + }; }; &i2c8 {
Signature · 1 line
2.43.0
PATCH 3/5 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add rfkill node for Bluetooth
In reply to Sandie CaoExpose the Bluetooth enable signal of the FML13V05 as an rfkill-gpio device so the Bluetooth driver or userspace can toggle it, following the K3 Pico-ITX board.
--- arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts | 7 +++++++ 1 file changed, 7 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +7 -0
@@ -37,6 +37,13 @@ rfkill-pcie-wlan { radio-type = "wlan"; shutdown-gpios = <&gpio K3_GPIO(35) GPIO_ACTIVE_HIGH>; }; + + rfkill-usb-bt { + compatible = "rfkill-gpio"; + label = "rfkill-usb-bt"; + radio-type = "bluetooth"; + shutdown-gpios = <&gpio K3_GPIO(30) GPIO_ACTIVE_HIGH>; + }; }; &i2c8 {
Signature · 1 line
2.43.0
PATCH 4/5 riscv: dts: spacemit: k3-deepcomputing-fml13v05: add WLAN power regulator
In reply to Sandie CaoThe WLAN module on the FML13V05 is powered from a 3.3V rail gated by GPIO41 (WLAN_PWREN). Model the rail as a fixed regulator.
--- .../boot/dts/spacemit/k3-deepcomputing-fml13v05.dts | 11 +++++++++++ 1 file changed, 11 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +11 -0
@@ -31,6 +31,17 @@ reg_aux_vcc5v: regulator-aux-vcc5v { regulator-always-on; }; + reg_wlan_3v3: regulator-wlan-3v3 { + compatible = "regulator-fixed"; + regulator-name = "WLAN_3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio K3_GPIO(41) GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-boot-on; + regulator-always-on; + }; + rfkill-pcie-wlan { compatible = "rfkill-gpio"; label = "rfkill-pcie-wlan";
Signature · 1 line
2.43.0
PATCH 5/5 riscv: dts: spacemit: k3-deepcomputing-fml13v05: enable PCIe
In reply to Sandie CaoThe FML13V05 has two PCIe root complexes: pcie0 with four lanes on combophy channels 0/1 for SSD and pcie4 with one lane on combophy channel 5 for Wi-Fi. Add the 3.3V auxiliary regulator that powers the PCIe slots and enable both controllers.
--- .../spacemit/k3-deepcomputing-fml13v05.dts | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+)
arch/riscv/boot/dts/spacemit/k3-deepcomputing-fml13v05.dts +33 -0
@@ -23,6 +23,14 @@ memory@100000000 { reg = <0x1 0x00000000 0x4 0x00000000>; }; + reg_aux_vcc3v3: regulator-aux-vcc3v3 { + compatible = "regulator-fixed"; + regulator-name = "AUX_VCC3V3"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + reg_aux_vcc5v: regulator-aux-vcc5v { compatible = "regulator-fixed"; regulator-name = "AUX_VCC5V";
@@ -202,6 +210,31 @@ &combophy { status = "okay"; }; +&pcie0_rc { + pinctrl-names = "default"; + pinctrl-0 = <&pcie0_0_cfg>; + num-lanes = <4>; + status = "okay"; + + pcie@0 { + vpcie3v3-supply = <®_aux_vcc3v3>; + phys = <&combophy 0 PHY_TYPE_PCIE>, + <&combophy 1 PHY_TYPE_PCIE>; + }; +}; + +&pcie4_rc { + pinctrl-names = "default"; + pinctrl-0 = <&pcie4_0_cfg>; + num-lanes = <1>; + status = "okay"; + + pcie@0 { + vpcie3v3-supply = <®_aux_vcc3v3>; + phys = <&combophy 5 PHY_TYPE_PCIE>; + }; +}; + /* * Onboard SD card slot: * Please insert or remove the SD card while the device is powered off.
Signature · 1 line
2.43.0