Edge EV Board - DynamicDevices/meta-dynamicdevices GitHub Wiki
Edge EV
High Voltage energy monitoring platform
Battery Charge Controller [MP2760]
Datasheet is here
This defaults to 500mA charge limit. To increase the charge limit use the following i2c command.
NOTE: This needs to be a 16-bit word data write
sudo i2cset 0 0x5c 8 0x40 w
GPIO I2C Expander (TCAL6416)
TI TCAL6416 datasheet is here
This is on DTS bus i2c-0 chip ID 0x20
Pinouts are as follows.
-
where a name is suffixed with a hash (#) it is active LO
-
default indicates whether it is set ON (active) or set OFF (not active) and should be evaluated as a logic level in conjunction with the activation level (HI/LO). e.g. ON for an active LO pin would be 0
Bank | Pin | Name | Default |
---|---|---|---|
0 | 0 | RED LED | ON |
0 | 1 | ADCI_FPGA# | ON |
0 | 2 | SSD_PWR_EN | ON |
0 | 3 | WIFI_PWR_EN | ON |
0 | 4 | CELL1_RST# | OFF |
0 | 5 | CELL1_PWR_EN | ON |
0 | 6 | CELL2_RST# | OFF |
0 | 7 | CELL2_PWR_EN | ON |
NOTE: We found in testing that the PCIe bus must be powered on early (e.g. in u-boot) or connected devices are not enumerated when the power is turned on to them. This should be OK as we can force a PCIe bus rescan but we find our Intel AX210 part fails to enumerate correctly if we take this approach. So for now it's likely we'll leave these enabled from startup.
echo 1 > /sys/bus/pci/rescan
[These pin hogs are not in DTS yet]
Bank | Pin | Name | Default |
---|---|---|---|
1 | 0 | ADC_OS0_V | OFF |
1 | 1 | ADC_OS1_V | OFF |
1 | 2 | ADC_OS2_V | OFF |
1 | 3 | ADC_RANGE_V | OFF |
1 | 4 | HV_RELAY | OFF |
1 | 5 | ADC_RESET_V | OFF |
1 | 6 | ADCV_CFG# | ON |
1 | 7 | HV_ON | OFF |
To enable all needed GPIO outputs for test:
i2cset -y 0 0x20 0x02 0xAD
i2cset -y 0 0x20 0x03 0x00
i2cset -y 0 0x20 0x06 0x00
i2cset -y 0 0x20 0x07 0x00
Red LED should turn on.
To turn off red LED for test
sudo i2cset -y 0 0x20 0x02 0xAC
To turn off red LED for test
sudo i2cset -y 0 0x20 0x02 0xAD
USB3 to PCIe bridge (UPD720201)
TBD - needs a driver
Apparently we need a firmware loader too also
https://github.com/markusj/upd72020x-load
Renesas Ethernet Switch (KSZ9563)
Microchip KSZ9563 datasheet is here
- one internal i.MX8MM port
- two external connectors
- all are by default isolated from each other until being set up
Display Support
- TBD
Sound Support
- TBD
Networking / Radio Support
- TBD
WiFi
- TBD
Cellular
- TBD
Bluetooth / BLE
- TBD
Power Management
- TBD
Sensors
- TBD