Lines Matching refs:fdt
35 static int dt_get_pmic_node(void *fdt) in dt_get_pmic_node() argument
37 return fdt_node_offset_by_compatible(fdt, -1, "st,stpmic1"); in dt_get_pmic_node()
43 void *fdt; in dt_pmic_status() local
45 if (fdt_get_address(&fdt) == 0) { in dt_pmic_status()
49 node = dt_get_pmic_node(fdt); in dt_pmic_status()
74 void *fdt; in dt_pmic_i2c_config() local
77 if (fdt_get_address(&fdt) == 0) { in dt_pmic_i2c_config()
81 pmic_node = dt_get_pmic_node(fdt); in dt_pmic_i2c_config()
86 cuint = fdt_getprop(fdt, pmic_node, "reg", NULL); in dt_pmic_i2c_config()
96 i2c_node = fdt_parent_offset(fdt, pmic_node); in dt_pmic_i2c_config()
106 return stm32_i2c_get_setup_from_fdt(fdt, i2c_node, init); in dt_pmic_i2c_config()
112 void *fdt; local
114 if (fdt_get_address(&fdt) == 0) {
118 pmic_node = dt_get_pmic_node(fdt);
123 regulators_node = fdt_subnode_offset(fdt, pmic_node, "regulators");
128 fdt_for_each_subnode(regulator_node, fdt, regulators_node) {
130 const char *node_name = fdt_get_name(fdt, regulator_node, NULL);
135 if ((fdt_getprop(fdt, regulator_node, "regulator-boot-on",
137 (fdt_getprop(fdt, regulator_node, "regulator-always-on",
140 if (fdt_getprop(fdt, regulator_node, "regulator-boot-on",
146 if (fdt_getprop(fdt, regulator_node, "regulator-pull-down",
155 if (fdt_getprop(fdt, regulator_node, "st,mask-reset",
164 cuint = fdt_getprop(fdt, regulator_node,