Skip to contentSkip to conversation

Expand APU2 driver to 3/4/5/6 models

PATCH In review Philip Prindeville 3 participants 6 messages Jan 13, 2023 – Feb 18, 2023 1 message not in the archive x86 platform drivers

lore
Share & tools
lore
#0 lore raw

v4 cover Expand APU2 driver to 3/4/5/6 models

From: Philip Prindeville <[email protected]>

Extend PCEngines APU2 driver to derivative models APU3, 4, 5 and 6.

Of the five, the APU5 is the most dissimilar. The APU2 is not derivative of the APU1, and we call that out in the leds-apu driver. We also clarify the expanded compatibility of the pcengines-apuv2 driver in the Kconfig menu.

We correct some line labeling for GPIO lines 4-6, and we add appropriate definitions to the GPIO lines for the APU5 which is mapped out differently.

The majority of the work was done by Ed Wildgoose. Philip Prindeville took over the effort to upstream the fixes and made some minor cleanup.

Philip Prindeville (2):
x86: Support APU5 & APU6 in PCEngines platform driver
x86: Further PCEngines APU4/5/6 cleanup

 drivers/leds/leds-apu.c                |   2 +-
 drivers/platform/x86/Kconfig           |   4 +-
 drivers/platform/x86/pcengines-apuv2.c | 118 ++++++++++++++++++++++---
 3 files changed, 107 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

For the record, we're using the APUv2 driver as patched by this series in Openwrt and there are no reported issues with it.

Quoted 32 lines · Philip Prindeville

From: Philip Prindeville <[email protected]>

Extend PCEngines APU2 driver to derivative models APU3, 4, 5 and 6.

Of the five, the APU5 is the most dissimilar. The APU2 is not derivative of the APU1, and we call that out in the leds-apu driver. We also clarify the expanded compatibility of the pcengines-apuv2 driver in the Kconfig menu.

We correct some line labeling for GPIO lines 4-6, and we add appropriate definitions to the GPIO lines for the APU5 which is mapped out differently.

The majority of the work was done by Ed Wildgoose. Philip Prindeville took over the effort to upstream the fixes and made some minor cleanup.

Philip Prindeville (2):
x86: Support APU5 & APU6 in PCEngines platform driver
x86: Further PCEngines APU4/5/6 cleanup

drivers/leds/leds-apu.c                |   2 +-
drivers/platform/x86/Kconfig           |   4 +-
drivers/platform/x86/pcengines-apuv2.c | 118 ++++++++++++++++++++++---
3 files changed, 107 insertions(+), 17 deletions(-)
Signature · 1 line
2.34.1
#2 lore raw
In reply to Philip Prindeville

Hi Philip,

Quoted 10 lines · Philip Prindeville

From: Philip Prindeville <[email protected]>

Extend PCEngines APU2 driver to derivative models APU3, 4, 5 and 6.

Of the five, the APU5 is the most dissimilar. The APU2 is not derivative of the APU1, and we call that out in the leds-apu driver. We also clarify the expanded compatibility of the pcengines-apuv2 driver in the Kconfig menu.

Quoted 7 lines

We correct some line labeling for GPIO lines 4-6, and we add appropriate definitions to the GPIO lines for the APU5 which is mapped out differently.

The majority of the work was done by Ed Wildgoose. Philip Prindeville took over the effort to upstream the fixes and made some minor cleanup.

Thank you both for your work on this.

In would really like to hear back from Enrico what he thinks about these patches. FWIW I'm fine with merging these as is.

Also note that Enrico is listed as maintainer for the pcengines-apuv2.c file in MAINTAINERS, so you really should have Cc-ed him on this.

Enrico, can you take a look at this series please? You can find the 2 actual patches here:

https://lore.kernel.org/platform-driver-x86/[email protected]/
https://lore.kernel.org/platform-driver-x86/[email protected]/

Regards,

Hans

Quoted 10 lines

Philip Prindeville (2):
x86: Support APU5 & APU6 in PCEngines platform driver
x86: Further PCEngines APU4/5/6 cleanup

 drivers/leds/leds-apu.c                |   2 +-
 drivers/platform/x86/Kconfig           |   4 +-
 drivers/platform/x86/pcengines-apuv2.c | 118 ++++++++++++++++++++++---
 3 files changed, 107 insertions(+), 17 deletions(-)
#3 lore raw
Quoted 37 lines · Hans de Goede

Hi Philip,

Quoted 10 lines · Philip Prindeville

From: Philip Prindeville <[email protected]>

