[PATCH v4 07/11] powerpc: wiiu: espresso interrupt controller support

2022-11-19 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-p

[PATCH v4 08/11] powerpc: wiiu: latte interrupt controller support

2022-11-19 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- v2

[PATCH v4 06/11] powerpc: wiiu: udbg support for latteipc

2022-11-19 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- v2->v3: Fix a missing declaration issue by including latteipc_udbg.h

[PATCH v4 05/11] powerpc: wiiu: declare as non-coherent

2022-11-19 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms

[PATCH v4 02/11] powerpc: wiiu: device tree

2022-11-19 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v1->v2: Style and formatting changes suggested

[PATCH v4 00/11] powerpc: Nintendo Wii U support

2022-11-19 Thread Ash Logan
s a simple-bus and use of_platform_default_populate. Changes since v1: - Style and formatting tweaks to the devicetree, thanks Rob Herring for the review. Ash Logan (11): dt-bindings: wiiu: Document the Nintendo Wii U devicetree powerpc: wiiu: device tree powerpc: wiiu: bootwrapper supp

[PATCH v4 03/11] powerpc: wiiu: bootwrapper support

2022-11-19 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++ arch

[PATCH v4 01/11] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-11-19 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- v3->v4: Rework to match expected style and conciceness. .../bindings/powerpc/nintendo/wiiu.yaml | 25 + .../powerpc/nintendo/wiiu/espresso-pic.yaml | 48 .../bindings/powe

[PATCH v4 04/11] powerpc: wiiu: introduce wiiu platform

2022-11-19 Thread Ash Logan
Adds empty platforms/wiiu for Nintendo Wii U console Signed-off-by: Ash Logan --- v2->v3: Add help text for CONFIG_WIIU. arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 8 arch/powerpc/platforms/w

[PATCH v4 11/11] powerpc: wiiu: add minimal default config

2022-11-19 Thread Ash Logan
Adds a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/configs

[PATCH v4 10/11] powerpc: wiiu: platform support

2022-11-19 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v2->v3: Use of_platform_default_populate instead of a custom ma

[PATCH v4 09/11] powerpc: espresso processor support

2022-11-19 Thread Ash Logan
Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- v3->v4: Move to new cpu_specs_*.h file.

[PATCH v3 12/12] powerpc: wiiu: add minimal default config

2022-06-28 Thread Ash Logan
Adds a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/configs

[PATCH v3 11/12] powerpc: wiiu: don't enforce flat memory

2022-06-28 Thread Ash Logan
pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. Signed-off-by: Ash Logan --- arch/powerpc/mm/init_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index

[PATCH v3 10/12] powerpc: wiiu: platform support

2022-06-28 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v2->v3: Use of_platform_default_populate instead of a custom ma

[PATCH v3 09/12] powerpc: espresso processor support

2022-06-28 Thread Ash Logan
Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- arch/powerpc/kernel/cputa

[PATCH v3 08/12] powerpc: wiiu: latte interrupt controller support

2022-06-28 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- v2

[PATCH v3 07/12] powerpc: wiiu: espresso interrupt controller support

2022-06-28 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-p

[PATCH v3 06/12] powerpc: wiiu: udbg support for latteipc

2022-06-28 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- v2->v3: Fix a missing declaration issue by including latteipc_udbg.h.

[PATCH v3 05/12] powerpc: wiiu: declare as non-coherent

2022-06-28 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms

[PATCH v3 04/12] powerpc: wiiu: introduce wiiu platform

2022-06-28 Thread Ash Logan
Adds empty platforms/wiiu for Nintendo Wii U console Signed-off-by: Ash Logan --- v2->v3: Add help text for CONFIG_WIIU. arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 8 arch/powerpc/platforms/w

[PATCH v3 03/12] powerpc: wiiu: bootwrapper support

2022-06-28 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++ arch

[PATCH v3 02/12] powerpc: wiiu: device tree

2022-06-28 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v1->v2: Style and formatting changes suggested

[PATCH v3 01/12] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-06-28 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- .../bindings/powerpc/nintendo/wiiu.yaml | 28 +++ .../powerpc/nintendo/wiiu/espresso-pic.yaml | 42 + .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 41

[PATCH v3 00/12] powerpc: Nintendo Wii U support

2022-06-28 Thread Ash Logan
for the review. Ash Logan (12): dt-bindings: wiiu: Document the Nintendo Wii U devicetree powerpc: wiiu: device tree powerpc: wiiu: bootwrapper support powerpc: wiiu: introduce wiiu platform powerpc: wiiu: declare as non-coherent powerpc: wiiu: udbg support for latteipc powerpc: w

[PATCH v2 12/12] powerpc: wiiu: Add minimal default config

2022-06-22 Thread Ash Logan
Adds a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/configs

