That is a good point!Assuming you could have more than 1 of the same device on the bus,In previous bindings (https://lists.gt.net/linux/kernel/3403276 ) we+soundwire@c2d0000 {The normal way to distinguish instances is with 'reg'. So I think you
+ compatible = "qcom,soundwire-v1.5.0"
+ reg = <0x0c2d0000 0x2000>;
+
+ spkr_left:wsa8810-left{
+ compatible = "sdw0110217201000";
+ ...
+ };
+
+ spkr_right:wsa8810-right{
+ compatible = "sdw0120217201000";
need 'reg' with Instance ID moved there at least. Just guessing, but
perhaps Link ID, too? And for 2 different classes of device is that
enough?
did have instance-id as different property, however Pierre had some good
suggestion to make it align with _ADR encoding as per MIPI DisCo spec.
Do you still think that we should split the instance id to reg property?
then you need some way to distinguish them and the way that's done for
DT is unit-address/reg. And compatible strings should be constant for
each instance.
Rob