Extend PCEngines APU2 driver to derivative models APU3, 4, 5 and 6.

Of the five, the APU5 is the most dissimilar. The APU2 is not derivative of the APU1, and we call that out in the leds-apu driver. We also clarify the expanded compatibility of the pcengines-apuv2 driver in the Kconfig menu.

Quoted 7 lines

We correct some line labeling for GPIO lines 4-6, and we add appropriate definitions to the GPIO lines for the APU5 which is mapped out differently.

The majority of the work was done by Ed Wildgoose. Philip Prindeville took over the effort to upstream the fixes and made some minor cleanup.

Thank you both for your work on this.

In would really like to hear back from Enrico what he thinks about these patches. FWIW I'm fine with merging these as is.

Also note that Enrico is listed as maintainer for the pcengines-apuv2.c file in MAINTAINERS, so you really should have Cc-ed him on this.

Enrico, can you take a look at this series please? You can find the 2 actual patches here:

Quoted 6 lines

https://lore.kernel.org/platform-driver-x86/[email protected]/
https://lore.kernel.org/platform-driver-x86/[email protected]/

Regards,

Hans

I tried to copy Enrico on earlier revisions of this patch but they bounced so I stopped including him.

-Philip

Quoted 13 lines
Quoted 12 lines

Philip Prindeville (2):
x86: Support APU5 & APU6 in PCEngines platform driver
x86: Further PCEngines APU4/5/6 cleanup

drivers/leds/leds-apu.c                |   2 +-
drivers/platform/x86/Kconfig           |   4 +-
drivers/platform/x86/pcengines-apuv2.c | 118 ++++++++++++++++++++++---
3 files changed, 107 insertions(+), 17 deletions(-)
#4 lore raw

Hi,

Quoted 40 lines · Philip Prindeville
Quoted 40 lines · Hans de Goede

Hi Philip,

Quoted 10 lines · Philip Prindeville

From: Philip Prindeville <[email protected]>

Extend PCEngines APU2 driver to derivative models APU3, 4, 5 and 6.

Of the five, the APU5 is the most dissimilar. The APU2 is not derivative of the APU1, and we call that out in the leds-apu driver. We also clarify the expanded compatibility of the pcengines-apuv2 driver in the Kconfig menu.

Quoted 7 lines

We correct some line labeling for GPIO lines 4-6, and we add appropriate definitions to the GPIO lines for the APU5 which is mapped out differently.

The majority of the work was done by Ed Wildgoose. Philip Prindeville took over the effort to upstream the fixes and made some minor cleanup.

Thank you both for your work on this.

In would really like to hear back from Enrico what he thinks about these patches. FWIW I'm fine with merging these as is.

Also note that Enrico is listed as maintainer for the pcengines-apuv2.c file in MAINTAINERS, so you really should have Cc-ed him on this.

Enrico, can you take a look at this series please? You can find the 2 actual patches here:

https://lore.kernel.org/platform-driver-x86/[email protected]/
https://lore.kernel.org/platform-driver-x86/[email protected]/

Quoted 6 lines
Quoted 3 lines

Regards,

Hans

I tried to copy Enrico on earlier revisions of this patch but they bounced so I stopped including him.

Weird I don't think I have received any bounces for Enrico.

Regards,

Hans

Quoted 11 lines
Quoted 10 lines
Quoted 9 lines

Philip Prindeville (2):
x86: Support APU5 & APU6 in PCEngines platform driver
x86: Further PCEngines APU4/5/6 cleanup

drivers/leds/leds-apu.c                |   2 +-
drivers/platform/x86/Kconfig           |   4 +-
drivers/platform/x86/pcengines-apuv2.c | 118 ++++++++++++++++++++++---
3 files changed, 107 insertions(+), 17 deletions(-)

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 8 lines · metux IT consult
Quoted 5 lines · Hans de Goede

Enrico, can you take a look at this series please? You can find the 2 actual patches here:

https://lore.kernel.org/platform-driver-x86/[email protected]/
https://lore.kernel.org/platform-driver-x86/[email protected]/

Quoted 7 lines

NAK on renaming the RST lines (at least for the older boards), this will break existing applications in the field (I know for sure certain ones I wrote myself - and they're used in remote places!)

These lines (at least for the older boards) are supposed to be generic RST lines on the mpcie ports - not strictly limited to modems - that's why I've chosen this naming.

Sure - but the *wiring* of the RST lines *follows* the modems.

Can you give an example of how you are using the RST line, such that it's naming affects you please? Hans pointed out that generally it's the number order which is used?

Ed W