Skip to contentSkip to conversation

arch: arm: mach-hpe: Introduce the HPE GXP architecture

PATCH Superseded [email protected] 3 participants 19 messages Apr 20, 2022

Subsystems (8)

v4 of 8 Superseded Latest is v8 →

lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH v4 1/11 arch: arm: mach-hpe: Introduce the HPE GXP architecture

From: Nick Hawkins <[email protected]>

The GXP is the HPE BMC SoC that is used in the majority of HPE Generation 10 servers. Traditionally the asic will last multiple generations of server before being replaced. In gxp.c we reset the EHCI controller early to boot the asic.

Info about SoC:

HPE GXP is the name of the HPE Soc. This SoC is used to implement many BMC features at HPE. It supports ARMv7 architecture based on the Cortex A9 core. It is capable of using an AXI bus to which a memory controller is attached. It has multiple SPI interfaces to connect boot flash and BIOS flash. It uses a 10/100/1000 MAC for network connectivity. It has multiple i2c engines to drive connectivity with a host infrastructure. The initial patches enable the watchdog and timer enabling the host to be able to boot.

---
v4:
* Removed unecessary code: restart, iomap, init_machine
* Reordered Kconfig so depends
* Removed SPARSE_IRQ, MULTI_IRQ_HANDLER, IRQ_DOMAIN, PINCTL from Kconfig

---
 arch/arm/Kconfig           |  2 ++
 arch/arm/Makefile          |  1 +
 arch/arm/mach-hpe/Kconfig  | 17 +++++++++++++++++
 arch/arm/mach-hpe/Makefile |  1 +
 arch/arm/mach-hpe/gxp.c    | 16 ++++++++++++++++
 5 files changed, 37 insertions(+)
 create mode 100644 arch/arm/mach-hpe/Kconfig
 create mode 100644 arch/arm/mach-hpe/Makefile
 create mode 100644 arch/arm/mach-hpe/gxp.c
arch/arm/Kconfig +2 -0
index 4c97cb40eebb..6998b5b5f59e 100644
@@ -618,6 +618,8 @@ source "arch/arm/mach-highbank/Kconfig"
 
 source "arch/arm/mach-hisi/Kconfig"
 
+source "arch/arm/mach-hpe/Kconfig"
+
 source "arch/arm/mach-imx/Kconfig"
 
 source "arch/arm/mach-integrator/Kconfig"
arch/arm/Makefile +1 -0
index 77172d555c7e..1cc0523d0a0a 100644
@@ -178,6 +178,7 @@ machine-$(CONFIG_ARCH_FOOTBRIDGE)	+= footbridge
 machine-$(CONFIG_ARCH_GEMINI)		+= gemini
 machine-$(CONFIG_ARCH_HIGHBANK)		+= highbank
 machine-$(CONFIG_ARCH_HISI)		+= hisi
+machine-$(CONFIG_ARCH_HPE)		+= hpe
 machine-$(CONFIG_ARCH_INTEGRATOR)	+= integrator
 machine-$(CONFIG_ARCH_IOP32X)		+= iop32x
 machine-$(CONFIG_ARCH_IXP4XX)		+= ixp4xx
arch/arm/mach-hpe/Kconfig new file +17 -0
new file mode 100644
index 000000000000..c075248b259e
@@ -0,0 +1,17 @@
+menuconfig ARCH_HPE
+	bool "HPE SoC support"
+	depends on ARCH_MULTI_V7
+	help
+	  This enables support for HPE ARM based SoC chips
+if ARCH_HPE
+
+config ARCH_HPE_GXP
+	bool "HPE GXP SoC"
+	depends on ARCH_MULTI_V7
+	select ARM_VIC
+	select GENERIC_IRQ_CHIP
+	select CLKSRC_MMIO
+	help
+	  Support for GXP SoCs
+
+endif
arch/arm/mach-hpe/Makefile new file +1 -0
new file mode 100644
index 000000000000..8b0a91234df4
@@ -0,0 +1 @@
+obj-$(CONFIG_ARCH_HPE_GXP) += gxp.o
arch/arm/mach-hpe/gxp.c new file +16 -0
new file mode 100644
index 000000000000..e2f0c3ae6bd8
@@ -0,0 +1,16 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P.*/
+
+#include <linux/of_platform.h>
+#include <asm/mach/arch.h>
+
+static const char * const gxp_board_dt_compat[] = {
+	"hpe,gxp",
+	NULL,
+};
+
+DT_MACHINE_START(GXP_DT, "HPE GXP")
+	.dt_compat	= gxp_board_dt_compat,
+	.l2c_aux_val = 0,
+	.l2c_aux_mask = 0,
+MACHINE_END
Signature · 1 line
2.17.1
author maintainer
#1 lore raw

PATCH v4 2/11 arch: arm: configs: multi_v7_defconfig

From: Nick Hawkins <[email protected]>

