opnsense-src/sys/dev/iicbus
Tetsuya Uemura f5d1d22f25 nxprtc: Fix timing issue with register access.
My Adafruit PCF8523 RTC on either RPi2B or RPi3B+ failed to work around
80 ~ 90 % of boot-ups, by printing the following log lines.

nxprtc0: <NXP PCF8523 RTC> at addr 0xd0 on iicbus0
nxprtc0: cannot set up timer
Warning: no time-of-day clock registered, system time will not be set accurately

This is due to pcf8523_start_timer(sc) returned non-zero in
nxprtc_start() due to a register read failure of PCF8523_R_TMR_A_FREQ or
PCF8523_R_TMR_CLKOUT or a failure to program a new value.

The pause_sbt("nxpbat") sleep was too short and caused the register
access failures.

PR: 266093
(cherry picked from commit e2386f18ec)
2022-11-04 15:50:05 -06:00
..
gpio tca6416: remove write only sc 2022-10-01 22:25:52 -06:00
mux ltc430x(4): Fix a typo in a source code comment 2022-09-06 07:41:10 +02:00
pmic Add a driver for FAN53555 based PMIC. 2020-12-04 15:23:43 +00:00
rtc rx8803_settime: remove write only variable bus 2022-10-01 22:25:52 -06:00
twsi twsi: Plug set but not used variable 2022-05-16 15:15:44 +02:00
acpi_iicbus.c acpi_iicbus: set device description in the probe method 2020-04-24 07:55:39 +00:00
ad7417.c Drop 'All rights reserved' 2020-03-06 21:32:42 +00:00
ad7418.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
adm1030.c
ads111x.c Revert "Define PNP info after defining driver modules" 2021-01-29 19:39:14 -05:00
adt746x.c Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
ds13rtc.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
ds1307.c ds1307: add support for the EPSON RX-8035SA I2C RTC 2022-09-21 11:39:08 +00:00
ds1307reg.h ds1307: add support for the EPSON RX-8035SA I2C RTC 2022-09-21 11:39:08 +00:00
ds1631.c Drop 'All rights reserved' 2020-03-06 21:24:09 +00:00
ds1672.c Build the ds1672 driver as a module. Add a detach() to unregister the rtc. 2018-03-06 02:30:34 +00:00
ds1775.c Drop 'All rights reserved' 2020-03-06 21:26:35 +00:00
ds3231.c ds3231: allow configuration via hints on FDT systems 2021-12-23 10:44:54 +02:00
ds3231reg.h The ds3231 RTC chip bitmask values for 12- versus 24-hour mode were reversed, 2020-07-19 18:53:19 +00:00
htu21.c htu21: allow configuration via hints on FDT-based systems 2021-11-13 11:04:29 +02:00
icee.c icee: allow configuration via hints on FDT-based systems 2021-11-27 10:47:25 +02:00
if_ic.c routing: Allow using IPv6 next-hops for IPv4 routes (RFC 5549). 2021-09-07 21:25:06 +00:00
iic.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
iic.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
iic_recover_bus.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
iic_recover_bus.h Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
iicbb.c move defintion of hw.i2c sysctl node from iicbb to iicbus 2020-09-03 08:02:19 +00:00
iicbb_if.m
iicbus.c move defintion of hw.i2c sysctl node from iicbb to iicbus 2020-09-03 08:02:19 +00:00
iicbus.h Add plug and play information macroses for ACPI and I2C buses. 2020-10-31 22:15:59 +00:00
iicbus_if.m Add a default implementation that returns ENODEV for start, repeat_start, 2017-09-11 23:47:49 +00:00
iichid.c iicbus(4): Fix two typos in kernel error messages 2022-04-23 08:55:22 +02:00
iicoc.c iicoc: split up common core and PCI bus specifics 2019-12-20 03:40:46 +00:00
iicoc.h iicoc: split up common core and PCI bus specifics 2019-12-20 03:40:46 +00:00
iicoc_fdt.c iicoc: add FDT bus attachment 2019-12-20 03:40:50 +00:00
iicoc_pci.c iicoc: fix the build on PCI machines 2019-12-20 05:15:03 +00:00
iiconf.c Add support for i2c bus mux hardware. 2020-01-02 17:51:49 +00:00
iiconf.h Add support for i2c bus mux hardware. 2020-01-02 17:51:49 +00:00
iicsmb.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
isl12xx.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
lm75.c
max6690.c Provide a slightly more-tolerant set of thermal parameters for PowerMac 2020-10-15 13:43:43 +00:00
max44009.c driver for MAX44009 I2C illuminance sensor 2021-11-13 11:12:05 +02:00
nxprtc.c nxprtc: Fix timing issue with register access. 2022-11-04 15:50:05 -06:00
ofw_iicbus.c Allow i2c hardware drivers to declare their own relationships to ofw_iicbus 2018-02-18 19:33:28 +00:00
pcf8591.c pcf8591: remove write-only variables 2021-12-20 12:47:38 +02:00
rtc8583.c Clean up some of my copyrights; add SPDX tag and remove All rights reserved. 2019-12-13 01:38:48 +00:00
s35390a.c Switch to the new bcd_clocktime conversion routines, and add calls to the 2018-03-05 00:43:53 +00:00
sy8106a.c Remove "all rights reserved" from copyright for the file that Jared McNeill 2019-12-03 21:05:33 +00:00
syr827.c syr827: Switch to iicdev_{readfrom,writeto} 2019-10-01 18:32:27 +00:00