Lines Matching refs:fdt
187 int spi_mem_init_slave(void *fdt, int bus_node, const struct spi_bus_ops *ops) in spi_mem_init_slave() argument
200 fdt_for_each_subnode(bus_subnode, fdt, bus_node) { in spi_mem_init_slave()
209 fdt_for_each_subnode(bus_subnode, fdt, bus_node) { in spi_mem_init_slave()
211 cuint = fdt_getprop(fdt, bus_subnode, "reg", NULL); in spi_mem_init_slave()
220 cuint = fdt_getprop(fdt, bus_subnode, in spi_mem_init_slave()
227 if ((fdt_getprop(fdt, bus_subnode, "spi-cpol", NULL)) != NULL) { in spi_mem_init_slave()
230 if ((fdt_getprop(fdt, bus_subnode, "spi-cpha", NULL)) != NULL) { in spi_mem_init_slave()
233 if ((fdt_getprop(fdt, bus_subnode, "spi-cs-high", NULL)) != in spi_mem_init_slave()
237 if ((fdt_getprop(fdt, bus_subnode, "spi-3wire", NULL)) != in spi_mem_init_slave()
241 if ((fdt_getprop(fdt, bus_subnode, "spi-half-duplex", NULL)) != in spi_mem_init_slave()
247 cuint = fdt_getprop(fdt, bus_subnode, "spi-tx-bus-width", NULL); in spi_mem_init_slave()
265 cuint = fdt_getprop(fdt, bus_subnode, "spi-rx-bus-width", NULL); in spi_mem_init_slave()