Skip to content

Commit

Permalink
Fix Descriptor cluster XML to be aligned with spec. (#22508)
Browse files Browse the repository at this point in the history
Mainly fixing DeviceTypeList to be named right.

This adds a hack to chip-tool to keep the old device-list attribute name around
as something that can be read and subscribed to, for now.

Fixes #22506
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 4, 2022
1 parent fcc49ee commit 1250415
Show file tree
Hide file tree
Showing 145 changed files with 1,012 additions and 986 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,12 +390,12 @@ server cluster BinaryInputBasic = 15 {
}

server cluster Descriptor = 29 {
struct DeviceType {
struct DeviceTypeStruct {
devtype_id type = 0;
int16u revision = 1;
}

readonly attribute DeviceType deviceList[] = 0;
readonly attribute DeviceTypeStruct deviceTypeList[] = 0;
readonly attribute CLUSTER_ID serverList[] = 1;
readonly attribute CLUSTER_ID clientList[] = 2;
readonly attribute ENDPOINT_NO partsList[] = 3;
Expand Down Expand Up @@ -3878,7 +3878,7 @@ endpoint 0 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -4258,7 +4258,7 @@ endpoint 1 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -4796,7 +4796,7 @@ endpoint 2 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down
24 changes: 12 additions & 12 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -843,7 +843,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -859,7 +859,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -875,7 +875,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -10049,7 +10049,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -10065,7 +10065,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -10081,7 +10081,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -10097,7 +10097,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -21587,7 +21587,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -21603,7 +21603,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -21619,7 +21619,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -21635,7 +21635,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@ server cluster LevelControl = 8 {
}

server cluster Descriptor = 29 {
struct DeviceType {
struct DeviceTypeStruct {
devtype_id type = 0;
int16u revision = 1;
}

readonly attribute DeviceType deviceList[] = 0;
readonly attribute DeviceTypeStruct deviceTypeList[] = 0;
readonly attribute CLUSTER_ID serverList[] = 1;
readonly attribute CLUSTER_ID clientList[] = 2;
readonly attribute ENDPOINT_NO partsList[] = 3;
Expand Down Expand Up @@ -3269,7 +3269,7 @@ endpoint 0 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -3532,7 +3532,7 @@ endpoint 1 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -3889,7 +3889,7 @@ endpoint 2 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -827,7 +827,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -843,7 +843,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -859,7 +859,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -875,7 +875,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -9899,7 +9899,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -9915,7 +9915,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -9931,7 +9931,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -9947,7 +9947,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down Expand Up @@ -21379,7 +21379,7 @@
"enabled": 1,
"attributes": [
{
"name": "device list",
"name": "DeviceTypeList",
"code": 0,
"mfgCode": null,
"side": "server",
Expand All @@ -21395,7 +21395,7 @@
"reportableChange": 0
},
{
"name": "server list",
"name": "ServerList",
"code": 1,
"mfgCode": null,
"side": "server",
Expand All @@ -21411,7 +21411,7 @@
"reportableChange": 0
},
{
"name": "client list",
"name": "ClientList",
"code": 2,
"mfgCode": null,
"side": "server",
Expand All @@ -21427,7 +21427,7 @@
"reportableChange": 0
},
{
"name": "parts list",
"name": "PartsList",
"code": 3,
"mfgCode": null,
"side": "server",
Expand Down
10 changes: 5 additions & 5 deletions examples/bridge-app/bridge-common/bridge-app.matter
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,12 @@ server cluster LevelControl = 8 {
}

server cluster Descriptor = 29 {
struct DeviceType {
struct DeviceTypeStruct {
devtype_id type = 0;
int16u revision = 1;
}

readonly attribute DeviceType deviceList[] = 0;
readonly attribute DeviceTypeStruct deviceTypeList[] = 0;
readonly attribute CLUSTER_ID serverList[] = 1;
readonly attribute CLUSTER_ID clientList[] = 2;
readonly attribute ENDPOINT_NO partsList[] = 3;
Expand Down Expand Up @@ -1444,7 +1444,7 @@ endpoint 0 {
binding cluster AccessControl;

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -1744,7 +1744,7 @@ endpoint 1 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down Expand Up @@ -1795,7 +1795,7 @@ endpoint 2 {
}

server cluster Descriptor {
callback attribute deviceList;
callback attribute deviceTypeList;
callback attribute serverList;
callback attribute clientList;
callback attribute partsList;
Expand Down
Loading

0 comments on commit 1250415

Please sign in to comment.