I want to use Device tree complie the file and setting sdio_pins device_tree.out.
- How to install dtc in wp7605
- if it cannot install how can i config the sdio_pins device_tree for wp7605
I want to use Device tree complie the file and setting sdio_pins device_tree.out.
you can see here as example:
I have added below code to “./kernel/arch/arm/boot/dts/qcom/mdm9607-wp76xx.dtsi” file
&spi1 {
wfx {
compatible = “silabs,wf200”;
pinctrl-names = “default”;
pinctrl-0 = <&wfx_irq &wfx_gpios>;
interrupts-extended = <&gpio 16 IRQ_TYPE_EDGE_RISING>;
wakeup-gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
reset-gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
reg = <0>;
spi-max-frequency = <42000000>;
};
};
get this error
did i add code to the right file??
if not where should I have to add?
no idea, you can add just one line by one line to figure out which line makes the error
BTW, you can have a look on ./kernel/arch/arm/boot/dts/qcom/mdm9607-swi.dtsi
on how to set the SPI:
how can I add the new variable to dts file?
I would like to add wfx_irq and wfx_gpios.
you can take bmi160_int1_default as example in
/kernel/arch/arm/boot/dts/qcom/mdm9607.dtsi
/kernel/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
In this example, he have used tiwifi script, how can i install or run tiwifi script to my device?
you can search by
find / -name “tiwifi”
then how can I run the script??
you can try “wifi client start”, but i wonder if you have the WIFI IOT card to test
root@swi-mdm9x28-wp:/# ls /etc/init.d/tiwifi
/etc/init.d/tiwifi
root@swi-mdm9x28-wp:/# wifi client start
it not work,How can i do??
ERROR: le_wifiClient_Start returns ERROR.
you don’t have the WIFI IOT card, probably it will fail
You can buy a WIFI IOT card to test.
/kernel/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
/kernel/arch/arm/boot/dts/qcom/mdm9607.dtsi
I have added wfx_irq and wfx_gpios in those file. but I got error when I added it in “mdm9607.dtsi” file.
you can take bmi160_int1_default as example in
/kernel/arch/arm/boot/dts/qcom/mdm9607.dtsi
/kernel/arch/arm/boot/dts/qcom/mdm9607-pinctrl.dtsi
No compilation error is encountered there.
How to write device platform for wp7605?
this is what should i have to add in wp7605 device tree:
raspi_dt.txt (7.7 KB)
the sample is raspi file I have added as they wrote to wp7605 dt file but usb port is lost.
Please help me to config the dt file or check it for me please
mdm9607-pinctrl_fix.dtsi.txt (25.9 KB)
mdm9607_fix.dtsi.txt (52.2 KB)