Add support for the HPE GXP Processor by modifing the multi_v7_defconfig instead. This adds basic HPE and GXP architecture as well as enables the watchdog which is part of this patch set.

---
 arch/arm/configs/multi_v7_defconfig | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/configs/multi_v7_defconfig +3 -0
index 8863fa969ede..b93d213b7e60 100644
@@ -1006,6 +1006,8 @@ CONFIG_QCOM_GSBI=y
 CONFIG_QCOM_SMD_RPM=m
 CONFIG_QCOM_WCNSS_CTRL=m
 CONFIG_ARCH_EMEV2=y
+CONFIG_ARCH_HPE=y
+CONFIG_ARCH_HPE_GXP=y
 CONFIG_ARCH_R8A7794=y
 CONFIG_ARCH_R8A7779=y
 CONFIG_ARCH_R8A7790=y
@@ -1169,3 +1171,4 @@ CONFIG_CMA_SIZE_MBYTES=64
 CONFIG_PRINTK_TIME=y
 CONFIG_MAGIC_SYSRQ=y
 CONFIG_DEBUG_FS=y
+CONFIG_GXP_WATCHDOG=y
Signature · 1 line
2.17.1
author maintainer
#2 lore raw

PATCH v4 3/11 drivers: wdt: Introduce HPE GXP SoC Watchdog

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Adding support for the HPE GXP Watchdog. It is new to the linux community and this along with several other patches is the first support for it. The GXP asic contains a full compliment of timers one of which is the watchdog timer. The watchdog timer is 16 bit and has 10ms resolution. The watchdog is now created as a child device of timer since the same register range is used. This was done due to changes requested with the device tree.

---
v2:
*Made watchdog a child of timer as they share the same register region per change request on dtsi.
*Removed extra parenthesis
*Fixed u8 u32 u64 usage
*Fixed alignment issue
*Removed unused gxp_wdt_remove function

---
 drivers/watchdog/Kconfig   |   8 ++
 drivers/watchdog/Makefile  |   1 +
 drivers/watchdog/gxp-wdt.c | 166 +++++++++++++++++++++++++++++++++++++
 3 files changed, 175 insertions(+)
 create mode 100644 drivers/watchdog/gxp-wdt.c
drivers/watchdog/Kconfig +8 -0
index c8fa79da23b3..cb210d2978d2 100644
@@ -1820,6 +1820,14 @@ config RALINK_WDT
 	help
 	  Hardware driver for the Ralink SoC Watchdog Timer.
 
+config GXP_WATCHDOG
+	tristate "HPE GXP watchdog support"
+	depends on ARCH_HPE_GXP
+	select WATCHDOG_CORE
+	help
+	  Say Y here to include support for the watchdog timer
+	  in HPE GXP SoCs.
+
 config MT7621_WDT
 	tristate "Mediatek SoC watchdog"
 	select WATCHDOG_CORE
drivers/watchdog/Makefile +1 -0
index f7da867e8782..e2acf3a0d0fc 100644
@@ -92,6 +92,7 @@ obj-$(CONFIG_RTD119X_WATCHDOG) += rtd119x_wdt.o
 obj-$(CONFIG_SPRD_WATCHDOG) += sprd_wdt.o
 obj-$(CONFIG_PM8916_WATCHDOG) += pm8916_wdt.o
 obj-$(CONFIG_ARM_SMC_WATCHDOG) += arm_smc_wdt.o
+obj-$(CONFIG_GXP_WATCHDOG) += gxp-wdt.o
 obj-$(CONFIG_VISCONTI_WATCHDOG) += visconti_wdt.o
 obj-$(CONFIG_MSC313E_WATCHDOG) += msc313e_wdt.o
 obj-$(CONFIG_APPLE_WATCHDOG) += apple_wdt.o
drivers/watchdog/gxp-wdt.c new file +166 -0

166 lines not on this page · raw message

Signature · 1 line
2.17.1
maintainer
#3 lore raw

Re: [PATCH v4 03/11] drivers: wdt: Introduce HPE GXP SoC Watchdog

Quoted 7 lines · On 4/20/22 08:01, [email protected] wrote:

From: Nick Hawkins <[email protected]>

Adding support for the HPE GXP Watchdog. It is new to the linux community and this along with several other patches is the first support for it. The GXP asic contains a full compliment of timers one of which is the watchdog timer. The watchdog timer is 16 bit and has 10ms resolution. The watchdog is now

Drop "now".

Quoted 4 lines

created as a child device of timer since the same register range is used. This was done due to changes requested with the device tree.

Drop last sentence; it is part of the change log and should stay there.

Quoted 1 line

---

Changes made in v3 and v4 are missing.

Quoted 22 lines

v2:
*Made watchdog a child of timer as they share the same register region per change request on dtsi.
*Removed extra parenthesis
*Fixed u8 u32 u64 usage
*Fixed alignment issue
*Removed unused gxp_wdt_remove function

