Hi everybody,
I’m newby in the domain so it is little bit difficil for me.
I try to connect I2C NFC device (CLF board) on my dragon board but i have some problems on the driver probing.
I have already made similar operation with SPI connector with succes (Secure element device).
But i have problem with I2C :
pinctrlfile :
pmx_i2c_6 {
/* CLK, DATA /
qcom,pins = <&gp 22>, <&gp 23>;
qcom,num-grp-pins = <2>;
qcom,pin-func = <2>;
label = “pmx_i2c_6”;
/ active state /
i2c_6_active: i2c_6_active{
drive-strength = <2>; / 2 MA /
bias-disable; / No PULL */
};
/*suspended state /
i2c_6_sleep: i2c_6_sleep {
drive-strength = <2>; / 2 MA /
bias-disable; / No PULL */
};
};
device description :
i2c_6: i2c@78ba000 { /* BLSP1 QUP6 */
compatible = “qcom,i2c-qup”;
#address-cells=<1>;
#size-cells=<0>;
cell-index = <6>;
reg-names = “qup_phys_addr”;
reg = <0x78ba000 0x1000>;
interrupt-names = “qup_irq”;
interrupts = <0 100 0>;
/*clock-names = "iface_clk", "core_clk";
clocks = <&clock_gcc clk_gcc_blsp1_ahb_clk>,
<&clock_gcc clk_gcc_blsp1_qup6_i2c_apps_clk>;
qcom,clk-freq-out = <400000>;
qcom,clk-freq-in = <19200000>;*/
qcom,i2c-bus-freq = <400000>;
qcom,i2c-src-freq = <19200000>;
qcom,scl-gpio = <&msmgpio 23 0>;
qcom,sda-gpio = <&msmgpio 22 0>;
pinctrl-names = "i2c_active", "i2c_sleep";
pinctrl-0 = <&i2c_6_active>;
pinctrl-1 = <&i2c_6_sleep>;
qcom,noise-rjct-scl = <0>;
qcom,noise-rjct-sda = <0>;
dmas = <&dma_blsp1 14 64 0x20000020 0x20>,
<&dma_blsp1 15 32 0x20000020 0x20>;
dma-names = "tx", "rx";
qcom,master-id = <86>;
xx_nfc@08 {
compatible = "xx, xxnfc";
reg = <0x08>;
interrupt-parent = <&msm_gpio>;
interrupts = <69 0x2>;
xx,reset_gpio = <&msm_gpio 13 0x00>;
xx,irq_gpio = <&msm_gpio 35 0x00>;
};
};
KMSG log at startup :
<6>[ 0.171779] i2c-msm-v2 78ba000.i2c: probing driver i2c-msm-v2
<3>[ 0.171893] i2c-msm-v2 78ba000.i2c: error on clk_get(core_clk):-517
<3>[ 0.171910] i2c-msm-v2 78ba000.i2c: error probe() failed with err:-517
<6>[ 0.171951] platform 78ba000.i2c: Driver i2c-msm-v2 requests probe deferral
I have tried this solution without succes : here
Some one can help me please ?