Home
last modified time | relevance | path

Searched +full:trickle +full:- +full:resistor +full:- +full:ohms (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/Documentation/devicetree/bindings/rtc/
Dti,bq32k.txt1 * TI BQ32000 I2C Serial Real-Time Clock
4 - compatible: Should contain "ti,bq32000".
5 - reg: I2C address for chip
8 - trickle-resistor-ohms : Selected resistor for trickle charger
10 Should be given if trickle charger should be enabled
11 - trickle-diode-disable : Do not use internal trickle charger diode
12 Should be given if internal trickle charger diode should be disabled
16 trickle-resistor-ohms = <1120>;
Ddallas,ds1390.txt1 * Dallas DS1390 SPI Serial Real-Time Clock
4 - compatible: Should contain "dallas,ds1390".
5 - reg: SPI address for chip
8 - trickle-resistor-ohms : Selected resistor for trickle charger
10 Should be given if trickle charger should be enabled
11 - trickle-diode-disable : Do not use internal trickle charger diode
12 Should be given if internal trickle charger diode should be disabled
16 trickle-resistor-ohms = <250>;
Drtc-ds1307.txt4 - compatible: should be one of:
23 - reg: I2C bus address of the device
26 - interrupts: rtc alarm interrupt.
27 - clock-output-names: From common clock binding to override the default output
29 - wakeup-source: Enables wake up of host system on alarm
30 - trickle-resistor-ohms : ds1339, ds1340 and ds 1388 only
31 Selected resistor for trickle charger
33 Should be given if trickle charger should be enabled
34 - aux-voltage-chargeable: ds1339, ds1340, ds1388 and rx8130 only
40 - trickle-diode-disable : ds1339, ds1340 and ds1388 only
[all …]
Dmicrocrystal,rv3032.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip RV-3032 RTC Device Tree Bindings
10 - $ref: "rtc.yaml#"
13 - Alexandre Belloni <alexandre.belloni@bootlin.com>
25 start-year: true
27 trickle-resistor-ohms:
29 - 1000
30 - 2000
[all …]
Drtc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 pattern: "^rtc(@.*|-[0-9a-f])*$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
32 The capacitive load of the quartz(x-tal), expressed in femto
36 start-year:
42 trickle-diode-disable:
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/rtc/
Ddallas,ds1390.txt1 * Dallas DS1390 SPI Serial Real-Time Clock
4 - compatible: Should contain "dallas,ds1390".
5 - reg: SPI address for chip
8 - trickle-resistor-ohms : Selected resistor for trickle charger
10 Should be given if trickle charger should be enabled
11 - trickle-diode-disable : Do not use internal trickle charger diode
12 Should be given if internal trickle charger diode should be disabled
16 trickle-resistor-ohms = <250>;
Drtc-ds1307.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/rtc/rtc-ds1307.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
15 - enum:
16 - dallas,ds1307
17 - dallas,ds1308
18 - dallas,ds1337
19 - dallas,ds1338
[all …]
Dmicrocrystal,rv3032.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip RV-3032 RTC
10 - $ref: rtc.yaml#
13 - Alexandre Belloni <alexandre.belloni@bootlin.com>
25 start-year: true
27 trickle-resistor-ohms:
29 - 1000
30 - 2000
[all …]
Dti,bq32000.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI BQ32000 I2C Serial Real-Time Clock
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
13 - $ref: rtc.yaml#
25 start-year: true
27 trickle-resistor-ohms:
30 trickle-diode-disable: true
33 - compatible
[all …]
Dmicrocrystal,rv3028.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Microchip RV-3028 RTC
10 - $ref: rtc.yaml#
13 - Alexandre Belloni <alexandre.belloni@bootlin.com>
25 trickle-resistor-ohms:
27 - 3000
28 - 5000
29 - 9000
[all …]
Drtc.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Alexandre Belloni <alexandre.belloni@bootlin.com>
18 pattern: "^rtc(@.*|-([0-9]|[1-9][0-9]+))?$"
20 aux-voltage-chargeable:
29 quartz-load-femtofarads:
31 The capacitive load of the quartz(x-tal), expressed in femto
35 start-year:
41 trickle-diode-disable:
[all …]
/kernel/linux/linux-6.6/drivers/rtc/
Drtc-bq32k.c1 // SPDX-License-Identifier: GPL-2.0-only
33 #define BQ32K_TCH2 0x08 /* Trickle charge enable */
34 #define BQ32K_CFG2 0x09 /* Trickle charger control */
35 #define BQ32K_TCFE BIT(6) /* Trickle charge FET bypass */
58 .addr = client->addr, in bq32k_read()
63 .addr = client->addr, in bq32k_read()
70 if (i2c_transfer(client->adapter, msgs, 2) == 2) in bq32k_read()
73 return -EIO; in bq32k_read()
87 return -EIO; in bq32k_write()
104 return -EINVAL; in bq32k_rtc_read_time()
[all …]
Drtc-ds1390.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1390.c -- driver for the Dallas/Maxim DS1390/93/94 SPI RTC
10 * (alarms, trickle charger, different control registers) are unavailable.
74 return -EINVAL; in ds1390_get_reg()
77 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg()
79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg()
83 *data = chip->txrx_buf[0]; in ds1390_get_reg()
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()
[all …]
Drtc-sunplus.c1 // SPDX-License-Identifier: GPL-2.0
69 *secs = (unsigned long)readl(sp_rtc->reg_base + RTC_TIMER_OUT); in sp_get_seconds()
76 writel((u32)secs, sp_rtc->reg_base + RTC_TIMER_SET); in sp_set_seconds()
105 alarm_time = rtc_tm_to_time64(&alrm->time); in sp_rtc_set_alarm()
107 writel((u32)alarm_time, sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_set_alarm()
117 alarm_time = readl(sp_rtc->reg_base + RTC_ALARM_SET); in sp_rtc_read_alarm()
121 alrm->enabled = 0; in sp_rtc_read_alarm()
123 alrm->enabled = 1; in sp_rtc_read_alarm()
125 rtc_time64_to_tm((unsigned long)(alarm_time), &alrm->time); in sp_rtc_read_alarm()
139 sp_rtc->reg_base + RTC_CTRL); in sp_rtc_alarm_irq_enable()
[all …]
Drtc-rv3028.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/clk-provider.h>
110 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_store()
112 regmap_update_bits(rv3028->regmap, RV3028_EVT_CTRL, RV3028_EVT_CTRL_TSR, in timestamp0_store()
121 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_show()
126 ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); in timestamp0_show()
133 ret = regmap_bulk_read(rv3028->regmap, RV3028_TS_SEC, date, in timestamp0_show()
142 tm.tm_mon = bcd2bin(date[4]) - 1; in timestamp0_show()
158 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_count_show()
161 ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); in timestamp0_count_show()
[all …]
Drtc-rv3029c2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Micro Crystal RV-3029 / RV-3049 rtc class driver
5 * Author: Gregory Hermant <gregory.hermant@calao-systems.com>
19 #include <linux/hwmon-sysfs.h>
107 #define RV3029_CONTROL_E2P_XOFFS_SIGN BIT(7) /* Sign: 1->pos, 0->neg */
128 for (i = 100; i > 0; i--) { in rv3029_eeprom_busywait()
129 ret = regmap_read(rv3029->regmap, RV3029_STATUS, &sr); in rv3029_eeprom_busywait()
137 dev_err(rv3029->dev, "EEPROM busy wait timeout.\n"); in rv3029_eeprom_busywait()
138 return -ETIMEDOUT; in rv3029_eeprom_busywait()
146 /* Re-enable eeprom refresh */ in rv3029_eeprom_exit()
[all …]
Drtc-rv3032.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/clk-provider.h>
123 return regmap_update_bits(rv3032->regmap, RV3032_CTRL1, RV3032_CTRL1_EERD, 0); in rv3032_exit_eerd()
131 ret = regmap_read(rv3032->regmap, RV3032_CTRL1, &ctrl1); in rv3032_enter_eerd()
139 ret = regmap_update_bits(rv3032->regmap, RV3032_CTRL1, in rv3032_enter_eerd()
144 ret = regmap_read_poll_timeout(rv3032->regmap, RV3032_TLSB, status, in rv3032_enter_eerd()
166 ret = regmap_update_bits(rv3032->regmap, reg, mask, val); in rv3032_update_cfg()
170 ret = regmap_write(rv3032->regmap, RV3032_EEPROM_CMD, RV3032_EEPROM_CMD_UPDATE); in rv3032_update_cfg()
176 ret = regmap_read_poll_timeout(rv3032->regmap, RV3032_TLSB, status, in rv3032_update_cfg()
192 if (regmap_read(rv3032->regmap, RV3032_STATUS, &status) < 0 || in rv3032_handle_irq()
[all …]
Drtc-ds1307.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1307.c - RTC driver for some mostly-compatible I2C chips.
23 #include <linux/hwmon-sysfs.h>
24 #include <linux/clk-provider.h>
29 * We can't determine type by probing, but if we expect pre-Linux code
31 * setting the date and time), Linux can ignore the non-clock features.
56 #define DS1307_REG_SECS 0x00 /* 00-59 */
60 #define DS1307_REG_MIN 0x01 /* 00-59 */
62 #define DS1307_REG_HOUR 0x02 /* 00-23, or 1-12{am,pm} */
67 #define DS1307_REG_WDAY 0x03 /* 01-07 */
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-bq32k.c1 // SPDX-License-Identifier: GPL-2.0-only
32 #define BQ32K_TCH2 0x08 /* Trickle charge enable */
33 #define BQ32K_CFG2 0x09 /* Trickle charger control */
34 #define BQ32K_TCFE BIT(6) /* Trickle charge FET bypass */
57 .addr = client->addr, in bq32k_read()
62 .addr = client->addr, in bq32k_read()
69 if (i2c_transfer(client->adapter, msgs, 2) == 2) in bq32k_read()
72 return -EIO; in bq32k_read()
86 return -EIO; in bq32k_write()
103 return -EINVAL; in bq32k_rtc_read_time()
[all …]
Drtc-ds1390.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * rtc-ds1390.c -- driver for the Dallas/Maxim DS1390/93/94 SPI RTC
10 * (alarms, trickle charger, different control registers) are unavailable.
74 return -EINVAL; in ds1390_get_reg()
77 chip->txrx_buf[0] = address & 0x7f; in ds1390_get_reg()
79 status = spi_write_then_read(spi, chip->txrx_buf, 1, chip->txrx_buf, 1); in ds1390_get_reg()
83 *data = chip->txrx_buf[0]; in ds1390_get_reg()
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()
[all …]
Drtc-rv3029c2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Micro Crystal RV-3029 / RV-3049 rtc class driver
5 * Author: Gregory Hermant <gregory.hermant@calao-systems.com>
19 #include <linux/hwmon-sysfs.h>
106 #define RV3029_CONTROL_E2P_XOFFS_SIGN BIT(7) /* Sign: 1->pos, 0->neg */
127 for (i = 100; i > 0; i--) { in rv3029_eeprom_busywait()
128 ret = regmap_read(rv3029->regmap, RV3029_STATUS, &sr); in rv3029_eeprom_busywait()
136 dev_err(rv3029->dev, "EEPROM busy wait timeout.\n"); in rv3029_eeprom_busywait()
137 return -ETIMEDOUT; in rv3029_eeprom_busywait()
145 /* Re-enable eeprom refresh */ in rv3029_eeprom_exit()
[all …]
Drtc-rv3028.c1 // SPDX-License-Identifier: GPL-2.0
11 #include <linux/clk-provider.h>
105 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_store()
107 regmap_update_bits(rv3028->regmap, RV3028_EVT_CTRL, RV3028_EVT_CTRL_TSR, in timestamp0_store()
116 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_show()
121 ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); in timestamp0_show()
128 ret = regmap_bulk_read(rv3028->regmap, RV3028_TS_SEC, date, in timestamp0_show()
137 tm.tm_mon = bcd2bin(date[4]) - 1; in timestamp0_show()
153 struct rv3028_data *rv3028 = dev_get_drvdata(dev->parent); in timestamp0_count_show()
156 ret = regmap_read(rv3028->regmap, RV3028_TS_COUNT, &count); in timestamp0_count_show()
[all …]
Drtc-rv3032.c1 // SPDX-License-Identifier: GPL-2.0
12 #include <linux/clk-provider.h>
122 return regmap_update_bits(rv3032->regmap, RV3032_CTRL1, RV3032_CTRL1_EERD, 0); in rv3032_exit_eerd()
130 ret = regmap_read(rv3032->regmap, RV3032_CTRL1, &ctrl1); in rv3032_enter_eerd()
138 ret = regmap_update_bits(rv3032->regmap, RV3032_CTRL1, in rv3032_enter_eerd()
143 ret = regmap_read_poll_timeout(rv3032->regmap, RV3032_TLSB, status, in rv3032_enter_eerd()
165 ret = regmap_update_bits(rv3032->regmap, reg, mask, val); in rv3032_update_cfg()
169 ret = regmap_write(rv3032->regmap, RV3032_EEPROM_CMD, RV3032_EEPROM_CMD_UPDATE); in rv3032_update_cfg()
175 ret = regmap_read_poll_timeout(rv3032->regmap, RV3032_TLSB, status, in rv3032_update_cfg()
191 if (regmap_read(rv3032->regmap, RV3032_STATUS, &status) < 0 || in rv3032_handle_irq()
[all …]
Drtc-ab-eoz9.c1 // SPDX-License-Identifier: GPL-2.0
3 * Real Time Clock driver for AB-RTCMC-32.768kHz-EOZ9 chip.
15 #include <linux/hwmon-sysfs.h>
62 #define ABEOZ953_TEMP_MIN -60
84 struct regmap *regmap = data->regmap; in abeoz9_check_validity()
96 dev_warn(dev, "power-on reset detected, date is invalid\n"); in abeoz9_check_validity()
97 return -EINVAL; in abeoz9_check_validity()
103 return -EINVAL; in abeoz9_check_validity()
109 return -EINVAL; in abeoz9_check_validity()
134 ret = regmap_bulk_read(data->regmap, ABEOZ9_REG_SEC, in abeoz9_rtc_get_time()
[all …]
/kernel/linux/linux-6.6/drivers/power/supply/
Dltc4162-l-charger.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Driver for Analog Devices (Linear Technology) LTC4162-L charger IC.
54 precharge = 128, /* trickle on low bat voltage */
82 u32 rsnsb; /* Series resistor that sets charge current, microOhm */
83 u32 rsnsi; /* Series resistor to measure input current, microOhm */
93 if (info->cell_count) in ltc4162l_get_cell_count()
94 return info->cell_count; in ltc4162l_get_cell_count()
96 ret = regmap_read(info->regmap, LTC4162L_CHEM_CELLS_REG, &val); in ltc4162l_get_cell_count()
106 info->cell_count = val; in ltc4162l_get_cell_count()
134 ret = regmap_read(info->regmap, LTC4162L_CHARGER_STATE, &regval); in ltc4162l_get_status()
[all …]

12