Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions Documentation/devicetree/bindings/gpio/maxim,max77779-pmic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpio/maxim,max77779-pmic.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim Integrated MAX77779 PMIC block (SGPIO)

maintainers:
- W4HO <87742609+W4HO-ham@users.noreply.github.com>

description: |
The MAX77779 interface PMIC is a set of I2C blocks on one chip: the
charger (maxim,max77779-charger), the fuel gauge (maxim,max77779-fg), the
Type-C port controller (maxim,max77779-tcpc) and the PMIC block, which
owns the chip's interrupt line and eight SGPIO pins with interrupt
support. This binding describes the PMIC block.

properties:
compatible:
const: maxim,max77779-pmic

reg:
maxItems: 1

interrupts:
maxItems: 1
description: The chip's interrupt line (INTB), active low.

"#gpio-cells":
const: 2

gpio-controller: true

gpio-line-names:
minItems: 1
maxItems: 8

"#interrupt-cells":
const: 2

interrupt-controller: true

required:
- compatible
- reg
- "#gpio-cells"
- gpio-controller

additionalProperties: false

examples:
- |
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
#address-cells = <1>;
#size-cells = <0>;

pmic@66 {
compatible = "maxim,max77779-pmic";
reg = <0x66>;
interrupt-parent = <&gpa8>;
interrupts = <0 IRQ_TYPE_LEVEL_LOW>;
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
};
};
7 changes: 7 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -16197,6 +16197,13 @@ S: Maintained
F: Documentation/devicetree/bindings/power/supply/maxim,max77779-fg.yaml
F: drivers/power/supply/max77779_battery.c

MAXIM MAX77779 PMIC SGPIO DRIVER
M: W4HO <87742609+W4HO-ham@users.noreply.github.com>
L: linux-gpio@vger.kernel.org
S: Maintained
F: Documentation/devicetree/bindings/gpio/maxim,max77779-pmic.yaml
F: drivers/gpio/gpio-max77779.c

MAXIM MAX77802 PMIC REGULATOR DEVICE DRIVER
M: Javier Martinez Canillas <javier@dowhile0.org>
L: linux-kernel@vger.kernel.org
Expand Down
12 changes: 12 additions & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1592,6 +1592,18 @@ config GPIO_MAX77650
GPIO driver for MAX77650/77651 PMIC from Maxim Semiconductor.
These chips have a single pin that can be configured as GPIO.

config GPIO_MAX77779
tristate "Maxim Integrated MAX77779 PMIC SGPIO support"
depends on I2C
select REGMAP_I2C
select GPIOLIB_IRQCHIP
help
GPIO driver for the SGPIO block of the MAX77779 interface PMIC from
Maxim Integrated (Google Pixel 9a). The eight pins can generate
interrupts; the board's charger side signals sit on them.

Say M to build it as a module, called gpio-max77779.

config GPIO_MAX77759
tristate "Maxim Integrated MAX77759 GPIO support"
depends on MFD_MAX77759
Expand Down
1 change: 1 addition & 0 deletions drivers/gpio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ obj-$(CONFIG_GPIO_MAX7360) += gpio-max7360.o
obj-$(CONFIG_GPIO_MAX77620) += gpio-max77620.o
obj-$(CONFIG_GPIO_MAX77650) += gpio-max77650.o
obj-$(CONFIG_GPIO_MAX77759) += gpio-max77759.o
obj-$(CONFIG_GPIO_MAX77779) += gpio-max77779.o
obj-$(CONFIG_GPIO_MB86S7X) += gpio-mb86s7x.o
obj-$(CONFIG_GPIO_MC33880) += gpio-mc33880.o
obj-$(CONFIG_GPIO_MENZ127) += gpio-menz127.o
Expand Down
Loading