Skip to content

Commit

Permalink
resource: udev: match more USB VIDs/PIDs for Rockchip BootROM mode
Browse files Browse the repository at this point in the history
The match list doesn't yet support the RK3399pro (2207:330c).
Add it along with the rest of the VID/PIDs listed in rkdeveloptool's
udev rule[1] as well as the VID/PID pairs for the newer RK3566
and RK3588[2].

[1]: https://github.com/rockchip-linux/rkdeveloptool/blob/master/99-rk-rockusb.rules
[2]: #1542 (comment)

Signed-off-by: Ahmad Fatoum <[email protected]>
  • Loading branch information
a3f committed Nov 12, 2024
1 parent 9906a1e commit 4aba887
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion labgrid/resource/udev.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,12 @@ class RKUSBLoader(USBResource):
def filter_match(self, device):
match = (device.properties.get('ID_VENDOR_ID'), device.properties.get('ID_MODEL_ID'))

if match not in [("2207", "110a")]:
if match not in [("2207", "110a"), ("2207", "301a"),
("2207", "310c"), ("2207", "320b"),
("2207", "320a"), ("2207", "320c"),
("2207", "330a"), ("2207", "330c"),
("2207", "350a"), ("2207", "350b")
]:
return False

return super().filter_match(device)
Expand Down

0 comments on commit 4aba887

Please sign in to comment.