Skip to contentSkip to conversation

dt-bindings: watchdog: marvell GTI system watchdog driver

PATCH Superseded Bharat Bhushan 4 participants 14 messages May 8, 2023 – May 16, 2023

Subsystems (2)

v7 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

PATCH v7 1/2 dt-bindings: watchdog: marvell GTI system watchdog driver

Add binding documentation for the Marvell GTI system watchdog driver.

---
v7:
- Corrected compatible to have soc name
- Converted marvell,wdt-timer-index to optional

 .../watchdog/marvell,octeontx2-wdt.yaml       | 80 +++++++++++++++++++
 1 file changed, 80 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +80 -0
new file mode 100644
index 000000000000..72951b10f1f3
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/marvell,octeontx2-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Global Timer (GTI) system watchdog
+
+allOf:
+  - $ref: watchdog.yaml#
+
+maintainers:
+  - Bharat Bhushan <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt
+      - items:
+          - enum:
+              - marvell,cn10kx-wdt
+              - marvell,cnf10kx-wdt
+          - const: marvell,cn10k-wdt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1
+
+  clock-names:
+    minItems: 1
+
+  marvell,wdt-timer-index:
+    $ref: /schemas/types.yaml#/definitions/uint32
+    minimum: 0
+    maximum: 63
+    description:
+      An SoC have many timers (up to 64), firmware can reserve one or more timer
+      for some other use case and configures one of the global timer as watchdog
+      timer. Firmware will update this field with the timer number configured
+      as watchdog timer.
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+  - clock-names
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/arm-gic.h>
+    soc {
+        #address-cells = <2>;
+        #size-cells = <2>;
+
+        watchdog@802000040000 {
+            compatible = "marvell,octeontx2-wdt";
+            reg = <0x00008020 0x00040000 0x00000000 0x00020000>;
+            interrupts = <GIC_SPI 38 IRQ_TYPE_EDGE_RISING>;
+            clocks = <&sclk>;
+            clock-names = "ref_clk";
+            marvell,wdt-timer-index = <63>;
+        };
+    };
+
+...
Signature · 1 line
2.17.1
#1 lore raw

PATCH v7 2/2 Watchdog: Add marvell GTI watchdog driver

This patch add support for Marvell GTI watchdog. Global timer unit (GTI) support hardware watchdog timer. Software programs watchdog timer to generate interrupt on first timeout, second timeout is configured to be ignored and system reboots on third timeout.

---
v7:
- Converted marvell,wdt-timer-index to optional
- Corrected compatible to have soc names

 drivers/watchdog/Kconfig           |  13 ++
 drivers/watchdog/Makefile          |   1 +
 drivers/watchdog/marvell_gti_wdt.c | 342 +++++++++++++++++++++++++++++
 3 files changed, 356 insertions(+)
 create mode 100644 drivers/watchdog/marvell_gti_wdt.c
drivers/watchdog/Kconfig +13 -0
index f22138709bf5..0351982b7abf 100644
@@ -1779,6 +1779,19 @@ config OCTEON_WDT
 	  from the first interrupt, it is then only poked when the
 	  device is written.
 
+config MARVELL_GTI_WDT
+	tristate "Marvell GTI Watchdog driver"
+	depends on ARCH_THUNDER || COMPILE_TEST
+	default y
+	select WATCHDOG_CORE
+	help
+	 Marvell GTI hardware supports watchdog timer. First timeout
+	 works as watchdog pretimeout and installed interrupt handler
+	 will be called on first timeout. Hardware can generate interrupt
+	 to SCP on second timeout but it is not enabled, So second
+	 timeout is ignored. If device poke does not happen then system
+	 will reboot on third timeout.
+
 config BCM2835_WDT
 	tristate "Broadcom BCM2835 hardware watchdog"
 	depends on ARCH_BCM2835 || (OF && COMPILE_TEST)
drivers/watchdog/Makefile +1 -0
index b4c4ccf2d703..a164cd161ef3 100644
@@ -98,6 +98,7 @@ obj-$(CONFIG_VISCONTI_WATCHDOG) += visconti_wdt.o
 obj-$(CONFIG_MSC313E_WATCHDOG) += msc313e_wdt.o
 obj-$(CONFIG_APPLE_WATCHDOG) += apple_wdt.o
 obj-$(CONFIG_SUNPLUS_WATCHDOG) += sunplus_wdt.o
+obj-$(CONFIG_MARVELL_GTI_WDT) += marvell_gti_wdt.o
 
 # X86 (i386 + ia64 + x86_64) Architecture
 obj-$(CONFIG_ACQUIRE_WDT) += acquirewdt.o
