forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'arm-newsoc-5.13' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/soc/soc Pull ARM Nuvoton WPCM450 platform support from Arnd Bergmann: "The Nuvoton WPCM450 BMC is an older chip based on the ARM926 CPU core that remains in use on Supermicro X9 server boards among others. Support gets added for a particular server board using this SoC along with the basic platform bringup. As the platform is a predecessor to the npcm7xx platform we already support, it is added to the same directory, despite using a different name. It also seems to be related to the older w90x900/nuc9xx platform that was removed last year" * tag 'arm-newsoc-5.13' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc: ARM: config: Add WPCM to multi v5 MAINTAINERS: Add entry for Nuvoton WPCM450 ARM: dts: Add devicetree for Supermicro X9SCi-LN4F based on WPCM450 ARM: dts: Add devicetree for Nuvoton WPCM450 BMC chip watchdog: npcm: Add support for WPCM450 ARM: npcm: Introduce Nuvoton WPCM450 SoC dt-bindings: watchdog: npcm: Add nuvoton,wpcm450-wdt dt-bindings: arm: npcm: Add nuvoton,wpcm450 compatible string dt-bindings: vendor-prefixes: Add Supermicro ARM: dts: Add board-specific compatible string to npcm750-evb devicetree dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML
- Loading branch information
Showing
14 changed files
with
190 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
%YAML 1.2 | ||
--- | ||
$id: http://devicetree.org/schemas/arm/npcm/npcm.yaml# | ||
$schema: http://devicetree.org/meta-schemas/core.yaml# | ||
|
||
title: NPCM Platforms Device Tree Bindings | ||
|
||
maintainers: | ||
- Jonathan Neuschäfer <[email protected]> | ||
|
||
properties: | ||
$nodename: | ||
const: '/' | ||
compatible: | ||
oneOf: | ||
- description: WPCM450 based boards | ||
items: | ||
- enum: | ||
- supermicro,x9sci-ln4f-bmc # Supermicro X9SCI-LN4F server's BMC | ||
- const: nuvoton,wpcm450 | ||
|
||
- description: NPCM750 based boards | ||
items: | ||
- enum: | ||
- nuvoton,npcm750-evb # NPCM750 evaluation board | ||
- const: nuvoton,npcm750 | ||
|
||
additionalProperties: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2214,6 +2214,15 @@ F: drivers/*/*npcm* | |
F: drivers/*/*/*npcm* | ||
F: include/dt-bindings/clock/nuvoton,npcm7xx-clock.h | ||
|
||
ARM/NUVOTON WPCM450 ARCHITECTURE | ||
M: Jonathan Neuschäfer <[email protected]> | ||
L: [email protected] (moderated for non-subscribers) | ||
S: Maintained | ||
F: Documentation/devicetree/bindings/*/*wpcm* | ||
F: arch/arm/boot/dts/nuvoton-wpcm450* | ||
F: arch/arm/mach-npcm/wpcm450.c | ||
F: drivers/*/*wpcm* | ||
|
||
ARM/OPENMOKO NEO FREERUNNER (GTA02) MACHINE SUPPORT | ||
L: [email protected] (subscribers-only) | ||
S: Orphan | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
arch/arm/boot/dts/nuvoton-wpcm450-supermicro-x9sci-ln4f.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
// Copyright 2021 Jonathan Neuschäfer | ||
|
||
/dts-v1/; | ||
|
||
/* The last 16 MiB are dedicated to the GPU */ | ||
/memreserve/ 0x07000000 0x01000000; | ||
|
||
#include "nuvoton-wpcm450.dtsi" | ||
|
||
/ { | ||
model = "Supermicro X9SCi-LN4F BMC"; | ||
compatible = "supermicro,x9sci-ln4f-bmc", "nuvoton,wpcm450"; | ||
|
||
chosen { | ||
stdout-path = "serial0:115200n8"; | ||
}; | ||
|
||
memory@0 { | ||
device_type = "memory"; | ||
reg = <0 0x08000000>; /* 128 MiB */ | ||
}; | ||
}; | ||
|
||
&serial0 { | ||
/* | ||
* Debug serial port. TX is exposed on the right pad of unpopulated | ||
* resistor R1247, RX on the right pad of R1162. | ||
*/ | ||
status = "okay"; | ||
}; | ||
|
||
&serial1 { | ||
/* "Serial over LAN" port. Connected to ttyS2 of the host system. */ | ||
status = "okay"; | ||
}; | ||
|
||
&watchdog0 { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause | ||
// Copyright 2021 Jonathan Neuschäfer | ||
|
||
#include <dt-bindings/interrupt-controller/irq.h> | ||
|
||
/ { | ||
compatible = "nuvoton,wpcm450"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
|
||
cpu@0 { | ||
compatible = "arm,arm926ej-s"; | ||
device_type = "cpu"; | ||
reg = <0>; | ||
}; | ||
}; | ||
|
||
clk24m: clock-24mhz { | ||
/* 24 MHz dummy clock */ | ||
compatible = "fixed-clock"; | ||
clock-frequency = <24000000>; | ||
#clock-cells = <0>; | ||
}; | ||
|
||
soc { | ||
compatible = "simple-bus"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
interrupt-parent = <&aic>; | ||
ranges; | ||
|
||
serial0: serial@b8000000 { | ||
compatible = "nuvoton,wpcm450-uart"; | ||
reg = <0xb8000000 0x20>; | ||
reg-shift = <2>; | ||
interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk24m>; | ||
status = "disabled"; | ||
}; | ||
|
||
serial1: serial@b8000100 { | ||
compatible = "nuvoton,wpcm450-uart"; | ||
reg = <0xb8000100 0x20>; | ||
reg-shift = <2>; | ||
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>; | ||
clocks = <&clk24m>; | ||
status = "disabled"; | ||
}; | ||
|
||
timer0: timer@b8001000 { | ||
compatible = "nuvoton,wpcm450-timer"; | ||
interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; | ||
reg = <0xb8001000 0x1c>; | ||
clocks = <&clk24m>; | ||
}; | ||
|
||
watchdog0: watchdog@b800101c { | ||
compatible = "nuvoton,wpcm450-wdt"; | ||
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>; | ||
reg = <0xb800101c 0x4>; | ||
clocks = <&clk24m>; | ||
status = "disabled"; | ||
}; | ||
|
||
aic: interrupt-controller@b8002000 { | ||
compatible = "nuvoton,wpcm450-aic"; | ||
reg = <0xb8002000 0x1000>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# SPDX-License-Identifier: GPL-2.0-only | ||
AFLAGS_headsmp.o += -march=armv7-a | ||
|
||
obj-$(CONFIG_ARCH_WPCM450) += wpcm450.o | ||
obj-$(CONFIG_ARCH_NPCM7XX) += npcm7xx.o | ||
obj-$(CONFIG_SMP) += platsmp.o headsmp.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// SPDX-License-Identifier: GPL-2.0 | ||
// Copyright 2021 Jonathan Neuschäfer | ||
|
||
#include <asm/mach/arch.h> | ||
|
||
static const char *const wpcm450_dt_match[] = { | ||
"nuvoton,wpcm450", | ||
NULL | ||
}; | ||
|
||
DT_MACHINE_START(WPCM450_DT, "WPCM450 chip") | ||
.dt_compat = wpcm450_dt_match, | ||
MACHINE_END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters