{ "_comment": "Board wiring data — the Autonomous equivalent of a Linux DTS / Android BoardConfig. Adding a board = one entry here, no code change. Loaded by board.py into typed BoardProfile structs. `match` = lowercased substrings tested against /proc/device-tree/model (first match wins, file order); keep them non-overlapping. `led.transport` = spi|pwm. `default_board` is used when the model is unknown/unreadable.", "default_board": "orangepi_sun60", "boards": { "raspberry_pi_5": { "match": ["pi 5"], "led": { "transport": "spi", "spi_bus": 0, "spi_device": 0 }, "button": { "chip": 0, "line": 17, "debounce_ns": 200000000 } }, "raspberry_pi_4": { "match": ["pi 4"], "led": { "transport": "pwm", "pwm_pin": 12 }, "button": { "chip": 0, "line": 17, "debounce_ns": 200000000 } }, "raspberry_pi_cm4": { "_comment": "Compute Module 4 — the device-tree model is 'Raspberry Pi Compute Module 4 Rev 1.1', which contains no 'pi 4' substring, so it needs its own matcher. Reachy Mini Wireless ships on this board. led/button values are inherited from raspberry_pi_4 (same BCM2711 pinout) and are UNVERIFIED: no CM4 device declares `light` or a GPIO button yet. Verify before wiring either on this board.", "match": ["compute module 4"], "led": { "transport": "pwm", "pwm_pin": 12 }, "button": { "chip": 0, "line": 17, "debounce_ns": 200000000 } }, "host": { "_comment": "Explicit HAL_BOARD=host for a computer controlling a network body. No device-tree matcher or local GPIO peripherals; led/button fields are unused loader placeholders. A device must declare this board explicitly.", "match": [], "led": { "transport": "spi", "spi_bus": 0, "spi_device": 0 }, "button": { "chip": 0, "line": 17, "debounce_ns": 200000000 } }, "sim": { "_comment": "Not hardware. The mock body (robots/sim) runs HAL on a laptop with no board under it: there is no /proc/device-tree/model, so this entry is selected by HAL_BOARD=sim and never by detection — its match string cannot occur on a real device. led/button values are placeholders the loader requires; nothing drives them.", "match": ["autonomous mock body (no hardware)"], "led": { "transport": "spi", "spi_bus": 0, "spi_device": 0 }, "button": { "chip": 0, "line": 17, "debounce_ns": 200000000 } }, "orangepi_sun60": { "match": ["sun60iw2"], "led": { "transport": "spi", "spi_bus": 3, "spi_device": 0 }, "button": { "chip": 1, "line": 9, "debounce_ns": 200000000 }, "touch": { "chip": 0, "lines": [96, 100] } } } }