Lines Matching refs:np
136 of_get_gpio_regulator_config(struct device *dev, struct device_node *np, in of_get_gpio_regulator_config() argument
150 config->init_data = of_get_regulator_init_data(dev, np, desc); in of_get_gpio_regulator_config()
156 if (of_property_read_bool(np, "enable-active-high")) in of_get_gpio_regulator_config()
159 if (of_property_read_bool(np, "enable-at-boot")) in of_get_gpio_regulator_config()
162 of_property_read_u32(np, "startup-delay-us", &config->startup_delay); in of_get_gpio_regulator_config()
164 config->enable_gpio = of_get_named_gpio(np, "enable-gpio", 0); in of_get_gpio_regulator_config()
167 ret = of_gpio_count(np); in of_get_gpio_regulator_config()
179 proplen = of_property_count_u32_elems(np, "gpios-states"); in of_get_gpio_regulator_config()
190 gpio = of_get_named_gpio(np, "gpios", i); in of_get_gpio_regulator_config()
195 of_property_read_u32_index(np, "gpios-states", in of_get_gpio_regulator_config()
205 proplen = of_property_count_u32_elems(np, "states"); in of_get_gpio_regulator_config()
219 of_property_read_u32_index(np, "states", i * 2, in of_get_gpio_regulator_config()
221 of_property_read_u32_index(np, "states", i * 2 + 1, in of_get_gpio_regulator_config()
227 ret = of_property_read_string(np, "regulator-type", ®type); in of_get_gpio_regulator_config()
249 struct device_node *np = pdev->dev.of_node; in gpio_regulator_probe() local
259 if (np) { in gpio_regulator_probe()
260 config = of_get_gpio_regulator_config(&pdev->dev, np, in gpio_regulator_probe()
334 cfg.of_node = np; in gpio_regulator_probe()