---
  drivers/watchdog/Kconfig   |   8 ++
  drivers/watchdog/Makefile  |   1 +
  drivers/watchdog/gxp-wdt.c | 166 +++++++++++++++++++++++++++++++++++++
  3 files changed, 175 insertions(+)

create mode 100644 drivers/watchdog/gxp-wdt.c

drivers/watchdog/Kconfig +0 -0
index c8fa79da23b3..cb210d2978d2 100644
@@ -1820,6 +1820,14 @@ config RALINK_WDT
  	help

drivers/watchdog/Kconfig config RALINK_WDT · line 1830

Quoted 10 lines
drivers/watchdog/Kconfig +8 -0
  	  Hardware driver for the Ralink SoC Watchdog Timer.
 
+config GXP_WATCHDOG
+	tristate "HPE GXP watchdog support"
+	depends on ARCH_HPE_GXP
+	select WATCHDOG_CORE
+	help
+	  Say Y here to include support for the watchdog timer
+	  in HPE GXP SoCs.
+

Add something like:

To compile this driver as a module, choose M here: the module will be calledgxp_wdt.

Quoted 187 lines
drivers/watchdog/Kconfig +0 -0
  config MT7621_WDT
  	tristate "Mediatek SoC watchdog"
  	select WATCHDOG_CORE
drivers/watchdog/Makefile +1 -0
index f7da867e8782..e2acf3a0d0fc 100644
@@ -92,6 +92,7 @@ obj-$(CONFIG_RTD119X_WATCHDOG) += rtd119x_wdt.o
  obj-$(CONFIG_SPRD_WATCHDOG) += sprd_wdt.o
  obj-$(CONFIG_PM8916_WATCHDOG) += pm8916_wdt.o
  obj-$(CONFIG_ARM_SMC_WATCHDOG) += arm_smc_wdt.o
+obj-$(CONFIG_GXP_WATCHDOG) += gxp-wdt.o
  obj-$(CONFIG_VISCONTI_WATCHDOG) += visconti_wdt.o
  obj-$(CONFIG_MSC313E_WATCHDOG) += msc313e_wdt.o
  obj-$(CONFIG_APPLE_WATCHDOG) += apple_wdt.o
