summaryrefslogtreecommitdiff
path: root/meta-openbmc-mods/meta-common/recipes-phosphor/configuration/entity-manager/0004-Adding-MUX-and-Drives-present-in-HSBP-in-json-config.patch
blob: d686b3cffa5fd54255cb51209af611ae872ca960 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
From 95a1f9e5f65d35adc3cf8d3b3095d92b63c17f85 Mon Sep 17 00:00:00 2001
From: AKSHAY RAVEENDRAN K <akshay.raveendran.k@intel.com>
Date: Sun, 20 Jun 2021 18:22:34 +0000
Subject: [PATCH] Add MUX and Drives present in HSBP in json configuration

Added Mux addresses for all 3 HSBP configuration and the drive
names to be exposed via entity manager when the HSBP is connected

Added board instance to separate each HSBP board.

Tested:
After this addition, detected the MUXes in entity manager
tree as well as in /dev/i2c-mux location. Also able to detect
the drive address.

Change-Id: Ic07e3880cf5b6f8a47ee7b8f1f98e12042765da8
Signed-off-by: AKSHAY RAVEENDRAN K <akshay.raveendran.k@intel.com>

---
 configurations/F2U8X25 HSBP.json | 78 ++++++++++++++++++++++++++++++--
 1 file changed, 75 insertions(+), 3 deletions(-)

diff --git a/configurations/F2U8X25 HSBP.json b/configurations/F2U8X25 HSBP.json
index c6c7678..e2eedfa 100644
--- a/configurations/F2U8X25 HSBP.json	
+++ b/configurations/F2U8X25 HSBP.json	
@@ -7,6 +7,30 @@
                 "Name": "F2U8X25 HSBP1 FRU",
                 "Type": "EEPROM"
             },
+            {
+                "Address": "0x70",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_1",
+                    "Drive_2",
+                    "Drive_3",
+                    "Drive_4"
+                ],
+                "Name": "HSBP 1 Mux 1",
+                "Type": "PCA9546Mux"
+            },
+            {
+                "Address": "0x74",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_5",
+                    "Drive_6",
+                    "Drive_7",
+                    "Drive_8"
+                ],
+                "Name": "HSBP 1 Mux 2",
+                "Type": "PCA9546Mux"
+            },
             {
                 "Address": "0x48",
                 "Bus": "$bus",
@@ -40,7 +64,7 @@
                 "Type": "TMP75"
             }
         ],
-        "Name": "F2U8X25 HSBP",
+        "Name": "F2U8X25 HSBP 1",
         "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'F2U8X25PCIHSBP', 'ADDRESS': 80})",
         "Type": "Board",
         "xyz.openbmc_project.Inventory.Decorator.Asset": {
@@ -58,6 +82,30 @@
                 "Name": "F2U8X25 HSBP2 FRU",
                 "Type": "EEPROM"
             },
+            {
+                "Address": "0x73",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_9",
+                    "Drive_10",
+                    "Drive_11",
+                    "Drive_12"
+                ],
+                "Name": "HSBP 2 Mux 1",
+                "Type": "PCA9546Mux"
+            },
+            {
+                "Address": "0x77",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_13",
+                    "Drive_14",
+                    "Drive_15",
+                    "Drive_16"
+                ],
+                "Name": "HSBP 2 Mux 2",
+                "Type": "PCA9546Mux"
+            },
             {
                 "Address": "0x4B",
                 "Bus": "$bus",
@@ -91,7 +139,7 @@
                 "Type": "TMP75"
             }
         ],
-        "Name": "F2U8X25 HSBP",
+        "Name": "F2U8X25 HSBP 2",
         "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'F2U8X25PCIHSBP', 'ADDRESS': 83})",
         "Type": "Board",
         "xyz.openbmc_project.Inventory.Decorator.Asset": {
@@ -109,6 +157,30 @@
                 "Name": "F2U8X25 HSBP3 FRU",
                 "Type": "EEPROM"
             },
+            {
+                "Address": "0x72",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_17",
+                    "Drive_18",
+                    "Drive_19",
+                    "Drive_20"
+                ],
+                "Name": "HSBP 3 Mux 1",
+                "Type": "PCA9546Mux"
+            },
+            {
+                "Address": "0x76",
+                "Bus": "$bus",
+                "ChannelNames": [
+                    "Drive_21",
+                    "Drive_22",
+                    "Drive_23",
+                    "Drive_24"
+                ],
+                "Name": "HSBP 3 Mux 2",
+                "Type": "PCA9546Mux"
+            },
             {
                 "Address": "0x4A",
                 "Bus": "$bus",
@@ -142,7 +214,7 @@
                 "Type": "TMP75"
             }
         ],
-        "Name": "F2U8X25 HSBP",
+        "Name": "F2U8X25 HSBP 3",
         "Probe": "xyz.openbmc_project.FruDevice({'BOARD_PRODUCT_NAME': 'F2U8X25PCIHSBP', 'ADDRESS': 82})",
         "Type": "Board",
         "xyz.openbmc_project.Inventory.Decorator.Asset": {
-- 
2.17.1