OpenCloudOS-Kernel/drivers/pinctrl/intel
Hans de Goede fc8cbe3a58 pinctrl: baytrail: Fix selecting gpio pinctrl state
[ Upstream commit fed6d9a8e6a60ecf6506d0ea004040fbaa109927 ]

For all the "score" pin-groups all the intel_pingroup-s to select
the non GPIO function are re-used for byt_score_gpio_groups[].

But this is incorrect since a pin-group includes the mode setting,
which for the non GPIO functions generally is 1, where as to select
the GPIO function mode must be set to 0.

So the GPIO function needs separate intel_pingroup-s with their own mode
value of 0.

Add a new PIN_GROUP_GPIO macro which adds a foo_gpio entry to each
pin-group defined this way and update byt_score_gpio_groups[] to point
to the new foo_gpio entries.

The "sus" usb_oc_grp usb_ulpi_grp and pcu_spi_grp pin-groups are special
because these have a non 0 mode value to select the GPIO functions and
these already have matching foo_gpio pin-groups, leave these are unchanged.

The pmu_clk "sus" groups added in commit 2f46d7f7e9 ("pinctrl: baytrail:
Add pinconf group + function for the pmu_clk") do need to use the new
PIN_GROUP_GPIO macro.

Fixes: 2f46d7f7e9 ("pinctrl: baytrail: Add pinconf group + function for the pmu_clk")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-17 12:01:58 +02:00
..
Kconfig pinctrl: intel: consolidate ACPI dependency 2023-08-22 14:47:42 +03:00
Kconfig.tng pinctrl: moorefield: Adapt to Intel Tangier driver 2023-08-15 17:31:50 +03:00
Makefile pinctrl: tangier: Introduce Intel Tangier driver 2023-08-15 17:31:50 +03:00
pinctrl-alderlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-baytrail.c pinctrl: baytrail: Fix selecting gpio pinctrl state 2024-05-17 12:01:58 +02:00
pinctrl-broxton.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-cannonlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-cedarfork.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-cherryview.c pinctrl: cherryview: fix address_space_handler() argument 2023-08-22 14:51:10 +03:00
pinctrl-denverton.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-elkhartlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-emmitsburg.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-geminilake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-icelake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-intel.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-intel.h pinctrl: baytrail: Fix selecting gpio pinctrl state 2024-05-17 12:01:58 +02:00
pinctrl-jasperlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-lakefield.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-lewisburg.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-lynxpoint.c pinctrl: lynxpoint: Make use of pm_ptr() 2023-08-18 19:42:37 +03:00
pinctrl-merrifield.c pinctrl: merrifield: Adapt to Intel Tangier driver 2023-08-15 17:31:50 +03:00
pinctrl-meteorlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-moorefield.c pinctrl: moorefield: Adapt to Intel Tangier driver 2023-08-15 17:31:50 +03:00
pinctrl-sunrisepoint.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00
pinctrl-tangier.c pinctrl: tangier: Introduce Intel Tangier driver 2023-08-15 17:31:50 +03:00
pinctrl-tangier.h pinctrl: tangier: Introduce Intel Tangier driver 2023-08-15 17:31:50 +03:00
pinctrl-tigerlake.c pinctrl: intel: Switch to use exported namespace 2023-08-15 19:21:38 +03:00