aboutsummaryrefslogtreecommitdiff
path: root/hdata
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2018-01-12 15:56:22 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2018-01-14 22:38:55 -0600
commitff8b83c06c26a3f1a03be24269a7fd7dc4ec8026 (patch)
treed5fc4bd3b4349f3855fb64a0de0ad7d737dd3a61 /hdata
parent5e66cc3a347d706eb4bce6a460b44271132e6399 (diff)
downloadskiboot-ff8b83c06c26a3f1a03be24269a7fd7dc4ec8026.zip
skiboot-ff8b83c06c26a3f1a03be24269a7fd7dc4ec8026.tar.gz
skiboot-ff8b83c06c26a3f1a03be24269a7fd7dc4ec8026.tar.bz2
hdata/vpd: Fix DTC warnings
All the nodes under the vpd heirachy have a unit address (their SLCA index) but no reg properties. Add them and their size/address cells to squash the warnings. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r--hdata/test/p8-840-spira.dts89
-rw-r--r--hdata/test/p81-811.spira.dts113
-rw-r--r--hdata/vpd.c5
3 files changed, 207 insertions, 0 deletions
diff --git a/hdata/test/p8-840-spira.dts b/hdata/test/p8-840-spira.dts
index 8877b5f..a1c238f 100644
--- a/hdata/test/p8-840-spira.dts
+++ b/hdata/test/p8-840-spira.dts
@@ -577,6 +577,8 @@
vpd {
phandle = <0x2>;
compatible = "ibm,opal-v3-vpd";
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84b00052 0x54045653 0x59534452 0x6535953 0x54454d42 0x52025330 0x53450754 0x55303031 0x36335347 0x7202020 0x20202020 0x544d0838 0x3238362d 0x34314154 0x4e082020 0x20202020 0x20204d4e 0x7202020 0x20202020 0x49440220 0x20535506 0x4ac19 0x77064e4e 0x10202020 0x20202020 0x20202020 0x20202020 0x20524704 0xf0c00000 0x52420433 0x20202057 0x4e0c4330 0x35303736 0x30364237 0x30344656 0x20202020 0x20202020 0x20202020 0x20202020 0x20202020 0x20202020 0x20202020 0x20202020 0x20504603 0x78 0x0>;
ibm,loc-code = "U8286.41A.TU00163";
@@ -584,11 +586,17 @@
phandle = <0x3>;
ibm,loc-code = "U8286.41A.TU00163";
fru-type = [56 56];
+ reg = <0xa000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
enclosure@1e00 {
phandle = <0x5>;
ibm,loc-code = "U78C9.001.WZS0CWX";
fru-type = [45 56];
+ reg = <0x1e00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3031464e 0x7373459 0x34333434 0x504e0730 0x30453432 0x3431534e 0xc594c33 0x30554635 0x354e3030 0x36434304 0x32434435 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x74233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x435046 0x2000078 0x84440052 0x54045643 0x454e4452 0x6434543 0x20202053 0x4507575a 0x53304357 0x58544d08 0x20202020 0x20202020 0x46430837 0x3843392d 0x30303152 0x470400a0 0xb32c5242 0x4202020 0x20504603 0x78 0x0>;
fru-number = "74Y4344";
serial-number = "YL30UF55N006";
@@ -604,18 +612,27 @@
phandle = <0xd>;
ibm,loc-code = "U78C9.001.WZS0CWX-A1";
fru-type = [41 4d];
+ reg = <0x3a00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a01 {
phandle = <0xe>;
ibm,loc-code = "U78C9.001.WZS0CWX-A2";
fru-type = [41 4d];
+ reg = <0x3a01>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
backplane@800 {
phandle = <0x6>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1";
fru-type = [42 50];
+ reg = <0x800>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3031464e 0x7373459 0x34333434 0x504e0730 0x30453432 0x3431534e 0xc594c33 0x30554635 0x354e3030 0x36434304 0x32434435 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x74233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x435046 0x2000078 0x0>;
fru-number = "74Y4344";
serial-number = "YL30UF55N006";
@@ -631,6 +648,9 @@
phandle = <0x14>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C13";
fru-type = [41 56];
+ reg = <0x500>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84cc0052 0x54045649 0x4e494452 0x10414e43 0x484f5220 0x20202020 0x20202020 0x20434501 0x31565a02 0x3031464e 0x7303045 0x32313532 0x504e0730 0x30453231 0x3438534e 0xc594c31 0x30424733 0x3132314e 0x4a434304 0x35324632 0x50520881 0x300000 0x48 0x45043030 0x31304354 0x440b400 0x485702 0x14233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x4239 0x3c435331 0x58150757 0x4e705f53 0x50f139a0 0xbf7efeb7 0x44d314d 0xd7cd74f2 0x862d884d 0x327cb552 0x79809378 0xa24d333e 0x6aed1eb8 0x49dab34d 0x344e1745 0x9bf468e9 0xa1504603 0x78 0x0>;
fru-number = "00E2152";
serial-number = "YL10BG3121NJ";
@@ -647,6 +667,9 @@
phandle = <0x11>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C1";
fru-type = [42 58];
+ reg = <0x900>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84800052 0x54045649 0x4e494452 0x104e4154 0x49564520 0x492f4f20 0x43415244 0x20434501 0x31565a02 0x3031464e 0x7303045 0x31393630 0x504e0730 0x30453338 0x3039534e 0xc594c31 0x30554635 0x3537304c 0x39434304 0x32423042 0x48450430 0x30303143 0x540480b5 0x4857 0x2000142 0x33060000 0x0 0x42340100 0x42370c00 0x0 0x0 0x50 0x46010078 0x0>;
fru-number = "00E1960";
serial-number = "YL10UF5570L9";
@@ -662,18 +685,27 @@
phandle = <0x1f>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C1-T1";
fru-type = [43 53];
+ reg = <0x2a00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2900 {
phandle = <0x1d>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C1-T3";
fru-type = [43 55];
+ reg = <0x2900>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2901 {
phandle = <0x1e>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C1-T2";
fru-type = [43 55];
+ reg = <0x2901>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
@@ -681,18 +713,27 @@
phandle = <0x19>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T3";
fru-type = [48 4d];
+ reg = <0x2d00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
hmc-connector@2d01 {
phandle = <0x1a>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T4";
fru-type = [48 4d];
+ reg = <0x2d01>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
ms-dimm@d000 {
phandle = <0x1b>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C16";
fru-type = [4d 53];
+ reg = <0xd000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20313647 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3034464e 0x7343154 0x39353735 0x504e0734 0x31543935 0x3735534e 0xc594833 0x314d5333 0x41343031 0x31434304 0x33314530 0x50520849 0x0 0x1000053 0x5a073030 0x31363338 0x34484504 0x30303031 0x43540400 0x48 0x57020090 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "41T9575";
serial-number = "YH31MS3A4011";
@@ -712,6 +753,9 @@
phandle = <0x1c>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C18";
fru-type = [4d 53];
+ reg = <0xd002>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20313647 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3034464e 0x7343154 0x39353735 0x504e0734 0x31543935 0x3735534e 0xc594833 0x314d5533 0x41433143 0x50434304 0x33314530 0x50520849 0x0 0x1000053 0x5a073030 0x31363338 0x34484504 0x30303031 0x43540400 0x48 0x57020090 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "41T9575";
serial-number = "YH31MU3AC1CP";
@@ -731,6 +775,9 @@
phandle = <0x12>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C32";
fru-type = [50 46];
+ reg = <0x1000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 30 36 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 32 33 50 4e 07 30 30 46 58 37 34 38 53 4e 0c 59 41 31 39 33 32 30 36 33 35 36 32 43 43 04 35 34 45 31 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 30 01 44 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX523";
serial-number = "YA1932063562";
@@ -748,6 +795,9 @@
phandle = <0x13>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-C32";
fru-type = [50 46];
+ reg = <0x1001>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 30 36 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 32 33 50 4e 07 30 30 46 58 37 34 38 53 4e 0c 59 41 31 39 33 32 30 36 33 35 36 32 43 43 04 35 34 45 31 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 30 01 44 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX523";
serial-number = "YA1932063562";
@@ -765,24 +815,36 @@
phandle = <0x15>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T1";
fru-type = [43 55];
+ reg = <0x2902>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2903 {
phandle = <0x16>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T2";
fru-type = [43 55];
+ reg = <0x2903>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2904 {
phandle = <0x17>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T5";
fru-type = [43 55];
+ reg = <0x2904>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2905 {
phandle = <0x18>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1-T6";
fru-type = [43 55];
+ reg = <0x2905>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
@@ -790,30 +852,45 @@
phandle = <0x9>;
ibm,loc-code = "U78C9.001.WZS0CWX-P2";
fru-type = [44 42];
+ reg = <0x2400>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
dasd-backplane@2401 {
phandle = <0xa>;
ibm,loc-code = "U78C9.001.WZS0CWX-P2";
fru-type = [44 42];
+ reg = <0x2401>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
enclosure-fault-led@a300 {
phandle = <0x10>;
ibm,loc-code = "U78C9.001.WZS0CWX-D1";
fru-type = [45 46];
+ reg = <0xa300>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
enclosure-led@a200 {
phandle = <0xf>;
ibm,loc-code = "U78C9.001.WZS0CWX-D1";
fru-type = [45 49];
+ reg = <0xa200>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
op-panel@300 {
phandle = <0x8>;
ibm,loc-code = "U78C9.001.WZS0CWX-D1";
fru-type = [4f 50];
+ reg = <0x300>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84800052 0x54045649 0x4e494452 0x10434543 0x204f5020 0x50414e45 0x4c202020 0x20434501 0x31565a02 0x3032464e 0x7303045 0x31393636 0x504e0730 0x30453239 0x3532534e 0xc594c33 0x30554633 0x38453033 0x52434304 0x32423038 0x48450430 0x30303143 0x540480b5 0x4857 0x2000242 0x33060000 0x0 0x42340100 0x42370c00 0x0 0x0 0x50 0x46010078 0x0>;
fru-number = "00E1966";
serial-number = "YL30UF38E03R";
@@ -830,18 +907,27 @@
phandle = <0xb>;
ibm,loc-code = "U78C9.001.WZS0CWX-E3";
fru-type = [50 53];
+ reg = <0x3102>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
power-supply@3103 {
phandle = <0xc>;
ibm,loc-code = "U78C9.001.WZS0CWX-E4";
fru-type = [50 53];
+ reg = <0x3103>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
service-processor@200 {
phandle = <0x7>;
ibm,loc-code = "U78C9.001.WZS0CWX-P1";
fru-type = [53 50];
+ reg = <0x200>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3031464e 0x7373459 0x34333434 0x504e0730 0x30453432 0x3431534e 0xc594c33 0x30554635 0x354e3030 0x36434304 0x32434435 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x74233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x435046 0x2000078 0x84500052 0x54045652 0x31304452 0x10465350 0x20202020 0x20202020 0x20202020 0x20464704 0x564e5350 0x44430f42 0x44203230 0x31323032 0x32303038 0x3030464c 0x14503120 0x20202020 0x20202020 0x20202020 0x20202020 0x20504603 0x78 0x84400052 0x54045657 0x31304452 0x10465350 0x20565731 0x30202020 0x20202020 0x20474420 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "74Y4344";
serial-number = "YL30UF55N006";
@@ -859,6 +945,9 @@
phandle = <0x4>;
ibm,loc-code = "U8286.41A.TU00163";
fru-type = [53 56];
+ reg = <0x1c00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
};
diff --git a/hdata/test/p81-811.spira.dts b/hdata/test/p81-811.spira.dts
index 669b24e..e3224b0 100644
--- a/hdata/test/p81-811.spira.dts
+++ b/hdata/test/p81-811.spira.dts
@@ -1676,6 +1676,8 @@
vpd {
phandle = <0x2>;
compatible = "ibm,opal-v3-vpd";
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84b00052 0x54045653 0x59534452 0x6535953 0x54454d42 0x52025330 0x53450731 0x30313043 0x38415347 0x7202020 0x20202020 0x544d0838 0x3234372d 0x32324c54 0x4e082020 0x20202020 0x20204d4e 0x7202020 0x20202020 0x49440220 0x20535506 0x4ac1a 0x43544e4e 0x10202020 0x20202020 0x20202020 0x20202020 0x20524704 0xf0c00000 0x52420433 0x20202057 0x4e0c4330 0x35303736 0x30373830 0x44324656 0x20535638 0x31305f30 0x32390000 0x0 0x0 0x0 0x0 0x0 0x504603 0x78 0x0>;
ibm,loc-code = "U8247.22L.1010C8A";
@@ -1683,23 +1685,35 @@
phandle = <0x3>;
ibm,loc-code = "U8247.22L.1010C8A";
fru-type = [56 56];
+ reg = <0xa000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
enclosure-fault-led@a300 {
phandle = <0x7>;
ibm,loc-code = "U78CB.001.WZS00AL";
fru-type = [45 46];
+ reg = <0xa300>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
enclosure-led@a200 {
phandle = <0x6>;
ibm,loc-code = "U78CB.001.WZS00AL";
fru-type = [45 49];
+ reg = <0xa200>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
enclosure@1e00 {
phandle = <0x5>;
ibm,loc-code = "U78CB.001.WZS00AL";
fru-type = [45 56];
+ reg = <0x1e00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3032464e 0x7303045 0x32303232 0x504e0730 0x30453339 0x3937534e 0xc594c31 0x30554634 0x324c3031 0x33434304 0x32434436 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x44233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x425046 0x2000078 0x84440052 0x54045643 0x454e4452 0x6434543 0x20202053 0x4507575a 0x53303041 0x4c544d08 0x20202020 0x20202020 0x46430837 0x3843422d 0x30303152 0x47040000 0x5242 0x4202020 0x20504603 0x78 0x0>;
fru-number = "00E2022";
serial-number = "YL10UF42L013";
@@ -1715,42 +1729,63 @@
phandle = <0xf>;
ibm,loc-code = "U78CB.001.WZS00AL-A1";
fru-type = [41 4d];
+ reg = <0x3a00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a01 {
phandle = <0x10>;
ibm,loc-code = "U78CB.001.WZS00AL-A3";
fru-type = [41 4d];
+ reg = <0x3a01>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a02 {
phandle = <0x11>;
ibm,loc-code = "U78CB.001.WZS00AL-A4";
fru-type = [41 4d];
+ reg = <0x3a02>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a03 {
phandle = <0x12>;
ibm,loc-code = "U78CB.001.WZS00AL-A6";
fru-type = [41 4d];
+ reg = <0x3a03>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a04 {
phandle = <0x13>;
ibm,loc-code = "U78CB.001.WZS00AL-A2";
fru-type = [41 4d];
+ reg = <0x3a04>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
air-mover@3a05 {
phandle = <0x14>;
ibm,loc-code = "U78CB.001.WZS00AL-A5";
fru-type = [41 4d];
+ reg = <0x3a05>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
backplane@800 {
phandle = <0x8>;
ibm,loc-code = "U78CB.001.WZS00AL-P1";
fru-type = [42 50];
+ reg = <0x800>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3032464e 0x7303045 0x32303232 0x504e0730 0x30453339 0x3937534e 0xc594c31 0x30554634 0x324c3031 0x33434304 0x32434436 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x44233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x425046 0x2000078 0x0>;
fru-number = "00E2022";
serial-number = "YL10UF42L013";
@@ -1766,6 +1801,9 @@
phandle = <0x1a>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C13";
fru-type = [41 56];
+ reg = <0x500>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84cc0052 0x54045649 0x4e494452 0x10414e43 0x484f5220 0x20202020 0x20202020 0x20434501 0x31565a02 0x3031464e 0x7303045 0x33343237 0x504e0730 0x30453231 0x3438534e 0xc594c31 0x30313134 0x32523030 0x30434304 0x35323444 0x50520881 0x300000 0x48 0x45043030 0x31304354 0x440b400 0x485702 0x14233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x4239 0x3c435340 0x55110351 0xdd6da253 0x5049652f 0x45748f7b 0x44d31c5 0x31833edf 0x1e75724d 0x328d48c1 0xb4246b02 0xee4d3367 0xb454d848 0x9f3a254d 0x340dadc4 0x4124b5ed 0xd5504603 0x78 0x0>;
fru-number = "00E3427";
serial-number = "YL101142R000";
@@ -1782,6 +1820,9 @@
phandle = <0x15>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C1";
fru-type = [42 58];
+ reg = <0x900>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84800052 0x54045649 0x4e494452 0x104e4154 0x49564520 0x492f4f20 0x43415244 0x20434501 0x31565a02 0x3031464e 0x7303045 0x32313634 0x504e0730 0x30453338 0x3131534e 0xc594c31 0x30554634 0x324c3030 0x31434304 0x32423042 0x48450430 0x30303143 0x540480b5 0x4857 0x2000142 0x33060000 0x0 0x42340100 0x42370c00 0x0 0x0 0x50 0x46010078 0x0>;
fru-number = "00E2164";
serial-number = "YL10UF42L001";
@@ -1797,18 +1838,27 @@
phandle = <0x27>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C1-T1";
fru-type = [43 53];
+ reg = <0x2a00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2901 {
phandle = <0x25>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C1-T2";
fru-type = [43 55];
+ reg = <0x2901>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2904 {
phandle = <0x26>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C1-T3";
fru-type = [43 55];
+ reg = <0x2904>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
@@ -1816,18 +1866,27 @@
phandle = <0x1b>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T1 ";
fru-type = [43 45];
+ reg = <0x2800>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
ethernet-connector@2801 {
phandle = <0x1c>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T2 ";
fru-type = [43 45];
+ reg = <0x2801>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
ms-dimm@d000 {
phandle = <0x21>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C16";
fru-type = [4d 53];
+ reg = <0xd000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20333247 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3132464e 0x730304a 0x41363634 0x504e0730 0x304a4136 0x3634534e 0xc594831 0x304d5534 0x32443141 0x39434304 0x33314539 0x50520849 0x0 0x1000053 0x5a073030 0x33323736 0x38484504 0x30303031 0x43540400 0x48 0x57020100 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "00JA664";
serial-number = "YH10MU42D1A9";
@@ -1847,6 +1906,9 @@
phandle = <0x22>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C18";
fru-type = [4d 53];
+ reg = <0xd002>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20333247 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3132464e 0x730304a 0x41363634 0x504e0730 0x304a4136 0x3634534e 0xc594831 0x304d5534 0x32443141 0x36434304 0x33314539 0x50520849 0x0 0x1000053 0x5a073030 0x33323736 0x38484504 0x30303031 0x43540400 0x48 0x57020100 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "00JA664";
serial-number = "YH10MU42D1A6";
@@ -1866,6 +1928,9 @@
phandle = <0x23>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C24";
fru-type = [4d 53];
+ reg = <0xd008>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20333247 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3132464e 0x730304a 0x41363634 0x504e0730 0x304a4136 0x3634534e 0xc594831 0x304d5534 0x32433137 0x54434304 0x33314539 0x50520849 0x0 0x1000053 0x5a073030 0x33323736 0x38484504 0x30303031 0x43540400 0x48 0x57020100 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "00JA664";
serial-number = "YH10MU42C17T";
@@ -1885,6 +1950,9 @@
phandle = <0x24>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C26";
fru-type = [4d 53];
+ reg = <0xd00a>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84940052 0x54045649 0x4e494452 0x1049424d 0x20333247 0x42204d53 0x20202020 0x20434501 0x31565a02 0x3132464e 0x730304a 0x41363634 0x504e0730 0x304a4136 0x3634534e 0xc594831 0x304d5534 0x32433141 0x48434304 0x33314539 0x50520849 0x0 0x1000053 0x5a073030 0x33323736 0x38484504 0x30303031 0x43540400 0x48 0x57020100 0x42330600 0x0 0x423401 0x42370c 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "00JA664";
serial-number = "YH10MU42C1AH";
@@ -1904,6 +1972,9 @@
phandle = <0x16>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C32";
fru-type = [50 46];
+ reg = <0x1000>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 31 30 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 31 38 50 4e 07 30 30 46 58 37 34 30 53 4e 0c 59 41 31 39 33 32 30 39 36 39 35 31 43 43 04 35 34 45 38 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 50 01 22 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX518";
serial-number = "YA1932096951";
@@ -1921,6 +1992,9 @@
phandle = <0x17>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C32";
fru-type = [50 46];
+ reg = <0x1001>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 31 30 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 31 38 50 4e 07 30 30 46 58 37 34 30 53 4e 0c 59 41 31 39 33 32 30 39 36 39 35 31 43 43 04 35 34 45 38 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 50 01 22 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX518";
serial-number = "YA1932096951";
@@ -1938,6 +2012,9 @@
phandle = <0x18>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C33";
fru-type = [50 46];
+ reg = <0x1002>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 31 30 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 31 38 50 4e 07 30 30 46 58 37 34 30 53 4e 0c 59 41 31 39 33 32 30 39 36 39 35 30 43 43 04 35 34 45 38 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 50 01 22 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX518";
serial-number = "YA1932096950";
@@ -1955,6 +2032,9 @@
phandle = <0x19>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-C33";
fru-type = [50 46];
+ reg = <0x1003>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = [84 8c 00 52 54 04 56 49 4e 49 44 52 10 31 30 2d 57 41 59 20 50 52 4f 43 20 43 55 4f 44 46 4e 07 30 30 46 58 35 31 38 50 4e 07 30 30 46 58 37 34 30 53 4e 0c 59 41 31 39 33 32 30 39 36 39 35 30 43 43 04 35 34 45 38 48 45 04 30 30 30 31 43 54 04 00 00 00 00 48 57 02 00 01 42 33 06 00 00 00 00 00 00 42 34 01 00 42 37 0c 00 00 00 00 00 00 00 00 00 00 00 00 50 52 08 35 00 50 01 22 00 80 01 56 5a 02 30 31 43 45 01 31 50 46 02 00 00 78 00];
fru-number = "00FX518";
serial-number = "YA1932096950";
@@ -1972,24 +2052,36 @@
phandle = <0x1d>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T5";
fru-type = [43 55];
+ reg = <0x2900>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2902 {
phandle = <0x1e>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T6";
fru-type = [43 55];
+ reg = <0x2902>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2903 {
phandle = <0x1f>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T3";
fru-type = [43 55];
+ reg = <0x2903>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
usb-connector@2905 {
phandle = <0x20>;
ibm,loc-code = "U78CB.001.WZS00AL-P1-T4";
fru-type = [43 55];
+ reg = <0x2905>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
@@ -1997,18 +2089,27 @@
phandle = <0xb>;
ibm,loc-code = "U78CB.001.WZS00AL-P2";
fru-type = [44 42];
+ reg = <0x2400>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
dasd-backplane@2401 {
phandle = <0xc>;
ibm,loc-code = "U78CB.001.WZS00AL-P2";
fru-type = [44 42];
+ reg = <0x2401>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
op-panel@300 {
phandle = <0xa>;
ibm,loc-code = "U78CB.001.WZS00AL-D1";
fru-type = [4f 50];
+ reg = <0x300>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x84800052 0x54045649 0x4e494452 0x10434543 0x204f5020 0x50414e45 0x4c202020 0x20434501 0x31565a02 0x3032464e 0x7303045 0x31393636 0x504e0730 0x30453337 0x3730534e 0xc594c31 0x30554634 0x31383030 0x46434304 0x32423038 0x48450430 0x30303143 0x540480b5 0x4857 0x2000342 0x33060000 0x0 0x42340100 0x42370c00 0x0 0x0 0x50 0x46010078 0x0>;
fru-number = "00E1966";
serial-number = "YL10UF41800F";
@@ -2025,18 +2126,27 @@
phandle = <0xd>;
ibm,loc-code = "U78CB.001.WZS00AL-E1";
fru-type = [50 53];
+ reg = <0x3100>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
power-supply@3101 {
phandle = <0xe>;
ibm,loc-code = "U78CB.001.WZS00AL-E2";
fru-type = [50 53];
+ reg = <0x3101>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
service-processor@200 {
phandle = <0x9>;
ibm,loc-code = "U78CB.001.WZS00AL-P1";
fru-type = [53 50];
+ reg = <0x200>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
ibm,vpd = <0x848c0052 0x54045649 0x4e494452 0x10492f4f 0x20424143 0x4b504c41 0x4e452020 0x20434501 0x31565a02 0x3032464e 0x7303045 0x32303232 0x504e0730 0x30453339 0x3937534e 0xc594c31 0x30554634 0x324c3031 0x33434304 0x32434436 0x50520821 0x0 0x48 0x45043030 0x30324354 0x480f300 0x26485702 0x44233 0x6000000 0x142 0x34010042 0x370c0000 0x0 0x0 0x5046 0x2000078 0x841c0052 0x54044c58 0x5230565a 0x230314c 0x58083100 0x4010030 0x425046 0x2000078 0x84500052 0x54045652 0x31304452 0x10465350 0x20202020 0x20202020 0x20202020 0x20464704 0x564e5350 0x44430f42 0x44203230 0x31323038 0x32333038 0x3030464c 0x14503120 0x20202020 0x20202020 0x20202020 0x20202020 0x20504603 0x78 0x84400052 0x54045657 0x31304452 0x10465350 0x20565731 0x30202020 0x20202020 0x20474420 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x50460078 0x0>;
fru-number = "00E2022";
serial-number = "YL10UF42L013";
@@ -2054,6 +2164,9 @@
phandle = <0x4>;
ibm,loc-code = "U8247.22L.1010C8A";
fru-type = [53 56];
+ reg = <0x1c00>;
+ #size-cells = <0x0>;
+ #address-cells = <0x1>;
};
};
};
diff --git a/hdata/vpd.c b/hdata/vpd.c
index d114e6b..5562579 100644
--- a/hdata/vpd.c
+++ b/hdata/vpd.c
@@ -383,6 +383,8 @@ void dt_init_vpd_node(void)
dt_vpd = dt_new(dt_root, "vpd");
assert(dt_vpd);
dt_add_property_string(dt_vpd, "compatible", "ibm,opal-v3-vpd");
+ dt_add_property_cells(dt_vpd, "#size-cells", 0);
+ dt_add_property_cells(dt_vpd, "#address-cells", 1);
slca_hdr = get_hdif(&spira.ntuples.slca, SLCA_HDIF_SIG);
if (!slca_hdr) {
@@ -442,6 +444,9 @@ void dt_init_vpd_node(void)
slca_vpd_add_loc_code(node, be16_to_cpu(entry->my_index));
/* Add FRU label */
dt_add_property(node, "fru-type", entry->fru_id, 2);
+ dt_add_property_cells(node, "reg", addr);
+ dt_add_property_cells(node, "#size-cells", 0);
+ dt_add_property_cells(node, "#address-cells", 1);
next_entry:
/* Skip dups -- dups are contiguous */