drivers/watchdog/gxp-wdt.c new file +166 -0
new file mode 100644
index 000000000000..f45ab9a826d6
@@ -0,0 +1,166 @@
+// SPDX-License-Identifier: GPL-2.0
+/* Copyright (C) 2022 Hewlett-Packard Enterprise Development Company, L.P. */
+
+#include <linux/delay.h>
+#include <linux/io.h>
+#include <linux/module.h>
+#include <linux/platform_device.h>
+#include <linux/of_address.h>
+#include <linux/of_platform.h>
+#include <linux/types.h>
+#include <linux/watchdog.h>
+
+#define MASK_WDGCS_ENABLE	0x01
+#define MASK_WDGCS_RELOAD	0x04
+#define MASK_WDGCS_NMIEN	0x08
+#define MASK_WDGCS_WARN		0x80
+
+#define WDT_MAX_TIMEOUT_MS	655000
+#define WDT_DEFAULT_TIMEOUT	30
+#define SECS_TO_WDOG_TICKS(x) ((x) * 100)
+#define WDOG_TICKS_TO_SECS(x) ((x) / 100)
+
+#define GXP_WDT_CNT_OFS		0x10
+#define GXP_WDT_CTRL_OFS	0x16
+
+struct gxp_wdt {
+	void __iomem *base;
+	struct watchdog_device wdd;
+};
+
+static void gxp_wdt_enable_reload(struct gxp_wdt *drvdata)
+{
+	u8 val;
+
+	val = readb(drvdata->base + GXP_WDT_CTRL_OFS);
+	val |= (MASK_WDGCS_ENABLE | MASK_WDGCS_RELOAD);
+	writeb(val, drvdata->base + GXP_WDT_CTRL_OFS);
+}
+
+static int gxp_wdt_start(struct watchdog_device *wdd)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+
+	writew(SECS_TO_WDOG_TICKS(wdd->timeout), drvdata->base + GXP_WDT_CNT_OFS);
+	gxp_wdt_enable_reload(drvdata);
+	return 0;
+}
+
+static int gxp_wdt_stop(struct watchdog_device *wdd)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+	u8 val;
+
+	val = readb_relaxed(drvdata->base + GXP_WDT_CTRL_OFS);
+	val &= ~MASK_WDGCS_ENABLE;
+	writeb(val, drvdata->base + GXP_WDT_CTRL_OFS);
+	return 0;
+}
+
+static int gxp_wdt_set_timeout(struct watchdog_device *wdd,
+			       unsigned int timeout)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+	u32 actual;
+
+	wdd->timeout = timeout;
+	actual = min(timeout, wdd->max_hw_heartbeat_ms / 1000);
+	writew(SECS_TO_WDOG_TICKS(actual), drvdata->base + GXP_WDT_CNT_OFS);
+
+	return 0;
+}
+
+static unsigned int gxp_wdt_get_timeleft(struct watchdog_device *wdd)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+	u32 val = readw(drvdata->base + GXP_WDT_CNT_OFS);
+
+	return WDOG_TICKS_TO_SECS(val);
+}
+
+static int gxp_wdt_ping(struct watchdog_device *wdd)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+
+	gxp_wdt_enable_reload(drvdata);
+	return 0;
+}
+
+static int gxp_restart(struct watchdog_device *wdd, unsigned long action,
+		       void *data)
+{
+	struct gxp_wdt *drvdata = watchdog_get_drvdata(wdd);
+
+	writew(10, drvdata->base + GXP_WDT_CNT_OFS);
+	gxp_wdt_enable_reload(drvdata);
+	mdelay(100);
+	return 0;
+}
+
+static const struct watchdog_ops gxp_wdt_ops = {
+	.owner =	THIS_MODULE,
+	.start =	gxp_wdt_start,
+	.stop =		gxp_wdt_stop,
+	.ping =		gxp_wdt_ping,
+	.set_timeout =	gxp_wdt_set_timeout,
+	.get_timeleft =	gxp_wdt_get_timeleft,
+	.restart =	gxp_restart,
+};
+
+static const struct watchdog_info gxp_wdt_info = {
+	.options = WDIOF_SETTIMEOUT | WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING,
+	.identity = "HPE GXP Watchdog timer",
+};
+
+static int gxp_wdt_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	struct gxp_wdt *drvdata;
+	int err;
+	u8 val;
+
+	drvdata = devm_kzalloc(dev, sizeof(struct gxp_wdt), GFP_KERNEL);
+	if (!drvdata)
+		return -ENOMEM;
+
+	drvdata->base = (void __iomem *)dev->platform_data;
+
+	drvdata->wdd.info = &gxp_wdt_info;
+	drvdata->wdd.ops = &gxp_wdt_ops;
+	drvdata->wdd.max_hw_heartbeat_ms = WDT_MAX_TIMEOUT_MS;
+	drvdata->wdd.parent = dev;
+	drvdata->wdd.timeout = WDT_DEFAULT_TIMEOUT;
+
+	watchdog_set_drvdata(&drvdata->wdd, drvdata);
+	watchdog_set_nowayout(&drvdata->wdd, WATCHDOG_NOWAYOUT);
+
+	val = readb(drvdata->base + GXP_WDT_CTRL_OFS);
+
+	if (val & MASK_WDGCS_ENABLE)
+		set_bit(WDOG_HW_RUNNING, &drvdata->wdd.status);
+
+	watchdog_set_restart_priority(&drvdata->wdd, 128);
+
+	watchdog_stop_on_reboot(&drvdata->wdd);
+	err = devm_watchdog_register_device(dev, &drvdata->wdd);
+	if (err) {
+		dev_err(dev, "Failed to register watchdog device");
+		return err;
+	}
+
+	dev_info(dev, "HPE GXP watchdog timer");
+
+	return 0;
+}
+
+static struct platform_driver gxp_wdt_driver = {
+	.probe = gxp_wdt_probe,
+	.driver = {
+		.name =	"gxp-wdt",
+	},
+};
+module_platform_driver(gxp_wdt_driver);
+
+MODULE_AUTHOR("Nick Hawkins <[email protected]>");
+MODULE_AUTHOR("Jean-Marie Verdun <[email protected]>");
+MODULE_DESCRIPTION("Driver for GXP watchdog timer");
author maintainer
#4 lore raw

RE: [PATCH v4 03/11] drivers: wdt: Introduce HPE GXP SoC Watchdog

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]] On Behalf Of Guenter Roeck
Sent: Wednesday, April 20, 2022 10:53 AM
To: Hawkins, Nick <[email protected]>; Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; [email protected]; [email protected]
Cc: Wim Van Sebroeck <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v4 03/11] drivers: wdt: Introduce HPE GXP SoC Watchdog

Quoted 9 lines · On 4/20/22 08:01, [email protected] wrote:
Quoted 7 lines

From: Nick Hawkins <[email protected]>

Adding support for the HPE GXP Watchdog. It is new to the linux community and this along with several other patches is the first support for it. The GXP asic contains a full compliment of timers one of which is the watchdog timer. The watchdog timer is 16 bit and has 10ms resolution. The watchdog is now

Drop "now".

I have corrected this.

Quoted 5 lines
Quoted 3 lines

created as a child device of timer since the same register range is used. This was done due to changes requested with the device tree.

Drop last sentence; it is part of the change log and should stay there.

I have corrected this.

Quoted 3 lines
Quoted 1 line

---

Changes made in v3 and v4 are missing.

Fixed, I will fix this on the rest of the patches on this set.

Quoted 11 lines

drivers/watchdog/Kconfig config RALINK_WDT · line 1830

