Fix I2C addresses in TUI demo and device screen
demo.py: hotplug mock used [0x08, 0x50, 0x51, 0x61], corrected to [0x08, 0x10, 0x51] per hardware bus scan. 0x50 was never on the bus; 0x61 was speculative. device.py: known device map had 0x60 "BCM3440 tuner" and 0x61 "ISL6421 LNB controller" — neither appears on the SkyWalker-1 I2C bus. Replaced with 0x10 "Tuner / LNB controller" per confirmed scan.
This commit is contained in:
parent
33fe955834
commit
1df2be8a43
@ -602,14 +602,14 @@ class DemoDevice:
|
|||||||
def get_hotplug_status(self, reset: bool = False,
|
def get_hotplug_status(self, reset: bool = False,
|
||||||
force_scan: bool = False) -> dict:
|
force_scan: bool = False) -> dict:
|
||||||
"""Simulated I2C hot-plug detection."""
|
"""Simulated I2C hot-plug detection."""
|
||||||
# Standard SkyWalker-1 I2C devices: BCM4500 (0x08), EEPROM (0x50),
|
# Standard SkyWalker-1 I2C devices confirmed by bus scan (0xB4):
|
||||||
# tuner (0x61), LNB controller (0x08 shares)
|
# BCM4500 demod (0x08), tuner/LNB (0x10), EEPROM (0x51)
|
||||||
bitmap = bytearray(16)
|
bitmap = bytearray(16)
|
||||||
for addr in [0x08, 0x50, 0x51, 0x61]:
|
for addr in [0x08, 0x10, 0x51]:
|
||||||
bitmap[addr >> 3] |= (1 << (addr & 0x07))
|
bitmap[addr >> 3] |= (1 << (addr & 0x07))
|
||||||
current = bytes(bitmap)
|
current = bytes(bitmap)
|
||||||
previous = current # no changes in demo
|
previous = current # no changes in demo
|
||||||
addrs = [0x08, 0x50, 0x51, 0x61]
|
addrs = [0x08, 0x10, 0x51]
|
||||||
result = {
|
result = {
|
||||||
"current_bitmap": current,
|
"current_bitmap": current,
|
||||||
"previous_bitmap": previous,
|
"previous_bitmap": previous,
|
||||||
|
|||||||
@ -1163,9 +1163,8 @@ class DeviceScreen(Container):
|
|||||||
# Known device identification
|
# Known device identification
|
||||||
known = {
|
known = {
|
||||||
0x08: "BCM4500 demodulator",
|
0x08: "BCM4500 demodulator",
|
||||||
0x51: "Boot EEPROM (24Cxx)",
|
0x10: "Tuner / LNB controller",
|
||||||
0x60: "BCM3440 tuner",
|
0x51: "24Cxx EEPROM (config/serial)",
|
||||||
0x61: "ISL6421 LNB controller",
|
|
||||||
}
|
}
|
||||||
parts = []
|
parts = []
|
||||||
for addr in addresses:
|
for addr in addresses:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user