diff --git a/.github/tac-configuration-schema.json b/.github/tac-configuration-schema.json deleted file mode 100644 index 4f0d199..0000000 --- a/.github/tac-configuration-schema.json +++ /dev/null @@ -1,182 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "title": "TAC Platform Configuration", - "type": "object", - "required": [ - "platform_id", "platform_type", "name", "author", "description", - "fileVersion", "creation_date", "modification_date", - "reset_enabled", "script", "tabs", "buttons" - ], - "additionalProperties": false, - "properties": { - "platform_id": { "type": "integer", "minimum": 0 }, - "platform_type": { "type": "string", "enum": ["FTDI", "FT232H", "PSOC", "PIC32CXAuto"] }, - "name": { "type": "string", "minLength": 1 }, - "author": { "type": "string", "minLength": 1 }, - "description": { "type": "string" }, - "fileVersion": { "type": "integer", "minimum": 1 }, - "creation_date": { "type": "string", "minLength": 1 }, - "modification_date": { "type": "string", "minLength": 1 }, - "usb_descriptor": { "type": "string" }, - "reset_enabled": { "type": "boolean" }, - "form_dimension": { "type": "string" }, - "script": { "type": "string" }, - "tabs": { "$ref": "#/definitions/tabs" }, - "buttons": { "$ref": "#/definitions/buttons" }, - "variables": { "$ref": "#/definitions/variables" }, - "chip_count": { "type": "integer", "minimum": 1 }, - "pins": { "$ref": "#/definitions/pins" }, - "bus": { "$ref": "#/definitions/bus" }, - "supportedFirmwareVer": { "type": "array", "items": { "type": "integer", "minimum": 1 } } - }, - "if": { "properties": { "platform_type": { "enum": ["FTDI", "FT232H"] } } }, - "then": { "required": ["chip_count", "pins", "bus"] }, - "else": { - "if": { "properties": { "platform_type": { "const": "PSOC" } } }, - "then": { "required": ["pins", "supportedFirmwareVer"] }, - "else": { - "if": { "properties": { "platform_type": { "const": "PIC32CXAuto" } } }, - "then": { "required": ["pins"] } - } - }, - "definitions": { - "tabs": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "user_tab", "moveable", "visible", "configurable", "ordinal"], - "additionalProperties": false, - "properties": { - "name": { "type": "string", "minLength": 1 }, - "user_tab": { "type": "boolean" }, - "moveable": { "type": "boolean" }, - "visible": { "type": "boolean" }, - "configurable": { "type": "boolean" }, - "ordinal": { "type": "integer", "minimum": 0 } - } - } - }, - "buttons": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "command", "command_group", "cellLocation", "tab", "tooltip"], - "additionalProperties": false, - "properties": { - "name": { "type": "string" }, - "command": { "type": "string" }, - "command_group": { "type": "integer" }, - "cellLocation": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, - "tab": { "type": "string" }, - "tooltip": { "type": "string" } - } - } - }, - "variables": { - "type": "array", - "items": { - "type": "object", - "required": ["name", "label", "tooltip", "type", "default_value", "cellLocation"], - "additionalProperties": false, - "properties": { - "name": { "type": "string", "minLength": 1 }, - "label": { "type": "string" }, - "tooltip": { "type": "string" }, - "type": { "type": "integer" }, - "default_value": { "type": "string" }, - "cellLocation": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" } - } - } - }, - "pins": { - "type": "array", - "items": { - "oneOf": [ - { "$ref": "#/definitions/ftdi_pin" }, - { "$ref": "#/definitions/psoc_pin" }, - { "$ref": "#/definitions/pic32cx_pin" } - ] - } - }, - "ftdi_pin": { - "type": "object", - "required": [ - "chip_index", "bus", "pin_number", "enabled", "input", - "name", "help_hint", "initial_value", "priority", - "inverted", "command", "command_group", "run_priority", "group" - ], - "additionalProperties": false, - "properties": { - "chip_index": { "type": "integer", "minimum": 0 }, - "bus": { "type": "string", "enum": ["A", "B", "C", "D"] }, - "pin_number": { "type": "string" }, - "enabled": { "type": "boolean" }, - "input": { "type": "boolean" }, - "name": { "type": "string" }, - "help_hint": { "type": "string" }, - "initial_value": { "type": "boolean" }, - "priority": { "type": "integer" }, - "inverted": { "type": "boolean" }, - "command": { "type": "string" }, - "command_group": { "type": "integer" }, - "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, - "group": { "type": "string" } - } - }, - "psoc_pin": { - "type": "object", - "required": [ - "pin_number", "enabled", "initial_value", "initialization_priority", - "inverted", "name", "help_hint", "command", "command_group", - "classic_action", "run_priority", "tab_name" - ], - "additionalProperties": false, - "properties": { - "pin_number": { "type": "string" }, - "enabled": { "type": "boolean" }, - "initial_value": { "type": "boolean" }, - "initialization_priority": { "type": "integer" }, - "inverted": { "type": "boolean" }, - "name": { "type": "string" }, - "help_hint": { "type": "string" }, - "command": { "type": "string" }, - "command_group": { "type": "integer" }, - "classic_action": { "type": "string" }, - "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, - "tab_name": { "type": "string" } - } - }, - "pic32cx_pin": { - "type": "object", - "required": [ - "pin_number", "enabled", "inverted", "name", "help_hint", - "command", "command_group", "run_priority", "tab_name" - ], - "additionalProperties": false, - "properties": { - "pin_number": { "type": "integer", "minimum": 0 }, - "enabled": { "type": "boolean" }, - "inverted": { "type": "boolean" }, - "name": { "type": "string" }, - "help_hint": { "type": "string" }, - "command": { "type": "string" }, - "command_group": { "type": "integer" }, - "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, - "tab_name": { "type": "string" } - } - }, - "bus": { - "type": "array", - "items": { - "type": "object", - "required": ["bus", "bus_function", "chip_index"], - "additionalProperties": false, - "properties": { - "bus": { "type": "string", "enum": ["A", "B", "C", "D"] }, - "bus_function": { "type": "integer" }, - "chip_index": { "type": "integer", "minimum": 0 } - } - } - } - } -} diff --git a/.github/workflows/validate-configurations.yml b/.github/workflows/validate-configurations.yml index 6d73baa..b98dace 100644 --- a/.github/workflows/validate-configurations.yml +++ b/.github/workflows/validate-configurations.yml @@ -3,19 +3,25 @@ name: Validate TAC Configurations on: pull_request: branches: [main, develop, "feature/*"] - paths: ["configurations/**.tcnf"] + paths: ["configurations/**.tcnf", "configurations/**.pinout.json"] push: branches: [main, develop, "feature/*"] - paths: ["configurations/**.tcnf"] + paths: ["configurations/**.tcnf", "configurations/**.pinout.json"] jobs: validate: - name: Validate .tcnf files + name: Validate configuration files runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Validate configurations + - name: Install check-jsonschema + run: pip install check-jsonschema --quiet + + - name: Validate UI overlays (*.tcnf) + run: | + check-jsonschema --schemafile schemas/tac-configuration-schema.json configurations/*.tcnf + + - name: Validate hardware pinouts (*.pinout.json) run: | - pip install check-jsonschema --quiet - check-jsonschema --schemafile .github/tac-configuration-schema.json configurations/*.tcnf + check-jsonschema --schemafile schemas/pinout-1.0.json configurations/*.pinout.json diff --git a/.gitignore b/.gitignore index f8e3c62..437bfa5 100644 --- a/.gitignore +++ b/.gitignore @@ -32,4 +32,4 @@ ftd2xx.lib *.zip # BRF documents -*.xml \ No newline at end of file +*.xml diff --git a/README.md b/README.md index a3d12df..dcc0f0e 100644 --- a/README.md +++ b/README.md @@ -162,7 +162,7 @@ Execute `build.sh` to generate executables: | Directory | Content | | :-- | :-- | | `.github` | CI/CD build pipelines | -| `configurations` | Platform-specific pin configurations | +| `configurations` | Platform-specific pin configurations (shared `*.pinout.json` + UI `*.tcnf`) | | `docs` | Documentation and guides | | `examples` | Device-control automation scripts | | `interfaces` | APIs for C++, Python, C#, and Java | @@ -177,6 +177,7 @@ Execute `build.sh` to generate executables: - [Build Using Qt Creator](./docs/getting-started/01-Build-Using-Qt-Creator.md) - [Python API Guide](./docs/bootcamp/01-Bootcamp.md) +- [Configuration File Format](./docs/configuration-pinout-format.md) — the shared `*.pinout.json` hardware schema and `*.tcnf` UI overlay ## Support & Contributing diff --git a/configurations/TAC_FT232H_81.pinout.json b/configurations/TAC_FT232H_81.pinout.json new file mode 100644 index 0000000..13f4353 --- /dev/null +++ b/configurations/TAC_FT232H_81.pinout.json @@ -0,0 +1,197 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 1, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "Arduino Ventuno Q", + "format": "tac-pinout", + "name": "Arduino Ventuno Q", + "pins": [ + { + "bus": "C", + "chip_index": 0, + "command": "edl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + } + ], + "platform_id": 81, + "platform_type": "FT232H", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOff()\n\tlogComment ====== powerOff sequence start ======\n\tbattery 1\n\tlogComment ====== powerOff sequence finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn sequence start ======\n\tpowerOff\n\tdelay $pon\n\tedl 0\n\tbattery 0\n\tlogComment ====== powerOn sequence finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL sequence start ======\n\tpowerOff\n\tdelay $edl\n\tedl 1\n\tbattery 0\n\tlogComment ====== bootToEDL sequence finish ======", + "usb_descriptor": "VentunoQ BugHopper", + "variables": [ + { + "default_value": "100", + "name": "edl" + }, + { + "default_value": "100", + "name": "pon" + } + ] +} diff --git a/configurations/TAC_FT232H_81.tcnf b/configurations/TAC_FT232H_81.tcnf index 4b38021..70321c6 100644 --- a/configurations/TAC_FT232H_81.tcnf +++ b/configurations/TAC_FT232H_81.tcnf @@ -1,17 +1,5 @@ { "author": "Arkojit Sen , Biswajit Roy ", - "bus": [ - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 1, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "2,0", @@ -43,268 +31,219 @@ "fileVersion": 16, "modification_date": "Wed Apr 15 15:48:12 2026", "name": "Arduino Ventuno Q", + "pinout_ref": "TAC_FT232H_81.pinout.json", "pins": [ { - "bus": "C", - "chip_index": 0, - "command": "edl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot mode select. High = Normal boot, Low = USB / EDL boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "0", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Reset control", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "1", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disable power supply", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Disable", - "pin_number": "2", - "priority": 1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" } ], "platform_id": 81, "platform_type": "FT232H", - "reset_enabled": false, - "script": "def powerOff()\n\tlogComment ====== powerOff sequence start ======\n\tbattery 1\n\tlogComment ====== powerOff sequence finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn sequence start ======\n\tpowerOff\n\tdelay $pon\n\tedl 0\n\tbattery 0\n\tlogComment ====== powerOn sequence finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL sequence start ======\n\tpowerOff\n\tdelay $edl\n\tedl 1\n\tbattery 0\n\tlogComment ====== bootToEDL sequence finish ======", "tabs": [ { "configurable": true, @@ -331,11 +270,9 @@ "visible": true } ], - "usb_descriptor": "VentunoQ BugHopper", "variables": [ { "cellLocation": "0,0", - "default_value": "100", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -343,12 +280,10 @@ }, { "cellLocation": "1,0", - "default_value": "100", "label": "Power on delay (ms)", "name": "pon", "tooltip": "Configurable power on delay in milliseconds", "type": 1 } - ], - "chip_count": 1 + ] } diff --git a/configurations/TAC_FTDI_15.pinout.json b/configurations/TAC_FTDI_15.pinout.json new file mode 100644 index 0000000..3f217d8 --- /dev/null +++ b/configurations/TAC_FTDI_15.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "CSM - Lite", + "format": "tac-pinout", + "name": "CSM Lite", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "watchdog", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": true, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "sysreset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc3", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc5", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc6", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "lassenreset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "ddr", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 0 + } + ], + "platform_id": 15, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2000\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "usb_descriptor": "ALPACA-LITE CSM DEBUG BOARD", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_15.tcnf b/configurations/TAC_FTDI_15.tcnf index a15f67f..4fb2047 100644 --- a/configurations/TAC_FTDI_15.tcnf +++ b/configurations/TAC_FTDI_15.tcnf @@ -1,27 +1,5 @@ { "author": "kurtb", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "-1,-1", @@ -72,530 +50,432 @@ "tooltip": "Powers OFF the Device" } ], - "chip_count": 1, "creation_date": "Wed Feb 15 10:59:13 2023", "description": "CSM - Lite", "fileVersion": 1, "modification_date": "Wed Feb 15 17:10:24 2023", "name": "CSM Lite", + "pinout_ref": "TAC_FTDI_15.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Forces PS_HOLD high", - "initial_value": false, - "input": false, - "inverted": false, "name": "PS_HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": true, "group": "General", "help_hint": "OFF = PCIE EP device uses SHARED Clock; ON = PCIE EP device uses LOCAL Clock", - "initial_value": false, - "input": false, - "inverted": false, "name": "PCIE_SRIS_EN", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,5" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "watchdog", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 0; QDU_GPIO_116", - "initial_value": false, - "input": false, - "inverted": false, "name": "WatchDog Disable", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "ON = Power to system. OFF = Turns off power to system", - "initial_value": true, - "input": false, - "inverted": true, "name": "System Power", - "pin_number": "1", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 1 (FB_Sel 0); QDU_GPIO_119", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC_1 (FB_Sel 0)", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "sysreset", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(WAILUA_RESIN_N) Hard reset the entire system (complete reset of all PMICs)", - "initial_value": false, - "input": false, - "inverted": false, "name": "System RESET", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 2 (FB_Sel 1); QDU_GPIO_124", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC_2 (FB_Sel 1)", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Starts PON; Power on signal to Lassen’s PMIC (Wailua)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power On (PON)", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc3", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 3 (FB_Sel 2); QDU_GPIO_120", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC_3 (FB_Sel 2)", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enable the Embedded USB Debugger", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc5", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 5 (APPs PBL Boot Speed 0); QDU_GPIO_114", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC_5 (APPs PBL 0)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,4" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enables Emergency Download Mode (Force USB Boot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc6", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Boot Config 6 (APPs PBL Boot Speed 1); QDU_GPIO_127", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC_6 (APPs PBL 1)", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,5" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PON_RESET_N) Reset Lassen, without resetting the PMIC (soft/warm reset)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Lassen RESET", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 16, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2000\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -630,5 +510,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE CSM X100 DEBUG BOARD" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_18.pinout.json b/configurations/TAC_FTDI_18.pinout.json new file mode 100644 index 0000000..51768c9 --- /dev/null +++ b/configurations/TAC_FTDI_18.pinout.json @@ -0,0 +1,363 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "FTDI TAC for RIDE MX 4.0", + "format": "tac-pinout", + "name": "RIDE MX 4.0 Lite", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "s2_force_md_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_uefi", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "ms_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "uefi", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_force_classic", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pwr_off", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_md_resout", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_pmic_resin", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "md_resout", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pmic_resin", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_kpd_pwr", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "kpd_pwr", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_ss_force_edl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_eud_en", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "ss_force_edl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud_en", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_usb2_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_sw_dnld", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "sw_dnld", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_usb1_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "oe", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_force_ss_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_usb0_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sail_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + } + ], + "platform_id": 18, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOn()\n\tlogComment ====== on start ======\n\t\n\tpwr_off 0\n\n\tlogComment ====== on finish ======\n\n\ndef powerOff() \n\tlogComment ====== off start ======\n\n\tpwr_off 1\n\n\tlogComment ====== off finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\t\n\tsw_dnld 1\n\tss_force_edl 1\n\tpmic_resin 1\n\tdelay 1500\n\tpmic_resin 0\n\tdelay 1000\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\tsw_dnld 0\n\tss_force_edl 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\t\n\tpmic_resin 1\n\tdelay 1500\n\tpmic_resin 0\n\tdelay 1000\n\tkpd_pwr 0\n\tuefi 1\n\tsw_dnld 0\n\tkpd_pwr 1\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tkpd_pwr 0\n\tuefi 0\n\n\tlogComment ====== s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpmic_resin 1\n\tdelay 1500\n\tpmic_resin 0\n\tdelay 800\n\tpmic_resin 1\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tpmic_resin 0\n\n\tlogComment ====== s1_fastboot finish ======\n\n\ndef s1_reset()\n\tlogComment ====== s1_reset start ======\n\n\tpmic_resin 1\n\tdelay 1500\n\tpmic_resin 0\n\n\tlogComment ====== s1_reset end ======\n\n\ndef s2_reset()\n\tlogComment ====== s2_reset start ======\n\n\ts2_pmic_resin 1\n\tdelay 1500\n\ts2_pmic_resin 0\n\n\tlogComment ====== s2_reset end ======\n\n\ndef s2_md_sail_edl()\n\tlogComment ====== s2_md_sail_edl start ======\n\n\ts2_sw_dnld 1\n\ts2_ss_force_edl 1\n\ts2_pmic_resin 1\n\tdelay 1500\n\ts2_pmic_resin 0\n\tdelay 1000\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\ts2_sw_dnld 0\n\ts2_ss_force_edl 0\n\n\tlogComment ====== s2_md_sail_edl finish ======\n\n\ndef s2_uefi_sequence()\n\tlogComment ====== s2_uefi_sequence start ======\n\n\ts2_pmic_resin 1\n\tdelay 1500\n\ts2_pmic_resin 0\n\tdelay 1000\n\ts2_kpd_pwr 0\n\ts2_uefi 1\n\ts2_sw_dnld 0\n\ts2_kpd_pwr 1\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\ts2_kpd_pwr 0\n\ts2_uefi 0\n\n\tlogComment ====== s2_uefi_sequence finish ======\n\n\ndef s2_fastboot()\n\tlogComment ====== s2_fastboot start ======\n\n\ts2_pmic_resin 1\n\tdelay 1500\n\ts2_pmic_resin 0\n\tdelay 800\n\ts2_pmic_resin 1\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\ts2_pmic_resin 0\n\n\tlogComment ====== s2_fastboot finish ======\n\n\ndef s2_Hboot_EDL_HOLD()\n\tlogComment ====== s2_Hboot_EDL_HOLD start ======\n\n\ts2_sw_dnld 1\n\ts2_ss_force_edl 1\n\n\tlogComment ====== s2_Hboot_EDL_HOLD finish ======\n\n\ndef s2_Hboot_EDL_RELEASE()\n\tlogComment ====== s2_Hboot_EDL_RELEASE start ======\n\n\ts2_sw_dnld 0\n\ts2_ss_force_edl 0\n\n\tlogComment ====== s2_Hboot_EDL_RELEASE finish ======\n\n\ndef classic_mode_set()\n\tlogComment ====== classic_mode_set start ======\n\n\ts2_force_classic 1\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== classic_mode_set finish ======\n\n\ndef hboot_mode_set()\n\tlogComment ====== hboot_mode_set start ======\n\n\ts2_force_classic 0\n\n\tlogComment ====== hboot_mode_set finish ======", + "usb_descriptor": "RIDE MX 4.0 Lite", + "variables": [ + { + "default_value": "0", + "name": "Optional_GPIO_Hold_Time" + } + ] +} diff --git a/configurations/TAC_FTDI_18.tcnf b/configurations/TAC_FTDI_18.tcnf index 4e7de72..7c48364 100644 --- a/configurations/TAC_FTDI_18.tcnf +++ b/configurations/TAC_FTDI_18.tcnf @@ -1,27 +1,5 @@ { "author": "Derrick Ow , hguastaf ", - "bus": [ - { - "bus": "A", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "2,4", @@ -144,530 +122,432 @@ "tooltip": "De-Asserts the System Power Down GPIO, allowing the unit to power ON" } ], - "chip_count": 1, "creation_date": "Tue Nov 1 16:53:43 2022", "description": "FTDI TAC for RIDE MX 4.0", "fileVersion": 114, "modification_date": "Fri Oct 25 17:18:55 2024", "name": "RIDE MX 4.0 Lite", + "pinout_ref": "TAC_FTDI_18.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "s2_force_md_ps_hold", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Forces MD_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE MD PS HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_uefi", "command_group": 2, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Boots to UEFI", - "initial_value": false, - "input": false, - "inverted": false, "name": "UEFI", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "2,0" }, { - "bus": "C", - "chip_index": 0, - "command": "ms_ps_hold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces MD_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE MD PS HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "uefi", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC1 - Boots to UEFI", - "initial_value": false, - "input": false, - "inverted": false, "name": "UEFI", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_mode0", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - SAIL Mode 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,0" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_force_classic", "command_group": 2, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Forces to Classic", - "initial_value": false, - "input": false, - "inverted": false, "name": "CLASSIC", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "3,0" }, { - "bus": "C", - "chip_index": 0, - "command": "mode0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - SAIL Mode 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pwr_off", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Power Off/On", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR OFF", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_md_resout", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - MD_RESOUT", - "initial_value": false, - "input": false, - "inverted": false, "name": "RDY", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,2" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_pmic_resin", "command_group": 2, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Resets the Device", - "initial_value": false, - "input": false, - "inverted": false, "name": "RST", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "C", - "chip_index": 0, - "command": "md_resout", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - MD_RESOUT", - "initial_value": false, - "input": false, - "inverted": false, "name": "RDY", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "pmic_resin", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC1 - Resets the Device", - "initial_value": false, - "input": false, - "inverted": false, "name": "RST", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_mode1", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - SAIL Mode 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_kpd_pwr", "command_group": 2, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - PMA_KPD_PWR", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR ON", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "C", - "chip_index": 0, - "command": "mode1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - SAIL Mode 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "kpd_pwr", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC1 - PMA_KPD_PWR", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR ON", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_ss_force_edl", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Forces SS Emergency Download", - "initial_value": false, - "input": false, - "inverted": false, "name": "SS FORCE EDL", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,2" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_eud_en", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Enables Embedded USB Debug", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD EN", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "C", - "chip_index": 0, - "command": "ss_force_edl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces SS Emergency Download", - "initial_value": false, - "input": false, - "inverted": false, "name": "SS FORCE EDL", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "eud_en", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Enables Embedded USB Debug", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD EN", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_usb2_disc", "command_group": 1, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Disconnects USB2", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB2 DISC", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "2,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_sw_dnld", "command_group": 3, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Forces to USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW DNLD", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,3" }, { - "bus": "C", - "chip_index": 0, - "command": "usb2", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Disconnects USB2", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB2 DISC", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "2,1" }, { - "bus": "D", - "chip_index": 0, - "command": "sw_dnld", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces to USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW DNLD", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,3" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_usb1_disc", "command_group": 1, "enabled": true, "group": "SOC2", "help_hint": "SOC2 - Disconnects USB1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB1 DISC", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Secondary PM_RESIN_N in Fusion", - "initial_value": false, - "input": false, - "inverted": false, "name": "PM_RESIN_N_SEC in Fu", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 0, "enabled": true, "group": "General", "help_hint": "Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB0 Disable", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], "platform_id": 19, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef USBoff()\n\tlogComment ====== USBoff start ======\n\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== USBoff finished ======\n\ndef USBon()\n\tlogComment ====== USBon start ======\n\n\tusb0 0\n\tusb1 0\n\n\tlogComment ====== USBon finished ======", "tabs": [ { "configurable": true, @@ -630,11 +510,9 @@ "visible": true } ], - "usb_descriptor": "Hamoa Lite", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL Timing (ms)", "name": "edl", "tooltip": "Configurable EDL timing in ms", @@ -642,7 +520,6 @@ }, { "cellLocation": "1,0", - "default_value": "13000", "label": "UEFI Timing (ms)", "name": "uefi", "tooltip": "Configurable UEFI timing in ms", @@ -650,7 +527,6 @@ }, { "cellLocation": "0,1", - "default_value": "1000", "label": "Fastboot delay (ms)", "name": "fastboot", "tooltip": "Configurable fastboot delay", diff --git a/configurations/TAC_FTDI_20.pinout.json b/configurations/TAC_FTDI_20.pinout.json new file mode 100644 index 0000000..4197afd --- /dev/null +++ b/configurations/TAC_FTDI_20.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "FTDI-LITE SDX75 CPE", + "format": "tac-pinout", + "name": "SDX75 CPE", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 99 + } + ], + "platform_id": 20, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n//\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n//\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ======bootToUEFI start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n//\tdelay 12\n//\tpkey 1\n//\tvolup 1\n\n//\tpkey 0\n//\tvolup 0\n\n\tlogComment ====== bootToUEFIu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tdelay 300\n\tbattery 0\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n//\tpedl 0\n\n//\t powerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 5000\n\tvoldn 0\n// \tdelay 30\n//\tvoldn 1\n\n//\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "usb_descriptor": "ALPACA-LITE SDX75 CPE", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_20.tcnf b/configurations/TAC_FTDI_20.tcnf index 5cde7f2..e197845 100644 --- a/configurations/TAC_FTDI_20.tcnf +++ b/configurations/TAC_FTDI_20.tcnf @@ -1,27 +1,5 @@ { "author": "mpham, apham", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Wed Feb 8 15:39:33 2023", "description": "FTDI-LITE SDX75 CPE", "fileVersion": 27, "modification_date": "Fri Feb 24 18:02:44 2023", "name": "SDX75 CPE", + "pinout_ref": "TAC_FTDI_20.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "LE_BOOT_MODE/PU on MDM GPIO45", - "initial_value": false, - "input": false, - "inverted": false, "name": "LE Boot", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Power", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PMK_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Reset", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,4" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "FTDI_OUTPUT EN", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "tcready", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Checks MDM RESETOUT STATUS", - "initial_value": false, - "input": false, - "inverted": false, "name": "TC_READY", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB0(VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], "platform_id": 21, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -630,11 +510,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE IDP35", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -642,7 +520,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -650,7 +527,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_FTDI_22.pinout.json b/configurations/TAC_FTDI_22.pinout.json new file mode 100644 index 0000000..ced456c --- /dev/null +++ b/configurations/TAC_FTDI_22.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "FTDI-LITE SDX75 QMP", + "format": "tac-pinout", + "name": "SDX75 QMP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 22, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n//\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n//\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 12000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "usb_descriptor": "ALPACA-LITE SDX75 QMP", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_22.tcnf b/configurations/TAC_FTDI_22.tcnf index e0e785c..ca35199 100644 --- a/configurations/TAC_FTDI_22.tcnf +++ b/configurations/TAC_FTDI_22.tcnf @@ -1,27 +1,5 @@ { "author": "tnordqvi, khaykam", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -72,530 +50,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Wed Feb 8 15:39:33 2023", "description": "FTDI-LITE SDX75 QMP", "fileVersion": 1, "modification_date": "Thu Mar 16 14:06:26 2023", "name": "SDX75 QMP", + "pinout_ref": "TAC_FTDI_22.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "LE_BOOT_MODE/PU on MDM GPIO45", - "initial_value": false, - "input": false, - "inverted": false, "name": "LE Boot", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enables MODE0 pin", - "initial_value": false, - "input": false, - "inverted": false, "name": "SDX MODE0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Power", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PMK_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Reset", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enables MODE1 pin", - "initial_value": false, - "input": false, - "inverted": false, "name": "SDX MODE1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "4,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "5,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Fusion Secondary PM_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 23, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n//\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n//\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -606,5 +486,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE SDX75 M.2" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_25.pinout.json b/configurations/TAC_FTDI_25.pinout.json new file mode 100644 index 0000000..e69e9dc --- /dev/null +++ b/configurations/TAC_FTDI_25.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "ALPACA-LITE SDX35 M.2", + "format": "tac-pinout", + "name": "ALPACA-LITE SDX35 M.2", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "m2rst", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pciehb", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "tcready", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": -1 + } + ], + "platform_id": 25, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\tvoldn 0\n\tpedl 0\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\tpowerOnTheDevice\n\tdelay 800\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tdelay 1300\n\t\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tdelay 800\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\n\n", + "usb_descriptor": "ALPACA-LITE SDX35 M.2", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_25.tcnf b/configurations/TAC_FTDI_25.tcnf index dc6f27b..5b08fab 100644 --- a/configurations/TAC_FTDI_25.tcnf +++ b/configurations/TAC_FTDI_25.tcnf @@ -1,27 +1,5 @@ { "author": "Vikramaditya ", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "1,0", @@ -56,530 +34,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Wed Nov 23 16:16:03 2022", "description": "ALPACA-LITE SDX35 M.2", "fileVersion": 18, "modification_date": "Fri Feb 24 21:55:13 2023", "name": "ALPACA-LITE SDX35 M.2", + "pinout_ref": "TAC_FTDI_25.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "High means NAND-> USB, Low means NAND-> PCIe", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB_PCIE_SWITCH", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "System Power off (BUCK Enable)", - "initial_value": false, - "input": false, - "inverted": true, "name": "BATTERY", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 2, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "m2rst", "command_group": 2, "enabled": true, "group": "General", "help_hint": "M.2 Reset", - "initial_value": false, - "input": false, - "inverted": false, "name": "PM WARM RESET", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "2,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Volume Down/(PM_RESIN_N)/FCPO", - "initial_value": false, - "input": false, - "inverted": false, "name": "FCPO", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "2,2" }, { - "bus": "D", - "chip_index": 0, - "command": "pciehb", "command_group": 3, "enabled": true, "group": "General", "help_hint": "PCIE Host Bypass (Boot_Config 5)", - "initial_value": false, - "input": false, - "inverted": false, "name": "PCIE_HOST_BYPASS", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "3,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Forced USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE_USB_BOOT", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 3, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "3,1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 1, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "FTDI_OUTPUT EN", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "tcready", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Checks MDM RESETOUT STATUS", - "initial_value": false, - "input": false, - "inverted": false, "name": "TC_READY", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB0(VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], "platform_id": 26, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -630,5 +510,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE KUNO DEBUG BOARD" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_27.pinout.json b/configurations/TAC_FTDI_27.pinout.json new file mode 100644 index 0000000..e22c5d8 --- /dev/null +++ b/configurations/TAC_FTDI_27.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "Lanai FTDI debug board", + "format": "tac-pinout", + "name": "Lanai Debug", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 27, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "ALPACA-LITE LANAI DEBUG BOARD", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_27.tcnf b/configurations/TAC_FTDI_27.tcnf index a562854..9d73eb1 100644 --- a/configurations/TAC_FTDI_27.tcnf +++ b/configurations/TAC_FTDI_27.tcnf @@ -1,27 +1,5 @@ { "author": "Jong-Guk Im jongguki@qti.qualcomm.com", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -72,530 +50,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Tue Feb 28 18:16:55 2023", "description": "Lanai FTDI debug board", "fileVersion": 5, "modification_date": "Tue Nov 21 16:26:31 2023", "name": "Lanai Debug", + "pinout_ref": "TAC_FTDI_27.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,4" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "FTDI_OUTPUT EN", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "tcready", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Checks MDM RESETOUT STATUS", - "initial_value": false, - "input": false, - "inverted": false, "name": "TC_READY", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB0(VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], "platform_id": 28, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tdelay 7000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 7000\n\tdelay 4000\n\tpkey 0\n\n\tdelay 3000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -630,5 +510,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE CDPS35" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_29.pinout.json b/configurations/TAC_FTDI_29.pinout.json new file mode 100644 index 0000000..ac7d064 --- /dev/null +++ b/configurations/TAC_FTDI_29.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 1, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "ALPACA-LITE SWITCH CONTROL", + "format": "tac-pinout", + "name": "RF Switch Box", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "VC3", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "VC1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "VC2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + } + ], + "platform_id": 29, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tdelay 7000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 7000\n\tdelay 4000\n\tpkey 0\n\n\tdelay 3000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "usb_descriptor": "ALPACA-LITE SWITCH CONTROL", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_29.tcnf b/configurations/TAC_FTDI_29.tcnf index 14449c9..21964f7 100644 --- a/configurations/TAC_FTDI_29.tcnf +++ b/configurations/TAC_FTDI_29.tcnf @@ -1,553 +1,433 @@ { "author": "Isha Debnath ", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 1, - "chip_index": 0 - } - ], "buttons": [ ], - "chip_count": 1, "creation_date": "Wed Nov 23 16:16:03 2022", "description": "ALPACA-LITE SWITCH CONTROL", "fileVersion": 83, "modification_date": "Tue Jun 13 14:23:42 2023", "name": "RF Switch Box", + "pinout_ref": "TAC_FTDI_29.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "VC3", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Force SW_CTRL_VC3 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW_CTRL_VC3", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "VC1", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Force SW_CTRL_VC1 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW_CTRL_VC1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "VC2", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Force SW_CTRL_VC2 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW_CTRL_VC2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" } ], "platform_id": 29, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tdelay 7000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 7000\n\tdelay 4000\n\tpkey 0\n\n\tdelay 3000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -582,5 +462,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE SWITCH CONTROL" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_30.pinout.json b/configurations/TAC_FTDI_30.pinout.json new file mode 100644 index 0000000..694fbaf --- /dev/null +++ b/configurations/TAC_FTDI_30.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 1, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "Disable UART to collect BootKPI", + "format": "tac-pinout", + "name": "Qualcomm AIR 8775", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "MD_UART", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "SAIL_UART", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 30, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 1300\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 8000\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 8000\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", + "usb_descriptor": "ALPACA-LITE AIR 8775", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_30.tcnf b/configurations/TAC_FTDI_30.tcnf index 1d15706..d1780d4 100644 --- a/configurations/TAC_FTDI_30.tcnf +++ b/configurations/TAC_FTDI_30.tcnf @@ -1,27 +1,5 @@ { "author": "kmetukul, asholnu", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 1, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -72,530 +50,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Fri Jun 9 11:31:57 2023", "description": "Disable UART to collect BootKPI", "fileVersion": 6, "modification_date": "Wed Oct 23 11:40:26 2024", "name": "Qualcomm AIR 8775", + "pinout_ref": "TAC_FTDI_30.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "MD_UART", "command_group": 3, "enabled": true, "group": "General", "help_hint": "", - "initial_value": true, - "input": false, - "inverted": false, "name": "MD_UART", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "C", - "chip_index": 0, - "command": "SAIL_UART", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": true, - "input": false, - "inverted": false, "name": "SAIL_UART", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,4" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "tcready", "command_group": 1, "enabled": true, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC_WAKEUP", - "initial_value": false, - "input": false, - "inverted": false, "name": "SOC_WAKEUP", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "fake Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "WALL_ADAPTOR_DISC", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "Fusion", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 33, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -606,5 +486,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE QCX217" + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_36.pinout.json b/configurations/TAC_FTDI_36.pinout.json new file mode 100644 index 0000000..d2b8196 --- /dev/null +++ b/configurations/TAC_FTDI_36.pinout.json @@ -0,0 +1,371 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "XR TAC Config for Matrix v2", + "format": "tac-pinout", + "name": "XR TAC Config ", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "back", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "confirm", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "rcmkarker0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 36, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "ALPACA-LITE FOR XR V1", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "12000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_36.tcnf b/configurations/TAC_FTDI_36.tcnf index ee95f19..7af047e 100644 --- a/configurations/TAC_FTDI_36.tcnf +++ b/configurations/TAC_FTDI_36.tcnf @@ -1,27 +1,5 @@ { "author": "svprasad", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -72,530 +50,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Wed Apr 24 15:51:01 2024", "description": "XR TAC Config for Matrix v2", "fileVersion": 5, "modification_date": "Wed Apr 24 16:04:03 2024", "name": "XR TAC Config ", + "pinout_ref": "TAC_FTDI_36.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "back", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Trigger BACK Button", - "initial_value": false, - "input": false, - "inverted": false, "name": "BACK", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "confirm", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Trigger CONFIRM Button", - "initial_value": false, - "input": false, - "inverted": false, "name": "CONFIRM", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "rcmkarker0", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Set RCM Marker 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "RCM Marker 0", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": "Fusion Secondary PM_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 36, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", "tabs": [ { "configurable": true, @@ -630,11 +510,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE FOR XR V1", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -642,7 +520,6 @@ }, { "cellLocation": "1,0", - "default_value": "12000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -650,7 +527,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_FTDI_37.pinout.json b/configurations/TAC_FTDI_37.pinout.json new file mode 100644 index 0000000..2b1e738 --- /dev/null +++ b/configurations/TAC_FTDI_37.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "FTDI TAC for RIDE MICRO 4.0", + "format": "tac-pinout", + "name": "RIDE MICRO 4.0", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "s2_force_md_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_uefi", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "ms_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "uefi", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_force_classic", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pwr_off", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_md_resout", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_pmic_resin", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "md_resout", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pmic_resin", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_kpd_pwr", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "kpd_pwr", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_ss_force_edl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_eud_en", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "ss_force_edl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud_en", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_usb2_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_sw_dnld", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "sw_dnld", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_usb1_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "oe", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "s2_force_ss_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "s2_usb0_disc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sail_ps_hold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + } + ], + "platform_id": 37, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOn()\n\tlogComment ====== on start ======\n\t\n\tpwr_off 0\n\n\tlogComment ====== on finish ======\n\n\ndef powerOff() \n\tlogComment ====== off start ======\n\n\tpwr_off 1\n\n\tlogComment ====== off finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tsw_dnld 1\n\tss_force_edl 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tsw_dnld 0\n\tss_force_edl 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToSecondaryEDL()\n\tlogComment ====== s1_sail_edl start ======\n\n\tpowerOff\n\tss_force_edl 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tss_force_edl 0\n\n\tlogComment ====== s1_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset \n\tkpd_pwr 0\n\tuefi 1\n\tkpd_pwr 1\n\tdelay 8000\n\tkpd_pwr 0\n\tuefi 0\n\n\tlogComment ====== s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tdelay 1500\n\tusb2 1\n\tdelay 500\n\tpowerOn\n\tdelay 8000\n\tusb2 0\n\n\tlogComment ====== s1_fastboot finish ======\n\n\n\n", + "usb_descriptor": "RIDE MICRO 4.0", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_37.tcnf b/configurations/TAC_FTDI_37.tcnf index 5fa35ae..f34efea 100644 --- a/configurations/TAC_FTDI_37.tcnf +++ b/configurations/TAC_FTDI_37.tcnf @@ -1,27 +1,5 @@ { "author": "Haley Guastaferro , hguastaf", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "1,3", @@ -80,530 +58,432 @@ "tooltip": "Cycle Power to the Ride Micro" } ], - "chip_count": 1, "creation_date": "Fri Sept 1 16:53:43 2023", "description": "FTDI TAC for RIDE MICRO 4.0", "fileVersion": 7, "modification_date": "Mon Jan 29 14:25:03 2024", "name": "RIDE MICRO 4.0", + "pinout_ref": "TAC_FTDI_37.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "s2_force_md_ps_hold", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Forces MD_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE MD PS HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_uefi", "command_group": 2, "enabled": true, "group": "", "help_hint": "SOC2 - Boots to UEFI", - "initial_value": false, - "input": false, - "inverted": false, "name": "UEFI", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "2,0" }, { - "bus": "C", - "chip_index": 0, - "command": "ms_ps_hold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces MD_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE MD PS HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "uefi", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC1 - Boots to UEFI", - "initial_value": false, - "input": false, - "inverted": false, "name": "UEFI", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_mode0", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - SAIL Mode 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,0" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_force_classic", "command_group": 2, "enabled": true, "group": "", "help_hint": "SOC2 - Forces to Classic", - "initial_value": false, - "input": false, - "inverted": false, "name": "CLASSIC", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "3,0" }, { - "bus": "C", - "chip_index": 0, - "command": "mode0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - SAIL Mode 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pwr_off", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Power Off/On", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR OFF", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_md_resout", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - MD_RESOUT", - "initial_value": false, - "input": false, - "inverted": false, "name": "RDY", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,2" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_pmic_resin", "command_group": 2, "enabled": true, "group": "", "help_hint": "SOC2 - Resets the Device", - "initial_value": false, - "input": false, - "inverted": false, "name": "RST", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "C", - "chip_index": 0, - "command": "md_resout", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - MD_RESOUT", - "initial_value": false, - "input": false, - "inverted": false, "name": "RDY", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "pmic_resin", "command_group": 2, "enabled": false, "group": "General", "help_hint": "SOC1 - PMIC_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "PMIC_RESIN", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_mode1", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - SAIL Mode 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_kpd_pwr", "command_group": 2, "enabled": true, "group": "", "help_hint": "SOC2 - PMA_KPD_PWR", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR ON", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "C", - "chip_index": 0, - "command": "mode1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - SAIL Mode 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE 1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "kpd_pwr", "command_group": 2, "enabled": true, "group": "General", "help_hint": "SOC1 - PMA_KPD_PWR", - "initial_value": false, - "input": false, - "inverted": false, "name": "PMA_KPD_PWR", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_ss_force_edl", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Forces SS Emergency Download", - "initial_value": false, - "input": false, - "inverted": false, "name": "SS FORCE EDL", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,2" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_eud_en", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Enables Embedded USB Debug", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD EN", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "C", - "chip_index": 0, - "command": "ss_force_edl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces SS Emergency Download", - "initial_value": false, - "input": false, - "inverted": false, "name": "SS FORCE EDL", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud_en", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Enables Embedded USB Debug", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD EN", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,3" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_usb2_disc", "command_group": 1, "enabled": true, "group": "", "help_hint": "SOC2 - Disconnects USB2", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB2 DISC", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "2,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_sw_dnld", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Forces to USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "SW DNLD", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,3" }, { - "bus": "C", - "chip_index": 0, - "command": "usb2", "command_group": 1, "enabled": true, "group": "General", "help_hint": "MICRO Fastboot, Toggle MD GPIO 35, SAIL GPIO 5", - "initial_value": false, - "input": false, - "inverted": false, "name": "FASTBOOT GPIOs", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "2,1" }, { - "bus": "D", - "chip_index": 0, - "command": "sw_dnld", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces to USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "MD FORCE EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_usb1_disc", "command_group": 1, "enabled": true, "group": "", "help_hint": "SOC2 - Disconnects USB1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB1 DISC", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": true, "name": "", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Disconnects USB1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB1 DISC", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "oe", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enables cmds for Software Download and MD_RESOUT to SOC1 & SOC2", - "initial_value": true, - "input": false, - "inverted": false, "name": "TAC OE", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,4" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_force_ss_ps_hold", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Forces SS_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE SS PS HOLD", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_usb0_disc", "command_group": 1, "enabled": true, "group": "", "help_hint": "SOC2 - Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB0 DISC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "C", - "chip_index": 0, - "command": "sail_ps_hold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces SAIL_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE SS PS HOLD", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB0 DISC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], "platform_id": 39, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOn()\n\tlogComment ====== on start ======\n\t\n\tpwr_off 0\n\n\tlogComment ====== on finish ======\n\n\ndef powerOff() \n\tlogComment ====== off start ======\n\n\tpwr_off 1\n\n\tlogComment ====== off finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tsw_dnld 1\n\tss_force_edl 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tsw_dnld 0\n\tss_force_edl 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToSecondaryEDL()\n\tlogComment ====== s1_sail_edl start ======\n\n\tpowerOff\n\tss_force_edl 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tss_force_edl 0\n\n\tlogComment ====== s1_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset \n\tkpd_pwr 0\n\tuefi 1\n\tkpd_pwr 1\n\tdelay 8000\n\tkpd_pwr 0\n\tuefi 0\n\n\tlogComment ====== s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tdelay 1500\n\tusb2 1\n\tdelay 500\n\tpowerOn\n\tdelay 8000\n\tusb2 0\n\n\tlogComment ====== s1_fastboot finish ======\n\n\n\n", "tabs": [ { "configurable": true, @@ -638,6 +518,6 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE FOR RB8 IQ-9075-EVK", - "variables": [] + "variables": [ + ] } diff --git a/configurations/TAC_FTDI_40.pinout.json b/configurations/TAC_FTDI_40.pinout.json new file mode 100644 index 0000000..f26dcbf --- /dev/null +++ b/configurations/TAC_FTDI_40.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "KAANAPALI CDP with GG GPIOs", + "format": "tac-pinout", + "name": "KAANAPALI CDP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg3", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 40, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\t//usb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\t//usb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 3500\n\t//EUFI requires > 3sec delay between power/pkey\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "ALPACA-LITE KAANAPALI CDP", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_40.tcnf b/configurations/TAC_FTDI_40.tcnf index 8752076..8972c7f 100644 --- a/configurations/TAC_FTDI_40.tcnf +++ b/configurations/TAC_FTDI_40.tcnf @@ -1,27 +1,5 @@ { "author": "Trace Landreth tlandret@qti.qualcomm.com", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the CDP/Device" } ], - "chip_count": 1, "creation_date": "Tue Feb 28 18:16:55 2023", "description": "KAANAPALI CDP with GG GPIOs", "fileVersion": 79, "modification_date": "Tue Oct 22 10:53:05 2024", "name": "KAANAPALI CDP", + "pinout_ref": "TAC_FTDI_40.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "mode0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Mode 0 (or GG_GPIO_4)", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE0 / GG4", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,4" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery Power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "toggle MSM GPIO 185", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG2", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "mode1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Mode 1 (or GG_GPIO_5)", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE1 / GG5", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,3" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "PWR_KPD", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card (or GG_GPIO_3)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconn. SD Card/GG3", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "toggle MSM GPIO 184", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG1", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download (EDL) Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg3", "command_group": 3, "enabled": true, "group": "General", "help_hint": "toggle MSM GPIO 214", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG3", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "It is Keypad Power control", - "initial_value": false, - "input": false, - "inverted": false, "name": "KEYPAD_PWR", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "TESICMODE1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "When only TESIC Mode1, TESTC Mode2 buttons together are pressed and\nTESIC Mode0 button is not pressed, then MSM enters to Extended Debug Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "TESIC Mode 1", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "Disconnects VBUS 0/1/3/4/5", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB0/1/3/4/5 VBUS Disable", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "Allows disconnecting USB VBUS", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB0 VBUS Disable", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" } ], "platform_id": 45, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\tdelay $uefi\n\tpkey 1\n\tvolup 1\n\t\n\tdelay 4000\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef DisUSBVbus() \n\tlogComment ====== DisUSBVbus sequence start ======\n\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== DisUSBVbus sequence finish ======\n\ndef EnUSBVbus() \n\tlogComment ====== EnUSBVbus sequence start ======\n\n\tusb0 0\n\tusb1 0\n\n\tlogComment ====== EnUSBVbus sequence finish ======\n\ndef bootRCMToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpedl 1\n\tdelay 18000\n\tvoldn 1\n\tdelay $rcmedl\n\tpedl 0\n\tvoldn 0\n\n\tlogComment ====== bootRCMToEDL finish ======\n", "tabs": [ { "configurable": true, @@ -638,11 +518,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE SIP12 QCB8480X GLYMUR", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -650,7 +528,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -658,7 +535,6 @@ }, { "cellLocation": "1,1", - "default_value": "17000", "label": "RCM EDL Timing", "name": "rcmedl", "tooltip": "Configurable RCM EDL timi", @@ -666,7 +542,6 @@ }, { "cellLocation": "0,1", - "default_value": "500", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timi", diff --git a/configurations/TAC_FTDI_48.pinout.json b/configurations/TAC_FTDI_48.pinout.json new file mode 100644 index 0000000..5ace640 --- /dev/null +++ b/configurations/TAC_FTDI_48.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "MTP8850 FTDI IO", + "format": "tac-pinout", + "name": "Kaanapali MTP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 48, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToBatteryEDL()\n\tlogComment ====== bootToBatteryEDL start ======\n\t\n\tpedl 1 //set EDL high\n\tvoldn 1 //reset MTP after 115 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\t\n\t//reset buttons\n\tdelay 6000\n\tvoldn 0 \n\tpedl 0\n\n\tlogComment ====== bootToBatteryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\tdelay 1500 //requires at least 700ms for pd controller negotiation\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef batteryReset()\n\tlogComment ====== batteryReset ======\n\t\n\tpedl 0 //reset EDL\n\tvoldn 1 //reset MTP after 14 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0 //release voldn to stop MTP reset\n\n\tlogComment ====== batteryReset ======", + "usb_descriptor": "ALPACA-LITE MTP8850", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_48.tcnf b/configurations/TAC_FTDI_48.tcnf index ae7e3e9..cb892ee 100644 --- a/configurations/TAC_FTDI_48.tcnf +++ b/configurations/TAC_FTDI_48.tcnf @@ -1,27 +1,5 @@ { "author": "Mark Newman newman@qti.qualcomm.com", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -88,530 +66,432 @@ "tooltip": "REQUIRES 20 SECONDS" } ], - "chip_count": 1, "creation_date": "Tue Feb 28 18:16:55 2023", "description": "MTP8850 FTDI IO", "fileVersion": 52, "modification_date": "Thu Feb 20 10:37:32 2025", "name": "Kaanapali MTP", + "pinout_ref": "TAC_FTDI_48.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(for PM_RESIN_N, hold 20 sec)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) Held for fastboot", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 49, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", "tabs": [ { "configurable": true, @@ -622,11 +502,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE GLYMUR COB CDPS", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -634,7 +512,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -642,7 +519,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_FTDI_51.pinout.json b/configurations/TAC_FTDI_51.pinout.json new file mode 100644 index 0000000..8039e2f --- /dev/null +++ b/configurations/TAC_FTDI_51.pinout.json @@ -0,0 +1,371 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "ALPACA-LITE GLYMUR COB QCB", + "format": "tac-pinout", + "name": "Glymur CoB QCB", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb3456", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "2", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "phybatt", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "bc1high", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 51, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n usb3456 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n usb3456 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "ALPACA-LITE GLYMUR COB QCB", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_51.tcnf b/configurations/TAC_FTDI_51.tcnf index e9decfe..8f4f02b 100644 --- a/configurations/TAC_FTDI_51.tcnf +++ b/configurations/TAC_FTDI_51.tcnf @@ -1,27 +1,5 @@ { "author": "charanj", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Mon Jan 6 12:32:11 2025", "description": "ALPACA-LITE GLYMUR COB QCB", "fileVersion": 15, "modification_date": "Thu Jan 23 15:38:42 2025", "name": "Glymur CoB QCB", + "pinout_ref": "TAC_FTDI_51.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb3456", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB Type-A", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB3456(Type-A)", - "pin_number": "2", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "phybatt", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects Physical Battery", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect physical battery", - "pin_number": "3", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,5" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc1high", "command_group": 3, "enabled": true, "group": "General", "help_hint": "BC1 High", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC1 HIGH", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (Type-C)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb3456", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB Type-A", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB3456(Type-A)", - "pin_number": "2", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Connects Physical Battery", - "initial_value": true, - "input": false, - "inverted": false, "name": "Physical battery", - "pin_number": "3", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "bc1high", "command_group": 3, "enabled": true, "group": "General", "help_hint": "BC1 High", - "initial_value": false, - "input": false, - "inverted": false, "name": "BC1 HIGH", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (Type-C)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": " Fusion PM_RESIN_N_SEC", - "initial_value": false, - "input": false, - "inverted": false, "name": "PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 55, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", "tabs": [ { "configurable": true, @@ -630,11 +510,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE FOR AR V1", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timin", @@ -642,7 +520,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot ", @@ -650,7 +527,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timi", diff --git a/configurations/TAC_FTDI_56.pinout.json b/configurations/TAC_FTDI_56.pinout.json new file mode 100644 index 0000000..ba7c200 --- /dev/null +++ b/configurations/TAC_FTDI_56.pinout.json @@ -0,0 +1,371 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "MTP8845 FTDI IO", + "format": "tac-pinout", + "name": "Molokai MTP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold_low", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "TC_READY_N", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 56, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\tdelay 1500 //requires at least 700ms for pd controller negotiation\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======", + "usb_descriptor": "ALPACA-LITE MTP8845", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "6000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_56.tcnf b/configurations/TAC_FTDI_56.tcnf index 44c2509..f44cc8b 100644 --- a/configurations/TAC_FTDI_56.tcnf +++ b/configurations/TAC_FTDI_56.tcnf @@ -1,27 +1,5 @@ { "author": "Arjun Sahajpal sahajpal@qti.qualcomm.com", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Tue Feb 28 18:16:55 2023", "description": "MTP8845 FTDI IO", "fileVersion": 65, "modification_date": "Tue Jul 29 11:10:35 2025", "name": "Molokai MTP", + "pinout_ref": "TAC_FTDI_56.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(for PM_RESIN_N, hold 20 sec)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold_low", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to low", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD Low", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,3" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "Fusion", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 56, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\tdelay 1500 //requires at least 700ms for pd controller negotiation\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======", "tabs": [ { "configurable": true, @@ -622,11 +502,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE MTP8845", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timin", @@ -634,7 +512,6 @@ }, { "cellLocation": "1,0", - "default_value": "6000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot ", @@ -642,7 +519,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timi", diff --git a/configurations/TAC_FTDI_60.pinout.json b/configurations/TAC_FTDI_60.pinout.json new file mode 100644 index 0000000..c06bb50 --- /dev/null +++ b/configurations/TAC_FTDI_60.pinout.json @@ -0,0 +1,371 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "Glymur Battery Enabled Device", + "format": "tac-pinout", + "name": "Glymur Battery Enabled Device", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 0 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 0 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 0 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 0 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 0 + }, + { + "bus": "D", + "chip_index": 0, + "command": "TC_READY_N", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 0 + } + ], + "platform_id": 60, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def reset() \n\tlogComment ====== reset sequence start ======\n\t\n\tusb0 1\n\tusb1 1\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\tpedl 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\tpkey 1\n\tdelay $reset\n\tpkey 0\n\n\tlogComment ====== reset sequence finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\tusb0 1\n\tusb1 1\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\tpedl 1\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\t// Put buttons in a set state\n\tpkey 0\n\tpedl 0\n\tvolup 0\n\tdelay 900\n\n\tpkey 1\n\tdelay 900\n\tvolup 1\n\n\tdelay $uefi\n\t\n\tvolup 0\n\tdelay 900\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n", + "usb_descriptor": "ALPACA-LITE GLYMUR CRD BATTERY", + "variables": [ + { + "default_value": "17000", + "name": "edl" + }, + { + "default_value": "20000", + "name": "reset" + }, + { + "default_value": "20000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_60.tcnf b/configurations/TAC_FTDI_60.tcnf index cdcd571..5dc9486 100644 --- a/configurations/TAC_FTDI_60.tcnf +++ b/configurations/TAC_FTDI_60.tcnf @@ -1,27 +1,5 @@ { "author": "Arkojit Sen , Biswajit Roy ", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "1,1", @@ -48,531 +26,433 @@ "tooltip": "Resets the device" } ], - "chip_count": 1, "creation_date": "Fri Jul 11 14:27:09 2025", "description": "Glymur Battery Enabled Device", "fileVersion": 55, "form_dimension": "582,725", "modification_date": "Thu Jul 31 01:08:08 2025", "name": "Glymur Battery Enabled Device", + "pinout_ref": "TAC_FTDI_60.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": 0, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,5" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": 0, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": 0, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,4" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": 0, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 0, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "TC_READY_N", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": " Fusion PM_RESIN_N_SEC", - "initial_value": false, - "input": false, - "inverted": false, "name": "PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 63, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", "tabs": [ { "configurable": true, @@ -630,11 +510,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE FOR AR V1", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timin", @@ -642,7 +520,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot ", @@ -650,7 +527,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timi", diff --git a/configurations/TAC_FTDI_64.pinout.json b/configurations/TAC_FTDI_64.pinout.json new file mode 100644 index 0000000..18a3268 --- /dev/null +++ b/configurations/TAC_FTDI_64.pinout.json @@ -0,0 +1,371 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "FTDI-LITE SDX95 QMP", + "format": "tac-pinout", + "name": "SDX95 QMP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 99 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 64, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n//\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n//\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "usb_descriptor": "ALPACA-LITE SDX95 QMP", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_64.tcnf b/configurations/TAC_FTDI_64.tcnf index 6220a38..44ab89e 100644 --- a/configurations/TAC_FTDI_64.tcnf +++ b/configurations/TAC_FTDI_64.tcnf @@ -1,27 +1,5 @@ { "author": "tnordqvi, khaykam", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Wed Feb 8 15:39:33 2023", "description": "FTDI-LITE SDX95 QMP", "fileVersion": 8, "modification_date": "Fri Aug 22 18:23:00 2025", "name": "SDX95 QMP", + "pinout_ref": "TAC_FTDI_64.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "LE_BOOT_MODE/PU on MDM GPIO45", - "initial_value": false, - "input": false, - "inverted": false, "name": "LE Boot", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects UIM1", - "initial_value": false, - "input": false, - "inverted": false, "name": "UIM1 Disconnect", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Power", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PMK_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Reset", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects UIM2", - "initial_value": false, - "input": false, - "inverted": false, "name": "UIM2 Disconnect", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "4,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "5,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Fusion Secondary PM_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 65, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToBatteryEDL()\n\tlogComment ====== bootToBatteryEDL start ======\n\t\n\tpedl 1 //set EDL high\n\tvoldn 1 //reset MTP after 115 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\t\n\t//reset buttons\n\tdelay 6000\n\tvoldn 0 \n\tpedl 0\n\n\tlogComment ====== bootToBatteryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\tdelay 1500 //requires at least 700ms for pd controller negotiation\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef batteryReset()\n\tlogComment ====== batteryReset ======\n\t\n\tpedl 0 //reset EDL\n\tvoldn 1 //reset MTP after 14 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0 //release voldn to stop MTP reset\n\n\tlogComment ====== batteryReset ======", "tabs": [ { "configurable": true, @@ -648,11 +527,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE MTP8975", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -660,7 +537,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -668,7 +544,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_FTDI_67.pinout.json b/configurations/TAC_FTDI_67.pinout.json new file mode 100644 index 0000000..aa8606a --- /dev/null +++ b/configurations/TAC_FTDI_67.pinout.json @@ -0,0 +1,375 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "TDP535 Platform Config", + "format": "tac-pinout", + "name": "AmboseliAQ Lite", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "bc0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "bc8", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "bc9", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "TBD", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "emmc_boot", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc3", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "uim0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "emmc", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc5", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "esim", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc6", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "smuxs2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "isim_nvm", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "bc7", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "smuxs1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "tcready", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 67, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef powerCycle()\n\tlogComment ====== powerCycle sequence start ======\n\n\tpowerOff\n\tdelay $pcycle\n\tpowerOn\n\n\tlogComment ====== powerCycle sequence finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef enASM()\n\tlogComment ====== enASM start ======\n\t\n\tsmuxs1 1\n\tsmuxs2 1\n\t\n\tlogComment ====== enASM finished ======\n\ndef enS230()\n\tlogComment ====== enS230 start ======\n\t\n\tsmuxs1 0\n\tsumxs2 1\n\t\n\tlogComment ====== enS230 finished ======\n\ndef enIAM()\n\tlogComment ====== enIAM start ======\n\t\n\tsmuxs1 1\n\tsmuxs2 0\n\t\n\tlogComment ====== enIAM finished ======\n\ndef enS330()\n\tlogComment ====== enS330 start ======\n\t\n\tsmuxs1 0\n\tsmuxs2 0\n\t\n\tlogComment ====== enS330 finished ======", + "usb_descriptor": "ALPACA-LITE TDP535 BOARD", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "2000", + "name": "pcycle" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_67.tcnf b/configurations/TAC_FTDI_67.tcnf index e417af2..840a5db 100644 --- a/configurations/TAC_FTDI_67.tcnf +++ b/configurations/TAC_FTDI_67.tcnf @@ -1,27 +1,5 @@ { "author": "rpathapa", - "bus": [ - { - "bus": "A", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "1,2", @@ -112,531 +90,433 @@ "tooltip": "Powers off the TDP/Device" } ], - "chip_count": 1, "creation_date": "Mon Sep 8 15:40:22 2025", "description": "TDP535 Platform Config", "fileVersion": 120, "form_dimension": "923,725", "modification_date": "Mon Sep 8 15:40:22 2025", "name": "AmboseliAQ Lite", + "pinout_ref": "TAC_FTDI_67.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "bc0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 0 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 0", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "3,0" }, { - "bus": "B", - "chip_index": 0, - "command": "bc8", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 8 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 8", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "4,3" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "VOLUME_UP / LE_BOOT", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "bc1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 1 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "3,1" }, { - "bus": "B", - "chip_index": 0, - "command": "bc9", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 9 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 9", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "4,4" }, { - "bus": "C", - "chip_index": 0, - "command": "mode0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enable Mode 0", - "initial_value": false, - "input": false, - "inverted": false, "name": "Mode 0", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Power (12V / VPH)", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "bc2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 2 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 2", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "3,2" }, { - "bus": "B", - "chip_index": 0, - "command": "TBD", "command_group": 3, "enabled": false, "group": "General", "help_hint": "TBD", - "initial_value": false, - "input": false, - "inverted": false, "name": "TBD", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "3,2" }, { - "bus": "C", - "chip_index": 0, - "command": "emmc_boot", "command_group": 3, "enabled": false, "group": "General", "help_hint": "EMMC_BOOT", - "initial_value": false, - "input": false, - "inverted": false, "name": "EMMC_BOOT", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "VOLUME_DOWN / PMK_RESIN_N", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "bc3", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 3 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 3", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "3,3" }, { - "bus": "B", - "chip_index": 0, - "command": "uim0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnect UIM0", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM0", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,2" }, { - "bus": "C", - "chip_index": 0, - "command": "mode1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enable Mode 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Mode1", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "2,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "KEY PAD POWER", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnect UIM1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "1,3" }, { - "bus": "C", - "chip_index": 0, - "command": "emmc", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects eMMC", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect eMMC", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,4" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "bc5", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 5 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 5", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "4,0" }, { - "bus": "B", - "chip_index": 0, - "command": "esim", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enable eSIM", - "initial_value": false, - "input": false, - "inverted": false, "name": "eSIM", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnect SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Forced eMMC Sel / uSD Dis", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode/Forced USB Boot", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "bc6", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Boot Config 6 to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Boot Config 6", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "4,1" }, { - "bus": "B", - "chip_index": 0, - "command": "smuxs2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force Sensor Mux Sel 2 to low", - "initial_value": false, - "input": false, - "inverted": false, "name": "Sensor Mux Sel 2", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,3" }, { - "bus": "C", - "chip_index": 0, - "command": "isim_nvm", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enable iSIM NVM", - "initial_value": false, - "input": false, - "inverted": false, "name": "iSIM NVM", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": 99, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Fusion Secondary PM_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], "platform_id": 69, "platform_type": "FTDI", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n//\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n//\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tusbboot 1\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\tusbboot 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", "tabs": [ { "configurable": true, @@ -606,11 +486,9 @@ "visible": true } ], - "usb_descriptor": "ALPACA-LITE SDX95 M.2", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable", @@ -618,7 +496,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "Fasboot timing (ms)", "name": "fastboot", "tooltip": "Configurable", @@ -626,7 +503,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable", diff --git a/configurations/TAC_FTDI_70.pinout.json b/configurations/TAC_FTDI_70.pinout.json new file mode 100644 index 0000000..bb8c06a --- /dev/null +++ b/configurations/TAC_FTDI_70.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "ALPACA-LITE HAWI CDP", + "format": "tac-pinout", + "name": "Hawi CDP", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "mode1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "gg3", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "TC_READY_N", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sresn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 70, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\t//usb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\t//usb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 3500\n\t//EUFI requires > 3sec delay between power/pkey\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 2000\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "ALPACA-LITE HAWI CDP", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_70.tcnf b/configurations/TAC_FTDI_70.tcnf index 58a9d8a..25613ba 100644 --- a/configurations/TAC_FTDI_70.tcnf +++ b/configurations/TAC_FTDI_70.tcnf @@ -1,27 +1,5 @@ { "author": "trace landreth", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "0,1", @@ -64,530 +42,432 @@ "tooltip": "Powers off the MTP/Device" } ], - "chip_count": 1, "creation_date": "Thu Sep 25 13:06:42 2025", "description": "ALPACA-LITE HAWI CDP", "fileVersion": 15, "modification_date": "Thu Oct 23 15:21:39 2025", "name": "Hawi CDP", + "pinout_ref": "TAC_FTDI_70.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,3" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "mode0", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE0 / GG4", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "1,4" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": true, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg2", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG2", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,2" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "mode1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "MODE1 / GG5", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,3" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconn. SD Card/GG3", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,2" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg1", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG1", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "gg3", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "GG3", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,2" }, { - "bus": "D", - "chip_index": 0, - "command": "TC_READY_N", "command_group": 0, "enabled": true, "group": "", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Disconnects USB1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB1 DISC", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "oe", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Enables cmds for Software Download and MD_RESOUT to SOC1 & SOC2", - "initial_value": true, - "input": false, - "inverted": false, "name": "TAC OE", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "1,4" }, { - "bus": "A", - "chip_index": 0, - "command": "s2_force_ss_ps_hold", "command_group": 3, "enabled": true, "group": "", "help_hint": "SOC2 - Forces SS_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE SS PS HOLD", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "B", - "chip_index": 0, - "command": "s2_usb0_disc", "command_group": 1, "enabled": true, "group": "", "help_hint": "SOC2 - Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB0 DISC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "C", - "chip_index": 0, - "command": "sail_ps_hold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "SOC1 - Forces SAIL_PS_HOLD High", - "initial_value": false, - "input": false, - "inverted": false, "name": "FORCE SS PS HOLD", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "SOC1 - Disconnects USB0", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB0 DISC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" } ], + "platform_id": 71, + "platform_type": "FTDI", "tabs": [ { "configurable": true, "moveable": false, - "ordinal": 1, "name": "General", + "ordinal": 1, "user_tab": false, "visible": true }, { "configurable": false, "moveable": false, - "ordinal": 2, "name": "Device Info", + "ordinal": 2, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 3, "name": "I2C", + "ordinal": 3, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 4, "name": "Terminal", + "ordinal": 4, "user_tab": false, "visible": true } + ], + "variables": [ ] } diff --git a/configurations/TAC_FTDI_72.pinout.json b/configurations/TAC_FTDI_72.pinout.json new file mode 100644 index 0000000..8aaec56 --- /dev/null +++ b/configurations/TAC_FTDI_72.pinout.json @@ -0,0 +1,359 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "JTAG MUX DC", + "format": "tac-pinout", + "name": "AmboseliAQ JTAG MUX DC", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "battery", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "headset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "uim2", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sdcard", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "sedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "TC_READY_N", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "ol_en", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 72, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "usb_descriptor": "TDP535_JTAG_MUX_DC", + "variables": [ + ] +} diff --git a/configurations/TAC_FTDI_72.tcnf b/configurations/TAC_FTDI_72.tcnf index 390f824..60303ce 100644 --- a/configurations/TAC_FTDI_72.tcnf +++ b/configurations/TAC_FTDI_72.tcnf @@ -1,38 +1,5 @@ { - "platform_id": 72, "author": "rpathapa", - "creation_date": "Sun Oct 12 15:21:39 2025", - "modification_date": "Sun Oct 12 15:21:39 2025", - "name": "AmboseliAQ JTAG MUX DC", - "platform_type": "FTDI", - "description": "JTAG MUX DC", - "usb_descriptor": "TDP535_JTAG_MUX_DC", - "reset_enabled": false, - "chip_count": 1, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", - "fileVersion": 31, - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "-1,-1", @@ -83,552 +50,466 @@ "tooltip": "Powers off the MTP/Device" } ], + "creation_date": "Sun Oct 12 15:21:39 2025", + "description": "JTAG MUX DC", + "fileVersion": 31, + "modification_date": "Sun Oct 12 15:21:39 2025", + "name": "AmboseliAQ JTAG MUX DC", + "pinout_ref": "TAC_FTDI_72.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": false, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim1", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM1", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "battery", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Battery power off/on", - "initial_value": false, - "input": false, - "inverted": false, "name": "Battery", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "headset", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects headset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": false, "group": "General", "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uim2", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the UIM 2", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect UIM2", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": false, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sdcard", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Disconnects the SD Card", - "initial_value": false, - "input": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sedl", "command_group": 3, "enabled": false, "group": "Fusion", "help_hint": "Secondary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": false, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": false, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": false, "name": "USB 1 (VBUS Only)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "D", - "chip_index": 0, - "command": "TC_READY_N", "command_group": 0, "enabled": false, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "uartsel", "command_group": 3, "enabled": true, "group": "General", "help_hint": "FTDI UART Select", - "initial_value": false, - "input": false, - "inverted": false, "name": "FTDI_UART_SEL", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,4" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], + "platform_id": 73, + "platform_type": "FTDI", "tabs": [ { "configurable": true, "moveable": false, - "ordinal": 0, "name": "General", + "ordinal": 0, "user_tab": false, "visible": true }, { "configurable": false, "moveable": false, - "ordinal": 1, "name": "Device Info", + "ordinal": 1, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 3, "name": "Fusion", + "ordinal": 3, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 4, "name": "Terminal", + "ordinal": 4, "user_tab": false, "visible": true } @@ -650,7 +529,6 @@ "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -658,7 +536,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -666,11 +543,10 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", "type": 1 } ] -} \ No newline at end of file +} diff --git a/configurations/TAC_FTDI_77.pinout.json b/configurations/TAC_FTDI_77.pinout.json new file mode 100644 index 0000000..b4483a2 --- /dev/null +++ b/configurations/TAC_FTDI_77.pinout.json @@ -0,0 +1,375 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "bus": [ + { + "bus": "A", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "B", + "bus_function": 1, + "chip_index": 0 + }, + { + "bus": "C", + "bus_function": 2, + "chip_index": 0 + }, + { + "bus": "D", + "bus_function": 2, + "chip_index": 0 + } + ], + "chip_count": 1, + "description": "ALPACA-LITE KARNALI QCB DT", + "format": "tac-pinout", + "name": "KARNALI QCB DT", + "pins": [ + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pshold", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "volup", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "0", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "pmkpon", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "atxpsu", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "1", + "priority": 2 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb3456", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "2", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "voldn", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "2", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "FPPower", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pkey", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "3", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "FPReset", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "eud", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "4", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "karnali10gdisable", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "pedl", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "5", + "priority": -1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "usb1", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "6", + "priority": 2 + }, + { + "bus": "D", + "chip_index": 0, + "command": "", + "initial_value": true, + "input": false, + "inverted": false, + "pin_number": "6", + "priority": 1 + }, + { + "bus": "A", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "B", + "chip_index": 0, + "command": "", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "C", + "chip_index": 0, + "command": "karnali20gdisable", + "initial_value": false, + "input": false, + "inverted": false, + "pin_number": "7", + "priority": -1 + }, + { + "bus": "D", + "chip_index": 0, + "command": "usb0", + "initial_value": false, + "input": false, + "inverted": true, + "pin_number": "7", + "priority": 2 + } + ], + "platform_id": 77, + "platform_type": "FTDI", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tFPPower 0\n\tusb0 1\n\tusb1 1\n usb3456 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tFPPower 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n usb3456 0\n\tFPPower 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tFPPower 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tFPPower 1\n\tdelay 800\n\tFPPower 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\tFPPower 0\n\tpkey 1\n\tpedl 1\n\tdelay $reset\n\tpkey 0\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\tpkey 1\n\tdelay $reset\n\tpkey 0\n\n\tlogComment ====== reset finish ======\n", + "usb_descriptor": "ALPACA-LITE KARNALI QCB DT", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "20000", + "name": "reset" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_FTDI_77.tcnf b/configurations/TAC_FTDI_77.tcnf index 2ac07b3..3af3614 100644 --- a/configurations/TAC_FTDI_77.tcnf +++ b/configurations/TAC_FTDI_77.tcnf @@ -1,27 +1,5 @@ { "author": "vsanturk", - "bus": [ - { - "bus": "A", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "B", - "bus_function": 1, - "chip_index": 0 - }, - { - "bus": "C", - "bus_function": 2, - "chip_index": 0 - }, - { - "bus": "D", - "bus_function": 2, - "chip_index": 0 - } - ], "buttons": [ { "cellLocation": "1,1", @@ -64,530 +42,432 @@ "tooltip": "Power cycles the device, use this to bring the device out of EDL" } ], - "chip_count": 1, "creation_date": "Mon Jan 06 12:32:11 2025", "description": "ALPACA-LITE KARNALI QCB DT", "fileVersion": 84, "modification_date": "Mon Jan 06 12:32:11 2025", "name": "KARNALI QCB DT", + "pinout_ref": "TAC_FTDI_77.pinout.json", "pins": [ { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pshold", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Force PS_HOLD to high", - "initial_value": false, - "input": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "D", - "chip_index": 0, - "command": "volup", "command_group": 2, "enabled": true, "group": "General", "help_hint": "VOL_UP + PWR_ON = Held for boot to UEFI menu", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Up", - "pin_number": "0", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "0" + }, "run_priority": "1,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "pmkpon", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Gives PMK PON Trigger", - "initial_value": false, - "input": false, - "inverted": false, "name": "PMK PON Trigger", - "pin_number": "1", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "atxpsu", "command_group": 1, "enabled": true, "group": "General", "help_hint": "ATX PSU power off/on", - "initial_value": false, - "input": false, - "inverted": false, "name": "ATX PSU", - "pin_number": "1", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "1" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb3456", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects USB Type-A", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB3456(Type-A)", - "pin_number": "2", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "voldn", "command_group": 2, "enabled": true, "group": "General", "help_hint": "(PM_RESIN_N) (Hold to reset)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Volume Down", - "pin_number": "2", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "2" + }, "run_priority": "2,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "FPPower", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Front Panel Power Button", - "initial_value": false, - "input": false, - "inverted": false, "name": "Front Panel Power", - "pin_number": "3", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pkey", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Power On (VOL_UP + PWR_ON = Held for boot to UEFI menu)", - "initial_value": false, - "input": false, - "inverted": false, "name": "Power Key", - "pin_number": "3", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "3" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "FPReset", "command_group": 2, "enabled": true, "group": "General", "help_hint": "Front Panel Reset", - "initial_value": false, - "input": false, - "inverted": false, "name": "Front Panel Reset", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "2,1" }, { - "bus": "D", - "chip_index": 0, - "command": "eud", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "input": false, - "inverted": false, "name": "EUD", - "pin_number": "4", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "4" + }, "run_priority": "0,1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "karnali10gdisable", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Control Karnali 10G USB Type A Ports", - "initial_value": false, - "input": false, - "inverted": false, "name": "Karnali USB10G (Type-A)", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "1,1" }, { - "bus": "D", - "chip_index": 0, - "command": "pedl", "command_group": 3, "enabled": true, "group": "General", "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "input": false, - "inverted": false, "name": "EDL", - "pin_number": "5", - "priority": -1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "5" + }, "run_priority": "0,0" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "usb1", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS 1", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 1 (Type-C)", - "pin_number": "6", - "priority": 2, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "2,0" }, { - "bus": "D", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": true, "group": "", "help_hint": "SW must program it to 1 to enable some output signals. False - Disables the control on some of the FTDI pins: DDBUS 0/2/4/7, CDBUS 0/2/4/7. True - Enable the control on all the FTDI pins.", - "initial_value": true, - "input": false, - "inverted": false, "name": "", - "pin_number": "6", - "priority": 1, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "6" + }, "run_priority": "-1,-1" }, { - "bus": "A", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "A", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "B", - "chip_index": 0, - "command": "", "command_group": 0, "enabled": false, "group": "General", "help_hint": "", - "initial_value": false, - "input": false, - "inverted": false, "name": "", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "B", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "-1,-1" }, { - "bus": "C", - "chip_index": 0, - "command": "sresn", "command_group": 3, "enabled": true, "group": "Fusion", "help_hint": "Fusion Secondary PM_RESIN_N", - "initial_value": false, - "input": false, - "inverted": false, "name": "Secondary PM_RESIN_N_SEC", - "pin_number": "7", - "priority": -1, + "ref": { + "bus": "C", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "0,1" }, { - "bus": "D", - "chip_index": 0, - "command": "usb0", "command_group": 1, "enabled": true, "group": "General", "help_hint": "Disconnects VBUS0", - "initial_value": false, - "input": false, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "7", - "priority": 2, + "ref": { + "bus": "D", + "chip_index": 0, + "pin_number": "7" + }, "run_priority": "1,0" } ], + "platform_id": 78, + "platform_type": "FTDI", "tabs": [ { "configurable": true, "moveable": false, - "ordinal": 0, "name": "General", + "ordinal": 0, "user_tab": false, "visible": true }, { "configurable": false, "moveable": false, - "ordinal": 1, "name": "Device Info", + "ordinal": 1, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 3, "name": "Fusion", + "ordinal": 3, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 4, "name": "Terminal", + "ordinal": 4, "user_tab": false, "visible": true } + ], + "variables": [ ] } diff --git a/configurations/TAC_PIC32CXAuto_54.pinout.json b/configurations/TAC_PIC32CXAuto_54.pinout.json new file mode 100644 index 0000000..bda8de4 --- /dev/null +++ b/configurations/TAC_PIC32CXAuto_54.pinout.json @@ -0,0 +1,248 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "NordAu RIDE", + "format": "tac-pinout", + "name": "NordAu RIDE", + "pins": [ + { + "command": "kratos", + "inverted": false, + "pin_number": 110 + }, + { + "command": "forcemdpshold", + "inverted": false, + "pin_number": 120 + }, + { + "command": "iic7", + "inverted": false, + "pin_number": 320 + }, + { + "command": "pcie2", + "inverted": false, + "pin_number": 101 + }, + { + "command": "iic4", + "inverted": false, + "pin_number": 111 + }, + { + "command": "eud", + "inverted": false, + "pin_number": 311 + }, + { + "command": "forcesspshold", + "inverted": false, + "pin_number": 121 + }, + { + "command": "iic13", + "inverted": false, + "pin_number": 221 + }, + { + "command": "fastboot", + "inverted": false, + "pin_number": 321 + }, + { + "command": "pcie3", + "inverted": false, + "pin_number": 102 + }, + { + "command": "usb1", + "inverted": false, + "pin_number": 312 + }, + { + "command": "iic10", + "inverted": false, + "pin_number": 103 + }, + { + "command": "", + "inverted": false, + "pin_number": 123 + }, + { + "command": "", + "inverted": false, + "pin_number": 204 + }, + { + "command": "qccbld", + "inverted": false, + "pin_number": 114 + }, + { + "command": "inputpoff", + "inverted": false, + "pin_number": 224 + }, + { + "command": "usb2", + "inverted": false, + "pin_number": 205 + }, + { + "command": "bbbld", + "inverted": false, + "pin_number": 115 + }, + { + "command": "mode1", + "inverted": false, + "pin_number": 215 + }, + { + "command": "inputpms", + "inverted": false, + "pin_number": 225 + }, + { + "command": "inputpwr", + "inverted": false, + "pin_number": 206 + }, + { + "command": "sfastboot", + "inverted": false, + "pin_number": 116 + }, + { + "command": "pedl", + "inverted": false, + "pin_number": 216 + }, + { + "command": "pcie0", + "inverted": false, + "pin_number": 226 + }, + { + "command": "mode0", + "inverted": false, + "pin_number": 207 + }, + { + "command": "iic5", + "inverted": false, + "pin_number": 117 + }, + { + "command": "mode0", + "inverted": false, + "pin_number": 217 + }, + { + "command": "qccblden", + "inverted": false, + "pin_number": 227 + }, + { + "command": "sbattery", + "inverted": false, + "pin_number": 118 + }, + { + "command": "usb0", + "inverted": false, + "pin_number": 128 + }, + { + "command": "mode2", + "inverted": false, + "pin_number": 228 + }, + { + "command": "spshold", + "inverted": false, + "pin_number": 119 + }, + { + "command": "sedl", + "inverted": false, + "pin_number": 219 + }, + { + "command": "pgood", + "inverted": false, + "pin_number": 129 + }, + { + "command": "sresn", + "inverted": false, + "pin_number": 10 + }, + { + "command": "pkey", + "inverted": false, + "pin_number": 20 + }, + { + "command": "pmspwr", + "inverted": false, + "pin_number": 11 + }, + { + "command": "pcie0", + "inverted": false, + "pin_number": 21 + }, + { + "command": "uefi", + "inverted": false, + "pin_number": 16 + }, + { + "command": "pcie1", + "inverted": false, + "pin_number": 27 + }, + { + "command": "iic2", + "inverted": false, + "pin_number": 3 + }, + { + "command": "battery", + "inverted": true, + "pin_number": 4 + }, + { + "command": "kkpwr", + "inverted": false, + "pin_number": 6 + }, + { + "command": "pshold", + "inverted": false, + "pin_number": 7 + } + ], + "platform_id": 54, + "platform_type": "PIC32CXAuto", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\r\n\tbattery 1\r\n\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\r\n\tbattery 1\r\n\tdelay 900\r\n\tbattery 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tsedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tpedl 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $edl\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tsedl 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $edl\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tkkpwr 1\r\n\tuefi 1\r\n\tbattery 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $uefi\r\n\tuefi 0\r\n\tkkpwr 0\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpedl 0\r\n\tsedl 0\r\n\tuefi 0\r\n\tsfastboot 0\r\n\tbattery 1\r\n\tfastboot 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $fastboot\r\n\tfastboot 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n\r\ndef bootToSecondaryFastboot()\r\n\tlogComment ====== bootToSecondaryFastboot start ======\r\n\r\n\tpedl 0\r\n\tsedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tsfastboot 1\r\n\tfastboot 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $fastboot\r\n\tsfastboot 0\r\n\tfastboot 0\r\n\r\n\tlogComment ====== bootToSecondaryFastboot finished ======\r\n", + "usb_descriptor": "KARUSSELL", + "variables": [ + { + "default_value": "2500", + "name": "edl" + }, + { + "default_value": "12000", + "name": "fastboot" + }, + { + "default_value": "13000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_PIC32CXAuto_54.tcnf b/configurations/TAC_PIC32CXAuto_54.tcnf index 1804dbc..8526de0 100644 --- a/configurations/TAC_PIC32CXAuto_54.tcnf +++ b/configurations/TAC_PIC32CXAuto_54.tcnf @@ -63,496 +63,495 @@ "fileVersion": 6, "modification_date": "Tue Dec 2 16:07:46 2025", "name": "NordAu RIDE", + "pinout_ref": "TAC_PIC32CXAuto_54.pinout.json", "pins": [ { - "command": "kratos", "command_group": 3, "enabled": false, "help_hint": "Kratos Trigger", - "inverted": false, "name": "Kratos Trigger", - "pin_number": 110, + "ref": { + "pin_number": 110 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "forcemdpshold", "command_group": 2, "enabled": true, "help_hint": "Force MD PS HOLD", - "inverted": false, "name": "Force MD PS HOLD", - "pin_number": 120, + "ref": { + "pin_number": 120 + }, "run_priority": "1,1", "tab_name": "General" }, { - "command": "iic7", "command_group": 2, "enabled": false, "help_hint": "Debug I2C 7", - "inverted": false, "name": "JMI2C.7", - "pin_number": 320, + "ref": { + "pin_number": 320 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "pcie2", "command_group": 3, "enabled": false, "help_hint": "PCIE 2 Attention", - "inverted": false, "name": "PCIE2 Attention", - "pin_number": 101, + "ref": { + "pin_number": 101 + }, "run_priority": "2,0", "tab_name": "General" }, { - "command": "iic4", "command_group": 3, "enabled": false, "help_hint": "Debug pin", - "inverted": false, "name": "JMI2C.4", - "pin_number": 111, + "ref": { + "pin_number": 111 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "eud", "command_group": 2, "enabled": true, "help_hint": "EUD for Primary SOC", - "inverted": false, "name": "EUD", - "pin_number": 311, + "ref": { + "pin_number": 311 + }, "run_priority": "2,3", "tab_name": "General" }, { - "command": "forcesspshold", "command_group": 2, "enabled": true, "help_hint": "Force SS PS HOLD", - "inverted": false, "name": "Force SS PS HOLD", - "pin_number": 121, + "ref": { + "pin_number": 121 + }, "run_priority": "1,2", "tab_name": "General" }, { - "command": "iic13", "command_group": 2, "enabled": false, "help_hint": "Debug pin", - "inverted": false, "name": "JMI2C.13", - "pin_number": 221, + "ref": { + "pin_number": 221 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "fastboot", "command_group": 2, "enabled": true, "help_hint": "MD Fastboot", - "inverted": false, "name": "Fastboot MD", - "pin_number": 321, + "ref": { + "pin_number": 321 + }, "run_priority": "2,2", "tab_name": "General" }, { - "command": "pcie3", "command_group": 3, "enabled": false, "help_hint": "PCIE 3 Attention", - "inverted": false, "name": "PCIE3 Attention", - "pin_number": 102, + "ref": { + "pin_number": 102 + }, "run_priority": "0,1", "tab_name": "General" }, { - "command": "usb1", "command_group": 1, "enabled": true, "help_hint": "USB1 Disconnect", - "inverted": false, "name": "USB1", - "pin_number": 312, + "ref": { + "pin_number": 312 + }, "run_priority": "2,0", "tab_name": "General" }, { - "command": "iic10", "command_group": 3, "enabled": false, "help_hint": "Debug pin", - "inverted": false, "name": "JMI2C.10", - "pin_number": 103, + "ref": { + "pin_number": 103 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "inverted": false, "name": "", - "pin_number": 123, + "ref": { + "pin_number": 123 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "inverted": false, "name": "", - "pin_number": 204, + "ref": { + "pin_number": 204 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "qccbld", "command_group": 2, "enabled": false, "help_hint": "QCC BLD Disconnect", - "inverted": false, "name": "QCC BLD Disconnect", - "pin_number": 114, + "ref": { + "pin_number": 114 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "inputpoff", "command_group": 0, "enabled": false, "help_hint": "PMS Fast Power Off", - "inverted": false, "name": "PMS Fast Power Off", - "pin_number": 224, + "ref": { + "pin_number": 224 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "usb2", "command_group": 1, "enabled": false, "help_hint": "USB 2 Disable", - "inverted": false, "name": "USB2", - "pin_number": 205, + "ref": { + "pin_number": 205 + }, "run_priority": "0,1", "tab_name": "General" }, { - "command": "bbbld", "command_group": 3, "enabled": false, "help_hint": "BB BLD Disconnect", - "inverted": false, "name": "BB BLD Disconnect", - "pin_number": 115, + "ref": { + "pin_number": 115 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "mode1", "command_group": 3, "enabled": true, "help_hint": "Mode 1", - "inverted": false, "name": "Mode 1", - "pin_number": 215, + "ref": { + "pin_number": 215 + }, "run_priority": "2,0", "tab_name": "General" }, { - "command": "inputpms", "command_group": 0, "enabled": false, "help_hint": "PMS Enable", - "inverted": false, "name": "PMS Enable", - "pin_number": 225, + "ref": { + "pin_number": 225 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "inputpwr", "command_group": 2, "enabled": false, "help_hint": "Fast K Power Off Enable", - "inverted": false, "name": "Fast Power Off", - "pin_number": 206, + "ref": { + "pin_number": 206 + }, "run_priority": "4,2", "tab_name": "General" }, { - "command": "sfastboot", "command_group": 2, "enabled": true, "help_hint": "Fastboot SS", - "inverted": false, "name": "SAIL Subsystem Fastboot", - "pin_number": 116, + "ref": { + "pin_number": 116 + }, "run_priority": "3,2", "tab_name": "General" }, { - "command": "pedl", "command_group": 2, "enabled": true, "help_hint": "MD EDL", - "inverted": false, "name": "MD EDL", - "pin_number": 216, + "ref": { + "pin_number": 216 + }, "run_priority": "0,2", "tab_name": "General" }, { - "command": "pcie0", "command_group": 3, "enabled": true, "help_hint": "PCIE Attention", - "inverted": false, "name": "PCIE Attention", - "pin_number": 226, + "ref": { + "pin_number": 226 + }, "run_priority": "1,0", "tab_name": "General" }, { - "command": "mode0", "command_group": 2, "enabled": false, "help_hint": "Mode 0 for Primary SOC", - "inverted": false, "name": "Mode 0", - "pin_number": 207, + "ref": { + "pin_number": 207 + }, "run_priority": "1,2", "tab_name": "General" }, { - "command": "iic5", "command_group": 3, "enabled": false, "help_hint": "Debug pin", - "inverted": false, "name": "JMI2C.5", - "pin_number": 117, + "ref": { + "pin_number": 117 + }, "run_priority": "0,2", "tab_name": "General" }, { - "command": "mode0", "command_group": 2, "enabled": false, "help_hint": "Mode 0", - "inverted": false, "name": "Mode 0", - "pin_number": 217, + "ref": { + "pin_number": 217 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "qccblden", "command_group": 2, "enabled": false, "help_hint": "-", - "inverted": false, "name": "QCC BLD EN", - "pin_number": 227, + "ref": { + "pin_number": 227 + }, "run_priority": "2,1", "tab_name": "General" }, { - "command": "sbattery", "command_group": 2, "enabled": true, "help_hint": "SAIL Power on", - "inverted": false, "name": "SAIL Power On", - "pin_number": 118, + "ref": { + "pin_number": 118 + }, "run_priority": "3,1", "tab_name": "General" }, { - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnect USB0", - "inverted": false, "name": "USB0", - "pin_number": 128, + "ref": { + "pin_number": 128 + }, "run_priority": "1,0", "tab_name": "General" }, { - "command": "mode2", "command_group": 3, "enabled": true, "help_hint": "Mode 2", - "inverted": false, "name": "Mode 2", - "pin_number": 228, + "ref": { + "pin_number": 228 + }, "run_priority": "3,0", "tab_name": "General" }, { - "command": "spshold", "command_group": 2, "enabled": true, "help_hint": "SAIL Subsystem PSHOLD", - "inverted": false, "name": "SAIL PS HOLD", - "pin_number": 119, + "ref": { + "pin_number": 119 + }, "run_priority": "3,0", "tab_name": "General" }, { - "command": "sedl", "command_group": 2, "enabled": true, "help_hint": "SS EDL", - "inverted": false, "name": "SS EDL", - "pin_number": 219, + "ref": { + "pin_number": 219 + }, "run_priority": "0,3", "tab_name": "General" }, { - "command": "pgood", "command_group": 2, "enabled": false, "help_hint": "-", - "inverted": false, "name": "PMS PGOOD", - "pin_number": 129, + "ref": { + "pin_number": 129 + }, "run_priority": "4,0", "tab_name": "General" }, { - "command": "sresn", "command_group": 2, "enabled": true, "help_hint": "KK Resin N", - "inverted": false, "name": "KK Resin N", - "pin_number": 10, + "ref": { + "pin_number": 10 + }, "run_priority": "2,0", "tab_name": "General" }, { - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Power Off", - "inverted": false, "name": "Power Off", - "pin_number": 20, + "ref": { + "pin_number": 20 + }, "run_priority": "0,1", "tab_name": "General" }, { - "command": "pmspwr", "command_group": 2, "enabled": true, "help_hint": "PMS Power On", - "inverted": false, "name": "PMS Power On", - "pin_number": 11, + "ref": { + "pin_number": 11 + }, "run_priority": "2,1", "tab_name": "General" }, { - "command": "pcie0", "command_group": 3, "enabled": false, "help_hint": "PCIE 0 Attention", - "inverted": false, "name": "PCIE0 Attention", - "pin_number": 21, + "ref": { + "pin_number": 21 + }, "run_priority": "0,0", "tab_name": "General" }, { - "command": "uefi", "command_group": 2, "enabled": true, "help_hint": "UEFI", - "inverted": false, "name": "UEFI", - "pin_number": 16, + "ref": { + "pin_number": 16 + }, "run_priority": "1,3", "tab_name": "General" }, { - "command": "pcie1", "command_group": 3, "enabled": false, "help_hint": "PCIE 1 Attention", - "inverted": false, "name": "PCIE1 Attention", - "pin_number": 27, + "ref": { + "pin_number": 27 + }, "run_priority": "1,0", "tab_name": "General" }, { - "command": "iic2", "command_group": 1, "enabled": false, "help_hint": "Debug pin", - "inverted": false, "name": "JMI2C.2", - "pin_number": 3, + "ref": { + "pin_number": 3 + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Disconnects power to the device", - "inverted": true, "name": "Battery", - "pin_number": 4, + "ref": { + "pin_number": 4 + }, "run_priority": "0,0", "tab_name": "General" }, { - "command": "kkpwr", "command_group": 2, "enabled": true, "help_hint": "Enables KK Power", - "inverted": false, "name": "KK Power Enable", - "pin_number": 6, + "ref": { + "pin_number": 6 + }, "run_priority": "0,0", "tab_name": "General" }, { - "command": "pshold", "command_group": 2, "enabled": true, "help_hint": "MD PS HOLD", - "inverted": false, "name": "MD PS HOLD", - "pin_number": 7, + "ref": { + "pin_number": 7 + }, "run_priority": "1,0", "tab_name": "General" } ], "platform_id": 54, "platform_type": "PIC32CXAuto", - "reset_enabled": false, - "script": "def powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\r\n\tbattery 1\r\n\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\r\n\tbattery 1\r\n\tdelay 900\r\n\tbattery 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tsedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tpedl 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $edl\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tsedl 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $edl\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tkkpwr 1\r\n\tuefi 1\r\n\tbattery 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $uefi\r\n\tuefi 0\r\n\tkkpwr 0\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpedl 0\r\n\tsedl 0\r\n\tuefi 0\r\n\tsfastboot 0\r\n\tbattery 1\r\n\tfastboot 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $fastboot\r\n\tfastboot 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n\r\ndef bootToSecondaryFastboot()\r\n\tlogComment ====== bootToSecondaryFastboot start ======\r\n\r\n\tpedl 0\r\n\tsedl 0\r\n\tuefi 0\r\n\tbattery 1\r\n\tsfastboot 1\r\n\tfastboot 1\r\n\tdelay 900\r\n\tbattery 0\r\n\tdelay $fastboot\r\n\tsfastboot 0\r\n\tfastboot 0\r\n\r\n\tlogComment ====== bootToSecondaryFastboot finished ======\r\n", "tabs": [ { "configurable": true, @@ -579,11 +578,9 @@ "visible": true } ], - "usb_descriptor": "KARUSSELL", "variables": [ { "cellLocation": "0,0", - "default_value": "2500", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -591,7 +588,6 @@ }, { "cellLocation": "1,0", - "default_value": "12000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -599,7 +595,6 @@ }, { "cellLocation": "0,1", - "default_value": "13000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_PSOC_14.pinout.json b/configurations/TAC_PSOC_14.pinout.json new file mode 100644 index 0000000..98a2364 --- /dev/null +++ b/configurations/TAC_PSOC_14.pinout.json @@ -0,0 +1,187 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "CSM - PSoC version", + "format": "tac-pinout", + "name": "CSM - PSoC", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "softreset", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "lowcurrentmode", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "BC_5", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "BC_6", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "RF_DIS", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "", + "command": "sdcarddis", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 99, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "55" + }, + { + "classic_action": "TAC_READY_N", + "command": "ready", + "initial_value": false, + "initialization_priority": 1, + "inverted": false, + "pin_number": "56" + } + ], + "platform_id": 14, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\t\n\tpowerOnTheDevice\n\t\n\tdelay 500\n\n\tpkey 1\n\tpkey 0\n\tlogComment ====== powerOn finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2100\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 3100\n\tpkey 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + ] +} diff --git a/configurations/TAC_PSOC_14.tcnf b/configurations/TAC_PSOC_14.tcnf index 79b155e..2b3cd2d 100644 --- a/configurations/TAC_PSOC_14.tcnf +++ b/configurations/TAC_PSOC_14.tcnf @@ -55,309 +55,242 @@ "fileVersion": 17, "modification_date": "Wed Nov 6 05:23:04 2024", "name": "CSM - PSoC", + "pinout_ref": "TAC_PSOC_14.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "softreset", "command_group": 2, "enabled": true, "help_hint": "(PON_RESET_N) Reset Lassen, without resetting the PMIC (soft/warm reset)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "Lassen RESET", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enable the Embedded USB Debugger", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "EUD", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "00 NATIVE; 01 TIC; 10 ATEST; 11 TEST", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "ASIC MODE 0", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,7", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "00 NATIVE; 01 TIC; 10 ATEST; 11 TEST", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "ASIC MODE 1", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "0,8", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "OFF = GPIO-strap \"0\"; ON = GPIO-strap \"1\"; QDU_GPIO_96", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "DDR Channel Select", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "", - "command": "lowcurrentmode", "command_group": 3, "enabled": true, "help_hint": "Boot Config 0; QDU_GPIO_116", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "WatchDog Disable", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Boot Config 1 (FB_Sel 0); QDU_GPIO_119", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_1 (FB_Sel 0)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Boot Config 2 (FB_Sel 1); QDU_GPIO_124", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_2 (FB_Sel 1)", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 3, "enabled": true, "help_hint": "Boot Config 3 (FB_Sel 2); QDU_GPIO_120", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_3 (FB_Sel 2)", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 3, "enabled": true, "help_hint": "Boot Config 4 (FB_Sel 3); QDU_GPIO_117", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_4 (FB_Sel 3)", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PS_HOLD high", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "PS_HOLD", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "BC_5", "command_group": 3, "enabled": true, "help_hint": "Boot Config 5 (APPs PBL Boot Speed 0); QDU_GPIO_114", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_5 (APPs PBL 0)", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "1,4", "tab_name": "General" }, { - "classic_action": "", - "command": "BC_6", "command_group": 3, "enabled": true, "help_hint": "Boot Config 6 (APPs PBL Boot Speed 1); QDU_GPIO_127", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "BC_6 (APPs PBL 1)", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "1,5", "tab_name": "General" }, { - "classic_action": "", - "command": "RF_DIS", "command_group": 3, "enabled": true, "help_hint": "ON = disables the RF PAs to prevent radiating", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "RF_PA_DISABLE", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "0,9", "tab_name": "General" }, { - "classic_action": "", - "command": "sdcarddis", "command_group": 3, "enabled": true, "help_hint": "OFF = PCIE EP device uses SHARED Clock; ON = PCIE EP device uses LOCAL Clock", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "PCIE_SRIS_EN", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Starts PON; Power on signal to Lassen's PMIC (Wailua)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "Power On (PON)", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "(WAILUA_RESIN_N) Hard reset the entire system (complete reset of all PMICs)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "System RESET", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "ON = Power to system. OFF = Turns off power to system", - "initial_value": false, - "initialization_priority": 99, - "inverted": true, "name": "System Power", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Emergency Download Mode (Force USB Boot)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "EDL", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 3, "enabled": true, "help_hint": "ON = 32TR; OFF = 64TR", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "QRU RF Configuration", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,9", "tab_name": "General" }, { - "classic_action": "TAC_READY_N", - "command": "ready", "command_group": 0, "enabled": false, "help_hint": "Sets a gpio line to let the MTP know we are connected", - "initial_value": false, - "initialization_priority": 1, - "inverted": false, "name": "", - "pin_number": "56", + "ref": { + "pin_number": "56" + }, "run_priority": "-1,-1", "tab_name": "" } ], "platform_id": 14, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\t\n\tpowerOnTheDevice\n\t\n\tdelay 500\n\n\tpkey 1\n\tpkey 0\n\tlogComment ====== powerOn finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2100\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 3100\n\tpkey 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -392,6 +325,6 @@ "visible": false } ], - "usb_descriptor": "", - "variables": [] + "variables": [ + ] } diff --git a/configurations/TAC_PSOC_17.pinout.json b/configurations/TAC_PSOC_17.pinout.json new file mode 100644 index 0000000..47e91d9 --- /dev/null +++ b/configurations/TAC_PSOC_17.pinout.json @@ -0,0 +1,183 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "Lemans ADP TAC PSOC", + "format": "tac-pinout", + "name": "Lemans ADP Automotive", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "uart_dis", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 17, + "platform_type": "PSOC", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOff() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\n\ndef powerOn()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tbattery 0\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tpedl 1\n\tsdcard 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\tpedl 0\n\tsdcard 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset\n\tvolup 1\n\tdelay 1000\n\tpkey 1\n\tvoldn 0\n\tpedl 0\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\tpkey 0\n\tvolup 0 \n\n\tlogComment ======s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tvoldn 1\n\tdelay 1500\n\tpowerOn\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tvoldn 0\n\n\tlogComment ====== s1_fastboot finish ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "0", + "name": "Optional_GPIO_Hold_Time" + } + ] +} diff --git a/configurations/TAC_PSOC_17.tcnf b/configurations/TAC_PSOC_17.tcnf index 0b704e3..23bbb70 100644 --- a/configurations/TAC_PSOC_17.tcnf +++ b/configurations/TAC_PSOC_17.tcnf @@ -55,295 +55,231 @@ "fileVersion": 55, "modification_date": "Thu Aug 8 17:28:16 2024", "name": "Lemans ADP Automotive", + "pinout_ref": "TAC_PSOC_17.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EUD", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "2,1", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "MODE_0", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "MODE_1", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": false, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "", - "command": "uart_dis", "command_group": 3, "enabled": false, "help_hint": "Disconnect the MD and SAIL Disconnect", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "UART Disconnect", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "0,6", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL (Not supported on AIR)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "USB2_DISC", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnect the SD Card", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "SS_FORCE_EDL", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 1, "enabled": true, "help_hint": "VOL_UP+PWR_ON=Held for boot to UEFI menu", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "UEFI", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 2, "enabled": true, "help_hint": "Disconnects the USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB1_DISC", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold High", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force MD PS_HOLD High", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N in Fusion", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "SS_PS_HOLD", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": false, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Power On (VOL_UP+PWR_ON=Held for boot to UEFI menu)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "PWR_KPD", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 1, "enabled": true, "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "RST", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Power OFF/ON", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "PWR_OFF", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EDL", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "2,2", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 2, "enabled": true, "help_hint": "Disconnnects USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB0_DISC", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "0,1", "tab_name": "General" } ], "platform_id": 17, "platform_type": "PSOC", - "reset_enabled": false, - "script": "def powerOff() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\n\ndef powerOn()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tbattery 0\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tpedl 1\n\tsdcard 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\tpedl 0\n\tsdcard 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset\n\tvolup 1\n\tdelay 1000\n\tpkey 1\n\tvoldn 0\n\tpedl 0\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\tpkey 0\n\tvolup 0 \n\n\tlogComment ======s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tvoldn 1\n\tdelay 1500\n\tpowerOn\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tvoldn 0\n\n\tlogComment ====== s1_fastboot finish ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -386,11 +322,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "0", "label": "Hold GPIOs longer for boot(ms)", "name": "Optional_GPIO_Hold_Time", "tooltip": "Add optional hold for bootup", diff --git a/configurations/TAC_PSOC_24.pinout.json b/configurations/TAC_PSOC_24.pinout.json new file mode 100644 index 0000000..4aeb339 --- /dev/null +++ b/configurations/TAC_PSOC_24.pinout.json @@ -0,0 +1,187 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "CSM - PSoC version", + "format": "tac-pinout", + "name": "CSM - X100 - PSoC", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "softreset", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "lowcurrentmode", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "BC_5", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "BC_6", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "RF_DIS", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "", + "command": "sdcarddis", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 99, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 99, + "inverted": false, + "pin_number": "55" + }, + { + "classic_action": "TAC_READY_N", + "command": "ready", + "initial_value": false, + "initialization_priority": 1, + "inverted": false, + "pin_number": "56" + } + ], + "platform_id": 24, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2000\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + ] +} diff --git a/configurations/TAC_PSOC_24.tcnf b/configurations/TAC_PSOC_24.tcnf index 5bc8ea4..f48726b 100644 --- a/configurations/TAC_PSOC_24.tcnf +++ b/configurations/TAC_PSOC_24.tcnf @@ -55,309 +55,242 @@ "fileVersion": 4, "modification_date": "Fri Feb 17 15:51:41 2023", "name": "CSM - X100 - PSoC", + "pinout_ref": "TAC_PSOC_24.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "softreset", "command_group": 2, "enabled": true, "help_hint": "(PON_RESET_N) Reset Lassen, without resetting the PMIC (soft/warm reset)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "Lassen RESET", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enable the Embedded USB Debugger", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "EUD", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 0, "enabled": true, "help_hint": "00 NATIVE; 01 TIC; 10 ATEST; 11 TEST", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,7", "tab_name": "" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 0, "enabled": true, "help_hint": "OFF = GPIO-strap \"0\"; ON = GPIO-strap \"1\"; QDU_GPIO_96", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,4", "tab_name": "" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 0, "enabled": true, "help_hint": "Boot Config 2 (FB_Sel 1); QDU_GPIO_124", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "1,1", "tab_name": "" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 0, "enabled": true, "help_hint": "Boot Config 4 (FB_Sel 3); QDU_GPIO_117", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "1,3", "tab_name": "" }, { - "classic_action": "", - "command": "BC_6", "command_group": 0, "enabled": true, "help_hint": "Boot Config 6 (APPs PBL Boot Speed 1); QDU_GPIO_127", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "1,5", "tab_name": "" }, { - "classic_action": "", - "command": "sdcarddis", "command_group": 0, "enabled": true, "help_hint": "OFF = PCIE EP device uses SHARED Clock; ON = PCIE EP device uses LOCAL Clock", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,5", "tab_name": "" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "(WAILUA_RESIN_N) Hard reset the entire system (complete reset of all PMICs)", - "initial_value": false, - "initialization_priority": 99, - "inverted": false, "name": "System RESET", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 0, "enabled": true, "help_hint": "ON = Power to system. OFF = Turns off power to system", - "initial_value": false, - "initialization_priority": 99, - "inverted": true, "name": "", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "1,1", "tab_name": "" }, { - "classic_action": "TAC_READY_N", - "command": "ready", "command_group": 0, "enabled": false, "help_hint": "Sets a gpio line to let the MTP know we are connected", - "initial_value": false, - "initialization_priority": 1, - "inverted": false, "name": "", - "pin_number": "56", + "ref": { + "pin_number": "56" + }, "run_priority": "-1,-1", "tab_name": "" } ], "platform_id": 24, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tpkey 0\n\t\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tpkey 1\n\tdelay 900\n\t\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\tpedl 1\n\tpowerOnTheDevice\n\tdelay 3000\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEUD()\n\tlogComment ====== bootToEUD start ======\n\n\tpowerOffTheDevice\n\teud 1\n\tpowerOnTheDevice\n\tdelay 3000\n\teud 0\n\n\tlogComment ====== bootToEUD finish ======\n\ndef bootToUEFIMenu()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\tpowerOnTheDevice\n\tdelay 2000\n\tpkey 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -392,5 +325,6 @@ "visible": false } ], - "usb_descriptor": "" + "variables": [ + ] } diff --git a/configurations/TAC_PSOC_31.pinout.json b/configurations/TAC_PSOC_31.pinout.json new file mode 100644 index 0000000..ddaa93e --- /dev/null +++ b/configurations/TAC_PSOC_31.pinout.json @@ -0,0 +1,179 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "CCARD525 PSoC", + "format": "tac-pinout", + "name": "CCARD525", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "sftrst", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "EAPedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "EAPres", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "EAPusb", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "12vpoweroff", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "NADedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "NADusb", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "55" + } + ], + "platform_id": 31, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\t12vpoweroff 1\n\tNADusb 1\n\tEAPusb 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\t12vpoweroff 0\n\tdelay 900\n\tNADusb 0\n\tEAPusb 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tNADedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToNADEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tNADedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tNADedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEAPEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tEAPedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tEAPedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tNADedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tNADedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + ] +} diff --git a/configurations/TAC_PSOC_31.tcnf b/configurations/TAC_PSOC_31.tcnf index e5eaa47..8bf6929 100644 --- a/configurations/TAC_PSOC_31.tcnf +++ b/configurations/TAC_PSOC_31.tcnf @@ -55,295 +55,231 @@ "fileVersion": 40, "modification_date": "Mon Sep 11 16:08:13 2023", "name": "CCARD525", + "pinout_ref": "TAC_PSOC_31.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "sftrst", "command_group": 2, "enabled": true, "help_hint": "NAD Soft Reset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "NAD Soft Reset", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "2,1", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled NAD embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "NAD EUD", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "1,5", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "2,1", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "EAPedl", "command_group": 3, "enabled": true, "help_hint": "Force EAP USB Boot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EAP USB Boot", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "2,2", "tab_name": "General" }, { - "classic_action": "TAC_RESET_SEC", - "command": "EAPres", "command_group": 2, "enabled": true, "help_hint": "EAP PMS RESET", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EAP Reset", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "2,2", "tab_name": "General" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "EAPusb", "command_group": 1, "enabled": true, "help_hint": "Disconnects VBUS for EAP USB", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EAP USB Disconnect", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "3,1", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Enable NAD and EAP PS Hold ", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "PS HOLD", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnect NAD & EAP SD Cards", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "SD Card Disconnect", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "1,4", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button for KPD Power", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button Reset MDM via PMK", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "12vpoweroff", "command_group": 1, "enabled": true, "help_hint": "Force Power off for entire CCARD525, Remote Power Cycle", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "12V Power Disconnect", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "NADedl", "command_group": 3, "enabled": true, "help_hint": "Force NAD USB Boot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "NAD USB Boot (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "NADusb", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for NAD USB", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "NAD USB Disconnect", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "2,1", "tab_name": "General" } ], "platform_id": 31, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\t12vpoweroff 1\n\tNADusb 1\n\tEAPusb 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\t12vpoweroff 0\n\tdelay 900\n\tNADusb 0\n\tEAPusb 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tNADedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToNADEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tNADedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tNADedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToEAPEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tEAPedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tEAPedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tNADedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tNADedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -386,5 +322,6 @@ "visible": true } ], - "usb_descriptor": "" + "variables": [ + ] } diff --git a/configurations/TAC_PSOC_35.pinout.json b/configurations/TAC_PSOC_35.pinout.json new file mode 100644 index 0000000..211ce5f --- /dev/null +++ b/configurations/TAC_PSOC_35.pinout.json @@ -0,0 +1,195 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "RB5 ", + "format": "tac-pinout", + "name": "RB5", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 35, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\t\n\tpowerOnTheDevice\n\t\n\tdelay 30\n\n\tpkey 1\n\tdelay $powerDelay\n\tpkey 0\n\tlogComment ====== powerOn finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\t\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tvoldn 1\n\n\tdelay $fastboot1\n\n\tpkey 0\n\n\tdelay $fastboot2\n\n\tvoldn 0\n\t\n\tlogComment ====== bootToFastboot finished ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "20000", + "name": "edl" + }, + { + "default_value": "10000", + "name": "fastboot1" + }, + { + "default_value": "10000", + "name": "fastboot2" + }, + { + "default_value": "18000", + "name": "powerDelay" + } + ] +} diff --git a/configurations/TAC_PSOC_35.tcnf b/configurations/TAC_PSOC_35.tcnf index 75dd426..a71985a 100644 --- a/configurations/TAC_PSOC_35.tcnf +++ b/configurations/TAC_PSOC_35.tcnf @@ -55,295 +55,231 @@ "fileVersion": 45, "modification_date": "Wed Apr 17 16:27:51 2024", "name": "RB5", + "pinout_ref": "TAC_PSOC_35.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "0,0", "tab_name": "Fusion" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary PM_RESIN_N", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "0,1", "tab_name": "Fusion" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 1, "enabled": true, "help_hint": "Disconnects VBUS for USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 1", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Emergency Download Mode (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 0", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,0", "tab_name": "General" } ], "platform_id": 35, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\t\n\tpowerOnTheDevice\n\t\n\tdelay 30\n\n\tpkey 1\n\tdelay $powerDelay\n\tpkey 0\n\tlogComment ====== powerOn finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\t\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tvoldn 1\n\n\tdelay $fastboot1\n\n\tpkey 0\n\n\tdelay $fastboot2\n\n\tvoldn 0\n\t\n\tlogComment ====== bootToFastboot finished ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -386,11 +322,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "20000", "label": "EDL Delay", "name": "edl", "tooltip": "EDL for RB5", @@ -398,7 +332,6 @@ }, { "cellLocation": "1,0", - "default_value": "10000", "label": "FS1 Delay", "name": "fastboot1", "tooltip": "Fastboot Stage 1 Delay Timing", @@ -406,7 +339,6 @@ }, { "cellLocation": "0,1", - "default_value": "10000", "label": "FS2 Delay", "name": "fastboot2", "tooltip": "Fastboot Stage2 Delay Timing", @@ -414,7 +346,6 @@ }, { "cellLocation": "1,1", - "default_value": "18000", "label": "Power delay (ms)", "name": "powerDelay", "tooltip": "Power Delay Timing", diff --git a/configurations/TAC_PSOC_44.pinout.json b/configurations/TAC_PSOC_44.pinout.json new file mode 100644 index 0000000..281b0c6 --- /dev/null +++ b/configurations/TAC_PSOC_44.pinout.json @@ -0,0 +1,151 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "Kanapali QRD", + "format": "tac-pinout", + "name": "Kanapali QRD", + "pins": [ + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 44, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_PSOC_44.tcnf b/configurations/TAC_PSOC_44.tcnf index 8af3c58..329476b 100644 --- a/configurations/TAC_PSOC_44.tcnf +++ b/configurations/TAC_PSOC_44.tcnf @@ -55,225 +55,176 @@ "fileVersion": 2, "modification_date": "Tue Dec 10 13:59:16 2024", "name": "Kanapali QRD", + "pinout_ref": "TAC_PSOC_44.pinout.json", "pins": [ { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "0,0", "tab_name": "Fusion" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary PM_RESIN_N", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "0,1", "tab_name": "Fusion" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 1, "enabled": true, "help_hint": "Disconnects VBUS for USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 1", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Emergency Download Mode (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 0", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,0", "tab_name": "General" } ], "platform_id": 44, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -316,11 +267,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -328,7 +277,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -336,7 +284,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_PSOC_57.pinout.json b/configurations/TAC_PSOC_57.pinout.json new file mode 100644 index 0000000..d28f0f5 --- /dev/null +++ b/configurations/TAC_PSOC_57.pinout.json @@ -0,0 +1,199 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "Monaco/Lemans ADP Automotive", + "format": "tac-pinout", + "name": "Monaco/Lemans RIDE MCU Less ADP Automotive", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "fastpoff", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "", + "command": "wakein", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "48" + }, + { + "classic_action": "", + "command": "fastboot", + "initial_value": true, + "initialization_priority": -1, + "inverted": false, + "pin_number": "49" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 57, + "platform_type": "PSOC", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOff() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\n\ndef powerOn()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tbattery 0\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tpedl 1\n\tsdcard 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\tpedl 0\n\tsdcard 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset\n\tvolup 1\n\tdelay 1000\n\tpkey 1\n\tvoldn 0\n\tpedl 0\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\tpkey 0\n\tvolup 0 \n\n\tlogComment ======s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tdelay 20\n\tfastboot 0\n\tpowerOn\n\tdelay 2000\n\tfastboot 1\n\n\tlogComment ====== s1_fastboot finish ======\n\n\n\ndef WAKEIN()\n\tlogComment ====== s1_WAKEIN start ======\n\n\t\n\twakein 1\n\tdelay 50\n\twakein 0\n\n\tlogComment ====== s1_WAKEIN finish ======\n\n\ndef mculesspoff()\n\tlogComment ====== s1_mculesspoff start ======\n\n\t\n\tfastpoff 1\n\tdelay 50\n\tfastpoff 0\n\n\tlogComment ====== s1_mculesspoff finish ======\n", + "supportedFirmwareVer": [ + 16 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "0", + "name": "Optional_GPIO_Hold_Time" + } + ] +} diff --git a/configurations/TAC_PSOC_57.tcnf b/configurations/TAC_PSOC_57.tcnf index 045056e..f96d0c3 100644 --- a/configurations/TAC_PSOC_57.tcnf +++ b/configurations/TAC_PSOC_57.tcnf @@ -69,328 +69,255 @@ "creation_date": "Wed Aug 30 22:33:02 2023", "description": "Monaco/Lemans ADP Automotive", "fileVersion": 177, - "supportedFirmwareVer": [ - 16 - ], "modification_date": "Mon Jul 7 18:14:06 2025", "name": "Monaco/Lemans RIDE MCU Less ADP Automotive", + "pinout_ref": "TAC_PSOC_57.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Embedded USB Debug (EUD)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EUD", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "2,1", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "MODE_0", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "MODE_1", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": false, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "", - "command": "fastpoff", "command_group": 0, "enabled": true, "help_hint": "Triggers shutdown of system", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "FAST POFF", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL (Not supported on AIR)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "USB2_DISC", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnect the SD Card", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "SS_FORCE_EDL", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 1, "enabled": true, "help_hint": "VOL_UP+PWR_ON=Held for boot to UEFI menu", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "UEFI", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 2, "enabled": true, "help_hint": "Disconnects the USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB1_DISC", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold High", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force MD PS_HOLD High", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N in Fusion", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "SS_PS_HOLD", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": false, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "", - "command": "wakein", "command_group": 0, "enabled": true, "help_hint": "Wake up from sleep/low power state", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "WAKE_IN", - "pin_number": "48", + "ref": { + "pin_number": "48" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "fastboot", "command_group": 0, "enabled": true, "help_hint": "Triggers Fastboot on MD & SAIL SS in MCU less mode", - "initial_value": true, - "initialization_priority": -1, - "inverted": false, "name": "MCU LESS FASTBOOT", - "pin_number": "49", + "ref": { + "pin_number": "49" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Power On (VOL_UP+PWR_ON=Held for boot to UEFI menu)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "PWR_KPD", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 1, "enabled": true, "help_hint": "(PM_RESIN_N) (Held to boot to fastboot)", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "RST", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Power OFF/ON", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "PWR_OFF", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EDL", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "2,2", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 2, "enabled": true, "help_hint": "Disconnnects USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB0_DISC", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "2,0", "tab_name": "General" } ], "platform_id": 57, "platform_type": "PSOC", - "reset_enabled": false, - "script": "def powerOff() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\n\ndef powerOn()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tbattery 0\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\n\ndef reset()\n\tlogComment ====== reset start ======\n\n\tpowerOff\n\tdelay 1500\n\tpowerOn\n\n\tlogComment ====== reset finish ======\n\n\ndef bootToEDL()\n\tlogComment ====== s1_md_sail_edl start ======\n\n\tpowerOff\n\tpedl 1\n\tsdcard 1\n\tdelay 1500\n\tpowerOn\n\tdelay 5000\n\tdelay $Optional_GPIO_Hold_Time\n\tpedl 0\n\tsdcard 0\n\n\tlogComment ====== s1_md_sail_edl finish ======\n\n\ndef bootToUEFI()\n\tlogComment ====== s1_uefi start ======\n\n\treset\n\tvolup 1\n\tdelay 1000\n\tpkey 1\n\tvoldn 0\n\tpedl 0\n\tdelay 8000\n\tdelay $Optional_GPIO_Hold_Time\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\tpkey 0\n\tvolup 0 \n\n\tlogComment ======s1_uefi finish ======\n\n\ndef bootToFastboot()\n\tlogComment ====== s1_fastboot start ======\n\n\tpowerOff\n\tdelay 20\n\tfastboot 0\n\tpowerOn\n\tdelay 2000\n\tfastboot 1\n\n\tlogComment ====== s1_fastboot finish ======\n\n\n\ndef WAKEIN()\n\tlogComment ====== s1_WAKEIN start ======\n\n\t\n\twakein 1\n\tdelay 50\n\twakein 0\n\n\tlogComment ====== s1_WAKEIN finish ======\n\n\ndef mculesspoff()\n\tlogComment ====== s1_mculesspoff start ======\n\n\t\n\tfastpoff 1\n\tdelay 50\n\tfastpoff 0\n\n\tlogComment ====== s1_mculesspoff finish ======\n", - "supportedFirmwareVer": [ - 16 - ], "tabs": [ { "configurable": true, @@ -433,11 +360,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "0", "label": "Additional boot delay (ms)", "name": "Optional_GPIO_Hold_Time", "tooltip": "Add optional hold for bootup", diff --git a/configurations/TAC_PSOC_66.pinout.json b/configurations/TAC_PSOC_66.pinout.json new file mode 100644 index 0000000..1abe515 --- /dev/null +++ b/configurations/TAC_PSOC_66.pinout.json @@ -0,0 +1,207 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "Hawi MTP8975 - PSoC", + "format": "tac-pinout", + "name": "Hawi MTP8975", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "msmreset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "rcmsel", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "48" + }, + { + "classic_action": "", + "command": "msmreset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "49" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 66, + "platform_type": "PSOC", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToBatteryEDL()\n\tlogComment ====== bootToBatteryEDL start ======\n\t\n\tpedl 1 //set EDL high\n\tvoldn 1 //reset MTP after 115 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\t\n\t//reset buttons\n\tdelay 6000\n\tvoldn 0 \n\tpedl 0\n\n\tlogComment ====== bootToBatteryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef batteryReset()\n\tlogComment ====== batteryReset ======\n\t\n\tpedl 0 //reset EDL\n\tvoldn 1 //reset MTP after 14 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0 //release voldn to stop MTP reset\n\n\tlogComment ====== batteryReset ======", + "supportedFirmwareVer": [ + 17 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_PSOC_66.tcnf b/configurations/TAC_PSOC_66.tcnf index a60a08b..d57b9f8 100644 --- a/configurations/TAC_PSOC_66.tcnf +++ b/configurations/TAC_PSOC_66.tcnf @@ -64,323 +64,253 @@ "form_dimension": "560,819", "modification_date": "Wed Apr 22 10:25:41 2026", "name": "Hawi MTP8975", + "pinout_ref": "TAC_PSOC_66.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EUD (Embedded USB Debug)", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 0", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 0", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "TAC_RESET_SEC", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "", - "command": "msmreset", "command_group": 3, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "", - "command": "rcmsel", "command_group": 3, "enabled": true, "help_hint": "RCM MUX Select", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "RCM MUX Select", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "0,4", "tab_name": "General" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "", - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "48", + "ref": { + "pin_number": "48" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "", - "command": "msmreset", "command_group": 3, "enabled": true, "help_hint": "Reset the MSM by pulling PS_HOLD low", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "MSM RESET", - "pin_number": "49", + "ref": { + "pin_number": "49" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "EDL (Emergency Download Mode)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 0 (VBUS Only)", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,0", "tab_name": "General" } ], "platform_id": 66, "platform_type": "PSOC", - "reset_enabled": false, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $edl\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToBatteryEDL()\n\tlogComment ====== bootToBatteryEDL start ======\n\t\n\tpedl 1 //set EDL high\n\tvoldn 1 //reset MTP after 115 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\t\n\t//reset buttons\n\tdelay 6000\n\tvoldn 0 \n\tpedl 0\n\n\tlogComment ====== bootToBatteryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay $uefi\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastboot()\n\tlogComment ====== bootToFastboot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay $fastboot\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastboot finished ======\n\ndef batteryReset()\n\tlogComment ====== batteryReset ======\n\t\n\tpedl 0 //reset EDL\n\tvoldn 1 //reset MTP after 14 seconds\n\tdelay 14000\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tdelay 6000\n\tvoldn 0 //release voldn to stop MTP reset\n\n\tlogComment ====== batteryReset ======", - "supportedFirmwareVer": [ - 17 - ], "tabs": [ { "configurable": true, @@ -415,11 +345,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -427,7 +355,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -435,7 +362,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_PSOC_7.pinout.json b/configurations/TAC_PSOC_7.pinout.json new file mode 100644 index 0000000..df570a2 --- /dev/null +++ b/configurations/TAC_PSOC_7.pinout.json @@ -0,0 +1,179 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "Alpaca V3.1", + "format": "tac-pinout", + "name": "Alpaca V3.1", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 7, + "platform_type": "PSOC", + "reset_enabled": true, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + ] +} diff --git a/configurations/TAC_PSOC_7.tcnf b/configurations/TAC_PSOC_7.tcnf index 9180a34..a0d199c 100644 --- a/configurations/TAC_PSOC_7.tcnf +++ b/configurations/TAC_PSOC_7.tcnf @@ -55,295 +55,231 @@ "fileVersion": 1, "modification_date": "Mon Feb 13 18:45:38 2023", "name": "Alpaca V3.1", + "pinout_ref": "TAC_PSOC_7.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "1,1", "tab_name": "Fusion" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary PM_RESIN_N", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "1,2", "tab_name": "Fusion" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "1,2", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 1, "enabled": true, "help_hint": "Disconnects VBUS for USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 1", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "3,1", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "1,3", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Emergency Download Mode (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 0", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "2,1", "tab_name": "General" } ], "platform_id": 7, "platform_type": "PSOC", - "reset_enabled": true, - "script": "def powerOffTheDevice() \n\tlogComment ====== powerOffTheDevice sequence start ======\n\n\tbattery 1\n\tusb0 1\n\tusb1 1\n\n\tlogComment ====== powerOffTheDevice sequence finish ======\n\ndef powerOnTheDevice()\n\tlogComment ====== powerOnTheDevice sequence start ======\n\n\tdelay 500\n\tbattery 0\n\tdelay 900\n\tusb0 0\n\tusb1 0\n\tdelay 30\n\n\tlogComment ====== powerOnTheDevice sequence finish ======\n\ndef powerOff()\n\tlogComment ====== powerOff start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 0\n\n\tlogComment ====== powerOff finish ======\n\ndef powerOn()\n\tlogComment ====== powerOn start ======\n\n\tpowerOff\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tlogComment ====== powerOn finish ======\n\ndef bootToEDL()\n\tlogComment ====== bootToEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tpedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 1300\n\tpkey 0\n\n\tpedl 0\n\n\tlogComment ====== bootToEDL finish ======\n\ndef bootToSecondaryEDL()\n\tlogComment ====== bootToSecondaryEDL start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 0\n\n\tsedl 1\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 800\n\tpkey 0\n\n\tdelay 1300\n\n\tsedl 0\n\n\tlogComment ====== bootToSecondaryEDL finish ======\n\ndef bootToUEFI()\n\tlogComment ====== bootToUEFIMenu start ======\n\n\tpowerOffTheDevice\n\n\t// Put buttons in a set state\n\tpkey 0\n\tvolup 1\n\tvoldn 0\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\tvolup 0\n\tdelay 12\n\tpkey 1\n\tvolup 1\n\n\tpkey 0\n\tvolup 0\n\n\tlogComment ====== bootToUEFIMenu finish ======\n\ndef bootToFastBoot()\n\tlogComment ====== bootToFastBoot start ======\n\n\tpowerOffTheDevice\n\n\tpkey 0\n\tvolup 0\n\tvoldn 1\n\n\tpedl 0\n\n\tpowerOnTheDevice\n\n\tpkey 1\n\tdelay 8000\n\tpkey 0\n\n\tdelay 8000\n\tvoldn 0\n\tdelay 30\n\tvoldn 1\n\n\tvoldn 0\n\n\tlogComment ====== bootToFastBoot finished ======\n", - "supportedFirmwareVer": [ - 15 - ], "tabs": [ { "configurable": true, @@ -386,5 +322,6 @@ "visible": true } ], - "usb_descriptor": "" + "variables": [ + ] } diff --git a/configurations/TAC_PSOC_74.pinout.json b/configurations/TAC_PSOC_74.pinout.json new file mode 100644 index 0000000..a6e0cab --- /dev/null +++ b/configurations/TAC_PSOC_74.pinout.json @@ -0,0 +1,207 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "30-P9415-2 Dongle for Aliso", + "format": "tac-pinout", + "name": "Aliso CDP", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "48" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "49" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 74, + "platform_type": "PSOC", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", + "supportedFirmwareVer": [ + 15 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_PSOC_74.tcnf b/configurations/TAC_PSOC_74.tcnf index 0114587..c459e8f 100644 --- a/configurations/TAC_PSOC_74.tcnf +++ b/configurations/TAC_PSOC_74.tcnf @@ -1,18 +1,5 @@ { - "platform_id": 74, "author": "Saivaraprasad Bolloju ", - "creation_date": "Thu Oct 22 15:21:39 2025", - "modification_date": "Thu Oct 22 15:21:39 2025", - "name": "Aliso CDP", - "platform_type": "PSOC", - "description": "30-P9415-2 Dongle for Aliso", - "usb_descriptor": "", - "reset_enabled": false, - "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", - "fileVersion": 53, - "supportedFirmwareVer": [ - 15 - ], "buttons": [ { "cellLocation": "0,1", @@ -63,354 +50,296 @@ "tooltip": "Powers off the MTP/Device" } ], + "creation_date": "Thu Oct 22 15:21:39 2025", + "description": "30-P9415-2 Dongle for Aliso", + "fileVersion": 53, + "modification_date": "Thu Oct 22 15:21:39 2025", + "name": "Aliso CDP", + "pinout_ref": "TAC_PSOC_74.pinout.json", "pins": [ { - "command": "eud", "command_group": 3, "enabled": true, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "0,4", - "classic_action": "TAC_SOFT_RESET", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "eud", "command_group": 3, "enabled": false, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,4", - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "uim1", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "inverted": false, "name": "Disconnect UIM 1", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "0,0", - "classic_action": "TAC_UIM1_DIS", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "uim2", "command_group": 3, "enabled": true, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", - "classic_action": "TAC_UIM2_DIS", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "headset", "command_group": 3, "enabled": true, "help_hint": "Disconnects the headset", - "initial_value": false, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", - "classic_action": "TAC_HEADSET_DIS", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", - "classic_action": "", - "initialization_priority": -1, "tab_name": "" }, { - "command": "sedl", "command_group": 3, "enabled": true, "help_hint": "Secondary EDL", - "initial_value": false, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "0,0", - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "initialization_priority": -1, "tab_name": "Fusion" }, { - "command": "sresn", "command_group": 3, "enabled": true, "help_hint": "Secondary PM_RESIN_N", - "initial_value": false, - "inverted": false, "name": "Secondary PM_RESIN_N", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "0,1", - "classic_action": "TAC_RESET_SEC", - "initialization_priority": -1, "tab_name": "Fusion" }, { - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", - "classic_action": "TAC_VOL_UP", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "usb1", "command_group": 1, "enabled": true, "help_hint": "Disconnects VBUS for USB1", - "initial_value": false, - "inverted": true, "name": "USB 1", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "2,0", - "classic_action": "TAC_USB1_DIS", - "initialization_priority": 2, "tab_name": "General" }, { - "command": "pshold", "command_group": 3, "enabled": false, "help_hint": "Forces PSHold high", - "initial_value": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", - "classic_action": "TAC_FORCE_PS_HOLD", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "0,2", - "classic_action": "", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "-1,-1", - "classic_action": "", - "initialization_priority": -1, "tab_name": "" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", - "classic_action": "", - "initialization_priority": -1, "tab_name": "" }, { - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "0,3", - "classic_action": "TAC_SDCARD_DISC", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "inverted": false, "name": "", - "pin_number": "48", + "ref": { + "pin_number": "48" + }, "run_priority": "-1,-1", - "classic_action": "", - "initialization_priority": -1, "tab_name": "" }, { - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "inverted": false, "name": "", - "pin_number": "49", + "ref": { + "pin_number": "49" + }, "run_priority": "-1,-1", - "classic_action": "", - "initialization_priority": -1, "tab_name": "" }, { - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", - "classic_action": "TAC_TC_START", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", - "classic_action": "TAC_RESET_PRI", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", - "classic_action": "TAC_POWER_OFF", - "initialization_priority": 2, "tab_name": "General" }, { - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "inverted": false, "name": "Emergency Download Mode (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,1", - "classic_action": "TAC_SW_DWNLD_PRI", - "initialization_priority": -1, "tab_name": "General" }, { - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "inverted": true, "name": "USB 0", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,0", - "classic_action": "TAC_USB0_DIS", - "initialization_priority": 2, "tab_name": "General" } ], + "platform_id": 74, + "platform_type": "PSOC", "tabs": [ { "configurable": true, "moveable": false, - "ordinal": 0, "name": "General", + "ordinal": 0, "user_tab": false, "visible": true }, { "configurable": false, "moveable": false, - "ordinal": 1, "name": "Device Info", + "ordinal": 1, "user_tab": false, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 2, "name": "I2C", + "ordinal": 2, "user_tab": true, "visible": true }, { "configurable": true, "moveable": true, - "ordinal": 3, "name": "Fusion", + "ordinal": 3, "user_tab": true, "visible": true }, { "configurable": false, "moveable": true, - "ordinal": 4, "name": "Terminal", + "ordinal": 4, "user_tab": false, "visible": true } @@ -418,7 +347,6 @@ "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -426,7 +354,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -434,7 +361,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/configurations/TAC_PSOC_82.pinout.json b/configurations/TAC_PSOC_82.pinout.json new file mode 100644 index 0000000..5174403 --- /dev/null +++ b/configurations/TAC_PSOC_82.pinout.json @@ -0,0 +1,208 @@ +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "description": "SHIKRA PSOC", + "format": "tac-pinout", + "name": "SHIKRA PSOC", + "pins": [ + { + "classic_action": "TAC_SOFT_RESET", + "command": "eud", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "15" + }, + { + "classic_action": "TC_EUD_EARLY_BOOT_EN", + "command": "uim1", + "initial_value": false, + "initialization_priority": -1, + "inverted": true, + "pin_number": "16" + }, + { + "classic_action": "TAC_UIM1_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": true, + "pin_number": "18" + }, + { + "classic_action": "TAC_UIM2_DIS", + "command": "uim2", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "19" + }, + { + "classic_action": "TAC_HEADSET_DIS", + "command": "headset", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "21" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "29" + }, + { + "classic_action": "TAC_FORCE_USB_BOOT_SEC", + "command": "sedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "30" + }, + { + "classic_action": "TAC_RESET_SEC", + "command": "sresn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "31" + }, + { + "classic_action": "TAC_VOL_UP", + "command": "volup", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "34" + }, + { + "classic_action": "TAC_USB1_DIS", + "command": "usb1", + "initial_value": false, + "initialization_priority": 2, + "inverted": false, + "pin_number": "36" + }, + { + "classic_action": "TAC_FORCE_PS_HOLD", + "command": "pshold", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "37" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "38" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "39" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "46" + }, + { + "classic_action": "TAC_SDCARD_DISC", + "command": "sdcard", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "47" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "48" + }, + { + "classic_action": "", + "command": "", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "49" + }, + { + "classic_action": "TAC_TC_START", + "command": "pkey", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "50" + }, + { + "classic_action": "TAC_RESET_PRI", + "command": "voldn", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "51" + }, + { + "classic_action": "TAC_POWER_OFF", + "command": "battery", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "53" + }, + { + "classic_action": "TAC_SW_DWNLD_PRI", + "command": "pedl", + "initial_value": false, + "initialization_priority": -1, + "inverted": false, + "pin_number": "54" + }, + { + "classic_action": "TAC_USB0_DIS", + "command": "usb0", + "initial_value": false, + "initialization_priority": 2, + "inverted": true, + "pin_number": "55" + } + ], + "platform_id": 82, + "platform_type": "PSOC", + "reset_enabled": false, + "schema_version": "1.0", + "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", + "supportedFirmwareVer": [ + 15, + 18 + ], + "usb_descriptor": "", + "variables": [ + { + "default_value": "1300", + "name": "edl" + }, + { + "default_value": "8000", + "name": "fastboot" + }, + { + "default_value": "8000", + "name": "uefi" + } + ] +} diff --git a/configurations/TAC_PSOC_82.tcnf b/configurations/TAC_PSOC_82.tcnf index 2a5e89c..51f9690 100644 --- a/configurations/TAC_PSOC_82.tcnf +++ b/configurations/TAC_PSOC_82.tcnf @@ -47,324 +47,253 @@ "fileVersion": 38, "modification_date": "Wed May 14 02:12:20 2026", "name": "SHIKRA PSOC", + "pinout_ref": "TAC_PSOC_82.pinout.json", "pins": [ { - "classic_action": "TAC_SOFT_RESET", - "command": "eud", "command_group": 3, "enabled": false, "help_hint": "Enabled the embedded USB debugger", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Embedded USB Debug (EUD)", - "pin_number": "15", + "ref": { + "pin_number": "15" + }, "run_priority": "0,3", "tab_name": "General" }, { - "classic_action": "TC_EUD_EARLY_BOOT_EN", - "command": "uim1", "command_group": 3, "enabled": false, "help_hint": "Disconnects UIM 1", - "initial_value": false, - "initialization_priority": -1, - "inverted": true, "name": "Disconnect UIM 1", - "pin_number": "16", + "ref": { + "pin_number": "16" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM1_DIS", - "command": "uim2", "command_group": 3, "enabled": false, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": true, "name": "Disconnect UIM 2", - "pin_number": "18", + "ref": { + "pin_number": "18" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_UIM2_DIS", - "command": "uim2", "command_group": 3, "enabled": false, "help_hint": "Disconnects UIM 2", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect UIM 2", - "pin_number": "19", + "ref": { + "pin_number": "19" + }, "run_priority": "1,0", "tab_name": "General" }, { - "classic_action": "TAC_HEADSET_DIS", - "command": "headset", "command_group": 3, "enabled": false, "help_hint": "Disconnects the headset", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Headset Disconnect", - "pin_number": "21", + "ref": { + "pin_number": "21" + }, "run_priority": "0,5", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "29", + "ref": { + "pin_number": "29" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_FORCE_USB_BOOT_SEC", - "command": "sedl", "command_group": 3, "enabled": false, "help_hint": "Secondary EDL", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary Emergency Download Mode (EDL)", - "pin_number": "30", + "ref": { + "pin_number": "30" + }, "run_priority": "0,0", "tab_name": "Fusion" }, { - "classic_action": "TAC_RESET_SEC", - "command": "sresn", "command_group": 3, "enabled": false, "help_hint": "Secondary PM_RESIN_N", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Secondary PM_RESIN_N", - "pin_number": "31", + "ref": { + "pin_number": "31" + }, "run_priority": "0,1", "tab_name": "Fusion" }, { - "classic_action": "TAC_VOL_UP", - "command": "volup", "command_group": 2, "enabled": true, "help_hint": "Presses the volume up button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Up", - "pin_number": "34", + "ref": { + "pin_number": "34" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB1_DIS", - "command": "usb1", "command_group": 1, "enabled": false, "help_hint": "Disconnects VBUS for USB1", - "initial_value": false, - "initialization_priority": 2, - "inverted": false, "name": "USB 1", - "pin_number": "36", + "ref": { + "pin_number": "36" + }, "run_priority": "2,0", "tab_name": "General" }, { - "classic_action": "TAC_FORCE_PS_HOLD", - "command": "pshold", "command_group": 3, "enabled": true, "help_hint": "Forces PSHold high", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Force PS_HOLD High", - "pin_number": "37", + "ref": { + "pin_number": "37" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "38", + "ref": { + "pin_number": "38" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "39", + "ref": { + "pin_number": "39" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "46", + "ref": { + "pin_number": "46" + }, "run_priority": "-1,-1", "tab_name": "" }, { - "classic_action": "TAC_SDCARD_DISC", - "command": "sdcard", "command_group": 3, "enabled": true, "help_hint": "Disconnects the SD card slot", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Disconnect SD Card", - "pin_number": "47", + "ref": { + "pin_number": "47" + }, "run_priority": "1,1", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "48", + "ref": { + "pin_number": "48" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "", - "command": "", "command_group": 0, "enabled": false, "help_hint": "", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "", - "pin_number": "49", + "ref": { + "pin_number": "49" + }, "run_priority": "-1,-1", "tab_name": "General" }, { - "classic_action": "TAC_TC_START", - "command": "pkey", "command_group": 2, "enabled": true, "help_hint": "Presses the power key button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Power Key", - "pin_number": "50", + "ref": { + "pin_number": "50" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_RESET_PRI", - "command": "voldn", "command_group": 2, "enabled": true, "help_hint": "Presses the volume down button", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Volume Down", - "pin_number": "51", + "ref": { + "pin_number": "51" + }, "run_priority": "0,2", "tab_name": "General" }, { - "classic_action": "TAC_POWER_OFF", - "command": "battery", "command_group": 1, "enabled": true, "help_hint": "Battery Disconnect", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "Battery", - "pin_number": "53", + "ref": { + "pin_number": "53" + }, "run_priority": "0,0", "tab_name": "General" }, { - "classic_action": "TAC_SW_DWNLD_PRI", - "command": "pedl", "command_group": 3, "enabled": true, "help_hint": "Enables Primary Emergency Download Mode", - "initial_value": false, - "initialization_priority": -1, - "inverted": false, "name": "Emergency Download Mode (EDL)", - "pin_number": "54", + "ref": { + "pin_number": "54" + }, "run_priority": "0,1", "tab_name": "General" }, { - "classic_action": "TAC_USB0_DIS", - "command": "usb0", "command_group": 1, "enabled": true, "help_hint": "Disconnnects VBUS for USB 0", - "initial_value": false, - "initialization_priority": 2, - "inverted": true, "name": "USB 0", - "pin_number": "55", + "ref": { + "pin_number": "55" + }, "run_priority": "1,0", "tab_name": "General" } ], "platform_id": 82, "platform_type": "PSOC", - "reset_enabled": false, - "script": "def powerOffTheDevice() \r\n\tlogComment ====== powerOffTheDevice sequence start ======\r\n\r\n\tbattery 1\r\n\tusb0 1\r\n\tusb1 1\r\n\r\n\tlogComment ====== powerOffTheDevice sequence finish ======\r\n\r\ndef powerOnTheDevice()\r\n\tlogComment ====== powerOnTheDevice sequence start ======\r\n\r\n\tdelay 500\r\n\tbattery 0\r\n\tdelay 900\r\n\tusb0 0\r\n\tusb1 0\r\n\tdelay 30\r\n\r\n\tlogComment ====== powerOnTheDevice sequence finish ======\r\n\r\ndef powerOff()\r\n\tlogComment ====== powerOff start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== powerOff finish ======\r\n\r\ndef powerOn()\r\n\tlogComment ====== powerOn start ======\r\n\r\n\tpowerOff\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tlogComment ====== powerOn finish ======\r\n\r\ndef bootToEDL()\r\n\tlogComment ====== bootToEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tpedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $edl\r\n\tpkey 0\r\n\r\n\tpedl 0\r\n\r\n\tlogComment ====== bootToEDL finish ======\r\n\r\ndef bootToSecondaryEDL()\r\n\tlogComment ====== bootToSecondaryEDL start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 0\r\n\r\n\tsedl 1\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay 1300\r\n\r\n\tsedl 0\r\n\r\n\tlogComment ====== bootToSecondaryEDL finish ======\r\n\r\ndef bootToUEFI()\r\n\tlogComment ====== bootToUEFIMenu start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\t// Put buttons in a set state\r\n\tpkey 0\r\n\tvolup 1\r\n\tvoldn 0\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay $uefi\r\n\tpkey 0\r\n\tvolup 0\r\n\tdelay 12\r\n\tpkey 1\r\n\tvolup 1\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\r\n\tlogComment ====== bootToUEFIMenu finish ======\r\n\r\ndef bootToFastboot()\r\n\tlogComment ====== bootToFastboot start ======\r\n\r\n\tpowerOffTheDevice\r\n\r\n\tpkey 0\r\n\tvolup 0\r\n\tvoldn 1\r\n\r\n\tpedl 0\r\n\r\n\tpowerOnTheDevice\r\n\r\n\tpkey 1\r\n\tdelay 800\r\n\tpkey 0\r\n\r\n\tdelay $fastboot\r\n\tvoldn 0\r\n\tdelay 30\r\n\tvoldn 1\r\n\r\n\tvoldn 0\r\n\r\n\tlogComment ====== bootToFastboot finished ======\r\n", - "supportedFirmwareVer": [ - 15, - 18 - ], "tabs": [ { "configurable": true, @@ -407,11 +336,9 @@ "visible": true } ], - "usb_descriptor": "", "variables": [ { "cellLocation": "0,0", - "default_value": "1300", "label": "EDL timing (ms)", "name": "edl", "tooltip": "Configurable Boot to EDL timing in milliseconds", @@ -419,7 +346,6 @@ }, { "cellLocation": "1,0", - "default_value": "8000", "label": "Fastboot timing (ms)", "name": "fastboot", "tooltip": "Configurable Boot to fastboot timing in milliseconds", @@ -427,7 +353,6 @@ }, { "cellLocation": "0,1", - "default_value": "8000", "label": "UEFI timing (ms)", "name": "uefi", "tooltip": "Configurable Boot to UEFI timing in milliseconds", diff --git a/docs/configuration-pinout-format.md b/docs/configuration-pinout-format.md new file mode 100644 index 0000000..25a49a1 --- /dev/null +++ b/docs/configuration-pinout-format.md @@ -0,0 +1,135 @@ +# TAC Configuration File Format + +A TAC configuration is stored on disk as **two sibling JSON files**: + +| File | Purpose | Audience | +| :-- | :-- | :-- | +| `TAC__.pinout.json` | Hardware pinout + automation script | **Shared** — this repo *and* external/3rd-party tools | +| `TAC__.tcnf` | UI layout (buttons, tabs, on-screen labels) | The QTAC application | + +The `.tcnf` references its pinout file via a relative `pinout_ref` field. The QTAC +app loads both and merges them in memory; external tools only need the +`*.pinout.json` file, which is fully self-contained. + +This split lets the hardware description (which physical pin drives which logical +function, and the script that sequences them) be reused outside QTAC without +dragging UI concerns along. + +## Pinout file (`*.pinout.json`) — the shared artifact + +Self-describing: tools should verify `format == "tac-pinout"` before parsing. A +formal JSON Schema (Draft 2020-12) is provided at [`schemas/pinout-1.0.json`](../schemas/pinout-1.0.json) +(published as `https://qualcomm.github.io/tac/schemas/pinout-1.0.json`); validate a +pinout file against it with any standard JSON Schema validator, e.g.: + +```bash +python3 -m pip install jsonschema +python3 -c "import json,jsonschema,sys; jsonschema.validate(json.load(open(sys.argv[1])), json.load(open('schemas/pinout-1.0.json')))" configurations/TAC_FTDI_15.pinout.json +``` + +```json +{ + "$schema": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "format": "tac-pinout", + "schema_version": "1.0", + + "platform_type": "FTDI", + "platform_id": 81, + "name": "Arduino Ventuno Q", + "description": "Arduino Ventuno Q", + "usb_descriptor": "VentunoQ BugHopper", + "reset_enabled": false, + + "chip_count": 1, + "bus": [ + { "chip_index": 0, "bus": "C", "bus_function": 2 } + ], + "pins": [ + { + "chip_index": 0, "bus": "C", "pin_number": "0", + "command": "edl", + "input": false, + "inverted": false, + "initial_value": false, + "priority": 0 + } + ], + "variables": [ + { "name": "edl", "default_value": "100" } + ], + "script": "def powerOff()\n\tbattery 1\n..." +} +``` + +### Field reference + +- **Envelope** — `$schema`, `format` (always `"tac-pinout"`), `schema_version`. +- **Identity** — `platform_type`, `platform_id`, `name`, `description`. Also present + in the `.tcnf`; the `.tcnf` is authoritative when edited (QTAC writes both, so + they never diverge). +- **`usb_descriptor`** — USB string used to match a connected debug board. +- **`reset_enabled`** — whether the board exposes a hardware reset line. +- **`chip_count`** / **`bus[]`** — FTDI only. `bus[]` maps each `chip_index`+`bus` + letter to a `bus_function` (e.g. VCP vs D2XX). +- **`pins[]`** — one entry per physical pin. Identity key is `chip_index`+`bus`+ + `pin_number` for FTDI, or just `pin_number` for PSOC/PIC32CX. Hardware fields: + - `command` — the logical name the script drives (e.g. `edl`, `battery`, `pkey`). + - `input` — pin direction (FTDI). + - `inverted` — active-low logic. + - `initial_value` — state applied at initialization. + - `priority` / `initialization_priority` — initialization order. + - `classic_action` — PSOC/PIC32CX built-in action binding. +- **`variables[]`** — `name` + `default_value`. The script substitutes `$name` + tokens (e.g. `delay $edl`). Labels/tooltips/layout for these live in the `.tcnf`. +- **`script`** — the "Alpaca" automation language. `def ()` blocks made of: + - ` <0|1>` — drive a pin by its `command` name. + - `delay ` — wait. + - `logComment ` — annotate the log. + - `` — call another function. + +## UI overlay file (`*.tcnf`) + +```json +{ + "pinout_ref": "TAC_FT232H_81.pinout.json", + "name": "Arduino Ventuno Q", + "platform_type": "FT232H", "platform_id": 81, + "tabs": [ ... ], + "buttons": [ ... ], + "variables": [ + { "name": "edl", "label": "EDL timing (ms)", "tooltip": "...", "type": 1, "cellLocation": "0,0" } + ], + "pins": [ + { + "ref": { "chip_index": 0, "bus": "C", "pin_number": "0" }, + "enabled": true, + "name": "EDL", + "help_hint": "Boot mode select...", + "group": "General", + "command_group": 3, + "run_priority": "0,0" + } + ] +} +``` + +Each overlay pin keys back to its hardware pin via the `ref` object (the same +identity fields used in the pinout file). UI-only pin fields: `enabled`, `name` +(display label), `help_hint` (tooltip), `group`/`tab_name`, `command_group`, +`run_priority` (grid cell). + +## Backward compatibility & migration + +QTAC still loads **legacy combined `.tcnf`** files (everything inline, no +`pinout_ref`). Opening and saving such a file in the Configuration Editor upgrades +it to the two-file layout automatically. + +To migrate a folder of legacy configs in bulk, use the `TACConfigSplit` utility: + +```bash +TACConfigSplit /path/to/configurations # split in place +TACConfigSplit /path/to/configurations --dry-run # preview only +``` + +Already-split files are skipped. Migrate under version control so the diff is +reviewable. diff --git a/schemas/pinout-1.0.json b/schemas/pinout-1.0.json new file mode 100644 index 0000000..00cb987 --- /dev/null +++ b/schemas/pinout-1.0.json @@ -0,0 +1,116 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "https://qualcomm.github.io/tac/schemas/pinout-1.0.json", + "title": "TAC Pinout", + "description": "Shared hardware pinout and automation script for a QTAC debug board. Language-neutral, externally-consumable half of a configuration; the UI overlay lives in a sibling *.tcnf that references it via 'pinout_ref'. Tools should verify 'format' == 'tac-pinout' before relying on the contents.", + "type": "object", + "required": [ + "format", "schema_version", "platform_id", "platform_type", "name", + "description", "usb_descriptor", "reset_enabled", "script", "pins", "variables" + ], + "additionalProperties": false, + "properties": { + "$schema": { "type": "string" }, + "format": { "const": "tac-pinout" }, + "schema_version": { "const": "1.0" }, + "platform_id": { "type": "integer", "minimum": 0 }, + "platform_type": { "type": "string", "enum": ["FTDI", "FT232H", "PSOC", "PIC32CXAuto"] }, + "name": { "type": "string", "minLength": 1 }, + "description": { "type": "string" }, + "usb_descriptor": { "type": "string" }, + "reset_enabled": { "type": "boolean" }, + "chip_count": { "type": "integer", "minimum": 1 }, + "bus": { "$ref": "#/definitions/bus" }, + "pins": { "$ref": "#/definitions/pins" }, + "variables": { "$ref": "#/definitions/variables" }, + "supportedFirmwareVer": { "type": "array", "items": { "type": "integer", "minimum": 1 } }, + "script": { "type": "string" } + }, + "if": { "properties": { "platform_type": { "enum": ["FTDI", "FT232H"] } } }, + "then": { "required": ["chip_count", "bus"] }, + "else": { + "if": { "properties": { "platform_type": { "const": "PSOC" } } }, + "then": { "required": ["supportedFirmwareVer"] } + }, + "definitions": { + "pins": { + "type": "array", + "items": { + "oneOf": [ + { "$ref": "#/definitions/ftdi_pin" }, + { "$ref": "#/definitions/psoc_pin" }, + { "$ref": "#/definitions/pic32cx_pin" } + ] + } + }, + "ftdi_pin": { + "type": "object", + "required": [ + "chip_index", "bus", "pin_number", "command", + "input", "inverted", "initial_value", "priority" + ], + "additionalProperties": false, + "properties": { + "chip_index": { "type": "integer", "minimum": 0 }, + "bus": { "type": "string", "enum": ["A", "B", "C", "D"] }, + "pin_number": { "type": "string" }, + "command": { "type": "string" }, + "input": { "type": "boolean" }, + "inverted": { "type": "boolean" }, + "initial_value": { "type": "boolean" }, + "priority": { "type": "integer" } + } + }, + "psoc_pin": { + "type": "object", + "required": [ + "pin_number", "command", "inverted", + "initial_value", "initialization_priority", "classic_action" + ], + "additionalProperties": false, + "properties": { + "pin_number": { "type": "string" }, + "command": { "type": "string" }, + "inverted": { "type": "boolean" }, + "initial_value": { "type": "boolean" }, + "initialization_priority": { "type": "integer" }, + "classic_action": { "type": "string" } + } + }, + "pic32cx_pin": { + "type": "object", + "required": ["pin_number", "command", "inverted"], + "additionalProperties": false, + "properties": { + "pin_number": { "type": "integer", "minimum": 0 }, + "command": { "type": "string" }, + "inverted": { "type": "boolean" } + } + }, + "bus": { + "type": "array", + "items": { + "type": "object", + "required": ["bus", "bus_function", "chip_index"], + "additionalProperties": false, + "properties": { + "bus": { "type": "string", "enum": ["A", "B", "C", "D"] }, + "bus_function": { "type": "integer" }, + "chip_index": { "type": "integer", "minimum": 0 } + } + } + }, + "variables": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "default_value"], + "additionalProperties": false, + "properties": { + "name": { "type": "string", "minLength": 1 }, + "default_value": { "type": "string" } + } + } + } + } +} diff --git a/schemas/tac-configuration-schema.json b/schemas/tac-configuration-schema.json new file mode 100644 index 0000000..f0d725e --- /dev/null +++ b/schemas/tac-configuration-schema.json @@ -0,0 +1,155 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema#", + "title": "TAC Platform Configuration (UI overlay)", + "description": "UI half of a QTAC configuration. References its shared hardware pinout (a sibling *.pinout.json conforming to schemas/pinout-1.0.json) via 'pinout_ref', and carries buttons, tabs and per-pin UI fields. Each pin entry keys back to a hardware pin through its 'ref'.", + "type": "object", + "required": [ + "platform_id", "platform_type", "name", "author", "description", + "fileVersion", "creation_date", "modification_date", + "pinout_ref", "tabs", "buttons", "pins", "variables" + ], + "additionalProperties": false, + "properties": { + "platform_id": { "type": "integer", "minimum": 0 }, + "platform_type": { "type": "string", "enum": ["FTDI", "FT232H", "PSOC", "PIC32CXAuto"] }, + "name": { "type": "string", "minLength": 1 }, + "author": { "type": "string", "minLength": 1 }, + "description": { "type": "string" }, + "fileVersion": { "type": "integer", "minimum": 1 }, + "creation_date": { "type": "string", "minLength": 1 }, + "modification_date": { "type": "string", "minLength": 1 }, + "form_dimension": { "type": "string" }, + "pinout_ref": { "type": "string", "pattern": "^.*\\.pinout\\.json$" }, + "tabs": { "$ref": "#/definitions/tabs" }, + "buttons": { "$ref": "#/definitions/buttons" }, + "variables": { "$ref": "#/definitions/variables" }, + "pins": { "$ref": "#/definitions/pins" } + }, + "definitions": { + "tabs": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "user_tab", "moveable", "visible", "configurable", "ordinal"], + "additionalProperties": false, + "properties": { + "name": { "type": "string", "minLength": 1 }, + "user_tab": { "type": "boolean" }, + "moveable": { "type": "boolean" }, + "visible": { "type": "boolean" }, + "configurable": { "type": "boolean" }, + "ordinal": { "type": "integer", "minimum": 0 } + } + } + }, + "buttons": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "command", "command_group", "cellLocation", "tab", "tooltip"], + "additionalProperties": false, + "properties": { + "name": { "type": "string" }, + "command": { "type": "string" }, + "command_group": { "type": "integer" }, + "cellLocation": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, + "tab": { "type": "string" }, + "tooltip": { "type": "string" } + } + } + }, + "variables": { + "type": "array", + "items": { + "type": "object", + "required": ["name", "label", "tooltip", "type", "cellLocation"], + "additionalProperties": false, + "properties": { + "name": { "type": "string", "minLength": 1 }, + "label": { "type": "string" }, + "tooltip": { "type": "string" }, + "type": { "type": "integer" }, + "cellLocation": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" } + } + } + }, + "pins": { + "type": "array", + "items": { + "oneOf": [ + { "$ref": "#/definitions/ftdi_pin" }, + { "$ref": "#/definitions/psoc_pin" }, + { "$ref": "#/definitions/pic32cx_pin" } + ] + } + }, + "ftdi_pin": { + "type": "object", + "required": ["ref", "enabled", "name", "help_hint", "command_group", "run_priority", "group"], + "additionalProperties": false, + "properties": { + "ref": { "$ref": "#/definitions/ftdi_ref" }, + "enabled": { "type": "boolean" }, + "name": { "type": "string" }, + "help_hint": { "type": "string" }, + "command_group": { "type": "integer" }, + "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, + "group": { "type": "string" } + } + }, + "psoc_pin": { + "type": "object", + "required": ["ref", "enabled", "name", "help_hint", "command_group", "run_priority", "tab_name"], + "additionalProperties": false, + "properties": { + "ref": { "$ref": "#/definitions/psoc_ref" }, + "enabled": { "type": "boolean" }, + "name": { "type": "string" }, + "help_hint": { "type": "string" }, + "command_group": { "type": "integer" }, + "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, + "tab_name": { "type": "string" } + } + }, + "pic32cx_pin": { + "type": "object", + "required": ["ref", "enabled", "name", "help_hint", "command_group", "run_priority", "tab_name"], + "additionalProperties": false, + "properties": { + "ref": { "$ref": "#/definitions/pic32cx_ref" }, + "enabled": { "type": "boolean" }, + "name": { "type": "string" }, + "help_hint": { "type": "string" }, + "command_group": { "type": "integer" }, + "run_priority": { "type": "string", "pattern": "^-?[0-9]+,-?[0-9]+$" }, + "tab_name": { "type": "string" } + } + }, + "ftdi_ref": { + "type": "object", + "required": ["chip_index", "bus", "pin_number"], + "additionalProperties": false, + "properties": { + "chip_index": { "type": "integer", "minimum": 0 }, + "bus": { "type": "string", "enum": ["A", "B", "C", "D"] }, + "pin_number": { "type": "string" } + } + }, + "psoc_ref": { + "type": "object", + "required": ["pin_number"], + "additionalProperties": false, + "properties": { + "pin_number": { "type": "string" } + } + }, + "pic32cx_ref": { + "type": "object", + "required": ["pin_number"], + "additionalProperties": false, + "properties": { + "pin_number": { "type": "integer", "minimum": 0 } + } + } + } +} diff --git a/src/applications/CMakeLists.txt b/src/applications/CMakeLists.txt index e0c3d53..7a3dff5 100644 --- a/src/applications/CMakeLists.txt +++ b/src/applications/CMakeLists.txt @@ -14,6 +14,7 @@ add_subdirectory(devlist) add_subdirectory(tacdump) add_subdirectory(ftdi-check) add_subdirectory(updatedevicelist) +add_subdirectory(tac-config-split) add_subdirectory(device-catalog) add_subdirectory(test-automation-controller) add_subdirectory(tac-configuration-editor) diff --git a/src/applications/device-catalog/CMakeLists.txt b/src/applications/device-catalog/CMakeLists.txt index a82cf98..149ab73 100644 --- a/src/applications/device-catalog/CMakeLists.txt +++ b/src/applications/device-catalog/CMakeLists.txt @@ -50,8 +50,12 @@ target_link_libraries(${APP_NAME} PRIVATE Qt6::SerialPort Qt6::Widgets ftd2xx - $<$:UId;QCommond;QCommonConsoled> - $<$>:UI;QCommon;QCommonConsole> + # Quote the generator expression so target_link_libraries receives it as a + # single item. An unquoted $<...> containing ';' is split by CMake before the + # expression is evaluated; that split is only tolerated since CMake 3.23, + # whereas quoting works on the 3.22 minimum too. + "$<$:UId;QCommond;QCommonConsoled>" + "$<$>:UI;QCommon;QCommonConsole>" ) if(WIN32) diff --git a/src/applications/tac-config-split/CMakeLists.txt b/src/applications/tac-config-split/CMakeLists.txt new file mode 100644 index 0000000..553132b --- /dev/null +++ b/src/applications/tac-config-split/CMakeLists.txt @@ -0,0 +1,52 @@ +# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +# SPDX-License-Identifier: BSD-3-Clause + +include(${CMAKE_SOURCE_DIR}/src/libraries/qcommon-console/Common.cmake) + +set(APP_NAME TACConfigSplit) + +qt_add_executable(${APP_NAME} + main.cpp +) + +target_include_directories(${APP_NAME} PRIVATE + ${CMAKE_SOURCE_DIR}/src/libraries/qcommon-console + ${CMAKE_SOURCE_DIR}/src/libraries/qcommon +) + +target_link_directories(${APP_NAME} PRIVATE + ${STATIC_LIBPATH} +) + +target_link_libraries(${APP_NAME} PRIVATE + Qt6::Core + Qt6::SerialPort + Qt6::Xml + + $<$:QCommonConsoled> + $<$>:QCommonConsole> +) + +if(WIN32) + target_compile_options(${APP_NAME} PRIVATE + $<$,$>:/Zi> + ) +endif() + +if(UNIX AND NOT APPLE) + target_link_libraries(${APP_NAME} PRIVATE + dl + ) +endif() + +install(TARGETS ${APP_NAME} + BUNDLE DESTINATION . + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} +) + +qt_generate_deploy_app_script( + TARGET ${APP_NAME} + OUTPUT_SCRIPT deploy_script + NO_UNSUPPORTED_PLATFORM_ERROR +) +install(SCRIPT ${deploy_script}) diff --git a/src/applications/tac-config-split/main.cpp b/src/applications/tac-config-split/main.cpp new file mode 100644 index 0000000..007d56f --- /dev/null +++ b/src/applications/tac-config-split/main.cpp @@ -0,0 +1,164 @@ +// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. +// SPDX-License-Identifier: BSD-3-Clause + +// TAC Config Split +// +// Migrates legacy combined *.tcnf configuration files into the two-file layout: +// a shared, self-describing *.pinout.json (hardware pinout + automation script) +// that external tools can consume directly, plus a slimmed *.tcnf UI overlay that +// references it. The split reuses the production load()/save() path so field +// fidelity matches the application's own understanding of the format. + +// QCommonConsole +#include "AppCore.h" +#include "PlatformConfiguration.h" +#include "PreferencesBase.h" +#include "QCommonConsole.h" +#include "version.h" + +// QT +#include +#include +#include +#include +#include + +// C++ +#include + +namespace +{ +const QByteArray kPinoutRefMarker{"\"pinout_ref\""}; +const QString kPinoutSuffix{QStringLiteral(".pinout.json")}; + +QString pinoutNameFor(const QString& tcnfFileName) +{ + QString base = tcnfFileName; + const int dot = base.lastIndexOf(QLatin1Char('.')); + if (dot > 0) + base.truncate(dot); + + return base + kPinoutSuffix; +} + +bool alreadySplit(const QString& filePath) +{ + QFile file(filePath); + if (file.open(QIODevice::ReadOnly) == false) + return false; + + const QByteArray contents = file.readAll(); + file.close(); + + return contents.contains(kPinoutRefMarker); +} + +void printUsage() +{ + std::cout + << "Usage: TACConfigSplit [directory] [--dry-run]\n\n" + << "Splits each legacy combined *.tcnf in into a shared\n" + << "*.pinout.json (hardware pinout + script) plus a slim *.tcnf UI overlay\n" + << "that references it. Files already in the two-file format are skipped.\n\n" + << " directory Folder to migrate (default: current directory)\n" + << " --dry-run List the files that would be written without changing anything\n" + << " --help, -h Show this help\n"; +} +} // namespace + +int main(int argc, char* argv[]) +{ + const QString kAppName{"TACConfigSplit"}; + + QCoreApplication app(argc, argv); + app.setApplicationName(kAppName); + app.setApplicationVersion(TAC_CONFIG_SPLIT_VERSION); + + AppCore* appCore = AppCore::getAppCore(); + PreferencesBase preferencesBase; + preferencesBase.setAppName(kAppName.toLatin1(), TAC_CONFIG_SPLIT_VERSION); + appCore->setPreferences(&preferencesBase); + + InitializeQCommonConsole(); + + QStringList args = app.arguments(); + args.removeFirst(); // drop program name + + if (args.contains("--help") || args.contains("-h")) + { + printUsage(); + return 0; + } + + const bool dryRun = (args.removeAll("--dry-run") > 0); + const QString targetDir = args.isEmpty() ? QDir::currentPath() : args.first(); + + QDir configDir(targetDir); + if (configDir.exists() == false) + { + std::cerr << "Directory does not exist: " << targetDir.toStdString() << std::endl; + return 1; + } + + const QFileInfoList entries = + configDir.entryInfoList(QStringList() << "*.tcnf", QDir::Files, QDir::Name); + + int migrated = 0; + int skipped = 0; + int failed = 0; + + for (const QFileInfo& entry : entries) + { + const QString tcnfPath = entry.filePath(); + const QString pinoutName = pinoutNameFor(entry.fileName()); + const QString pinoutPath = configDir.filePath(pinoutName); + + if (alreadySplit(tcnfPath)) + { + std::cout << "skip (already split): " << entry.fileName().toStdString() << std::endl; + ++skipped; + continue; + } + + if (dryRun) + { + std::cout << "would write: " << entry.fileName().toStdString() + << " + " << pinoutName.toStdString() << std::endl; + ++migrated; + continue; + } + + PlatformConfiguration config = _PlatformConfiguration::openPlatformConfiguration(tcnfPath); + if (config.isNull()) + { + std::cerr << "FAILED to load: " << entry.fileName().toStdString() + << " (" << _PlatformConfiguration::getLastError().toStdString() << ")" + << std::endl; + ++failed; + continue; + } + + config->save(); + + if (QFile::exists(pinoutPath) == false) + { + std::cerr << "FAILED to write pinout for: " << entry.fileName().toStdString() + << " (" << _PlatformConfiguration::getLastError().toStdString() << ")" + << std::endl; + ++failed; + continue; + } + + std::cout << "split: " << entry.fileName().toStdString() + << " -> " << entry.fileName().toStdString() + << " + " << pinoutName.toStdString() << std::endl; + ++migrated; + } + + std::cout << "\nDone. " + << migrated << (dryRun ? " to migrate, " : " migrated, ") + << skipped << " skipped, " + << failed << " failed." << std::endl; + + return (failed > 0) ? 1 : 0; +} diff --git a/src/applications/tac-configuration-editor/CMakeLists.txt b/src/applications/tac-configuration-editor/CMakeLists.txt index 21ee652..18ffce5 100644 --- a/src/applications/tac-configuration-editor/CMakeLists.txt +++ b/src/applications/tac-configuration-editor/CMakeLists.txt @@ -63,8 +63,12 @@ target_link_libraries(${APP_NAME} PRIVATE Qt6::Xml ftd2xx - $<$:UId;QCommond;QCommonConsoled> - $<$>:UI;QCommon;QCommonConsole> + # Quote the generator expression so target_link_libraries receives it as a + # single item. An unquoted $<...> containing ';' is split by CMake before the + # expression is evaluated; that split is only tolerated since CMake 3.23, + # whereas quoting works on the 3.22 minimum too. + "$<$:UId;QCommond;QCommonConsoled>" + "$<$>:UI;QCommon;QCommonConsole>" ) if(WIN32) diff --git a/src/applications/tacdump/CMakeLists.txt b/src/applications/tacdump/CMakeLists.txt index 59b52fd..184110b 100644 --- a/src/applications/tacdump/CMakeLists.txt +++ b/src/applications/tacdump/CMakeLists.txt @@ -29,8 +29,12 @@ target_link_libraries(${APP_NAME} PRIVATE Qt6::Core Qt6::SerialPort - $<$:QCommonConsoled;ftd2xx> - $<$>:QCommonConsole;ftd2xx> + # Quote the generator expression so target_link_libraries receives it as a + # single item. An unquoted $<...> containing ';' is split by CMake before the + # expression is evaluated; that split is only tolerated since CMake 3.23, + # whereas quoting works on the 3.22 minimum too. + "$<$:QCommonConsoled;ftd2xx>" + "$<$>:QCommonConsole;ftd2xx>" ) if(WIN32) diff --git a/src/applications/test-automation-controller/CMakeLists.txt b/src/applications/test-automation-controller/CMakeLists.txt index 1ed46c6..ac122e5 100644 --- a/src/applications/test-automation-controller/CMakeLists.txt +++ b/src/applications/test-automation-controller/CMakeLists.txt @@ -54,8 +54,12 @@ target_link_libraries(${APP_NAME} PRIVATE Qt6::Widgets ftd2xx - $<$:UId;QCommond;QCommonConsoled> - $<$>:UI;QCommon;QCommonConsole> + # Quote the generator expression so target_link_libraries receives it as a + # single item. An unquoted $<...> containing ';' is split by CMake before the + # expression is evaluated; that split is only tolerated since CMake 3.23, + # whereas quoting works on the 3.22 minimum too. + "$<$:UId;QCommond;QCommonConsoled>" + "$<$>:UI;QCommon;QCommonConsole>" ) if(WIN32) diff --git a/src/libraries/qcommon-console/PlatformConfiguration.cpp b/src/libraries/qcommon-console/PlatformConfiguration.cpp index fb55658..851c000 100644 --- a/src/libraries/qcommon-console/PlatformConfiguration.cpp +++ b/src/libraries/qcommon-console/PlatformConfiguration.cpp @@ -21,9 +21,12 @@ #include #include #include +#include #include #include #include +#include +#include #include // Parameters in the JSON TAC Configuration @@ -78,6 +81,51 @@ const QPoint kDefaultCellLocation(-1,-1); const QString kNoVariableValue(QStringLiteral("")); +// Self-describing envelope for the shared hardware pinout file. External tools +// key off "format" == "tac-pinout". +const QString kSchema(QStringLiteral("$schema")); +const QString kSchemaUrl(QStringLiteral("https://qualcomm.github.io/tac/schemas/pinout-1.0.json")); +const QString kFormat(QStringLiteral("format")); +const QString kFormatValue(QStringLiteral("tac-pinout")); +const QString kSchemaVersion(QStringLiteral("schema_version")); +const QString kSchemaVersionValue(QStringLiteral("1.0")); + +// Link from the UI overlay (.tcnf) to its sibling pinout file, and the per-pin +// key the overlay uses to join back to a hardware pin. +const QString kPinoutRef(QStringLiteral("pinout_ref")); +const QString kPinRef(QStringLiteral("ref")); +const QString kPinoutExtension(QStringLiteral(".pinout.json")); + +// Keys partitioned between the two files by splitConfiguration()/mergeConfiguration(). +const QString kPins(QStringLiteral("pins")); +const QString kBusArray(QStringLiteral("bus")); +const QString kChipCount(QStringLiteral("chip_count")); +const QString kChipIndex(QStringLiteral("chip_index")); +const QString kPinNumber(QStringLiteral("pin_number")); +const QString kInput(QStringLiteral("input")); +const QString kInverted(QStringLiteral("inverted")); +const QString kInitialValue(QStringLiteral("initial_value")); +const QString kPriority(QStringLiteral("priority")); +const QString kInitializationPriority(QStringLiteral("initialization_priority")); +const QString kClassicAction(QStringLiteral("classic_action")); +const QString kSupportedFirmwareVer(QStringLiteral("supportedFirmwareVer")); + +// Per-pin key fields (identify a physical pin; written flat into the pinout file +// and inside the "ref" object in the overlay). +const QStringList kPinKeyFields{kChipIndex, kBusArray, kPinNumber}; +// Per-pin hardware fields -> pinout file. Any pin field that is neither a key +// field nor a hardware field (enabled, name, help_hint, group/tab_name, +// command_group, run_priority, and any future UI field) goes to the overlay. +const QStringList kPinHardwareFields{ + kCommand, kInput, kInverted, kInitialValue, kPriority, + kInitializationPriority, kClassicAction}; + +// Top-level keys that belong only to the shared pinout file. +const QStringList kPinoutOnlyFields{ + kUSBDescriptor, kResetEnabled, kScript, kChipCount, kBusArray, kSupportedFirmwareVer}; +// Top-level identity keys duplicated into both files (overlay stays authoritative). +const QStringList kIdentityFields{kName, kDescription, kPlatformType, kPlatformId}; + QString _PlatformConfiguration::_lastError; Buttons _PlatformConfiguration::_classicButtons; bool _PlatformConfiguration::_dynamicConfigurationsInitialized{false}; @@ -139,6 +187,14 @@ PlatformConfiguration _PlatformConfiguration::openPlatformConfiguration if (fileInfo.isFile()) { QString fileName = fileInfo.fileName(); + if (fileName.endsWith(kPinoutExtension, Qt::CaseInsensitive)) + { + // Shared hardware pinout files are loaded as a side effect of opening + // their UI overlay (.tcnf); they are never opened directly here. + _PlatformConfiguration::_lastError = "Pinout files are not opened directly"; + return result; + } + if (fileName.contains("_psoc_", Qt::CaseInsensitive)) { result = PlatformConfiguration(new _PSOCPlatformConfiguration); @@ -1019,49 +1075,342 @@ void _PlatformConfiguration::setUSBDescriptor(const QByteArray& usbDescriptor) } } -bool _PlatformConfiguration::load(const QString& filePath) +// Stable identity string for a physical pin, built from whichever key fields are +// present (FTDI: chip_index+bus+pin_number; PSOC/PIC32: pin_number). Used to join +// the hardware pin in the pinout file to its UI counterpart in the overlay. +static QString pinKeyString(const QJsonObject& keyHolder) { - bool result(false); + QStringList parts; + for (const QString& field : kPinKeyFields) + { + if (keyHolder.contains(field)) + parts << keyHolder.value(field).toVariant().toString(); + } + return parts.join(QLatin1Char('|')); +} - QJsonDocument document; - QFile jsonFile(filePath); +static bool writeJsonObjectToFile(const QString& path, const QJsonObject& object) +{ + QJsonDocument document(object); + if (document.isNull()) + return false; + + const QByteArray bytes = document.toJson(QJsonDocument::Indented); + if (bytes.isEmpty()) + return false; + + QFile file(path); + if (file.open(QIODevice::WriteOnly) == false) + return false; + + file.write(bytes); + file.close(); + + return true; +} + +QString _PlatformConfiguration::pinoutFileNameFor(const QString& overlayFileName) +{ + QString base = overlayFileName; + const int dot = base.lastIndexOf(QLatin1Char('.')); + if (dot > 0) + base.truncate(dot); + + return base + kPinoutExtension; +} - if (jsonFile.open(QIODevice::ReadOnly)) +void _PlatformConfiguration::splitConfiguration +( + const QJsonObject& combined, + QJsonObject& pinout, + QJsonObject& overlay +) +{ + pinout = QJsonObject(); + overlay = QJsonObject(); + + // Self-describing envelope so 3rd-party tools can recognise the pinout file. + pinout[kSchema] = kSchemaUrl; + pinout[kFormat] = kFormatValue; + pinout[kSchemaVersion] = kSchemaVersionValue; + + const QSet pinoutOnly(kPinoutOnlyFields.cbegin(), kPinoutOnlyFields.cend()); + const QSet identity(kIdentityFields.cbegin(), kIdentityFields.cend()); + + // Top-level scalar/array fields. Pins and variables are handled separately + // because they straddle both files. + for (auto it = combined.constBegin(); it != combined.constEnd(); ++it) { - QByteArray jsonFileContents = jsonFile.readAll(); - if (jsonFileContents.isEmpty() == false) + const QString& key = it.key(); + + if (key == kPins || key == kScriptVariables) + continue; + + if (identity.contains(key)) + { + pinout[key] = it.value(); + overlay[key] = it.value(); + } + else if (pinoutOnly.contains(key)) { - QJsonParseError parserError; + pinout[key] = it.value(); + } + else + { + overlay[key] = it.value(); + } + } + + // Pins: hardware fields + key -> pinout; key (as "ref") + UI fields -> overlay. + const QSet keyFields(kPinKeyFields.cbegin(), kPinKeyFields.cend()); + const QSet hardwareFields(kPinHardwareFields.cbegin(), kPinHardwareFields.cend()); + + const QJsonArray pins = combined.value(kPins).toArray(); + QJsonArray pinoutPins; + QJsonArray overlayPins; + + for (const QJsonValue& pinValue : pins) + { + const QJsonObject pin = pinValue.toObject(); - document = QJsonDocument::fromJson(jsonFileContents, &parserError); - if (parserError.error == QJsonParseError::NoError) + QJsonObject hardwarePin; + QJsonObject uiPin; + QJsonObject ref; + + for (auto it = pin.constBegin(); it != pin.constEnd(); ++it) + { + const QString& key = it.key(); + + if (keyFields.contains(key)) { - if (document.isNull() == false) - { - result = true; + hardwarePin[key] = it.value(); + ref[key] = it.value(); + } + else if (hardwareFields.contains(key)) + { + hardwarePin[key] = it.value(); + } + else + { + uiPin[key] = it.value(); + } + } - QJsonObject rootLevel = document.object(); - read(rootLevel); + uiPin[kPinRef] = ref; - setFilePath(filePath); - } - else - { - _lastError = QObject::tr("JSON Document is NULL") ; - } + pinoutPins.append(hardwarePin); + overlayPins.append(uiPin); + } + + pinout[kPins] = pinoutPins; + overlay[kPins] = overlayPins; + + // Variables: defaults travel with the hardware (the script references them); + // label/tooltip/type/layout stay in the overlay. Joined later on name. + const QJsonArray variables = combined.value(kScriptVariables).toArray(); + QJsonArray pinoutVars; + QJsonArray overlayVars; + + for (const QJsonValue& varValue : variables) + { + const QJsonObject variable = varValue.toObject(); + + QJsonObject hardwareVar; + QJsonObject uiVar; + + for (auto it = variable.constBegin(); it != variable.constEnd(); ++it) + { + const QString& key = it.key(); + + if (key == kName) + { + hardwareVar[key] = it.value(); + uiVar[key] = it.value(); + } + else if (key == kDefaultScriptDefaultValue) + { + hardwareVar[key] = it.value(); } else { - _lastError = QObject::tr("Error parsing configuration file") + parserError.errorString(); + uiVar[key] = it.value(); } } + + pinoutVars.append(hardwareVar); + overlayVars.append(uiVar); } - else + + pinout[kScriptVariables] = pinoutVars; + overlay[kScriptVariables] = overlayVars; +} + +QJsonObject _PlatformConfiguration::mergeConfiguration +( + const QJsonObject& pinout, + const QJsonObject& overlay +) +{ + QJsonObject combined; + + // Overlay owns metadata, tabs, buttons and UI fields. + for (auto it = overlay.constBegin(); it != overlay.constEnd(); ++it) + { + const QString& key = it.key(); + if (key == kPinoutRef || key == kPins || key == kScriptVariables) + continue; + combined[key] = it.value(); + } + + // Layer in pinout-owned top-level fields (script, bus, chip_count, usb, ...). + // Skip the envelope; identity fields already came from the overlay. + static const QSet envelope{kSchema, kFormat, kSchemaVersion}; + for (auto it = pinout.constBegin(); it != pinout.constEnd(); ++it) + { + const QString& key = it.key(); + if (envelope.contains(key) || key == kPins || key == kScriptVariables) + continue; + if (combined.contains(key) == false) + combined[key] = it.value(); + } + + // Join hardware pins to their UI counterparts on the physical-pin key. + const QJsonArray hardwarePins = pinout.value(kPins).toArray(); + const QJsonArray uiPins = overlay.value(kPins).toArray(); + + QHash uiPinByKey; + for (const QJsonValue& value : uiPins) + { + const QJsonObject uiPin = value.toObject(); + uiPinByKey.insert(pinKeyString(uiPin.value(kPinRef).toObject()), uiPin); + } + + QJsonArray combinedPins; + for (const QJsonValue& value : hardwarePins) + { + QJsonObject pin = value.toObject(); + + const auto found = uiPinByKey.constFind(pinKeyString(pin)); + if (found != uiPinByKey.constEnd()) + { + const QJsonObject uiPin = found.value(); + for (auto it = uiPin.constBegin(); it != uiPin.constEnd(); ++it) + { + if (it.key() == kPinRef) + continue; + pin[it.key()] = it.value(); + } + } + + combinedPins.append(pin); + } + combined[kPins] = combinedPins; + + // Join variable defaults (pinout) to labels/layout (overlay) on name. + const QJsonArray hardwareVars = pinout.value(kScriptVariables).toArray(); + const QJsonArray uiVars = overlay.value(kScriptVariables).toArray(); + + QHash uiVarByName; + for (const QJsonValue& value : uiVars) + { + const QJsonObject uiVar = value.toObject(); + uiVarByName.insert(uiVar.value(kName).toString(), uiVar); + } + + QJsonArray combinedVars; + for (const QJsonValue& value : hardwareVars) + { + QJsonObject variable = value.toObject(); + + const auto found = uiVarByName.constFind(variable.value(kName).toString()); + if (found != uiVarByName.constEnd()) + { + const QJsonObject uiVar = found.value(); + for (auto it = uiVar.constBegin(); it != uiVar.constEnd(); ++it) + variable[it.key()] = it.value(); + } + + combinedVars.append(variable); + } + combined[kScriptVariables] = combinedVars; + + return combined; +} + +bool _PlatformConfiguration::load(const QString& filePath) +{ + QFile jsonFile(filePath); + if (jsonFile.open(QIODevice::ReadOnly) == false) { _lastError = QObject::tr("Unable to open platform configuration file ") + filePath; + return false; } - return result; + const QByteArray jsonFileContents = jsonFile.readAll(); + if (jsonFileContents.isEmpty()) + { + _lastError = QObject::tr("Empty platform configuration file ") + filePath; + return false; + } + + QJsonParseError parserError; + const QJsonDocument document = QJsonDocument::fromJson(jsonFileContents, &parserError); + if (parserError.error != QJsonParseError::NoError) + { + _lastError = QObject::tr("Error parsing configuration file ") + parserError.errorString(); + return false; + } + if (document.isNull()) + { + _lastError = QObject::tr("JSON Document is NULL"); + return false; + } + + const QJsonObject overlay = document.object(); + QJsonObject combined; + + if (overlay.contains(kPinoutRef)) + { + // New two-file format: resolve and merge the sibling pinout file. + const QString pinoutName = overlay.value(kPinoutRef).toString(); + const QString pinoutPath = QDir(QFileInfo(filePath).absolutePath()).filePath(pinoutName); + + QFile pinoutFile(pinoutPath); + if (pinoutFile.open(QIODevice::ReadOnly) == false) + { + _lastError = QObject::tr("Unable to open pinout file ") + pinoutPath; + return false; + } + + QJsonParseError pinoutError; + const QJsonDocument pinoutDocument = QJsonDocument::fromJson(pinoutFile.readAll(), &pinoutError); + if (pinoutError.error != QJsonParseError::NoError || pinoutDocument.isNull()) + { + _lastError = QObject::tr("Error parsing pinout file ") + pinoutError.errorString(); + return false; + } + + const QJsonObject pinout = pinoutDocument.object(); + if (pinout.value(kFormat).toString() != kFormatValue) + { + _lastError = QObject::tr("Unexpected pinout file format in ") + pinoutPath; + return false; + } + + combined = mergeConfiguration(pinout, overlay); + _pinoutFile = pinoutName; + } + else + { + // Legacy combined configuration (pins and script stored inline). + combined = overlay; + _pinoutFile.clear(); + } + + read(combined); + setFilePath(filePath); + + return true; } void _PlatformConfiguration::save() @@ -1089,37 +1438,38 @@ void _PlatformConfiguration::save() if (_platformFile.isEmpty()) _platformFile = makeConfigName(getPlatformString(), _platformId); - QString targetFilePath = QDir::cleanPath(_platformPath + QDir::separator() + _platformFile); + const QString overlayPath = QDir::cleanPath(_platformPath + QDir::separator() + _platformFile); - QFile targetFile(targetFilePath); - if (targetFile.open(QIODevice::WriteOnly) == true) - { - QJsonObject rootLevel; - QJsonDocument document; + // Serialize the unified in-memory model, then split it into the shared pinout + // file and the UI overlay (.tcnf) that references it. + QJsonObject combined; + write(combined); - write(rootLevel); + QJsonObject pinout; + QJsonObject overlay; + splitConfiguration(combined, pinout, overlay); - document = QJsonDocument(rootLevel); + const QString pinoutName = pinoutFileNameFor(_platformFile); + overlay[kPinoutRef] = pinoutName; - if (document.isNull() == false) - { - QByteArray jsonDocument = document.toJson(QJsonDocument::Indented); - if (jsonDocument.isEmpty() == false) - { - QFile jsonFile(targetFilePath); - - if (jsonFile.open(QIODevice::WriteOnly) == true) - { - jsonFile.write(jsonDocument); - jsonFile.close(); + const QString pinoutPath = QDir::cleanPath(_platformPath + QDir::separator() + pinoutName); - _dirty = false; + if (writeJsonObjectToFile(pinoutPath, pinout) == false) + { + _lastError = QObject::tr("Unable to write pinout file ") + pinoutPath; + return; + } - setFilePath(targetFilePath); - } - } - } + if (writeJsonObjectToFile(overlayPath, overlay) == false) + { + _lastError = QObject::tr("Unable to write configuration file ") + overlayPath; + return; } + + _pinoutFile = pinoutName; + _dirty = false; + + setFilePath(overlayPath); } bool _PlatformConfiguration::read(QJsonObject& parentLevel) diff --git a/src/libraries/qcommon-console/PlatformConfiguration.h b/src/libraries/qcommon-console/PlatformConfiguration.h index ff07774..c84901b 100644 --- a/src/libraries/qcommon-console/PlatformConfiguration.h +++ b/src/libraries/qcommon-console/PlatformConfiguration.h @@ -182,6 +182,18 @@ class QCOMMONCONSOLE_EXPORT _PlatformConfiguration virtual bool read(QJsonObject& parentLevel); virtual void write(QJsonObject& parentLevel); + // On disk a configuration is stored as two files: a shared, self-describing + // hardware pinout file (pins, bus map, script, variable defaults) that + // external/3rd-party tools can consume directly, and a UI overlay (.tcnf) + // that references it (pinout_ref) and carries buttons, tabs and per-pin UI + // fields. In memory the model stays unified - the read()/write() pair still + // operate on a single combined JSON object. These helpers translate between + // the combined object and the two on-disk halves, so the split lives only at + // (de)serialization and the platform subclasses are unaffected. + static void splitConfiguration(const QJsonObject& combined, QJsonObject& pinout, QJsonObject& overlay); + static QJsonObject mergeConfiguration(const QJsonObject& pinout, const QJsonObject& overlay); + static QString pinoutFileNameFor(const QString& overlayFileName); + void defaultAlpacaScript(); void defaultScriptVariables(); @@ -191,6 +203,7 @@ class QCOMMONCONSOLE_EXPORT _PlatformConfiguration QString _platformPath; QString _platformFile; + QString _pinoutFile; PlatformID _platformId{kDefaultPlatformId}; quint32 _fileVersion{0}; QString _name; diff --git a/src/libraries/qcommon-console/version.h b/src/libraries/qcommon-console/version.h index b7f9401..0240364 100644 --- a/src/libraries/qcommon-console/version.h +++ b/src/libraries/qcommon-console/version.h @@ -25,5 +25,6 @@ #define LITE_PGR_COMMAND "2.0.0" #define UPDATE_DEVICE_LIST "2.0.0" #define FW_UPDATE_VERSION "3.0.0" +#define TAC_CONFIG_SPLIT_VERSION "1.0.0" #endif // VERSION_H