Device Tree for WL1825

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Device Tree for WL1825

1,435 Views
shree97
Contributor II

I have modified one of the boards .dtsi file as follows to support WL1835MOD on our custom board:

wilink_wl_en: regulator@4 {

compatible = "regulator-fixed";

reg = <4>;

regulator-name = "wilink_wl_en";

regulator-min-microvolt = <1800000>;

regulator-max-microvolt = <1800000>;

gpio = <&gpio5 2 0>; /* WIFI ENABLE GPIO */

startup-delay-us = <70000>;

enable-active-high;

};

wlan {

compatible = "ti,wilink6";

interrupt-parent = <&gpio4>;

interrupts = <07 0x04>;

clocks = <&refclock>;

clock-names = "refclock";

/* WiFi module enable GPIO; Required for proper fucntioning of WIFI down and up*/

pwr-enable = <&gpio5 2 0>;

refclock: refclock {

compatible = "ti,wilink-clock";

#clock-cells = <0>;

clock-frequency = <38400000>;

};

wlan_bt_rfkill {

compatible = "net,rfkill-gpio";

name = "wlan_bt_rfkill";

type = <2>; /* bluetooth */

gpios = <&gpio3 16 0>; /* BT enable */

};

pinctrl_uart2: uart2grp {

fsl,pins = <

MX6QDL_PAD_EIM_D26__UART2_TX_DATA 0x1b0b1

MX6QDL_PAD_EIM_D27__UART2_RX_DATA 0x1b0b1

MX6QDL_PAD_EIM_D28__UART2_CTS_B 0x1b0b1

MX6QDL_PAD_EIM_D29__UART2_RTS_B 0x1b0b1

>;

};

pinctrl_usdhc2: usdhc2grp {

fsl,pins = <

MX6QDL_PAD_SD2_CMD__SD2_CMD 0x17059

MX6QDL_PAD_SD2_CLK__SD2_CLK 0x10059

MX6QDL_PAD_SD2_DAT0__SD2_DATA0 0x17059

MX6QDL_PAD_SD2_DAT1__SD2_DATA1 0x17059

MX6QDL_PAD_SD2_DAT2__SD2_DATA2 0x17059

MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x17059

>;

};

&uart2 {

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_uart2>;

fsl,uart-has-rtscts;

status = "okay";

};

&usdhc2 {

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_usdhc2>;

bus-width = <4>;

non-removable;

vmmc-supply = <&vgen4_reg>;

vqmmc-supply = <&wilink_wl_en>;

ocr-limit = <0x80>; /* 1.65v - 1.95v */

/*power-off-card;*/

keep-power-in-suspend;

status = "okay";

};

In our board WiFi is connected to SD2 interface and Bluetooth is connected (EIM_D26, EIM_D27, EIM_D28, EIM_D29)

BT_EN: EIM_D16

WLAN_EN: EIM_A25

WLAN_INT: GPIO_19

But I am not Getting similar .compatible strings in Drivers so I wanted to know if anyone has experience plz. tell me will it work?

Do I need to modify driver files?

Labels (2)
Tags (2)
0 Kudos
Reply
2 Replies

751 Views
jimmychan
NXP TechSupport
NXP TechSupport
0 Kudos
Reply

751 Views
hrushinale
Contributor III

What is the use of Kim {} node in that file?

0 Kudos
Reply