ath10k: calibration data through Device Tree?
Kalle Valo
kvalo at qca.qualcomm.com
Wed Oct 22 05:02:30 PDT 2014
Hi Kumar,
Kumar Gala <galak at codeaurora.org> writes:
> As Arnd mentioned you would have something like:
>
> pci {
> pcie at 0 {
> reg = <0 0 0 0 0>;
> #interrupt-cells = <1>;
> #size-cells = <2>;
> #address-cells = <3>;
> device_type = "pci";
>
> ath10k at 0,0 {
> reg = <0x0000 0x0 0x0 0x0 0x0>;
> device_type = "pci";
> qcom,ath10k-calibration-data = [ 01 03 04 05 06 … ];
> };
> };
> };
>
> On the driver side you can do something like:
>
> struct device_node *np;
>
> np = pci_device_to_OF_node(dev);
>
> than you can do normal OF calls on ‘np’.
Ah, now I understand how this is supposed to work. Thank you very much
for providing an example.
--
Kalle Valo
More information about the ath10k
mailing list