/kernel/linux/linux-5.10/drivers/rtc/ |
H A D | rtc-ds1390.c | 90 u32 ohms = 0; in ds1390_trickle_of_init() local 93 if (of_property_read_u32(spi->dev.of_node, "trickle-resistor-ohms", in ds1390_trickle_of_init() 94 &ohms)) in ds1390_trickle_of_init() 105 switch (ohms) { in ds1390_trickle_of_init() 117 "Unsupported ohm value %02ux in dt\n", ohms); in ds1390_trickle_of_init()
|
H A D | rtc-bq32k.c | 146 u32 ohms = 0; in trickle_charger_of_init() local 148 if (of_property_read_u32(node, "trickle-resistor-ohms" , &ohms)) in trickle_charger_of_init() 151 switch (ohms) { in trickle_charger_of_init() 176 dev_err(dev, "invalid resistor value (%d)\n", ohms); in trickle_charger_of_init()
|
H A D | rtc-ab-eoz9.c | 191 u32 ohms = 0; in abeoz9_trickle_parse_dt() local 193 if (of_property_read_u32(node, "trickle-resistor-ohms", &ohms)) in abeoz9_trickle_parse_dt() 196 switch (ohms) { in abeoz9_trickle_parse_dt()
|
H A D | rtc-ds1307.c | 197 /* Does the RTC require trickle-resistor-ohms to select the value of 530 static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_ds1339() argument 537 switch (ohms) { in do_trickle_setup_ds1339() 549 "Unsupported ohm value %u in dt\n", ohms); in do_trickle_setup_ds1339() 555 static u8 do_trickle_setup_rx8130(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_rx8130() argument 1339 u32 ohms, chargeable; in ds1307_trickle_init() local 1345 if (device_property_read_u32(ds1307->dev, "trickle-resistor-ohms", in ds1307_trickle_init() 1346 &ohms) && chip->requires_trickle_resistor) in ds1307_trickle_init() 1371 return chip->do_trickle_setup(ds1307, ohms, diode); in ds1307_trickle_init()
|
H A D | rtc-rv3028.c | 791 u32 ohms; in rv3028_probe() local 864 if (!device_property_read_u32(&client->dev, "trickle-resistor-ohms", in rv3028_probe() 865 &ohms)) { in rv3028_probe() 869 if (ohms == rv3028_trickle_resistors[i]) in rv3028_probe()
|
H A D | rtc-rv3029c2.c | 488 u32 r; /* resistance in ohms */ 550 u32 ohms; in rv3029_trickle_config() local 557 err = of_property_read_u32(of_node, "trickle-resistor-ohms", &ohms); in rv3029_trickle_config() 565 if (elem->r >= ohms) in rv3029_trickle_config() 570 "Trickle charger enabled at %d ohms resistance.\n", in rv3029_trickle_config()
|
H A D | rtc-rv3032.c | 518 u32 val, ohms, voltage; in rv3032_trickle_charger_setup() local 531 if (device_property_read_u32(dev, "trickle-resistor-ohms", &ohms)) in rv3032_trickle_charger_setup() 535 if (ohms == rv3032_trickle_resistors[i]) in rv3032_trickle_charger_setup()
|
/kernel/linux/linux-6.6/drivers/rtc/ |
H A D | rtc-ds1390.c | 90 u32 ohms = 0; in ds1390_trickle_of_init() local 93 if (of_property_read_u32(spi->dev.of_node, "trickle-resistor-ohms", in ds1390_trickle_of_init() 94 &ohms)) in ds1390_trickle_of_init() 105 switch (ohms) { in ds1390_trickle_of_init() 117 "Unsupported ohm value %02ux in dt\n", ohms); in ds1390_trickle_of_init()
|
H A D | rtc-bq32k.c | 147 u32 ohms = 0; in trickle_charger_of_init() local 149 if (of_property_read_u32(node, "trickle-resistor-ohms" , &ohms)) in trickle_charger_of_init() 152 switch (ohms) { in trickle_charger_of_init() 177 dev_err(dev, "invalid resistor value (%d)\n", ohms); in trickle_charger_of_init()
|
H A D | rtc-sunplus.c | 183 u32 ohms, rsel; in sp_rtc_set_trickle_charger() local 186 if (of_property_read_u32(dev.of_node, "trickle-resistor-ohms", &ohms) || in sp_rtc_set_trickle_charger() 192 switch (ohms) { in sp_rtc_set_trickle_charger() 206 dev_err(&dev, "invalid charger resistor value (%d)\n", ohms); in sp_rtc_set_trickle_charger()
|
H A D | rtc-ab-eoz9.c | 302 u32 ohms = 0; in abeoz9_trickle_parse_dt() local 304 if (of_property_read_u32(node, "trickle-resistor-ohms", &ohms)) in abeoz9_trickle_parse_dt() 307 switch (ohms) { in abeoz9_trickle_parse_dt()
|
H A D | rtc-ds1307.c | 196 /* Does the RTC require trickle-resistor-ohms to select the value of 520 static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_ds1339() argument 527 switch (ohms) { in do_trickle_setup_ds1339() 539 "Unsupported ohm value %u in dt\n", ohms); in do_trickle_setup_ds1339() 545 static u8 do_trickle_setup_rx8130(struct ds1307 *ds1307, u32 ohms, bool diode) in do_trickle_setup_rx8130() argument 1282 u32 ohms, chargeable; in ds1307_trickle_init() local 1288 if (device_property_read_u32(ds1307->dev, "trickle-resistor-ohms", in ds1307_trickle_init() 1289 &ohms) && chip->requires_trickle_resistor) in ds1307_trickle_init() 1314 return chip->do_trickle_setup(ds1307, ohms, diode); in ds1307_trickle_init()
|
H A D | rtc-rv3032.c | 580 u32 val, ohms, voltage; in rv3032_trickle_charger_setup() local 593 if (device_property_read_u32(dev, "trickle-resistor-ohms", &ohms)) in rv3032_trickle_charger_setup() 597 if (ohms == rv3032_trickle_resistors[i]) in rv3032_trickle_charger_setup()
|
H A D | rtc-rv3029c2.c | 488 u32 r; /* resistance in ohms */ 550 u32 ohms; in rv3029_trickle_config() local 557 err = of_property_read_u32(of_node, "trickle-resistor-ohms", &ohms); in rv3029_trickle_config() 565 if (elem->r >= ohms) in rv3029_trickle_config() 570 "Trickle charger enabled at %d ohms resistance.\n", in rv3029_trickle_config()
|
H A D | rtc-rv3028.c | 862 u32 ohms, chargeable; in rv3028_set_trickle_charger() local 873 if (!device_property_read_u32(&client->dev, "trickle-resistor-ohms", in rv3028_set_trickle_charger() 874 &ohms)) { in rv3028_set_trickle_charger() 878 if (ohms == rv3028_trickle_resistors[i]) in rv3028_set_trickle_charger()
|
/kernel/linux/linux-6.6/drivers/i3c/master/ |
H A D | ast2600-i3c-master.c | 53 static int ast2600_i3c_pullup_to_reg(unsigned int ohms, u32 *regp) in ast2600_i3c_pullup_to_reg() argument 57 switch (ohms) { in ast2600_i3c_pullup_to_reg() 149 rc = of_property_read_u32(np, "sda-pullup-ohms", &i3c->sda_pullup); in ast2600_i3c_probe()
|