Quoted 8 lines
drivers/watchdog/Kconfig +8 -0
+config GXP_WATCHDOG
+	tristate "HPE GXP watchdog support"
+	depends on ARCH_HPE_GXP
+	select WATCHDOG_CORE
+	help
+	  Say Y here to include support for the watchdog timer
+	  in HPE GXP SoCs.
+

Add something like:

Quoted 2 lines

To compile this driver as a module, choose M here: the module will be calledgxp_wdt.

This has been changed. I will look through the rest of the other Kconfigs to make sure this statement is there.

Thanks for the feedback,

-Nick Hawkins

author maintainer
#5 lore raw

PATCH v4 4/11 clocksource/drivers: Add HPE GXP timer

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Add support for the HPE GXP SOC timer. The GXP supports several different kinds of timers but for the purpose of this driver there is only support for the General Timer. The timer has a 1us resolution and is 32 bits. The timer also creates a child watchdog device as the register region is the same based on previous review feedback.

---
v2:
*Made watchdog a child of timer as they share the same register region
*Fixed watchdog init timeout call
*Fixed variable usage u32/u64
*Removed Read Once
*fixed error that should have been debug

---
 drivers/clocksource/Kconfig     |   8 ++
 drivers/clocksource/Makefile    |   1 +
 drivers/clocksource/timer-gxp.c | 183 ++++++++++++++++++++++++++++++++
 3 files changed, 192 insertions(+)
 create mode 100644 drivers/clocksource/timer-gxp.c
drivers/clocksource/Kconfig +8 -0
index cfb8ea0df3b1..716117f21f95 100644
@@ -617,6 +617,14 @@ config CLKSRC_ST_LPC
 	  Enable this option to use the Low Power controller timer
 	  as clocksource.
 
+config GXP_TIMER
+	bool "GXP timer driver" if COMPILE_TEST
+	depends on ARCH_HPE
+	default y
+	help
+	  Provides a driver for the timer control found on HPE
+	  GXP SOCs. This is required for all GXP SOCs.
+
 config ATCPIT100_TIMER
 	bool "ATCPIT100 timer driver"
 	depends on NDS32 || COMPILE_TEST
drivers/clocksource/Makefile +1 -0
index fa5f624eadb6..35cc32fe6c6a 100644
@@ -89,3 +89,4 @@ obj-$(CONFIG_GX6605S_TIMER)		+= timer-gx6605s.o
 obj-$(CONFIG_HYPERV_TIMER)		+= hyperv_timer.o
 obj-$(CONFIG_MICROCHIP_PIT64B)		+= timer-microchip-pit64b.o
 obj-$(CONFIG_MSC313E_TIMER)		+= timer-msc313e.o
+obj-$(CONFIG_GXP_TIMER)			+= timer-gxp.o
drivers/clocksource/timer-gxp.c new file +183 -0

183 lines not on this page · raw message

Signature · 1 line
2.17.1
author maintainer
#6 lore raw

PATCH v4 5/11 dt-bindings: timer: Add HPE GXP Timer Binding

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Creating binding for gxp timer in device tree hpe,gxp-timer Although there are multiple times on the SoC we are only enabling one at this time.

---
v3:
*Made watchdog a child of timer
*Added reference clock
v2:
*Removed maintainer change from patch *Verified there was no compilation errors *Added reference code in separate patch of patchset

---
 .../bindings/timer/hpe,gxp-timer.yaml         | 49 +++++++++++++++++++
 1 file changed, 49 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml
Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml new file +49 -0
new file mode 100644
index 000000000000..a4572be8d89a
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/timer/hpe,gxp-timer.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE GXP TIMER
+
+maintainers:
+  - Nick Hawkins <[email protected]>
+  - Jean-Marie Verdun <[email protected]>
+
+properties:
+  compatible:
+    items:
+      - const: hpe,gxp-timer
+      - const: simple-mfd
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    const: iopclk
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+
+additionalProperties: true
+
+examples:
+  - |
+    timer0: timer@c0000000 {
+        compatible = "hpe,gxp-timer","simple-mfd";
+        reg = <0x80 0x16>;
+        interrupts = <0>;
+        interrupt-parent = <&vic0>;
+        clocks = <&iopclk>;
+        clock-names = "iopclk";
+    };
Signature · 1 line
2.17.1
author maintainer
#7 lore raw

PATCH v4 6/11 dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Add the hpe gxp watchdog timer binding hpe,gxp-wdt. This will enable support for the HPE GXP Watchdog

---
v2:
*Made watchdog a child of timer because of same register area based on review feedback
*Simplified the watchdog yaml as it will get information from parent device

---
 .../bindings/watchdog/hpe,gxp-wdt.yaml        | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/hpe,gxp-wdt.yaml
