Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1497211 > unrolled thread

[PATCH 0/3] Juniper prerequisites

Started byPantelis Antoniou <pantelis.antoniou@konsulko.com>
First post2016-10-07 17:20 +0200
Last post2016-10-07 17:30 +0200
Articles 5 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/3] Juniper prerequisites Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-07 17:20 +0200
    [PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry "jnx" Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-07 17:20 +0200
      Re: [PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry  "jnx" Rob Herring <robh@kernel.org> - 2016-10-10 19:20 +0200
    [PATCH 2/3] uapi: jnx: Export board types to user space Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-07 17:20 +0200
    [PATCH 3/3] jnx: Introduce board_ids.h Pantelis Antoniou <pantelis.antoniou@konsulko.com> - 2016-10-07 17:30 +0200

#1497211 — [PATCH 0/3] Juniper prerequisites

FromPantelis Antoniou <pantelis.antoniou@konsulko.com>
Date2016-10-07 17:20 +0200
Subject[PATCH 0/3] Juniper prerequisites
Message-ID<spF6h-2hj-15@gated-at.bofh.it>
This patchset contains prerequisites for a number of upcoming
Juniper Inc.'s patches for its PTX series of routers.

The first patch add the jnx vendor entry in the list of vendor-prefixes.
The second introduces a board types header file that userspace
requires for board identification, while the last introduces a
header file containing the known board IDs as of now.

Note that this is the first submission and we expect things to be
moved around as required.

This patchset is against mainline as of today: v4.8-9431-g3477d16

Guenter Roeck (1):
  uapi: jnx: Export board types to user space

JawaharBalaji Thirumalaisamy (1):
  Documentation: vendor-prefixes: Add DT vendor entry "jnx"

Rajat Jain (1):
  jnx: Introduce board_ids.h

 .../devicetree/bindings/vendor-prefixes.txt        |  1 +
 include/linux/jnx/board_ids.h                      | 31 ++++++++++++++++++
 include/uapi/linux/Kbuild                          |  1 +
 include/uapi/linux/jnx/Kbuild                      |  2 ++
 include/uapi/linux/jnx/jnx-subsys.h                | 38 ++++++++++++++++++++++
 5 files changed, 73 insertions(+)
 create mode 100644 include/linux/jnx/board_ids.h
 create mode 100644 include/uapi/linux/jnx/Kbuild
 create mode 100644 include/uapi/linux/jnx/jnx-subsys.h

-- 
1.9.1

[toc] | [next] | [standalone]


#1497212 — [PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry "jnx"

FromPantelis Antoniou <pantelis.antoniou@konsulko.com>
Date2016-10-07 17:20 +0200
Subject[PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry "jnx"
Message-ID<spF6i-2hj-37@gated-at.bofh.it>
In reply to#1497211
From: JawaharBalaji Thirumalaisamy <jawaharb@juniper.net>

Add a vendor-prefix for Juniper which is set to "jnx"

Signed-off-by: JawaharBalaji Thirumalaisamy <jawaharb@juniper.net>
Signed-off-by: Guenter Roeck <groeck@juniper.net>
[Ported from Juniper kernel]
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
 Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
index 77e985f..044dc36 100644
--- a/Documentation/devicetree/bindings/vendor-prefixes.txt
+++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
@@ -143,6 +143,7 @@ isil	Intersil
 issi	Integrated Silicon Solutions Inc.
 jdi	Japan Display Inc.
 jedec	JEDEC Solid State Technology Association
+jnx	Juniper Networks, Inc.
 karo	Ka-Ro electronics GmbH
 keithkoep	Keith & Koep GmbH
 keymile	Keymile GmbH
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1498438 — Re: [PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry "jnx"

FromRob Herring <robh@kernel.org>
Date2016-10-10 19:20 +0200
SubjectRe: [PATCH 1/3] Documentation: vendor-prefixes: Add DT vendor entry "jnx"
Message-ID<sqMp3-3Xs-11@gated-at.bofh.it>
In reply to#1497212
On Fri, Oct 07, 2016 at 06:15:23PM +0300, Pantelis Antoniou wrote:
> From: JawaharBalaji Thirumalaisamy <jawaharb@juniper.net>
> 
> Add a vendor-prefix for Juniper which is set to "jnx"
> 
> Signed-off-by: JawaharBalaji Thirumalaisamy <jawaharb@juniper.net>
> Signed-off-by: Guenter Roeck <groeck@juniper.net>
> [Ported from Juniper kernel]
> Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
> ---
>  Documentation/devicetree/bindings/vendor-prefixes.txt | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt
> index 77e985f..044dc36 100644
> --- a/Documentation/devicetree/bindings/vendor-prefixes.txt
> +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt
> @@ -143,6 +143,7 @@ isil	Intersil
>  issi	Integrated Silicon Solutions Inc.
>  jdi	Japan Display Inc.
>  jedec	JEDEC Solid State Technology Association
> +jnx	Juniper Networks, Inc.

Why not the ticker jnpr?

>  karo	Ka-Ro electronics GmbH
>  keithkoep	Keith & Koep GmbH
>  keymile	Keymile GmbH
> -- 
> 1.9.1
> 

[toc] | [prev] | [next] | [standalone]


#1497213 — [PATCH 2/3] uapi: jnx: Export board types to user space

FromPantelis Antoniou <pantelis.antoniou@konsulko.com>
Date2016-10-07 17:20 +0200
Subject[PATCH 2/3] uapi: jnx: Export board types to user space
Message-ID<spF6h-2hj-13@gated-at.bofh.it>
In reply to#1497211
From: Guenter Roeck <groeck@juniper.net>

Board type definitions are part of the kernel/user ABI and
thus need to be exported.

Signed-off-by: Guenter Roeck <groeck@juniper.net>
Signed-off-by: Mohammad Kamil <mkamil@juniper.net>
[Ported from Juniper kernel]
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
 include/uapi/linux/Kbuild           |  1 +
 include/uapi/linux/jnx/Kbuild       |  2 ++
 include/uapi/linux/jnx/jnx-subsys.h | 38 +++++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 include/uapi/linux/jnx/Kbuild
 create mode 100644 include/uapi/linux/jnx/jnx-subsys.h

diff --git a/include/uapi/linux/Kbuild b/include/uapi/linux/Kbuild
index d0352a9..3c83af1 100644
--- a/include/uapi/linux/Kbuild
+++ b/include/uapi/linux/Kbuild
@@ -8,6 +8,7 @@ header-y += hdlc/
 header-y += hsi/
 header-y += iio/
 header-y += isdn/
+header-y += jnx/
 header-y += mmc/
 header-y += nfsd/
 header-y += raid/
diff --git a/include/uapi/linux/jnx/Kbuild b/include/uapi/linux/jnx/Kbuild
new file mode 100644
index 0000000..bd1ddc6
--- /dev/null
+++ b/include/uapi/linux/jnx/Kbuild
@@ -0,0 +1,2 @@
+# UAPI Header export list
+header-y += jnx-subsys.h
diff --git a/include/uapi/linux/jnx/jnx-subsys.h b/include/uapi/linux/jnx/jnx-subsys.h
new file mode 100644
index 0000000..5bb9ea8
--- /dev/null
+++ b/include/uapi/linux/jnx/jnx-subsys.h
@@ -0,0 +1,38 @@
+/*
+ * Juniper board type definitions
+ *
+ * These definitions are needed by user-space applications.
+ *
+ * Copyright (C) 2012-2014 Juniper Networks. All rights reserved.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _UAPI_JNX_SUBSYS_H
+#define _UAPI_JNX_SUBSYS_H
+
+/*
+ * Juniper Board Type Definitions
+ */
+#define JNX_BOARD_TYPE_UNKNOWN	0
+#define JNX_BOARD_TYPE_RE	1
+#define JNX_BOARD_TYPE_FPC	2
+#define JNX_BOARD_TYPE_SPMB	3
+#define JNX_BOARD_TYPE_CB	4
+#define JNX_BOARD_TYPE_PS	5
+#define JNX_BOARD_TYPE_FAN	6
+#define JNX_BOARD_TYPE_FPM	7
+#define JNX_BOARD_TYPE_CG	8
+#define JNX_BOARD_TYPE_MIDPLANE	9
+#define JNX_BOARD_TYPE_PIC	10
+#define JNX_BOARD_TYPE_SIB	11
+
+#endif /* _UAPI_JNX_SUBSYS_H */
-- 
1.9.1

[toc] | [prev] | [next] | [standalone]


#1497226 — [PATCH 3/3] jnx: Introduce board_ids.h

FromPantelis Antoniou <pantelis.antoniou@konsulko.com>
Date2016-10-07 17:30 +0200
Subject[PATCH 3/3] jnx: Introduce board_ids.h
Message-ID<spFfY-2lv-41@gated-at.bofh.it>
In reply to#1497211
From: Rajat Jain <rajatjain@juniper.net>

Introduce header file to contain the Juniper Assembly IDs.

Signed-off-by: Mohammad Kamil <mkamil@juniper.net>
Signed-off-by: Rajat Jain <rajatjain@juniper.net>
Signed-off-by: Debjit Ghosh <dghosh@juniper.net>
Signed-off-by: Guenter Roeck <groeck@juniper.net>
[Ported from Juniper kernel]
Signed-off-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
---
 include/linux/jnx/board_ids.h | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 include/linux/jnx/board_ids.h

diff --git a/include/linux/jnx/board_ids.h b/include/linux/jnx/board_ids.h
new file mode 100644
index 0000000..74ce25a
--- /dev/null
+++ b/include/linux/jnx/board_ids.h
@@ -0,0 +1,31 @@
+/*
+ * Juniper Assembly ID(s) - for Juniper Boards
+ *
+ * Rajat Jain <rajatjain@juniper.net>
+ * Copyright (c) 2014 Juniper Networks
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; version 2 of the License.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+#ifndef __JNX_BOARD_IDS__
+#define __JNX_BOARD_IDS__
+
+#define JNX_ID_SNG_CB		0x09B3	/* Sangria Control Board */
+#define JNX_ID_SNG_PMB		0x09B7	/* Sangria CB/FPC PMB Board */
+#define JNX_ID_SNG_VDV_BASE_P2	0x09BC	/* Sangria Vaudville FPC Base P2 */
+#define JNX_ID_HENDRICKS_FPC_P2	0x0B9B	/* Hendricks FPC (new Serdes added) */
+#define JNX_ID_HENDRICKS_CB	0x0BA8  /* Hendricks Control Board */
+#define JNX_ID_GLD_2T_FPC	0x0BF9	/* Gladiator 2T FPC */
+#define JNX_ID_GLD_3T_FPC	0x0BFA	/* Gladiator 3T FPC */
+#define JNX_ID_POLARIS_RCB	0x0C09	/* Polaris RCB */
+#define JNX_ID_POLARIS_MLC	0x0C0A	/* Polaris Mono Line Card */
+#define JNX_ID_POLARIS_RCB_P2	0x0C51	/* Polaris RCB P2 */
+#define JNX_ID_OMEGA_RCB	0x0C6B	/* Omega RCB */
+
+#endif /* __JNX_BOARD_IDS__ */
-- 
1.9.1

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web