[PATCH 2/2] x86: Support APU5 & APU6 in PCEngines platform driver

2020-10-21 Thread Ed Wildgoose
for APU5 is extremely similar to APU2-4, but many lines are moved around and there are simply more modems/resets/sim-swap lines to breakout. Also added APU6, which is essentially APU4 with a different ethernet interface Signed-off-by: Ed Wildgoose --- drivers/platform/x86/pcengines-apuv2.c

[PATCH 1/2] x86: Conditional init of pcengines leds/keys gpios

2020-10-21 Thread Ed Wildgoose
for older bios. Signed-off-by: Ed Wildgoose --- drivers/platform/x86/pcengines-apuv2.c | 115 +++-- 1 file changed, 90 insertions(+), 25 deletions(-) diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c index c37349f97..45f7a89de 100644

[PATCH] gpio: gpio-amd-fch: Correct logic of GPIO_LINE_DIRECTION

2020-09-28 Thread Ed Wildgoose
The original commit appears to have the logic reversed in amd_fch_gpio_get_direction. Also confirmed by observing the value of "direction" in the sys tree. Signed-off-by: Ed Wildgoose Fixes: e09d168f13f0 ("gpio: AMD G-Series PCH gpio driver") --- drivers/gpio/gpio-amd-

[PATCH 2/2] x86: Support APU5 in PCEngines platform driver

2020-09-21 Thread Ed Wildgoose
of the GPIOs for APU5 is extremely similar to APU2-4, but many lines are moved around and there are simply more modems/resets/sim-swap lines to breakout. Signed-off-by: Ed Wildgoose --- drivers/platform/x86/pcengines-apuv2.c | 175 +++-- 1 file changed, 136 insertions(+), 39

[PATCH 1/2] x86: Remove led/gpio setup from pcengines platform driver

2020-09-21 Thread Ed Wildgoose
;leds-apu' driver to get the same set of led devices as created by the kernel with a modern bios. Signed-off-by: Ed Wildgoose --- drivers/platform/x86/pcengines-apuv2.c | 76 +- 1 file changed, 1 insertion(+), 75 deletions(-) diff --git a/drivers/platform/x86/pcengines-

[PATCH] gpio: gpio-amd-fch: Correct logic of GPIO_LINE_DIRECTION

2020-09-20 Thread Ed Wildgoose
The original commit appears to have the logic reversed in amd_fch_gpio_get_direction. Also confirmed by observing the value of "direction" in the sys tree. Signed-off-by: Ed Wildgoose --- drivers/gpio/gpio-amd-fch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] gpio: gpio-amd-fch: Fix typo on define of AMD_FCH_GPIO_REG_GPIO55_DEVSLP0

2020-09-20 Thread Ed Wildgoose
Schematics show that the GPIO number is 55 (not 59). Trivial typo. Signed-off-by: Ed Wildgoose --- drivers/platform/x86/pcengines-apuv2.c | 2 +- include/linux/platform_data/gpio/gpio-amd-fch.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86