drivers: counter: add driver for Microchip MCP7940N RTCC
Microchip MCP7940N is a Real-Time Clock/Calendar. It operates on a I2C bus. It can be used to set a calendar time and has two alarm channels. When an alarm is asserted the state of the MPF pin of the MCP7940N will change (depending on gpio active high/active low setting) to trigger an interrupt. Signed-off-by: Kieran Mackey <kieran.mackey@lairdconnect.com>
This commit is contained in:
parent
dfa660de8f
commit
94e006f0fc
6 changed files with 1012 additions and 0 deletions
24
dts/bindings/rtc/microchip,mcp7940n.yaml
Normal file
24
dts/bindings/rtc/microchip,mcp7940n.yaml
Normal file
|
@ -0,0 +1,24 @@
|
|||
#
|
||||
# Copyright (c) 2021 Laird Connectivity
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
description: Microchip MCP7940N I2C RTC
|
||||
|
||||
compatible: "microchip,mcp7940n"
|
||||
|
||||
include: i2c-device.yaml
|
||||
|
||||
properties:
|
||||
reg:
|
||||
required: true
|
||||
|
||||
int-gpios:
|
||||
type: phandle-array
|
||||
required: false
|
||||
description: |
|
||||
|
||||
Host input connected to the MCP7940N MFP open drain output pin
|
||||
|
||||
Notifies when an alarm has triggered by asserting this line.
|
Loading…
Add table
Add a link
Reference in a new issue