linux/drivers/pinctrl/pinctrl-da9062.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Dialog DA9062 pinctrl and GPIO driver.
 * Based on DA9055 GPIO driver.
 *
 * TODO:
 *   - add pinmux and pinctrl support (gpio alternate mode)
 *
 * Documents:
 * [1] https://www.dialog-semiconductor.com/sites/default/files/da9062_datasheet_3v6.pdf
 *
 * Copyright (C) 2019 Pengutronix, Marco Felsch <[email protected]>
 */
#include <linux/bits.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>

#include <linux/gpio/consumer.h>
#include <linux/gpio/driver.h>

#include <linux/mfd/da9062/core.h>
#include <linux/mfd/da9062/registers.h>

#define DA9062_TYPE(offset)
#define DA9062_PIN_SHIFT(offset)
#define DA9062_PIN_ALTERNATE
#define DA9062_PIN_GPI
#define DA9062_PIN_GPO_OD
#define DA9062_PIN_GPO_PP
#define DA9062_GPIO_NUM

struct da9062_pctl {};

static int da9062_pctl_get_pin_mode(struct da9062_pctl *pctl,
				    unsigned int offset)
{}

static int da9062_pctl_set_pin_mode(struct da9062_pctl *pctl,
				    unsigned int offset, unsigned int mode_req)
{}

static int da9062_gpio_get(struct gpio_chip *gc, unsigned int offset)
{}

static void da9062_gpio_set(struct gpio_chip *gc, unsigned int offset,
			    int value)
{}

static int da9062_gpio_get_direction(struct gpio_chip *gc, unsigned int offset)
{}

static int da9062_gpio_direction_input(struct gpio_chip *gc,
				       unsigned int offset)
{}

static int da9062_gpio_direction_output(struct gpio_chip *gc,
					unsigned int offset, int value)
{}

static int da9062_gpio_set_config(struct gpio_chip *gc, unsigned int offset,
				  unsigned long config)
{}

static int da9062_gpio_to_irq(struct gpio_chip *gc, unsigned int offset)
{}

static const struct gpio_chip reference_gc =;

static int da9062_pctl_probe(struct platform_device *pdev)
{}

static const struct of_device_id da9062_compatible_reg_id_table[] =;
MODULE_DEVICE_TABLE(of, da9062_compatible_reg_id_table);

static struct platform_driver da9062_pctl_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();
MODULE_ALIAS();