Documentation/devicetree/bindings/watchdog/hpe,gxp-wdt.yaml new file +30 -0
new file mode 100644
index 000000000000..c20da146352f
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/hpe,gxp-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE GXP Controlled Watchdog
+
+allOf:
+  - $ref: "watchdog.yaml#"
+
+maintainers:
+  - Nick Hawkins <[email protected]>
+  - Jean-Marie Verdun <[email protected]>
+
+properties:
+  compatible:
+    const: hpe,gxp-wdt
+
+required:
+  - compatible
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    watchdog0:  watchdog {
+      compatible = "hpe,gxp-wdt";
+    };
+
Signature · 1 line
2.17.1
maintainer
#8 lore raw

Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 9 lines · On 4/20/22 08:01, [email protected] wrote:

From: Nick Hawkins <[email protected]>

Add the hpe gxp watchdog timer binding hpe,gxp-wdt. This will enable support for the HPE GXP Watchdog

---
v2:

v3 and v4 changes are missing.

Quoted 45 lines

*Made watchdog a child of timer because of same register area based on review feedback
*Simplified the watchdog yaml as it will get information from parent device

---
  .../bindings/watchdog/hpe,gxp-wdt.yaml        | 30 +++++++++++++++++++
  1 file changed, 30 insertions(+)

create mode 100644 Documentation/devicetree/bindings/watchdog/hpe,gxp-wdt.yaml

Documentation/devicetree/bindings/watchdog/hpe,gxp-wdt.yaml new file +30 -0
new file mode 100644
index 000000000000..c20da146352f
@@ -0,0 +1,30 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/hpe,gxp-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE GXP Controlled Watchdog
+
+allOf:
+  - $ref: "watchdog.yaml#"
+
+maintainers:
+  - Nick Hawkins <[email protected]>
+  - Jean-Marie Verdun <[email protected]>
+
+properties:
+  compatible:
+    const: hpe,gxp-wdt
+
+required:
+  - compatible
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    watchdog0:  watchdog {
+      compatible = "hpe,gxp-wdt";
+    };
+
author maintainer
#9 lore raw

RE: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]] On Behalf Of Guenter Roeck
Sent: Wednesday, April 20, 2022 10:53 AM
To: Hawkins, Nick <[email protected]>; Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; [email protected]; [email protected]
Cc: Wim Van Sebroeck <[email protected]>; Rob Herring <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 11 lines · On 4/20/22 08:01, [email protected] wrote:
Quoted 9 lines

From: Nick Hawkins <[email protected]>

Add the hpe gxp watchdog timer binding hpe,gxp-wdt. This will enable support for the HPE GXP Watchdog

---
v2:

v3 and v4 changes are missing.

I considered this the second attempt with a valid patchset but I will change this to v4 and add v3 v2. Should I make a v5 to say I updated the patch message?

Regards,

-Nick

maintainer
#10 lore raw

Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 15 lines · Nick

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]] On Behalf Of Guenter Roeck
Sent: Wednesday, April 20, 2022 10:53 AM
To: Hawkins, Nick <[email protected]>; Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; [email protected]; [email protected]
Cc: Wim Van Sebroeck <[email protected]>; Rob Herring <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 5 lines · On 4/20/22 08:01, [email protected] wrote:
Quoted 5 lines

From: Nick Hawkins <[email protected]>

Add the hpe gxp watchdog timer binding hpe,gxp-wdt. This will enable support for the HPE GXP Watchdog

Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

---
v2:

v3 and v4 changes are missing.

I considered this the second attempt with a valid patchset but I will change this to v4 and add v3 v2. Should I make a v5 to say I updated the patch message?

Sorry, I can't parse your statement. If there was no change in v3 and v4, the change log for v3 and v4 should say "no changes in v3 and v4". If the changes were made in v3 and/or v4, the change log should say that. If the patch was added in v2/v3/v4, the change log should say that. Either case, the last version in the change log should match the version in the subject. Reviewers won't otherwise know how to match the patch version with the change log. They will have to dig up v1..v3 to compare the versions and find that out what exactly changed where (and why). In my case, that commonly translates to "move patch to the end of my review queue" because I just don't have the time to do that.

Guenter

author maintainer
#11 lore raw

RE: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]] On Behalf Of Guenter Roeck
Sent: Wednesday, April 20, 2022 11:37 AM
To: Hawkins, Nick <[email protected]>; Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; [email protected]; [email protected]
Cc: Wim Van Sebroeck <[email protected]>; Rob Herring <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 28 lines · Nick

-----Original Message-----
From: Guenter Roeck [mailto:[email protected]] On Behalf Of Guenter Roeck
Sent: Wednesday, April 20, 2022 10:53 AM
To: Hawkins, Nick <[email protected]>; Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; [email protected]; [email protected]
Cc: Wim Van Sebroeck <[email protected]>; Rob Herring <[email protected]>; [email protected]; [email protected]; [email protected]
Subject: Re: [PATCH v4 06/11] dt-bindings: watchdog: Add HPE GXP Watchdog timer binding

