realtek: add switch core pinctrl driver
authorSander Vanheule <sander@svanheule.net>
Wed, 28 Sep 2022 19:03:18 +0000 (21:03 +0200)
committerSander Vanheule <sander@svanheule.net>
Mon, 31 Oct 2022 17:52:23 +0000 (18:52 +0100)
commit919e39061b447301c888075c8784eb45b8c69841
tree730a2ad753f7fc143addabfa20d0252ae039e30c
parent00f2dbbad01a8d7b9378b5a35f46761cf56d27e9
realtek: add switch core pinctrl driver

Since control bits for different pin muxes are scattered throughout the
switch core's register space, pin control features are provided by a
table of regmap fields. This should be flexible enough to allow support
for currently unsupported pin muxes, and newer SoC generations providing
similar features.

This driver add initial support for Maple and Cypress managed gigabit
switch SoCs, with RTL838xM and RTL839xM part numbers. The fast ethernet
switch SoCs from these parts series, with numbers RTL833xM and RTL835xM,
should also be supported, but have not been tested.

Signed-off-by: Sander Vanheule <sander@svanheule.net>
target/linux/realtek/files-5.10/drivers/pinctrl/pinctrl-rtl-switchcore.c [new file with mode: 0644]
target/linux/realtek/patches-5.10/201-pinctrl-add-pinctrl-for-Realtek-maple.patch [new file with mode: 0644]
target/linux/realtek/rtl838x/config-5.10
target/linux/realtek/rtl839x/config-5.10