drivers/watchdog/marvell_gti_wdt.c new file +342 -0

342 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

Re: [PATCH 2/2 v7] Watchdog: Add marvell GTI watchdog driver

kernel test robot noticed the following build errors:

Hi Bharat,

kernel test robot noticed the following build errors:

[auto build test ERROR on robh/for-next]
[also build test ERROR on groeck-staging/hwmon-next linus/master v6.4-rc1 next-20230508] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Bharat-Bhushan/Watchdog-Add-marvell-GTI-watchdog-driver/20230508-211645
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20230508131515.19403-2-bbhushan2%40marvell.com
patch subject: [PATCH 2/2 v7] Watchdog: Add marvell GTI watchdog driver
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20230509/[email protected]/config)
compiler: sparc64-linux-gcc (GCC) 12.1.0

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/0b1fbcf987da442c837b205256c6400adf6d298e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Bharat-Bhushan/Watchdog-Add-marvell-GTI-watchdog-driver/20230508-211645 git checkout 0b1fbcf987da442c837b205256c6400adf6d298e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

drivers/watchdog/marvell_gti_wdt.c: In function 'gti_wdt_interrupt':

>> drivers/watchdog/marvell_gti_wdt.c:89:9: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
      89 |         writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
         |         ^~~~~~
   drivers/watchdog/marvell_gti_wdt.c: In function 'gti_wdt_start':
>> drivers/watchdog/marvell_gti_wdt.c:126:18: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
     126 |         regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
         |                  ^~~~~

cc1: some warnings being treated as errors

vim +/writeq +89 drivers/watchdog/marvell_gti_wdt.c

    82	
    83	static irqreturn_t gti_wdt_interrupt(int irq, void *data)
    84	{
    85		struct watchdog_device *wdev = data;
    86		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
    87	
    88		/* Clear Interrupt Pending Status */
  > 89		writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
    90		       priv->base + GTI_CWD_INT);
    91	
    92		watchdog_notify_pretimeout(wdev);
    93	
    94		return IRQ_HANDLED;
    95	}
    96	
    97	static int gti_wdt_ping(struct watchdog_device *wdev)
    98	{
    99		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
   100	
   101		writeq(GTI_CWD_POKE_VAL,
   102		       priv->base + GTI_CWD_POKE(priv->wdt_timer_idx));
   103	
   104		return 0;
   105	}
   106	
   107	static int gti_wdt_start(struct watchdog_device *wdev)
   108	{
   109		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
   110		u64 regval;
   111	
   112		if (!wdev->pretimeout)
   113			return -EINVAL;
   114	
   115		set_bit(WDOG_HW_RUNNING, &wdev->status);
   116	
   117		/* Clear any pending interrupt */
   118		writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
   119		       priv->base + GTI_CWD_INT);
   120	
   121		/* Enable Interrupt */
   122		writeq(GTI_CWD_INT_ENA_SET_VAL(priv->wdt_timer_idx),
   123		       priv->base + GTI_CWD_INT_ENA_SET);
   124	
   125		/* Set (Interrupt + SCP interrupt (DEL3T) + core domain reset) Mode */
 > 126		regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));

127 regval |= GTI_CWD_WDOG_MODE_INT_DEL3T_RST;
128 writeq(regval, priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
129
130 return 0;
131 }
132

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
#3 lore raw

Re: [PATCH 2/2 v7] Watchdog: Add marvell GTI watchdog driver

In reply to Bharat Bhushan
kernel test robot noticed the following build errors:

Hi Bharat,

kernel test robot noticed the following build errors:

