History log of /openbsd-current/sys/dev/fdt/axppmic.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.20 02-Aug-2023 uaa

add axp313a support

ok kettenis@


# 1.19 31-Jul-2023 kettenis

Add AXP15060 support.

ok uaa@


# 1.18 31-Jul-2023 kettenis

Make the RSB interface optional such that we can use this driver in kernels
without the sxirsb(4) driver.

ok uaa@


# 1.17 06-Jul-2023 uaa

- fix voltage range defined by base2 and delta2 works correctly
- fix AXP209 dcdc3 vmask value
- always use vmask for voltage setting (especially for AXP209 ldo2/ldo5)
- add AXP305 support

ok kettenis@


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.16 03-Sep-2022 kettenis

Make sure we don't suspend if we have no way to wake up the machine.
The idea is that device drivers that can wake up the machine register
themselves by calling device_register_wakeup(). To prevent regressions
on amd64, we let acpi(4) register itself as a wakeup device if the AML
for the machine defines wakeup devices. This may be refined in the
future.

This diff will prevent people from suspending their arm64 SBCs without
having a way to wake them up. For now the only driver that registers
itself is axppmic(4), which means that at this moment only SBCs with
an allwinner A64 or H5 SoC will actually support suspend/resume.

ok mlarkin@, deraadt@


# 1.15 16-Jul-2022 kettenis

Add support for using the power button to wake up from suspend.

ok anton@


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.19 31-Jul-2023 kettenis

Add AXP15060 support.

ok uaa@


# 1.18 31-Jul-2023 kettenis

Make the RSB interface optional such that we can use this driver in kernels
without the sxirsb(4) driver.

ok uaa@


# 1.17 06-Jul-2023 uaa

- fix voltage range defined by base2 and delta2 works correctly
- fix AXP209 dcdc3 vmask value
- always use vmask for voltage setting (especially for AXP209 ldo2/ldo5)
- add AXP305 support

ok kettenis@


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.16 03-Sep-2022 kettenis

Make sure we don't suspend if we have no way to wake up the machine.
The idea is that device drivers that can wake up the machine register
themselves by calling device_register_wakeup(). To prevent regressions
on amd64, we let acpi(4) register itself as a wakeup device if the AML
for the machine defines wakeup devices. This may be refined in the
future.

This diff will prevent people from suspending their arm64 SBCs without
having a way to wake them up. For now the only driver that registers
itself is axppmic(4), which means that at this moment only SBCs with
an allwinner A64 or H5 SoC will actually support suspend/resume.

ok mlarkin@, deraadt@


# 1.15 16-Jul-2022 kettenis

Add support for using the power button to wake up from suspend.

ok anton@


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.17 06-Jul-2023 uaa

- fix voltage range defined by base2 and delta2 works correctly
- fix AXP209 dcdc3 vmask value
- always use vmask for voltage setting (especially for AXP209 ldo2/ldo5)
- add AXP305 support

ok kettenis@


Revision tags: OPENBSD_7_2_BASE OPENBSD_7_3_BASE
# 1.16 03-Sep-2022 kettenis

Make sure we don't suspend if we have no way to wake up the machine.
The idea is that device drivers that can wake up the machine register
themselves by calling device_register_wakeup(). To prevent regressions
on amd64, we let acpi(4) register itself as a wakeup device if the AML
for the machine defines wakeup devices. This may be refined in the
future.

This diff will prevent people from suspending their arm64 SBCs without
having a way to wake them up. For now the only driver that registers
itself is axppmic(4), which means that at this moment only SBCs with
an allwinner A64 or H5 SoC will actually support suspend/resume.

ok mlarkin@, deraadt@


# 1.15 16-Jul-2022 kettenis

Add support for using the power button to wake up from suspend.

ok anton@


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.16 03-Sep-2022 kettenis

Make sure we don't suspend if we have no way to wake up the machine.
The idea is that device drivers that can wake up the machine register
themselves by calling device_register_wakeup(). To prevent regressions
on amd64, we let acpi(4) register itself as a wakeup device if the AML
for the machine defines wakeup devices. This may be refined in the
future.

This diff will prevent people from suspending their arm64 SBCs without
having a way to wake them up. For now the only driver that registers
itself is axppmic(4), which means that at this moment only SBCs with
an allwinner A64 or H5 SoC will actually support suspend/resume.

ok mlarkin@, deraadt@


# 1.15 16-Jul-2022 kettenis

Add support for using the power button to wake up from suspend.

ok anton@


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.15 16-Jul-2022 kettenis

Add support for using the power button to wake up from suspend.

ok anton@


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.14 28-Jun-2022 naddy

constify miscellaneous arm64 pin and clock tables

ok miod@


Revision tags: OPENBSD_7_1_BASE
# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.13 09-Jan-2022 jsg

spelling
feedback and ok tb@ jmc@ ok ratchov@


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.12 03-Dec-2021 uaa

support AXP805 PMIC
ok kettenis@


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.11 24-Oct-2021 mpi

Constify struct cfattach.

ok visa@ a long time ago, ok patrick@


Revision tags: OPENBSD_7_0_BASE
# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.10 06-Sep-2021 patrick

Accompany some functions wich are marked inline with the static keyword
to make the arm64 kernel link when compiled with -fno-inline.

ok kettenis@ mpi@


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.9 23-Jan-2020 kettenis

Fix the mask that we applied when setting the voltage.

ok jsg@, patrick@


Revision tags: OPENBSD_6_6_BASE
# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.8 12-Aug-2019 kettenis

Fix typo; spotted by Krystian Lewandowski.


# 1.7 11-Aug-2019 kettenis

Add battery sensors for the AXP803. A somewhat recent Linux DT is needed
to expose these sensors.

Heavily based on a diff from Krystian Lewandowski.


Revision tags: OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.6 10-Feb-2018 kettenis

Add AXP803 support.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.


# 1.5 05-Jan-2018 kettenis

Add support for AXP221/223.


# 1.4 26-Dec-2017 kettenis

Correct register numbers for AXP809.


# 1.3 18-Dec-2017 kettenis

Add sensors for the AXP809.


# 1.2 18-Dec-2017 kettenis

Add i2c interface code to the new axppmic(4) code and add support for the
AXP152 and AXP209 here as well. The AXP209 is extended to support
regulators and sensors. The ACIN and VBUS indicators are now exported as
sensors. Retire the old AXP152/AXP209 support code.


# 1.1 17-Dec-2017 kettenis

Make axppmic(4) attach to a Reduced Serial Bus, and support the AXP806
and AXP809 PMICs. Disabled for now.