Ken Van Hoeylandt 26c17986c6
GPIO refactored (#495)
* **Refactor**
  * GPIO subsystem moved to a descriptor-based model for per-pin ownership and runtime pin management; many platform drivers now acquire/release descriptors.
  * Device trees and drivers now use GPIO phandle-style pin specifications across all boards and all drivers.

* **Behavior**
  * Device list now encodes per-device status (ok/disabled); boot will skip disabled devices accordingly.

* **Deprecation**
  * Legacy GPIO HAL marked deprecated and replaced with descriptor-based interfaces.

* **Chores**
  * Bindings and platform configs updated to the new GPIO pin-spec format.
2026-02-11 20:34:54 +01:00

50 lines
743 B
Python

from dataclasses import dataclass
@dataclass
class DtsVersion:
version: str
@dataclass
class Device:
node_name: str
node_alias: str
status: str
properties: list
devices: list
@dataclass
class DeviceProperty:
name: str
type: str
value: object
@dataclass
class PropertyValue:
type: str
value: object
@dataclass
class IncludeC:
statement: str
@dataclass
class DefineC:
statement: str
@dataclass
class BindingProperty:
name: str
type: str
required: bool
description: str
default: object = None
@dataclass
class Binding:
filename: str
compatible: list[str]
description: str
properties: list[BindingProperty]
includes: list[str]
bus: str = None