Thread (1 message) 1 message, 1 author, 2014-10-22

Re: ath10k: calibration data through Device Tree?

From: Kalle Valo <hidden>
Date: 2014-10-22 12:02:30

Hi Kumar,

Kumar Gala [off-list ref] writes:
As Arnd mentioned you would have something like:

pci {   
        pcie@0 {
                reg = <0 0 0 0 0>; 
                #interrupt-cells = <1>;
                #size-cells = <2>;
                #address-cells = <3>;
                device_type = "pci";

                ath10k@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
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help