Quoted 11 lines · On 4/20/22 08:01, [email protected] wrote:
Quoted 9 lines

From: Nick Hawkins <[email protected]>

Add the hpe gxp watchdog timer binding hpe,gxp-wdt. This will enable support for the HPE GXP Watchdog

---
v2:

v3 and v4 changes are missing.

Quoted 8 lines

I considered this the second attempt with a valid patchset but I will change this to v4 and add v3 v2. Should I make a v5 to say I updated the patch message?

Sorry, I can't parse your statement. If there was no change in v3 and v4, the change log for v3 and v4 should say "no changes in v3 and v4".
If the changes were made in v3 and/or v4, the change log should say that.
If the patch was added in v2/v3/v4, the change log should say that.
Either case, the last version in the change log should match the version in the subject. Reviewers won't otherwise know how to match the patch version with the change log. They will have to dig up v1..v3 to compare the versions and find that out what exactly changed where (and why). In my case, that commonly translates to "move patch to the end of my review queue" because I just don't have the time to do that.

Understood, I have gone through the entire patchset and updated versions to be in line with the patchset version number. The places where no changes were made I have put no changes.

Thanks for the feedback,

-Nick

author maintainer
#12 lore raw

PATCH v4 7/11 dt-bindings: arm: Add HPE GXP Binding

In reply to [email protected]

From: Nick Hawkins <[email protected]>

This adds support for the hpe,gxp binding. The GXP is based on the cortex a9 processor and supports arm7.

---
v4:
*Removed gxp.yaml
*Created hpe,gxp.yaml based on reviewer input

---
 .../devicetree/bindings/arm/hpe,gxp.yaml      | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/hpe,gxp.yaml
Documentation/devicetree/bindings/arm/hpe,gxp.yaml new file +22 -0
new file mode 100644
index 000000000000..f896fc602d64
@@ -0,0 +1,22 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/hpe,gxp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: HPE bmc GXP SoC driver
+
+maintainers:
+  - Nick Hawkins <[email protected]>
+  - Jean-Marie Verdun <[email protected]>
+
+properties:
+  compatible:
+    items:
+      - enum:
+          - hpe,gxp-dl360gen10
+      - const: hpe,gxp
+
+additionalProperties: true
+
+...
Signature · 1 line
2.17.1
author maintainer
#13 lore raw

PATCH v4 8/11 dt-bindings: usb: generic-echi: Add HPE GXP echi binding

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Add hpe,gxp-echi to the generic-echi list. This is to enable the device tree.

---
v1:
*Based on previous feedback the hpe,gxp-echi has been added to the list of devices

---
 Documentation/devicetree/bindings/usb/generic-ehci.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +1 -0
index 8913497624de..2d52f53ae805 100644
@@ -55,6 +55,7 @@ properties:
               - brcm,bcm7420-ehci
               - brcm,bcm7425-ehci
               - brcm,bcm7435-ehci
+              - hpe,gxp-echi
               - ibm,476gtr-ehci
               - nxp,lpc1850-ehci
               - qca,ar7100-ehci
Signature · 1 line
2.17.1
author maintainer
#14 lore raw

PATCH v4 9/11 dt-bindings: usb: generic-ochi: Add HPE GXP ochi binding

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Add hpe,gxp-ochi to the generic-ochi list. This is to enable the device tree support.

---
v1:
*Based on previous feedback the hpe,gxp-ochi is added to the list

---
 Documentation/devicetree/bindings/usb/generic-ohci.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/usb/generic-ohci.yaml +1 -0
index acbf94fa5f74..e2ac84665316 100644
@@ -42,6 +42,7 @@ properties:
               - brcm,bcm7420-ohci
               - brcm,bcm7425-ohci
               - brcm,bcm7435-ohci
+              - hpe,gxp-ohci
               - ibm,476gtr-ohci
               - ingenic,jz4740-ohci
               - snps,hsdk-v1.0-ohci
Signature · 1 line
2.17.1
author maintainer
#16 lore raw

RE: [PATCH v4 09/11] dt-bindings: usb: generic-ochi: Add HPE GXP ochi binding

-----Original Message-----
From: Arnd Bergmann [mailto:[email protected]]
Sent: Wednesday, April 20, 2022 12:03 PM
To: Hawkins, Nick <[email protected]>
Cc: Verdun, Jean-Marie <[email protected]>; Harders, Nick <[email protected]>; Joel Stanley <[email protected]>; Arnd Bergmann <[email protected]>; Greg Kroah-Hartman <[email protected]>; Rob Herring <[email protected]>; USB list <[email protected]>; DTML <[email protected]>; Linux Kernel Mailing List <[email protected]>
Subject: Re: [PATCH v4 09/11] dt-bindings: usb: generic-ochi: Add HPE GXP ochi binding

Quoted 11 lines · On Wed, Apr 20, 2022 at 5:01 PM <[email protected]> wrote:
Quoted 7 lines

