// SPDX-License-Identifier: GPL-2.0-only /* * Pinctrl for Cirrus Logic CS47L15 * * Copyright (C) 2018-2019 Cirrus Logic, Inc. and * Cirrus Logic International Semiconductor Ltd. */ #include <linux/err.h> #include <linux/mfd/madera/core.h> #include "pinctrl-madera.h" /* * The alt func groups are the most commonly used functions we place these at * the lower function indexes for convenience, and the less commonly used gpio * functions at higher indexes. * * To stay consistent with the datasheet the function names are the same as * the group names for that function's pins * * Note - all 1 less than in datasheet because these are zero-indexed */ static const unsigned int cs47l15_aif1_pins[] = …; static const unsigned int cs47l15_aif2_pins[] = …; static const unsigned int cs47l15_aif3_pins[] = …; static const unsigned int cs47l15_spk1_pins[] = …; static const struct madera_pin_groups cs47l15_pin_groups[] = …; const struct madera_pin_chip cs47l15_pin_chip = …;