[auto build test ERROR on robh/for-next]
[also build test ERROR on groeck-staging/hwmon-next linus/master v6.4-rc1 next-20230509] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Bharat-Bhushan/Watchdog-Add-marvell-GTI-watchdog-driver/20230508-211645
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20230508131515.19403-2-bbhushan2%40marvell.com
patch subject: [PATCH 2/2 v7] Watchdog: Add marvell GTI watchdog driver
config: hexagon-randconfig-r015-20230508 (https://download.01.org/0day-ci/archive/20230509/[email protected]/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project b0fb98227c90adf2536c9ad644a74d5e92961111)

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# https://github.com/intel-lab-lkp/linux/commit/0b1fbcf987da442c837b205256c6400adf6d298e
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Bharat-Bhushan/Watchdog-Add-marvell-GTI-watchdog-driver/20230508-211645 git checkout 0b1fbcf987da442c837b205256c6400adf6d298e
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=hexagon SHELL=/bin/bash drivers/watchdog/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
| Link: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

In file included from drivers/watchdog/marvell_gti_wdt.c:8:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:13:
In file included from arch/hexagon/include/asm/io.h:334:
include/asm-generic/io.h:547:31: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]

           val = __raw_readb(PCI_IOBASE + addr);
                             ~~~~~~~~~~ ^
   include/asm-generic/io.h:560:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le16_to_cpu((__le16 __force)__raw_readw(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:37:51: note: expanded from macro '__le16_to_cpu'
   #define __le16_to_cpu(x) ((__force __u16)(__le16)(x))
                                                     ^
   In file included from drivers/watchdog/marvell_gti_wdt.c:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:573:61: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           val = __le32_to_cpu((__le32 __force)__raw_readl(PCI_IOBASE + addr));
                                                           ~~~~~~~~~~ ^
   include/uapi/linux/byteorder/little_endian.h:35:51: note: expanded from macro '__le32_to_cpu'
   #define __le32_to_cpu(x) ((__force __u32)(__le32)(x))
                                                     ^
   In file included from drivers/watchdog/marvell_gti_wdt.c:8:
   In file included from include/linux/interrupt.h:11:
   In file included from include/linux/hardirq.h:11:
   In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
   In file included from include/asm-generic/hardirq.h:17:
   In file included from include/linux/irq.h:20:
   In file included from include/linux/io.h:13:
   In file included from arch/hexagon/include/asm/io.h:334:
   include/asm-generic/io.h:584:33: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writeb(value, PCI_IOBASE + addr);
                               ~~~~~~~~~~ ^
   include/asm-generic/io.h:594:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writew((u16 __force)cpu_to_le16(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
   include/asm-generic/io.h:604:59: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
           __raw_writel((u32 __force)cpu_to_le32(value), PCI_IOBASE + addr);
                                                         ~~~~~~~~~~ ^
>> drivers/watchdog/marvell_gti_wdt.c:89:2: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
           ^
   drivers/watchdog/marvell_gti_wdt.c:101:2: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           writeq(GTI_CWD_POKE_VAL,
           ^
   drivers/watchdog/marvell_gti_wdt.c:118:2: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
           ^
>> drivers/watchdog/marvell_gti_wdt.c:126:11: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
                    ^
   drivers/watchdog/marvell_gti_wdt.c:139:2: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           writeq(GTI_CWD_INT_ENA_CLR_VAL(priv->wdt_timer_idx),
           ^
   drivers/watchdog/marvell_gti_wdt.c:143:11: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
                    ^
   drivers/watchdog/marvell_gti_wdt.c:177:11: error: call to undeclared function 'readq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
                    ^
   drivers/watchdog/marvell_gti_wdt.c:181:2: error: call to undeclared function 'writeq'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           writeq(regval, priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
           ^

6 warnings and 8 errors generated.

vim +/writeq +89 drivers/watchdog/marvell_gti_wdt.c

    82	
    83	static irqreturn_t gti_wdt_interrupt(int irq, void *data)
    84	{
    85		struct watchdog_device *wdev = data;
    86		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
    87	
    88		/* Clear Interrupt Pending Status */
  > 89		writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
    90		       priv->base + GTI_CWD_INT);
    91	
    92		watchdog_notify_pretimeout(wdev);
    93	
    94		return IRQ_HANDLED;
    95	}
    96	
    97	static int gti_wdt_ping(struct watchdog_device *wdev)
    98	{
    99		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
   100	
   101		writeq(GTI_CWD_POKE_VAL,
   102		       priv->base + GTI_CWD_POKE(priv->wdt_timer_idx));
   103	
   104		return 0;
   105	}
   106	
   107	static int gti_wdt_start(struct watchdog_device *wdev)
   108	{
   109		struct gti_wdt_priv *priv = watchdog_get_drvdata(wdev);
   110		u64 regval;
   111	
   112		if (!wdev->pretimeout)
   113			return -EINVAL;
   114	
   115		set_bit(WDOG_HW_RUNNING, &wdev->status);
   116	
   117		/* Clear any pending interrupt */
   118		writeq(GTI_CWD_INT_PENDING_STATUS(priv->wdt_timer_idx),
   119		       priv->base + GTI_CWD_INT);
   120	
   121		/* Enable Interrupt */
   122		writeq(GTI_CWD_INT_ENA_SET_VAL(priv->wdt_timer_idx),
   123		       priv->base + GTI_CWD_INT_ENA_SET);
   124	
   125		/* Set (Interrupt + SCP interrupt (DEL3T) + core domain reset) Mode */
 > 126		regval = readq(priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));

127 regval |= GTI_CWD_WDOG_MODE_INT_DEL3T_RST;
128 writeq(regval, priv->base + GTI_CWD_WDOG(priv->wdt_timer_idx));
129
130 return 0;
131 }
132

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
#4 lore raw
In reply to Bharat Bhushan
Quoted 19 lines · Bharat Bhushan

Add binding documentation for the Marvell GTI system watchdog driver.

---
v7:
- Corrected compatible to have soc name
- Converted marvell,wdt-timer-index to optional

 .../watchdog/marvell,octeontx2-wdt.yaml       | 80 +++++++++++++++++++
 1 file changed, 80 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +0 -0
new file mode 100644
index 000000000000..72951b10f1f3

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 10

Quoted 10 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +10 -0
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/watchdog/marvell,octeontx2-wdt.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Global Timer (GTI) system watchdog
+
+allOf:
+  - $ref: watchdog.yaml#

Put allOf after maintainers:.

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 18

Quoted 8 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +8 -0
+
+maintainers:
+  - Bharat Bhushan <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 23

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt

We don't allow wildcards in general

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 25

Quoted 2 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +2 -0
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt

Same question - why is this alone?

Second question - it should be rather part of enum with the first one if accepted.

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +4 -0
+      - items:
+          - enum:
+              - marvell,cn10kx-wdt
+              - marvell,cnf10kx-wdt

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 39

Quoted 10 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +10 -0
+          - const: marvell,cn10k-wdt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1

maxItems instead. You see it is different than above properties?

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 42

Quoted 3 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +3 -0
+
+  clock-names:
+    minItems: 1

Need to define names.

Best regards,
Krzysztof

#5 lore raw
Quoted 63 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 9, 2023 12:23 PM
To: Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; Sunil Kovvuri Goutham <[email protected]>
Subject: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

External Email

----------------------------------------------------------------------

Quoted 24 lines · Bharat Bhushan

Add binding documentation for the Marvell GTI system watchdog driver.

---
v7:
- Corrected compatible to have soc name
- Converted marvell,wdt-timer-index to optional

 .../watchdog/marvell,octeontx2-wdt.yaml       | 80 +++++++++++++++++++
 1 file changed, 80 insertions(+)
 create mode 100644

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml

diff --git a/Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yam l b/Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yam l
new file mode 100644
index 000000000000..72951b10f1f3

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +1 -0
+++ .yaml

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt line 5

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +5 -0
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2
+---
+$id:
+https://urldefense.proofpoint.com/v2/url?u=http-3A__devicetree.org_sc
+hemas_watchdog_marvell-2Cocteontx2-2Dwdt.yaml-

23&d=DwICaQ&c=nKjWec2b6

Quoted 1 line

+R0mOyPaz7xtfQ&r=PAAlWswPe7d8gHlGbCLmy2YezyK7O3Hv_t2heGnouBw&m =4PmICMz

Quoted 1 line

+jaooxZnBaJszNihWBPjS99OeVsnJTSsOxNyAhC83AsKQuNVano9_YP2Oj&s=s1E00 h2dU

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +4 -0
+roSz4xdrUQMO3_19ren2IoeshKFZjDWKrw&e=
+$schema:
+https://urldefense.proofpoint.com/v2/url?u=http-3A__devicetree.org_me
+ta-2Dschemas_core.yaml-

23&d=DwICaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=PAAlWsw

Quoted 1 line

+Pe7d8gHlGbCLmy2YezyK7O3Hv_t2heGnouBw&m=4PmICMzjaooxZnBaJszNihW BPjS99O

Quoted 1 line

+eVsnJTSsOxNyAhC83AsKQuNVano9_YP2Oj&s=MFuqeS8S00OEgao3hV2RkzNGX 2p0Jycp

Quoted 8 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 6 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +6 -0
+nZo_sLygcbk&e=
+
+title: Marvell Global Timer (GTI) system watchdog
+
+allOf:
+  - $ref: watchdog.yaml#

Put allOf after maintainers:.

Ok

Quoted 12 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 9 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +8 -0
+
+maintainers:
+  - Bharat Bhushan <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Quoted 7 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt

We don't allow wildcards in general

Marvell have octeontx2 series of processor which have watchdog timer.
In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

Quoted 5 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 3 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +2 -0
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt

Same question - why is this alone?

Same here, Marvell have cn10k series of processors and cn10kx and cnf10kx are the processor in this series.

One of the difference between octeontx2 and cn10k series processor is number of timers available. Which within the available set of timers one of the timer is programmed to be watchdog timer.

Can you please propose how you want these compatible to be defined?

Quoted 19 lines

Second question - it should be rather part of enum with the first one if accepted.

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +4 -0
+      - items:
+          - enum:
+              - marvell,cn10kx-wdt
+              - marvell,cnf10kx-wdt

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 10 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +10 -0
+          - const: marvell,cn10k-wdt
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    minItems: 1

maxItems instead. You see it is different than above properties?

Okay,

Quoted 6 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt new file +3 -0
+
+  clock-names:
+    minItems: 1

Need to define names.

Okay,

Thanks
-Bharat

Quoted 3 lines

Best regards,
Krzysztof

#6 lore raw
Quoted 13 lines · Bharat Bhushan
Quoted 13 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 18

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +4 -0
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt
Quoted 4 lines
Quoted 1 line

We don't allow wildcards in general

Marvell have octeontx2 series of processor which have watchdog timer.
In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Quoted 7 lines
Quoted 6 lines

Review

Quoted 4 lines
(quoted diff) +2 -0
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt

Same question - why is this alone?

Same here, Marvell have cn10k series of processors and cn10kx and cnf10kx are the processor in this series.

I don't understand how does it explain my concern. This is alone because there are series of processors? How is that related?

Quoted 2 lines

One of the difference between octeontx2 and cn10k series processor is number of timers available. Which within the available set of timers one of the timer is programmed to be watchdog timer.

Wrap your replies. It's difficult to read.

Quoted 2 lines

Can you please propose how you want these compatible to be defined?

https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/devicetree/bindings/soc/qcom/qcom,eud.yaml#L19

Best regards,
Krzysztof

#7 lore raw
Quoted 28 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 9, 2023 1:38 PM
To: Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; Sunil Kovvuri Goutham <[email protected]>
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 13 lines · Bharat Bhushan
Quoted 13 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 18

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +4 -0
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

We don't allow wildcards in general

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Looks like 95xx data sheet is not public, will remove in that case.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
(quoted diff) +2 -0
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Same question - why is this alone?

Same here, Marvell have cn10k series of processors and cn10kx and cnf10kx are

the processor in this series.

I don't understand how does it explain my concern. This is alone because there are series of processors? How is that related?

Tried to make it look like other drivers. Let's keep it simple, we want to enable this only for below ones

properties:
compatible:
enum:
- marvell,cn10k-wdt
- marvell,octeontx2-wdt

Are you good with that?

Thanks
-Bharat

Quoted 22 lines
Quoted 3 lines

One of the difference between octeontx2 and cn10k series processor is

number of timers available. Which within the available set of timers one of the timer is programmed to be watchdog timer.

Wrap your replies. It's difficult to read.

Quoted 2 lines

Can you please propose how you want these compatible to be defined?

https://urldefense.proofpoint.com/v2/url?u=https-
3A__elixir.bootlin.com_linux_v6.4- 2Drc1_source_Documentation_devicetree_bindings_soc_qcom_qcom- 2Ceud.yaml- 23L19&d=DwICaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=PAAlWswPe7d8gHlGbCLmy 2YezyK7O3Hv_t2heGnouBw&m=sbDC9A17UO1l_M7xW5546TQhAMxoejy6M_sv PitOn_9sOxb0ru3H7X9eEW00Gqna&s=tQrCoVSHNEOd9CkEeu6leJbmP0rtbL5Vd WlE9GQ-GTI&e=

Best regards,
Krzysztof

#8 lore raw
Quoted 30 lines · Bharat Bhushan
Quoted 30 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 9, 2023 1:38 PM
To: Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; Sunil Kovvuri Goutham <[email protected]>
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 15 lines · Bharat Bhushan
Quoted 14 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 18

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +4 -0
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 23

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt

We don't allow wildcards in general

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Looks like 95xx data sheet is not public, will remove in that case.

We can talk about 96xx. Can you point me to the SoC named exactly like this? Hint: I checked it.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
(quoted diff) +2 -0
+          - const: marvell,octeontx2-wdt
+      - const: marvell,cn10k-wdt
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line

Same question - why is this alone?

Same here, Marvell have cn10k series of processors and cn10kx and cnf10kx are

the processor in this series.

I don't understand how does it explain my concern. This is alone because there are series of processors? How is that related?

Tried to make it look like other drivers. Let's keep it simple, we want to enable this only for below ones

Enable what? None of these explains why do you need this entry alone, since it is covered by list further.

Quoted 8 lines

properties:
compatible:
enum:
- marvell,cn10k-wdt
- marvell,octeontx2-wdt

Are you good with that?

Not sure, it sounds like it ignores our entire discussion. What's the name of the SoC? I see "OcteonTx2 CN9130", not "OcteonTx2". I linked your previously guide how to write bindings. Did you read it?

Best regards,
Krzysztof

#9 lore raw
Quoted 49 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 9, 2023 6:36 PM
To: Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; Sunil Kovvuri Goutham <[email protected]>
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 36 lines · Bharat Bhushan
Quoted 36 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 9, 2023 1:38 PM
To: Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; Sunil Kovvuri Goutham <[email protected]>
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 13 lines · Bharat Bhushan
Quoted 13 lines

Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml line 18

Quoted 4 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +4 -0
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,octeontx2-wdt

Why is this alone? Judging by the enum below, octeontx2 is not specific.

Quoted 5 lines
Documentation/devicetree/bindings/watchdog/marvell,octeontx2-wdt.yaml new file +5 -0
+      - items:
+          - enum:
+              - marvell,octeontx2-95xx-wdt
+              - marvell,octeontx2-96xx-wdt
+              - marvell,octeontx2-98xx-wdt
Quoted 5 lines
Quoted 1 line

We don't allow wildcards in general

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Looks like 95xx data sheet is not public, will remove in that case.

We can talk about 96xx. Can you point me to the SoC named exactly like this?
Hint: I checked it.

To recap what Bharat mentioned before along with references to individual processors. OcteonTx2 is a family of processors
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON TX2 DPUs"
CN96xx and CN98xx are two silicon variants in this family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-infrastructure-processors-octeon-tx2-cn92xx-cn96xx-cn98xx-product-brief-2020-02.pdf
And CNF95xx is another silicon variant in the same family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-infrastructure-processors-octeon-fusion-cnf95xx-product-brief.pdf

Since the HW block is same in all the variants of silicons in this family, we would like to use a generic string instead of different compatible string for each one. ie
- const: marvell,octeontx2-wdt
Hope this is okay.

Same with CN10K or Octeon10 family of silicons.
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON 10"

CN103xx and CN106xx are two silicons in this family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-octeon-10-dpu-platform-product-brief.pdf
Same with CNF105xx
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-octeon-10-fusion-cnf105xx-product-brief.pdf

For this family we would like to use
- const: marvell,cn10k-wdt
as the compatible string, as it represents all silicon variants in this family.

Thanks,
Sunil.

#10 lore raw
Quoted 13 lines · Sunil Kovvuri Goutham
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Looks like 95xx data sheet is not public, will remove in that case.

We can talk about 96xx. Can you point me to the SoC named exactly like this?
Hint: I checked it.

Quoted 6 lines

To recap what Bharat mentioned before along with references to individual processors. OcteonTx2 is a family of processors
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON TX2 DPUs"
CN96xx and CN98xx are two silicon variants in this family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-infrastructure-processors-octeon-tx2-cn92xx-cn96xx-cn98xx-product-brief-2020-02.pdf

This is a product brief which further suggests CN96xx is a family (or sub-family).

"xx" is pretty often used as family, not as product. Otherwise how one product CN92XX can come with 12-18 cores *in the same time*?

https://www.marvell.com/company/newsroom/marvell-announces-octeon-tx2-family-of-multi-core-infrastructure-processors.html
"Marvell’s CN91xx, CN92xx, CN96xx, and CN98xx processor families include:"

https://www.marvell.com/products/data-processing-units.html

Quoted 2 lines

And CNF95xx is another silicon variant in the same family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embedded-processors/marvell-infrastructure-processors-octeon-fusion-cnf95xx-product-brief.pdf

Again, unspecific product brief. Your other briefs specify them clearer, e.g. CN9130, CN9131

Quoted 5 lines

Since the HW block is same in all the variants of silicons in this family, we would like to use a generic string instead of different compatible string for each one. ie
- const: marvell,octeontx2-wdt
Hope this is okay.

https://elixir.bootlin.com/linux/v6.1-rc1/source/Documentation/devicetree/bindings/writing-bindings.rst#L42

Quoted 6 lines

Same with CN10K or Octeon10 family of silicons.
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON 10"

CN103xx and CN106xx are two silicons in this family.

Are they? "Up to 8" cores, so how this can be one specific silicon? One customer buys CN10300 with 8 cores, second buys exactly the same CN10300 and has 4 cores?

You are mixing families and specific devices.

Best regards,
Krzysztof

#11 lore raw
Quoted 39 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 16, 2023 3:55 PM
To: Sunil Kovvuri Goutham <[email protected]>; Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; [email protected]; linux- [email protected]
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 8 lines · Sunil Kovvuri Goutham
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Looks like 95xx data sheet is not public, will remove in that case.

We can talk about 96xx. Can you point me to the SoC named exactly like this?
Hint: I checked it.

To recap what Bharat mentioned before along with references to individual

processors.

Quoted 7 lines

OcteonTx2 is a family of processors
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON TX2 DPUs"
CN96xx and CN98xx are two silicon variants in this family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embed
ded-processors/marvell-infrastructure-processors-octeon-tx2-cn92xx-cn9 6xx-cn98xx-product-brief-2020-02.pdf

Quoted 4 lines

This is a product brief which further suggests CN96xx is a family (or sub-family).

"xx" is pretty often used as family, not as product. Otherwise how one product CN92XX can come with 12-18 cores *in the same time*?

"xx" here suggests skews, some 92xx may have 18 cores and some may have few cores fused out resulting in 12cores.

Quoted 8 lines

https://www.marvell.com/company/newsroom/marvell-announces-octeon-
tx2-family-of-multi-core-infrastructure-processors.html "Marvell’s CN91xx, CN92xx, CN96xx, and CN98xx processor families include:"

https://www.marvell.com/products/data-processing-units.html

Quoted 7 lines
Quoted 4 lines

And CNF95xx is another silicon variant in the same family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embed
ded-processors/marvell-infrastructure-processors-octeon-fusion-cnf95xx -product-brief.pdf

Again, unspecific product brief. Your other briefs specify them clearer, e.g. CN9130, CN9131

Not sure what you are looking for in the product brief, I pointed to the link just to show proof of 95xx being an official product.

Quoted 22 lines
Quoted 7 lines

Since the HW block is same in all the variants of silicons in this family, we would like to use a generic string instead of different compatible string for each one. ie
- const: marvell,octeontx2-wdt
Hope this is okay.

https://urldefense.proofpoint.com/v2/url?u=https-
3A__elixir.bootlin.com_linux_v6.1- 2Drc1_source_Documentation_devicetree_bindings_writing-2Dbindings.rst- 23L42&d=DwIDaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=q3VKxXQKiboRw_F01ggTz HuhwawxR1P9_tMCN2FODU4&m=GGfz5QI8ldHRqao5OsrfuHZQso5LLNBeBxCZr Ai7Zow- qoKl_S1Yw90OWnSZ3FFx&s=kM0VFY1b15BYvp2EUapQjZ6Eb96aZ_yAE76EKCmA aEQ&e=

Quoted 5 lines

Same with CN10K or Octeon10 family of silicons.
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON 10"

Quoted 7 lines
Quoted 1 line

CN103xx and CN106xx are two silicons in this family.

Are they? "Up to 8" cores, so how this can be one specific silicon? One customer buys CN10300 with 8 cores, second buys exactly the same CN10300 and has 4 cores?

You are mixing families and specific devices.

I was making it simple to understand.

OcteonTx2 and Octeon10 (CN10K) are two generations of Octeon processors from Marvell. Within each generation there are multiple silicon variants.
Again for each variant there are multiple skews.

Since the watchdog hardware block functionality is same across all of above generations / variants / families / skews, is it okay to use below compatible strings ?

- const: marvell,octeontx2-wdt
- const: marvell,cn10k-wdt

Also this is the same naming we have been using in other drivers as well. drivers/net/ethernet/marvell/octeontx2 drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c

drivers/perf/marvell_cn10k_ddr_pmu.c

static const struct of_device_id cn10k_ddr_pmu_of_match[] = {
        { .compatible = "marvell,cn10k-ddr-pmu", },
        { },
};

Thanks,
Sunil.

#12 lore raw
Quoted 39 lines · Sunil Kovvuri Goutham
Quoted 39 lines

-----Original Message-----
From: Krzysztof Kozlowski <[email protected]>
Sent: Tuesday, May 16, 2023 3:55 PM
To: Sunil Kovvuri Goutham <[email protected]>; Bharat Bhushan <[email protected]>; [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]; [email protected]; linux- [email protected]
Subject: Re: [EXT] Re: [PATCH 1/2 v7] dt-bindings: watchdog: marvell GTI system watchdog driver

Quoted 8 lines · Sunil Kovvuri Goutham
Quoted 8 lines
Quoted 8 lines
Quoted 7 lines
Quoted 3 lines

Marvell have octeontx2 series of processor which have watchdog timer. In 95xx,98xx,96xx are the processors in octeontx2 series of processor. So

octeontx2-95xx is on soc, octeontx2-96xx is another and so on.

No, 95xx is not a processor. Otherwise please point me to exact product datasheet. Hint: I checked it.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

Looks like 95xx data sheet is not public, will remove in that case.

We can talk about 96xx. Can you point me to the SoC named exactly like this?
Hint: I checked it.

To recap what Bharat mentioned before along with references to individual

processors.

Quoted 7 lines

OcteonTx2 is a family of processors
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON TX2 DPUs"
CN96xx and CN98xx are two silicon variants in this family.
https://www.marvell.com/content/dam/marvell/en/public-collateral/embed
ded-processors/marvell-infrastructure-processors-octeon-tx2-cn92xx-cn9 6xx-cn98xx-product-brief-2020-02.pdf

Quoted 7 lines
Quoted 4 lines

This is a product brief which further suggests CN96xx is a family (or sub-family).

"xx" is pretty often used as family, not as product. Otherwise how one product CN92XX can come with 12-18 cores *in the same time*?

"xx" here suggests skews, some 92xx may have 18 cores and some may have few cores fused out resulting in 12cores.

Is the DTSI for them the same? IOW, 12-core and 18-core SoCs have exactly the same DTSI with all properties being the same, valid and not customized by firmware per skew? If we talk about ARM architecture, DTS expects CPUs there, so I really wonder how do you write one DTS which has in the same time 12 and 18 enabled CPUs. Remember - the same time and not changed by firmware.

Quoted 29 lines
Quoted 29 lines
Quoted 8 lines

Since the HW block is same in all the variants of silicons in this family, we would like to use a generic string instead of different compatible string for each one. ie
- const: marvell,octeontx2-wdt
Hope this is okay.

https://urldefense.proofpoint.com/v2/url?u=https-
3A__elixir.bootlin.com_linux_v6.1- 2Drc1_source_Documentation_devicetree_bindings_writing-2Dbindings.rst- 23L42&d=DwIDaQ&c=nKjWec2b6R0mOyPaz7xtfQ&r=q3VKxXQKiboRw_F01ggTz HuhwawxR1P9_tMCN2FODU4&m=GGfz5QI8ldHRqao5OsrfuHZQso5LLNBeBxCZr Ai7Zow- qoKl_S1Yw90OWnSZ3FFx&s=kM0VFY1b15BYvp2EUapQjZ6Eb96aZ_yAE76EKCmA aEQ&e=

Quoted 6 lines

Same with CN10K or Octeon10 family of silicons.
https://www.marvell.com/products/data-processing-units.html
Please check for "OCTEON 10"

CN103xx and CN106xx are two silicons in this family.

Are they? "Up to 8" cores, so how this can be one specific silicon? One customer buys CN10300 with 8 cores, second buys exactly the same CN10300 and has 4 cores?

Quoted 5 lines
Quoted 1 line

You are mixing families and specific devices.

I was making it simple to understand.

OcteonTx2 and Octeon10 (CN10K) are two generations of Octeon processors from Marvell.

I know. I don't think we talk about the same thing...

Quoted 5 lines

Within each generation there are multiple silicon variants. Again for each variant there are multiple skews.

Since the watchdog hardware block functionality is same across all of above generations / variants / families / skews, is it okay to use below compatible strings ?

You got the link which explains it.

We had this discussions for thousands times. Just a few references from bookmarks:

https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/
https://lore.kernel.org/all/[email protected]/

Explain me how is this different. Please do not repeat the same arguments as everywhere else, because we covered them.

Quoted 7 lines

- const: marvell,octeontx2-wdt
- const: marvell,cn10k-wdt

Also this is the same naming we have been using in other drivers as well. drivers/net/ethernet/marvell/octeontx2 drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c

Ah, the argument "others did it" or "in the past we did". If the approach is buggy, does it mean you should duplicate the same buggy approach to new bindings?

Best regards,
Krzysztof

#13 lore raw
In reply to Sunil Kovvuri Goutham
Quoted 9 lines · Sunil Kovvuri Goutham

Also this is the same naming we have been using in other drivers as well. drivers/net/ethernet/marvell/octeontx2 drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c

drivers/perf/marvell_cn10k_ddr_pmu.c

static const struct of_device_id cn10k_ddr_pmu_of_match[] = {
        { .compatible = "marvell,cn10k-ddr-pmu", },
        { },

BTW, I don't understand this part. We do not talk about fallback compatible, so what does it prove? Of course driver will look like that, but we established it some time ago, didn't we?

Best regards,
Krzysztof