[PATCH v2 11/12] powerpc: wiiu: don't enforce flat memory

2022-06-22 Thread Ash Logan
pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. Signed-off-by: Ash Logan --- arch/powerpc/mm/init_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index

[PATCH v2 10/12] powerpc: wiiu: platform support

2022-06-22 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/platforms/wiiu/Makefile | 2 +- arch/powerpc/platforms

[PATCH v2 09/12] powerpc: espresso processor support

2022-06-22 Thread Ash Logan
Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- arch/powerpc/kernel/cputa

[PATCH v2 08/12] powerpc: wiiu: latte interrupt controller support

2022-06-22 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- ar

[PATCH v2 07/12] powerpc: wiiu: espresso interrupt controller support

2022-06-22 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-p

[PATCH v2 06/12] powerpc: wiiu: udbg support for latteipc

2022-06-22 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- arch/powerpc/Kconfig.debug | 9 ++ arch/powerpc/include/

[PATCH v2 05/12] powerpc: wiiu: declare as non-coherent

2022-06-22 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms

[PATCH v2 04/12] powerpc: wiiu: introduce wiiu platform

2022-06-22 Thread Ash Logan
Adds empty platforms/wiiu for Nintendo Wii U console Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 5 + arch/powerpc/platforms/wiiu/Makefile | 1 + 4 files changed, 8 insertions

[PATCH v2 03/12] powerpc: wiiu: bootwrapper support

2022-06-22 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++ arch

[PATCH v2 02/12] powerpc: wiiu: device tree

2022-06-22 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- v1->v2: Style and formatting changes suggested

[PATCH v2 01/12] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-06-22 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- .../bindings/powerpc/nintendo/wiiu.yaml | 28 +++ .../powerpc/nintendo/wiiu/espresso-pic.yaml | 42 + .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 41

[PATCH v2 00/12] powerpc: Nintendo Wii U support

2022-06-22 Thread Ash Logan
and formatting tweaks to the devicetree, thanks Rob Herring for the review. Ash Logan (12): dt-bindings: wiiu: Document the Nintendo Wii U devicetree powerpc: wiiu: device tree powerpc: wiiu: bootwrapper support powerpc: wiiu: introduce wiiu platform powerpc: wiiu: declare as non-coher

Re: [PATCH 11/12] powerpc: wiiu: don't enforce flat memory

2022-05-20 Thread Ash Logan
On 20/5/22 18:04, Pali Rohár wrote: > On Friday 20 May 2022 13:41:04 Ash Logan wrote: >> On 14/5/22 08:43, Pali Rohár wrote: >>> On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: >>>> pgtable_32.c:mapin_ram loops over each valid memory range, which means >>

Re: [PATCH 11/12] powerpc: wiiu: don't enforce flat memory

2022-05-19 Thread Ash Logan
On 14/5/22 08:43, Pali Rohár wrote: > On Wednesday 02 March 2022 15:44:05 Ash Logan wrote: >> pgtable_32.c:mapin_ram loops over each valid memory range, which means >> non-contiguous memory just works. > > Hello! Does it mean that non-contiguous memory works for any 32-bit &g

Re: [PATCH 02/12] powerpc: wiiu: device tree

2022-03-02 Thread Ash Logan
Hi Rob, Thanks for the review. On 3/3/22 00:36, Rob Herring wrote: On Tue, Mar 1, 2022 at 10:44 PM Ash Logan wrote: Add a device tree source file for the Nintendo Wii U video game console. Test this with 'make W=1 dtbs_checks'. Does make W=1 ARCH=powerpc wiiu_defconfig dtbs_

[PATCH 12/12] powerpc: wiiu: Add minimal default config

2022-03-01 Thread Ash Logan
Add a bare-minimum config to get a kernel compiled. Will need some more interesting options once a storage device to boot from is added. Signed-off-by: Ash Logan --- arch/powerpc/configs/wiiu_defconfig | 7 +++ 1 file changed, 7 insertions(+) create mode 100644 arch/powerpc/configs

[PATCH 11/12] powerpc: wiiu: don't enforce flat memory

2022-03-01 Thread Ash Logan
pgtable_32.c:mapin_ram loops over each valid memory range, which means non-contiguous memory just works. Signed-off-by: Ash Logan --- arch/powerpc/mm/init_32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c index

[PATCH 10/12] powerpc: wiiu: platform support

2022-03-01 Thread Ash Logan
Add platform support for the Nintendo Wii U console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/platforms/wiiu/Makefile | 2 +- arch/powerpc/platforms

[PATCH 09/12] powerpc: espresso processor support

2022-03-01 Thread Ash Logan
From: Roberto Van Eeden Adds a cputable entry for the "Espresso" processor found on the Nintendo Wii U, which has a PVR unrelated to other 750CL-like chips. Only this revision has been seen in the wild. Signed-off-by: Roberto Van Eeden Signed-off-by: Ash Logan --- arch/powe

