Lines Matching refs:child
1781 struct device_node *child) in gpmc_probe_nand_child() argument
1788 if (of_property_read_u32(child, "reg", &val) < 0) { in gpmc_probe_nand_child()
1790 child->full_name); in gpmc_probe_nand_child()
1800 gpmc_nand_data->of_node = child; in gpmc_probe_nand_child()
1803 gpmc_nand_data->elm_of_node = of_parse_phandle(child, "ti,elm-id", 0); in gpmc_probe_nand_child()
1806 of_parse_phandle(child, "elm_id", 0); in gpmc_probe_nand_child()
1809 if (of_property_read_string(child, "ti,nand-ecc-opt", &s)) { in gpmc_probe_nand_child()
1844 if (!of_property_read_string(child, "ti,nand-xfer-type", &s)) in gpmc_probe_nand_child()
1851 gpmc_nand_data->flash_bbt = of_get_nand_on_flash_bbt(child); in gpmc_probe_nand_child()
1853 val = of_get_nand_bus_width(child); in gpmc_probe_nand_child()
1857 gpmc_read_timings_dt(child, &gpmc_t); in gpmc_probe_nand_child()
1864 struct device_node *child) in gpmc_probe_nand_child() argument
1872 struct device_node *child) in gpmc_probe_onenand_child() argument
1877 if (of_property_read_u32(child, "reg", &val) < 0) { in gpmc_probe_onenand_child()
1879 child->full_name); in gpmc_probe_onenand_child()
1889 gpmc_onenand_data->of_node = child; in gpmc_probe_onenand_child()
1892 if (!of_property_read_u32(child, "dma-channel", &val)) in gpmc_probe_onenand_child()
1901 struct device_node *child) in gpmc_probe_onenand_child() argument
1916 struct device_node *child) in gpmc_probe_generic_child() argument
1926 if (of_property_read_u32(child, "reg", &cs) < 0) { in gpmc_probe_generic_child()
1928 child->full_name); in gpmc_probe_generic_child()
1932 if (of_address_to_resource(child, 0, &res) < 0) { in gpmc_probe_generic_child()
1934 child->full_name); in gpmc_probe_generic_child()
1944 if (name && child->name && of_node_cmp(child->name, name) == 0) in gpmc_probe_generic_child()
1952 gpmc_cs_set_name(cs, child->name); in gpmc_probe_generic_child()
1954 gpmc_read_settings_dt(child, &gpmc_s); in gpmc_probe_generic_child()
1955 gpmc_read_timings_dt(child, &gpmc_t); in gpmc_probe_generic_child()
1988 ret = of_property_read_u32(child, "bank-width", &gpmc_s.device_width); in gpmc_probe_generic_child()
1999 child->name); in gpmc_probe_generic_child()
2014 if (!of_platform_device_create(child, NULL, &pdev->dev)) in gpmc_probe_generic_child()
2018 if (of_match_node(of_default_bus_match_table, child)) in gpmc_probe_generic_child()
2020 if (of_platform_populate(child, of_default_bus_match_table, in gpmc_probe_generic_child()
2028 dev_err(&pdev->dev, "failed to create gpmc child %s\n", child->name); in gpmc_probe_generic_child()
2040 struct device_node *child; in gpmc_probe_dt() local
2068 for_each_available_child_of_node(pdev->dev.of_node, child) { in gpmc_probe_dt()
2070 if (!child->name) in gpmc_probe_dt()
2073 if (of_node_cmp(child->name, "nand") == 0) in gpmc_probe_dt()
2074 ret = gpmc_probe_nand_child(pdev, child); in gpmc_probe_dt()
2075 else if (of_node_cmp(child->name, "onenand") == 0) in gpmc_probe_dt()
2076 ret = gpmc_probe_onenand_child(pdev, child); in gpmc_probe_dt()
2077 else if (of_node_cmp(child->name, "ethernet") == 0 || in gpmc_probe_dt()
2078 of_node_cmp(child->name, "nor") == 0 || in gpmc_probe_dt()
2079 of_node_cmp(child->name, "uart") == 0) in gpmc_probe_dt()
2080 ret = gpmc_probe_generic_child(pdev, child); in gpmc_probe_dt()
2083 __func__, child->full_name)) in gpmc_probe_dt()
2084 of_node_put(child); in gpmc_probe_dt()