Other Parts Discussed in Thread: MIO, WL1837
Tool/software: Linux
Hardware: Zynq US+ with WL1837MOD
Kernel: Linux 4.14 from Xilinx
I have a problem with driving WLAN_EN line with using linux driver. When I control WLAN_EN manually it works correctly (firmware loads, boots, and I can turn on/off wlan0 interface). But when I try to set WLAN_EN management to driver (with using fixed-regulator) it works improperly.
Linux messages when WLAN_EN controlled manually:
[ 1.322624] wmmcsdio_fixed: 3300 mV
[ 1.322700] reg-fixed-voltage fixedregulator: wmmcsdio_fixed supplying 3300000uV
[ 3.129042] mmc0: SDHCI controller on ff160000.sdhci [ff160000.sdhci] using ADMA 64-bit
[ 3.145733] mmc0: new high speed SDIO card at address 0001
[ 8.953425] wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
[ 8.961005] wlcore: WARNING Detected unconfigured mac address in nvs, derive from fuse instead.
[ 8.971109] wlcore: WARNING This default nvs file can be removed from the file system
[ 8.981472] wlcore: loaded
$ ifconfig wlan0 up
[ 10.569948] wlcore: PHY firmware version: Rev 8.2.0.0.240
[ 10.663280] wlcore: firmware booted (Rev 8.9.0.0.76)
[ 10.674482] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Linux messages when WLAN_EN controlled by driver:
[ 1.318807] OF: /fixedregulator: arguments longer than property
[ 1.318827] reg-fixed-voltage: probe of fixedregulator failed with error -22
[ 2.544844] mmc0: SDHCI controller on ff170000.sdhci [ff170000.sdhci] using ADMA 64-bit
[ 2.657767] mmc0: error -110 whilst initialising SD card
# ifconfig wlan0 up
ifconfig: SIOCGIFFLAGS: No such device
I tried different device tree configurations, but I can not get it working with WLAN_EN controlled by driver. I see problem with fixed-regulator, but I do not understand what is the reason. When I add parameter gpio in fixedregulator node then I get "reg-fixed-voltage: probe of fixedregulator failed with error -22" and there is not wlan0 interface. How can I solve it?