[PATCH 08/12] powerpc: wiiu: latte interrupt controller support

2022-03-01 Thread Ash Logan
Add support for the "Latte" interrupt controller in the Nintendo Wii U. This controller is used for the entire SoC and is wired to a cascade interrupt on the Espresso controller. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- ar

[PATCH 07/12] powerpc: wiiu: espresso interrupt controller support

2022-03-01 Thread Ash Logan
Add support for the "Espresso" interrupt controller in the Nintendo Wii U. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden --- arch/powerpc/platforms/wiiu/Makefile | 1 + arch/powerpc/platforms/wiiu/espresso-p

[PATCH 06/12] powerpc: wiiu: udbg support for latteipc

2022-03-01 Thread Ash Logan
Add support for using the Latte chipset IPC for udbg on the Nintendo Wii U console. These messages can then be received by a special firmware running on the "Starbuck" coprocessor. Signed-off-by: Ash Logan --- arch/powerpc/Kconfig.debug | 9 ++ arch/powerpc/include/

[PATCH 05/12] powerpc: wiiu: declare as non-coherent

2022-03-01 Thread Ash Logan
The Nintendo Wii U requires explicit cache handling when interfacing with DMA devices. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig.cputype | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/arch/powerpc/platforms

[PATCH 04/12] powerpc: wiiu: introduce wiiu platform

2022-03-01 Thread Ash Logan
Add empty platforms/wiiu for Nintendo Wii U console. Signed-off-by: Ash Logan --- arch/powerpc/platforms/Kconfig | 1 + arch/powerpc/platforms/Makefile | 1 + arch/powerpc/platforms/wiiu/Kconfig | 5 + arch/powerpc/platforms/wiiu/Makefile | 1 + 4 files changed, 8 insertions

[PATCH 03/12] powerpc: wiiu: bootwrapper support

2022-03-01 Thread Ash Logan
Add support for the Nintendo Wii U game console to the powerpc bootwrapper. Signed-off-by: Ash Logan Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/Makefile| 4 ++ arch/powerpc/boot/wiiu-head.S | 103 ++ arch

[PATCH 02/12] powerpc: wiiu: device tree

2022-03-01 Thread Ash Logan
Add a device tree source file for the Nintendo Wii U video game console. Signed-off-by: Ash Logan Co-developed-by: Roberto Van Eeden Signed-off-by: Roberto Van Eeden Co-developed-by: Emmanuel Gil Peyrot Signed-off-by: Emmanuel Gil Peyrot --- arch/powerpc/boot/dts/wiiu.dts | 327

[PATCH 01/12] dt-bindings: wiiu: Document the Nintendo Wii U devicetree

2022-03-01 Thread Ash Logan
Adds schema for the various Wii U devicetree nodes used. Signed-off-by: Ash Logan --- .../bindings/powerpc/nintendo/wiiu.yaml | 28 +++ .../powerpc/nintendo/wiiu/espresso-pic.yaml | 42 + .../bindings/powerpc/nintendo/wiiu/gpu7.yaml | 41

[PATCH 00/12] powerpc: Nintendo Wii U support

2022-03-01 Thread Ash Logan
and KUAP is yet to give trouble. Thanks to those who helped and discussed this. Ash Logan (11): dt-bindings: wiiu: Document the Nintendo Wii U devicetree powerpc: wiiu: device tree powerpc: wiiu: bootwrapper support powerpc: wiiu: introduce wiiu platform powerpc: wiiu: declare as

Re: [RFC] Upstreaming Linux for Nintendo Wii U

2022-02-13 Thread Ash Logan
Hi Christophe, On 12/2/22 00:11, Christophe Leroy wrote: Hi Ash, Le 11/02/2022 à 12:29, Michael Ellerman a écrit : Ash Logan writes: - Like the Wii before it, the Wii U has a small amount of RAM at address zero, a gap, then a large amount of RAM at a higher address. Instead of the &quo

Re: [RFC] Upstreaming Linux for Nintendo Wii U

2022-02-13 Thread Ash Logan
Thanks for your response! On 11/2/22 22:29, Michael Ellerman wrote: Ash Logan writes: Hello, Hi Ash, I can't really answer all your questions, but I can chime in on one or two things ... - Right now I've made a new platform (like ps3) rather than joining the GameCube

[RFC] Upstreaming Linux for Nintendo Wii U

2022-02-07 Thread Ash Logan
Hello, I'm the lead dev on a downstream kernel with support for the Wii U[1], Nintendo's previous-gen game console. You might have seen Emmanuel submitting some of the more self-contained drivers recently[2][3]. I've gotten to the point where I'd like to look at upstreaming the platform. Since we