0001
0002
0003
0004
0005
0006
0007
0008
0009 #include <linux/err.h>
0010 #include <linux/mfd/madera/core.h>
0011
0012 #include "pinctrl-madera.h"
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 static const unsigned int cs47l15_aif1_pins[] = { 0, 1, 2, 3 };
0025 static const unsigned int cs47l15_aif2_pins[] = { 4, 5, 6, 7 };
0026 static const unsigned int cs47l15_aif3_pins[] = { 8, 9, 10, 11 };
0027 static const unsigned int cs47l15_spk1_pins[] = { 12, 13, 14 };
0028
0029 static const struct madera_pin_groups cs47l15_pin_groups[] = {
0030 { "aif1", cs47l15_aif1_pins, ARRAY_SIZE(cs47l15_aif1_pins) },
0031 { "aif2", cs47l15_aif2_pins, ARRAY_SIZE(cs47l15_aif2_pins) },
0032 { "aif3", cs47l15_aif3_pins, ARRAY_SIZE(cs47l15_aif3_pins) },
0033 { "pdmspk1", cs47l15_spk1_pins, ARRAY_SIZE(cs47l15_spk1_pins) },
0034 };
0035
0036 const struct madera_pin_chip cs47l15_pin_chip = {
0037 .n_pins = CS47L15_NUM_GPIOS,
0038 .pin_groups = cs47l15_pin_groups,
0039 .n_pin_groups = ARRAY_SIZE(cs47l15_pin_groups),
0040 };