From: Nick Hawkins <[email protected]>

Add hpe,gxp-ochi to the generic-ochi list. This is to enable the device tree support.

s/ochi/ohci/

everywhere

I have corrected this. I noticed that I did the same thing with echi -> ehci so that has been corrected as well.

Thanks for the feedback,

-Nick Hawkins

author maintainer
#17 lore raw

PATCH v4 10/11 arch: arm: boot: dts: Introduce HPE GXP Device tree

In reply to [email protected]

From: Nick Hawkins <[email protected]>

The HPE SoC is new to linux. This patch
creates the basic device tree layout with minimum required for linux to boot. This includes timer and watchdog support.

The dts file is empty at this point but will be updated in subsequent updates as board specific features are enabled.

---
v4:
* Removed hpe,gxp-cpu-init as it was no longer necessary
* Removed bootargs as requested
* Removed empty ahb node
* Moved reg after compatible, everywhere
* Removed osc and memclk
* Removed syscon@c00000f8 as it was not necessary for boot
* Fixed Alphabetical issue in dts/Makefile
* Added specific board binding for dl360gen10
* Removed empty node
* Added Accurate Clock Architecture

---
 arch/arm/boot/dts/Makefile               |   2 +
 arch/arm/boot/dts/hpe-bmc-dl360gen10.dts |  13 +++
 arch/arm/boot/dts/hpe-gxp.dtsi           | 128 +++++++++++++++++++++++
 3 files changed, 143 insertions(+)
 create mode 100644 arch/arm/boot/dts/hpe-bmc-dl360gen10.dts
 create mode 100644 arch/arm/boot/dts/hpe-gxp.dtsi
arch/arm/boot/dts/Makefile +2 -0
index e41eca79c950..a217c403c819 100644
@@ -250,6 +250,8 @@ dtb-$(CONFIG_ARCH_HISI) += \
 	hi3519-demb.dtb
 dtb-$(CONFIG_ARCH_HIX5HD2) += \
 	hisi-x5hd2-dkb.dtb
+dtb-$(CONFIG_ARCH_HPE_GXP) += \
+	hpe-bmc-dl360gen10.dtb
 dtb-$(CONFIG_ARCH_INTEGRATOR) += \
 	integratorap.dtb \
 	integratorap-im-pd1.dtb \
arch/arm/boot/dts/hpe-bmc-dl360gen10.dts new file +13 -0
new file mode 100644
index 000000000000..69e9c6672ea8
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * Device Tree file for HPE DL360Gen10
+ */
+
+/include/ "hpe-gxp.dtsi"
+
+/ {
+	#address-cells = <1>;
+	#size-cells = <1>;
+	compatible = "hpe,gxp-dl360gen10","hpe,gxp";
+	model = "Hewlett Packard Enterprise ProLiant dl360 Gen10";
+};
arch/arm/boot/dts/hpe-gxp.dtsi new file +128 -0

128 lines not on this page · raw message

Signature · 1 line
2.17.1
author maintainer
#18 lore raw

PATCH v4 11/11 maintainers: Introduce HPE GXP Architecture

In reply to [email protected]

From: Nick Hawkins <[email protected]>

Create a section in MAINTAINERS for the GXP HPE
architecture.

---
v4:
*Added ARM/ before HPE Title
*Changed MAINTAINED to Maintained
*Renamed gxp-timer.c to timer-gxp.c
*Renamed gxp.yaml to hpe,gxp.yaml

---
 MAINTAINERS | 13 +++++++++++++
 1 file changed, 13 insertions(+)
MAINTAINERS +13 -0
index 6db79f3b209e..c3164a527747 100644
@@ -2062,6 +2062,19 @@ T:	git git://git.kernel.org/pub/scm/linux/kernel/git/kristoffer/linux-hpc.git
 F:	arch/arm/mach-sa1100/include/mach/jornada720.h
 F:	arch/arm/mach-sa1100/jornada720.c
 
+ARM/HPE GXP ARCHITECTURE
+M:	Jean-Marie Verdun <[email protected]>
+M:	Nick Hawkins <[email protected]>
+S:	Maintained
+F:	Documentation/devicetree/bindings/arm/hpe,gxp.yaml
+F:	Documentation/devicetree/bindings/timer/hpe,gxp-timer.yaml
+F:	Documentation/devicetree/bindings/wdt/hpe,gxp-wdt.yaml
+F:	arch/arm/boot/dts/hpe-bmc-dl360gen10.dts
+F:	arch/arm/boot/dts/hpe-gxp.dtsi
+F:	arch/arm/mach-hpe/gxp.c
+F:	drivers/clocksource/timer-gxp.c
+F:	drivers/watchdog/gxp-wdt.c
+
 ARM/IGEP MACHINE SUPPORT
 M:	Enric Balletbo i Serra <[email protected]>
 M:	Javier Martinez Canillas <[email protected]>
Signature · 1 line
2.17.1