Lines Matching refs:np
88 static int of_i2c_gpio_get_pins(struct device_node *np, in of_i2c_gpio_get_pins() argument
91 if (of_gpio_count(np) < 2) in of_i2c_gpio_get_pins()
94 *sda_pin = of_get_gpio(np, 0); in of_i2c_gpio_get_pins()
95 *scl_pin = of_get_gpio(np, 1); in of_i2c_gpio_get_pins()
102 np->full_name, *sda_pin, *scl_pin); in of_i2c_gpio_get_pins()
109 static void of_i2c_gpio_get_props(struct device_node *np, in of_i2c_gpio_get_props() argument
114 of_property_read_u32(np, "i2c-gpio,delay-us", &pdata->udelay); in of_i2c_gpio_get_props()
116 if (!of_property_read_u32(np, "i2c-gpio,timeout-ms", ®)) in of_i2c_gpio_get_props()
120 of_property_read_bool(np, "i2c-gpio,sda-open-drain"); in of_i2c_gpio_get_props()
122 of_property_read_bool(np, "i2c-gpio,scl-open-drain"); in of_i2c_gpio_get_props()
124 of_property_read_bool(np, "i2c-gpio,scl-output-only"); in of_i2c_gpio_get_props()