gpio: add max77851 PMIC GPIO driver

Adding MAX77851 GPIO driver provided by Maxim.
 - fix k6.3 (kstable and gh100) kernel-only build
 - fix k6.1 and jammy-src kernel-only build with
   CONFIG_REGMAP_IRQ and CONFIG_I2C conditional
   including -werror failures.

Bug 200749982

Change-Id: Ib46a075a2ca7c43301788dc0f54216f02c925c16
Signed-off-by: Shubhi Garg <shgarg@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2595331
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2947782
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Shubhi Garg
2021-09-16 14:34:54 +05:30
committed by mobile promotions
parent 7354304367
commit 83b0f18aa3
4 changed files with 378 additions and 1 deletions

View File

@@ -0,0 +1,44 @@
# SPDX-License-Identifier: GPL-2.0-only
# SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
%YAML 1.2
---
$id: http://devicetree.org/schemas/gpio/gpio-max77851.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: DT bindings MAX77851 Power Management IC GPIO
maintainers:
- Joan Na<Joan.na@maximintegrated.com>
- Shubhi Garg <shgarg@nvidia.com>
description: |
DT bindings GPIO driver for MAX77851 Power management IC from Maxim Semiconductor.
Device has 8 GPIO pins and 4 FPSO pins which can be configured as GPIO as well as the
special IO functions.
For more details, please refer generic GPIO DT binding document
<devicetree/bindings/gpio/gpio.txt>.
properties:
compatible:
const: "maxim,max77851-pmic"
gpio-controller: true
'#gpio-cells':
const: 2
examples:
- |
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/mfd/max77851.h>
...
max77851: max77851@3c {
compatible = "maxim,max77851-pmic";
gpio-controller;
#gpio-cells = <2>;
};
...