Skip to content

Commit

Permalink
Merge pull request #268 from mossmann/vidpid
Browse files Browse the repository at this point in the history
Update VID/PIDs
  • Loading branch information
mossmann authored Jul 4, 2024
2 parents 5053816 + 27069e9 commit 160f06d
Show file tree
Hide file tree
Showing 17 changed files with 63 additions and 56 deletions.
9 changes: 5 additions & 4 deletions contrib/54-luna-plugdev.rules
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
ATTR{idVendor}=="16d0", ATTR{idProduct}=="05a5", SYMLINK+="luna%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="16d0", ATTR{idProduct}=="0f3b", SYMLINK+="lunatarget%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1d50", ATTR{idProduct}=="615c", SYMLINK+="apollo%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1d50", ATTR{idProduct}=="615b", SYMLINK+="luna%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1209", ATTR{idProduct}=="0001", SYMLINK+="luna-test1-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1209", ATTR{idProduct}=="0002", SYMLINK+="luna-test2-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1209", ATTR{idProduct}=="0003", SYMLINK+="luna-test3-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1209", ATTR{idProduct}=="0004", SYMLINK+="luna-test4-%k", MODE="660", GROUP="plugdev"
ATTR{idVendor}=="1209", ATTR{idProduct}=="0005", SYMLINK+="luna-test5-%k", MODE="660", GROUP="plugdev"
10 changes: 5 additions & 5 deletions contrib/54-luna-uaccess.rules
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ATTR{idVendor}=="16d0", ATTR{idProduct}=="05a5", SYMLINK+="luna%k", TAG+="uaccess"
ATTR{idVendor}=="16d0", ATTR{idProduct}=="0f3b", SYMLINK+="lunatarget%k", TAG+="uaccess"

ATTR{idVendor}=="1d50", ATTR{idProduct}=="615c", SYMLINK+="apollo%k", TAG+="uaccess"
ATTR{idVendor}=="1d50", ATTR{idProduct}=="615b", SYMLINK+="luna%k", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0001", SYMLINK+="luna-test1-%k", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0002", SYMLINK+="luna-test2-%k", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0003", SYMLINK+="luna-test3-%k", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0004", SYMLINK+="luna-test4-%k", TAG+="uaccess"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="0005", SYMLINK+="luna-test5-%k", TAG+="uaccess"
4 changes: 2 additions & 2 deletions examples/usb/acm_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import Elaboratable, Module
Expand All @@ -23,7 +23,7 @@ def elaborate(self, platform):
# Create our USB-to-serial converter.
ulpi = platform.request(platform.default_usb_connection)
m.submodules.usb_serial = usb_serial = \
USBSerialDevice(bus=ulpi, idVendor=0x16d0, idProduct=0x0f3b)
USBSerialDevice(bus=ulpi, idVendor=0x1209, idProduct=0x0001)

m.d.comb += [
# Place the streams into a loopback configuration...
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/counter_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -39,8 +39,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Counter/Throughput Test"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/interrupt_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -37,8 +37,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Status interrupt mechanism"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/isochronous_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -38,8 +38,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Isochronous IN Test"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/loopback.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -36,8 +36,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "User IO streamer"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/simple_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -31,8 +31,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Test Device"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/stream_out_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -36,8 +36,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "User IO streamer"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/stress_test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

import os
Expand Down Expand Up @@ -127,8 +127,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Stress Test"
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/superspeed/simple_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import *
Expand Down Expand Up @@ -32,8 +32,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

# We're complying with the USB 3.2 standard.
d.bcdUSB = 3.2
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/superspeed/stream_in_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import *
Expand Down Expand Up @@ -34,8 +34,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

# We're complying with the USB 3.2 standard.
d.bcdUSB = 3.2
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/superspeed/vendor_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import *
Expand Down Expand Up @@ -105,8 +105,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

# We're complying with the USB 3.2 standard.
d.bcdUSB = 3.2
Expand Down
6 changes: 3 additions & 3 deletions examples/usb/vendor_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import Elaboratable, Module, Cat
Expand Down Expand Up @@ -81,8 +81,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Fancy USB-Controlled LEDs"
Expand Down
14 changes: 10 additions & 4 deletions luna/gateware/applets/speed_test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

from amaranth import *
from usb_protocol.emitters import DeviceDescriptorCollection, SuperSpeedDeviceDescriptorCollection

Expand All @@ -9,8 +15,8 @@

from apollo_fpga.gateware.advertiser import ApolloAdvertiser, ApolloAdvertiserRequestHandler

VENDOR_ID = 0x16d0
PRODUCT_ID = 0x0f3b
VENDOR_ID = 0x1209
PRODUCT_ID = 0x0001

BULK_ENDPOINT_NUMBER = 1

Expand Down Expand Up @@ -178,8 +184,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

# We're complying with the USB 3.2 standard.
d.bcdUSB = 3.2
Expand Down
8 changes: 4 additions & 4 deletions luna/gateware/usb/devices/ila.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# This file is part of LUNA.
#
# Copyright (c) 2020 Great Scott Gadgets <[email protected]>
# Copyright (c) 2020-2024 Great Scott Gadgets <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause

""" Pre-made gateware that implements an ILA connection serial. """
Expand Down Expand Up @@ -72,8 +72,8 @@ def create_descriptors(self):

# We'll need a device descriptor...
with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0x05a5
d.idVendor = 0x1209
d.idProduct = 0x0002

d.iManufacturer = "LUNA"
d.iProduct = "Integrated Logic Analyzer"
Expand Down Expand Up @@ -162,7 +162,7 @@ def __init__(self, *args, ila, delay=3, **kwargs):
time.sleep(delay)

# Create our USB connection the device
self._device = usb.core.find(idVendor=0x16d0, idProduct=0x5a5)
self._device = usb.core.find(idVendor=0x1209, idProduct=0x0002)


super().__init__(ila)
Expand Down
8 changes: 4 additions & 4 deletions tests/test_usb2_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ def provision_dut(self, dut):
self.descriptors = descriptors = DeviceDescriptorCollection()

with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Test Device"
Expand Down Expand Up @@ -163,8 +163,8 @@ def provision_dut(self, dut):
self.descriptors = descriptors = DeviceDescriptorCollection()

with descriptors.DeviceDescriptor() as d:
d.idVendor = 0x16d0
d.idProduct = 0xf3b
d.idVendor = 0x1209
d.idProduct = 0x0001

d.iManufacturer = "LUNA"
d.iProduct = "Test Device"
Expand Down

0 comments on commit 160f06d

Please sign in to comment.