mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
Some boards have more than one USB port. In that case, there is a second GPIO on the debug board to simulate a USB disconnection for those. Add the option to describe both USB disconnect GPIOs using "usb0_disconnect" and "usb1_disconnect" and change both of them when disabling USB power. In the future it might be useful to control them separately, but for now this ensures that power to the board is cut properly when the board is powered off.
105 lines
2.1 KiB
YAML
105 lines
2.1 KiB
YAML
---
|
|
devices:
|
|
- board: myboard
|
|
name: "My Board"
|
|
description: |
|
|
My Awesome board
|
|
console: /dev/ttyABC0
|
|
fastboot: cacafada
|
|
ftdi_gpio:
|
|
vendor: "0x0403"
|
|
product: "0x6011"
|
|
serial: FT7YWRL8
|
|
power_key:
|
|
interface: A
|
|
line: 2
|
|
fastboot_key:
|
|
interface: A
|
|
line: 0
|
|
active_low: true
|
|
power:
|
|
interface: A
|
|
line: 1
|
|
active_low: true
|
|
- board: myboard-2
|
|
name: "My Board 2"
|
|
description: |
|
|
My Awesome board Number 2
|
|
console: /dev/ttyABC1
|
|
fastboot: cacafada
|
|
ftdi_gpio:
|
|
vendor: "0x0403"
|
|
product: "0x6011"
|
|
index: 0
|
|
power:
|
|
interface: B
|
|
line: 1
|
|
active_low: true
|
|
fastboot_key:
|
|
interface: B
|
|
line: 0
|
|
active_low: true
|
|
power_key:
|
|
interface: B
|
|
line: 2
|
|
usb_disconnect:
|
|
interface: C
|
|
line: 7
|
|
active_low: true
|
|
- board: myboard-3
|
|
name: "My Board 3"
|
|
description: |
|
|
My Awesome board Number 3
|
|
console: /dev/ttyABC1
|
|
fastboot: cacafada
|
|
ftdi_gpio:
|
|
vendor: "0x0403"
|
|
product: "0x6011"
|
|
power_key:
|
|
interface: B
|
|
line: 2
|
|
power:
|
|
interface: D
|
|
line: 1
|
|
active_low: true
|
|
- board: myboard-4
|
|
name: "My Board 4"
|
|
description: |
|
|
My Awesome board Number 4
|
|
console: /dev/ttyABC1
|
|
fastboot: cacafada
|
|
ftdi_gpio:
|
|
devicenode: /dev/bus/usb/006/001
|
|
power:
|
|
interface: D
|
|
line: 6
|
|
- board: myboard-5
|
|
name: "My Board 5"
|
|
description: |
|
|
My super awesome board Number 5
|
|
console: /dev/ttyABC1
|
|
fastboot: cacafada
|
|
ftdi_gpio:
|
|
vendor: "0x0403"
|
|
product: "0x6011"
|
|
index: 0
|
|
power:
|
|
interface: B
|
|
line: 1
|
|
active_low: true
|
|
fastboot_key:
|
|
interface: B
|
|
line: 0
|
|
active_low: true
|
|
power_key:
|
|
interface: B
|
|
line: 2
|
|
usb0_disconnect:
|
|
interface: C
|
|
line: 7
|
|
active_low: true
|
|
usb1_disconnect:
|
|
interface: A
|
|
line: 4
|
|
active_low: true
|