Documentation
This is the multi-page printable view of this section. Click here to print.
Documentation
- 1: Tanmatsu
- 1.1: Tanmatsu: hardware
- 1.1.1: Tanmatsu: specifications
- 1.1.2: Tanmatsu: 3D printed case
- 2: I2C VFD (NE-HCS12SS59T-R1)
- 3: OpenBMC
- 3.1: ASRock Rack
- 3.1.1: ASRock Rack X570D4U
- 3.1.1.1: ASRock Rack X570D4U mainboard: pinout
- 3.1.1.2: ASRock Rack X570D4U mainboard: I2C busses
- 3.1.1.3: ASRock Rack X570D4U mainboard: GPIO
- 3.1.1.4: Programming SPI flash with an FT2232 breakout board
- 3.1.1.5: ASRock Rack X570D4U mainboard: temperature sensors
- 3.1.1.6: ASRock Rack X570D4U mainboard: fans
- 3.1.2: ASRock Rack PAUL
- 3.1.2.1: ASRock Rack PAUL: GPIO
1 - Tanmatsu
Tanmatsu™ is the dream terminal device for hackers, makers, and tech enthousiasts. Based around the powerful ESP32-P4 microcontroller, this device provides an accessible way to make, hack, and tinker on the go.
Tanmatsu™ lets you program on the go and communicate over long distances using LoRa whilst also providing advanced connectivity and extendability options for hardware hacking and development.
Blog
Interested? See our blog for project updates.Features
Tanmatsu™ is based around the upcoming ESP32-P4 SoC by Espressif: their most powerful RISC-V microcontroller yet. With its 400MHz dual-core processor and 32MB of built-in PSRAM it makes the ideal platform for powerful processing on the go whilst still maintaining the ease of use one expects form a microcontroller platform.
In addition to the powerhouse ESP32-P4 application processor we have included an ESP32-C6 WiFi, Bluetooth Low Energy, and IEEE802.15.4 wireless radio module. This module enables wireless internet access, as well as access to local mesh networking like Thread and ZigBee in a hacker friendly way.
A LoRa radio module provides access to LoRa networks such as long distance mesh network services and (G)FSK modulated classic 433 or 868MHz communication, depending on the LoRa module installed.
The device has 16MB of built-in flash storage for firmware and applications, expandable using a micro SD card. The micro SD card socket supports SD cards at 3.3v and 1.8v voltage levels (SDIO 3) for extra fast transfer speeds.
A big MIPI DSI display and the QWERTY keyboard make for great ease of use both in the workshop and on the go.
In addition to all the built-in functionality the device allows for expansion modules using its two expansion ports. The back facing expansion port allows for expanding functionality using personality modules, while the side facing expansion port allows for easily connecting a wide variety of PMOD and SAO compatible accessories.
A QWIIC style expansion connector allows connecting the device to a wide range of sensors available from manufacturers such as Sparkfun and Adafruit, it supports both the I2C and the new I3C communication bus standards.
A 3D printed case is included with every Tanmatsu™, this sturdy case will allow the device to be used everywhere whilst keeping the electronics safe and protected.
Software
The launcher firmware allows starting user made applications and in addition it provides access to a marketplace for applications where developers can publish their creations. Apps can be downloaded and installed directly on the device.
Hardware features - summary
- ESP32-P4 dual-core 400MHz RISC-V microcontroller with 32MB of built-in PSRAM
- ESP32-C6 radio module for WiFi, BLE and IEEE 802.15.4 mesh networking connectivity
- Ai-Thinker Ra-01S or Ra-01SH module for long range communication using LoRa modulation and generic (G)FSK modulation for short range classic wireless radio applications at 433MHz or 868MHz respectively
- 16MB of built-in flash storage for firmware and applications
- Fast and big 800x480 MIPI DSI display
- QWERTY keyboard
- Lithium polymer battery
- Audio output via headphone jack and speaker
- I2C and I3C connectivity via Qwiic compatible JST SH style connector
- SD card socket supporting SD cards at 3.3v and 1.8v voltage levels (SDIO 3)
- Side facing expansion port with both SAO and PMOD capabilities
- Back facing expansion port for expanding functionality using personality modules
Software features - summary
- Launcher menu for easy access to multiple applications and firmwares
- Access to user generated content and applications repository via the hub app
Open source
The hardware design will be made fully open source and available under a permissive license (CERN-OHL-P). The design can be edited using the open source PCB CAD application KiCAD, allowing everyone to edit the design without any roadblocks.
The board support package and launcher firmware will also be made open source under a permissive license (MIT), enabling modifications and improvements by the community and granting users and developers complete freedom and control.
Personality modules
Whilst the base Tanmatsu™ device already provides lots of functionality we plan on creating and making available multiple personality modules for extending the functioality in ways useful to you.
More information about the planned personality modules will be made available soon.
1.1 - Tanmatsu: hardware
WiFi, BLE and IEEE802.15.4 radio module
This ESP32-C6 based module provides the board with access to Wifi, BLE and IEEE802.15.4 (mesh network) connectivity while also controlling the LoRa radio module.
Camera connector
The camera connector is used to connect a CSI camera mdoule. It is pinout-compatible with the camera connector on the Raspberry Pi Zero and 5. Note that software support is limited to a subset of Raspberry Pi compatile camera module sensor chips such as OV5647.
QWIIC & Stemma QT compatible I2C & I3C connector
This connector can be used to connect external I2C or I3C based accessories. Both Adafruit and Sparkfun make a variety of modules and cables which could be connected to this port.
USB-C device port
This port is used to charge the battery, to program and debug the ESpP32-P4 and ESp32-C6 microcontrollers and to install apps and browse files from your computer.
USB-A host port
This port can be used to connect an USB device to the Tanmatsu.
SD card slot
Accepts micro SD memory cards including modern high speed SDIO 3.0 cards.
Battery connector
Allows for connecting a single cell Lithium Polymer or Lithium Ion battery cell. Using a protected cell is mandatory. Unprotected cells could potentially be drained below their lowest allowable voltage, which causes damage to the battery. Current control, over voltage protection and propper constant voltage/current charge control are is built-in into the Tanmatsu mainboard.
Sensor connector
Can be used to connect an I2C connected sensor PCB.
1.1.1 - Tanmatsu: specifications
This section lists the technical specifications of the Tanmatsu hardware.
Note: information on this page is actively being worked on and might contain accidental errors and inaccuracies.
Physical dimensions
Size of the device including the 3D printed case:
- Width: 12 cm (4.72 in)
- Length: 13.5 cm (5.31 in)
- Height: 1.8 cm (0.71 in)
Weight: 215 g (0.47 pounds) including case and battery
Case
See case.
Peripherals
Display
- Model: SWI LH397K-IC01
- Size: 3.97 in diagonally, 51.84 x 86.40 mm
- Resolution: 480x800
- Colors: 65536 colors (16-bit / RGB565)
- Controller: ST7701S
- Interface: MIPI DSI (2 lanes)
- Brightness: 330cd/m2
Note: display supports 16M colors (24-bit / RGB888) but current software can not make use of this mode.
Nicolai Electronics developed an ESP-IDF component for configuring the MIPI DSI peripheral in the ESP32-P4 for use with this display.
The component also allows for easy switching between the display on the Tanmatsu and the display included with the official ESP32-P4 development kit.
The display will be available as a spare part from our webshop once Tanmatsu is shipped.
Keyboard
- Full 69-key alphanumeric keyboard with colored 6 function keys
- Metal dome sheet for tactile feeling
- LED backlight (white)
The keyboard has been developed by our awesome friends at Solder Party.
The keyboard and corresponding metal dome sheet will be available as a spare part in our webshop once Tanmatsu is shipped.
Battery
Single cell protected Lithium Polymer battery with PH-2.0 style connector.
The connector and pinout are compatible with the battery connector on Adafruit boards.
- Capacity: tbd (at least 2000 mAh)
- Connector: PH-2.0
- Chemnistry: Lithium polymer
- Single cell 3.7 volt
The battery will be available as a spare part in our webshop once Tanmatsu is shipped.
Connectors and interfaces
On the outside of the case:
- USB-C device port connected to an USB hub. Allows access to:
- The ESP32-P4 USB interface (PHY 1, defaults to USB-serial/JTAG debug interface but can be remapped to custom USB functions by software)
- ESP32-C6 USB-serial/JTAG debug interface
- Personality module expansion port (provides access to an optionally connected USB device on a personality module)
- USB-A host port (480 Mbit superspeed USB 2.0), provides 1A of current with automatic current limiting
- Qwiic and Stemma-QT compatible 4-pin SH connector for connecting I2C and I3C accessories
- 3.5 mm headphone jack
- CATT (Connect All The Things) connector: combined PMOD and SAO compatible 2.54 mm pinsocket optionally also usable as JTAG interface for debugging the ESP32-P4 application processor
- Three push buttons (Power, up and down). Holding down the down button when applying power puts the ESP32-P4 into USB download mode for easy firmware recovery
- Micro SD card slot compatible with SDIO 2 and SDIO 3 cards at 3.3v and 1.8v voltage levels
- (optional) SMA antenna connector for LoRa antenna
On the inside of the case:
- PH-2.0 2-pin battery connector
- PicoBlade 2-pin speaker connector for 8 Ohm speaker
- Raspberry Pi camera compatible 22-pin MIPI CSI camera interface
- IPEX-1 antenna connector for LoRa antenna
- Personality module connector: 36-pin 2.54 mm pinsocket with:
- Access to power rails (5V, Vbatt, Vsys and 3.3v)
- USB hub downstream port connected to the USB-C port via an USB hub
- Internal I2C bus (can be used for sensors and for an identification EEPROM)
- 14 GPIO pins
- ESP32-P4 USB interface (PHY 2) or 2 extra GPIO pins
- UART interface or 2 extra GPIO pins
- I2S interface or 4 extra GPIO pins (shared with audio codec, when used as GPIO audio functionality is unavailable)
- I3C bus (shared with 4-pin SH connector) or 2 extra GPIO pins
Chips and modules
WiFi, BLE and IEEE 802.15.4 radio
Module: Espressif Systems ESP32-C6-WROOM-1-N8
- CPU: 32-bit RISC-V single core microprocessor, up to 160 MHz
- RAM: 512 KB
- WiFi: WiFi 6 on 2.4GHz
- BLE: 5.3
- Mesh networking: IEEE 802.15.4-2015 protocol, supports Thread 1.3 and Zigbee 3.0
- Flash: 8 MB
More information can be found in the Datasheet.
Application processor
Chip: Espressif Systems ESP32-P4NRW32
- CPU: 32-bit RISC-V dual core microprocessor, up to 400 MHz
- RAM: 32 MB
- Flash: 16 MB
The datasheet for this chip is not yet publicly available
Management coprocessor
Chip: WCH CH32V203C8T6
- CPU: 32-bit RISC-V single core microprocessor, up to 144 MHz
- RAM: 20KB
- Flash: 64 KB
More information can be found in the Datasheet.
The management coprocessor is responsible for reading the keyboard matrix and power management. It presents itself as an I2C peripheral on the internal I2C bus of the Tanmatsu and provides the following services:
- Keyboard events
- PWM control for the display backlight
- PWM control for the keyboard backlight
- Real Time Clock (RTC) backed by watch crystal
- Alarm wakeup
- PMIC control
- Power switching for USB-A port
- Power and boot-mode control for the ESP32-C6 radio module
- Power switching for audio amplifier
- Headphone detection
- Addressable LED control for the 6 built-in addressable LEDs
The firmware for this chip will be made available under terms of the MIT license after the Tanmatsu becomes available in April 2025. Modifying the firmware is possible but is not recommended.
The firmware of the coprocessor can be updated from the ESP32-P4 application processor, for this Nicolai Electronics developed an ESP-IDF component capable of reprogramming CH32V20x and CH32V30x microcontrollers from the ESP32-P4 application processor.
LoRa radio
The PCB footprint supports a range of radio modules from Ai-Thinker. Software support will initially be provided for the RA-01SH 868 MHz band SX1262 based and the RA-01S 433 MHz band SX1268 based modules.
All Tanmatsu boards will be delivered with a module which has the IPEX-1 antenna connector installed. Optionally an SMA antenna connector can be installed to allow connecting standard external LoRa antennas. Tanmatsu will be provided with either an internal IPEX-1 antenna or a basic SMA antenna depending on the option chosen.
Audio
Everest Semiconductor ES8156 audio codec:
- Hardware volume control via I2C interface
- Stereo audio DAC
FM8002A mono speaker amplifier:
- Can be switched on and off using the coprocessor
- Connected to built-in 8 Ohm speaker
Power management
PMIC
Texas Instruments BQ25895RTW PMIC for battery charging and monitoring as well as DC/DC boost converter for 5 volt rail (to power USB-A port, addressable LEDs and 5 volt pin on the personality module expansion header).
Provides soft power on/off functionality when the device is battery powered and allows seamless transition between battery and USB-C power source.
3.3v rail DC/DC converter
Texas Instruments TPS63020DSJR DC/DC buck and boost converter providing a stable 3.3v rail even when the battery voltage drops below 3.3 volt.
Backlight drivers
Two AP3032KTR backlight driver chips, one for the display and one for the keyboard backlight LEDs.
Brightness controlled using PWM via the CH32V203 coprocessor.
Standby power rail
A small LDO provides 2.5v to the Vbatt rail of the CH32V203 coprocessor even when the device is off. This uses almost no power (theoretically the battery would last over 10 years on a single charge if the device is never turned on, ignoring LiPo battery self-discharge) and allows the Real Time Clock in the CH32V203 coprocessor to keep track of time even when the device is off. A special latch circuit circuit allows the CH32V203 to power on the Tanmatsu using its alarm pulse output by emulating a press of the power button.
Addressable LEDs
Six SK6805-EC20 addressable LEDs controlled by the coprocessor.
Sensors
- Bosch BMI270 IMU combined accelerometer and gyroscope
- Header for optional SCD40 or SCD41 CO2, temperature and humidity sensor (not populated, modules are available on AliExpress) or other I2C controlled sensor
Questions?
If you have questions please contact us by joining one of our community chatgroups (Telegram and Discord) or by emailing us.
1.1.2 - Tanmatsu: 3D printed case
Information about the 3D printed case for Tanmatsu.
Note: information on this page is actively being worked on and might contain accidental errors and inaccuracies.
Filament
The 3D printed case and spacer are printed using Extrudr PLA NX2 on Prusa Mini and Prusa XL printers.
Design files
Once Tanmatsu is available the spacer and case designs will be published as STEP and STL files.
The 3D printed case and spacer will both be available as a spare part from our webshop once Tanmatsu is shipped.
Photos
These photos show some of the prototype 3D printed cases, final design will differ slightly because we are still actively working on improving the design for easier manufacturing and better dust protection.
Special thanks
We want to thank our friends over at YTec 3D for developing the Tanmatsu case and designs. Check out their amazing projects.
Questions?
If you have questions please contact us by joining one of our community chatgroups (Telegram and Discord) or by emailing us.
2 - I2C VFD (NE-HCS12SS59T-R1)
What is it?
A Samsung HCS-12SS59T 12 character vacuum fluorescent display connected to a custom driver board which takes away all the difficulties of using such a display. The driver board does everything for you, from step-up voltage generation to having a microcontroller that translates between the display and an easy to use I2C interface.
Why did you make it?
I like weird and wonderful displays and this display deserves a spot in cool DIY projects. Unfortunately it is not exactly plug-and-play for use in Arduino, MicroPython or Raspberry pi projects.
What makes it special?
Everything is handled on-board, from generating the required voltages to handling the display control signals. All you have to do is hook up this module via I2C using the QWIIC / Stemma QT connectors on this board. There is two of them allowing for easy daisy chaining with more displays or other QWIIC/Stemma QT boards.
Sources
The hardware design files can be found in the hardware repository and the firmware can be found in the firmware repository.
How to use the device
The device can be connected to a microcontroller via the standardized QWIIC interface.
The device is compatible with a supply voltage of 3.3 volt. The I2C interface requires a working voltage of 3.3 volt as well.
I2C interface
The default I2C address is 0x10. The address can be changed by bridging the address jumpers on the board. This allows for modifying the I2C address in the range 0x10 up to 0x2F. Jumper 0 increases the address by 1, jumper 1 increases the address by 2, jumper 3 increases the address by 4 and jumper 4 increases the address by 8.
Register map
Register | Name | Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
---|---|---|---|---|---|---|---|---|---|
0 | System control | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | LED state | Test mode | Display enable |
1 | Display offset | Offset bit 7 | Offset bit 6 | Offset bit 5 | Offset bit 4 | Offset bit 3 | Offset bit 2 | Offset bit 1 | Offset bit 0 |
2 | Scroll length | Length bit 7 | Length bit 6 | Length bit 5 | Length bit 4 | Length bit 3 | Length bit 2 | Length bit 1 | Length bit 0 |
3 | Scroll mode | Reserved (0) | Reserved (0) | Reserved (0) | Loop enable | Mode bit 3 | Mode bit 2 | Mode bit 1 | Mode bit 0 |
4 | Scroll speed LO | Speed bit 7 | Speed bit 6 | Speed bit 5 | Speed bit 4 | Speed bit 3 | Speed bit 2 | Speed bit 1 | Speed bit 0 |
5 | Scroll speed HI | Speed bit 15 | Speed bit 14 | Speed bit 13 | Speed bit 12 | Speed bit 11 | Speed bit 10 | Speed bit 9 | Speed bit 8 |
6 | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) |
7 | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) |
8 | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) |
9 | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) | Reserved (0) |
10 - 255 | Data (ASCII) | Reserved (0) | ASCII bit 6 | ASCII bit 5 | ASCII bit 4 | ASCII bit 3 | ASCII bit 2 | ASCII bit 1 | ASCII bit 0 |
Scrolling modes
0 = Scrolling disable
1 = Scroll left (increment display offset)
2 = Scroll right (decrement display offset)
Usage
Basic usage
At power on the display is automatically enabled. Writing ASCII text to registers 10 through 255 will make the text appear on the display.
To move the position in the buffer which is shown on the display you can write an offset to register 1 (display offset).
System control
To turn off the display write 0 to bit 0 of register 0, to turn on the display write a 1 to bit 0 of register 0. The LED can be controlled using bit 2 of register 0.
Scrolling
The automatic scrolling feature automatically updates the value of register 2 (display offset) to make the text shown on the display scroll without interaction by the bus master.
To enable automatic scrolling first write the maximum value the offset register should reach by setting the value of register 2 (scroll length). To stop scrolling once the last character of a string of text is shown on the rightmost position of the display set the value of this register to the length of the string minus 12 (the amount of characters the VFD can display).
Then write the speed at which you wish the characters to scroll into registers 4 and 5. This value is a 16-bit number representing the amount of milliseconds to wait before moving to the next character.
If scrolling was used before then resetting the current display offset to 0 makes sure the display starts scrolling from the beginning of the text.
To start scrolling write 1 to register 3. This will cause the text to scroll to the left automatically. Scrolling will stop once the scroll length value is reached. To automatically reset to the start of the string the loop function can be enabled by writing 17 (16, loop enable + 1, scroll left) to register 3.
For better readability adding 12 spaces to the front of the string to be scrolled is adviced, this makes the scrolling text start by scrolling in from the right into a blank screen.
Example Arduino sketch
The following Arduino sketch shows basic usage and how to use the built-in automatic scrolling features of the product.
// This example sketch may be freely used and considered in the public domain
// in countries where releasing code into the public domain is not possible
// this code may be used under the terms specified in the CC0 license
// https://creativecommons.org/public-domain/cc0/
#include <Wire.h>
#define VFD_REG_CTRL 0
#define VFD_REG_OFFSET 1
#define VFD_REG_SCROLL_LEN 2
#define VFD_REG_SCROLL_MODE 3
#define VFD_REG_SCROLL_SPEED 4
#define VFD_REG_DATA 10
#define VFD_SCROLL_DISABLE 0
#define VFD_SCROLL_LEFT 1
#define VFD_SCROLL_RIGHT 2
const int16_t I2C_ADDR = 0x10;
// Functions for reading and writing
void vfd_read_regs(uint8_t reg, uint8_t* val, uint8_t len) {
Wire.beginTransmission(I2C_ADDR);
Wire.write(reg);
Wire.endTransmission(false);
Wire.requestFrom((uint8_t) I2C_ADDR, (uint8_t) len);
for (uint8_t index = 0; index < len; index++) {
val[index] = Wire.read();
}
Wire.endTransmission();
}
void vfd_read_reg(uint8_t reg, uint8_t* val) {
vfd_read_regs(reg, val, 1);
}
void vfd_write_regs(uint8_t reg, uint8_t* val, uint8_t len) {
Serial.print("I2C write to register " + String(reg) + ": ");
Wire.beginTransmission(I2C_ADDR);
Wire.write(reg);
for (uint8_t index = 0; index < len; index++) {
Serial.print(String(val[index], HEX) + ", ");
Wire.write(val[index]);
}
Serial.println();
Wire.endTransmission();
}
void vfd_write_reg(uint8_t reg, uint8_t val) {
vfd_write_regs(reg, &val, 1);
}
// Functions for using the control register
void vfd_control_led(bool state) {
uint8_t val = 0;
vfd_read_reg(VFD_REG_CTRL, &val);
Serial.println("LED, READ " + String(val, HEX));
val &= ~(1 << 2); // Turn off the LED
if (state) {
val |= (1 << 2); // Turn on the LED
}
Serial.println("LED, WRITE " + String(val, HEX));
vfd_write_reg(VFD_REG_CTRL, val);
}
void vfd_control_test(bool state) {
uint8_t val = 0;
vfd_read_reg(VFD_REG_CTRL, &val);
val &= ~(1 << 1); // Turn off the test mode
if (state) {
val |= (1 << 1); // Turn on the test mode
}
vfd_write_reg(VFD_REG_CTRL, val);
}
void vfd_control_enable(bool state) {
uint8_t val = 0;
vfd_read_reg(VFD_REG_CTRL, &val);
val &= ~(1 << 0); // Turn off the VFD
if (state) {
val |= (1 << 0); // Turn on the VFD
}
vfd_write_reg(VFD_REG_CTRL, val);
}
void vfd_control(bool enable, bool test, bool led) {
uint8_t val = 0;
if (enable) {
val |= (1 << 0);
}
if (test) {
val |= (1 << 1);
}
if (led) {
val |= (1 << 2);
}
vfd_write_reg(VFD_REG_CTRL, val);
}
// Functions for using the scroll features
void vfd_set_offset(uint8_t offset) {
vfd_write_reg(VFD_REG_OFFSET, offset);
}
void vfd_set_scroll_length(uint8_t len) {
vfd_write_reg(VFD_REG_SCROLL_LEN, len);
}
void vfd_set_scroll_mode(uint8_t scroll_mode, bool scroll_loop) {
uint8_t val = scroll_mode & 0x0F;
if (scroll_loop) {
val |= (1 << 4);
}
vfd_write_reg(VFD_REG_SCROLL_MODE, val);
}
void vfd_set_scroll_speed(uint16_t scroll_speed) {
uint8_t values[2];
values[0] = (scroll_speed) & 0xFF;
values[1] = (scroll_speed >> 8) & 0xFF;
vfd_write_regs(VFD_REG_SCROLL_SPEED, values, sizeof(uint16_t));
}
// Functions for using the text buffer
void vfd_write_text(String text) {
// This function writes an ASCII string into
// register 10 to 255
const size_t max_len = 245; // can store text in registers 10 to 255
size_t len = text.length();
if (len > max_len) {
// Silently limit the length of the string
len = max_len;
}
Wire.beginTransmission(I2C_ADDR);
Wire.write(VFD_REG_DATA);
for (size_t index = 0; index < len; index++) {
Wire.write(text[index]);
}
Wire.endTransmission();
}
// Functions for Arduino program
void setup() {
Serial.begin(115200);
Serial.println("Initialize I2C bus");
Wire.begin(); // Initialize the I2C bus
// Configure the display and show a message
Serial.println("Configure the display and show a message");
vfd_set_scroll_mode(VFD_SCROLL_DISABLE, false); // Disable scrolling
vfd_set_offset(0); // Move to beginning of text buffer
vfd_write_text("Hello world ");
vfd_control(true, false, true); // Turn on VFD and LED
delay(1000); // Wait a bit
Serial.println("Demonstrate scrolling");
String text = " The quick brown fox jumps over the lazy dog 0123456789 !@$%^&*()-_=+";
vfd_write_text(text);
vfd_set_scroll_length(text.length() - 12); // Scroll until the last character of the string is on the most right character of the display
vfd_set_scroll_speed(100); // Scroll one character every 100ms
vfd_set_scroll_mode(VFD_SCROLL_LEFT, false); // Scroll left then stop
vfd_control_led(false);
delay(10000);
vfd_set_scroll_mode(VFD_SCROLL_RIGHT, false); // Scroll right then stop
vfd_control_led(true); // Turn on LED
delay(10000);
vfd_set_scroll_mode(VFD_SCROLL_LEFT, true); // Scroll left then loop
vfd_control_led(false); // Turn off LED
delay(20000);
vfd_set_scroll_mode(VFD_SCROLL_DISABLE, false); // Disable scrolling
vfd_write_text(" "); // Clear screen
vfd_set_offset(0); // Move to beginning of text buffer
vfd_control_led(true); // Turn on LED
Serial.println("Starting counter loop");
}
uint32_t counter = 0;
void loop() {
// Count as fast as we can
vfd_write_text(String(counter));
counter++;
}
What does it look like?
3 - OpenBMC
OpenBMC is an open source Linux distribution for Baseboard Management Controllers. Nicolai Electronics works on enabling more boards to run this open source firmware instead of manufacturer provided proprietary solutions. More information can be found on the board specific pages.
3.1 - ASRock Rack
ASRock Rack is a hardware manufacturer which has produced multiple mainboards and devices which should be capable of running OpenBMC. More information on the boards Nicolai Electronics is working can be found on the board specific pages.
3.1.1 - ASRock Rack X570D4U
Project status: in progress
The ASRock Rack X570D4U series of mainboards consists of three mainboards with an AMD X570 chipset and AM4 socket. ASRock Rack sells the board in three versions: a cost reduced version without a 10Gbit NIC (X570D4U), a version with an Intel 10Gbit NIC (X570D4U-2L2T) and a version with a Broadcom 10Gbit NIC (X570D4U-2L2T/BCM). These boards contain an Aspeed AST2500 BMC chip. A Baseboard Management Controller (BMC) is a small computer built into the motherboard that allows for out-of-band management. It allows for remote power control, KVM (remote keyboard, video and mouse) control, virtual media insertion and much more.
Property | Value | Part |
---|---|---|
Processor | ARM1176JZS (ARMv6) @ 800MHz | AST2500 SoC |
RAM | 512MB DDR4 | K4A4G165WE |
Storage | 64MB SPI flash | MX25L51245G |
These parts make for quite a powerful system, unfortunately the operating system shipped by ASRock Rack is proprietary and dos not allow for easy modification. To allow for a more secure, transparent and customizable experience we are working on adding support for this mainboard to the mainline Linux kernel and the OpenBMC Linux distribution for BMCs.
Official documentation is provided in ASRock Racks manual for these mainboards. Not a all headers and connectors are described in this manual. The pinout of the undocumented connectors and headers can be found on the pinout page.
The BMC has a programming header, a debug serial port, I2C busses and GPIOs.
Project status
Enabling the use of the mainline Linux kernel and OpenBMC on this hardware is an ongoing effort. An initial port of OpenBMC missing most board specific features can be found here.
3.1.1.1 - ASRock Rack X570D4U mainboard: pinout
This page describes the undocumented headers and connectors on the ASRock X570D4U mainboard. The official manual for this mainboard describes most other connectors and headers.
BMC debug header
This header labeled BMC_DEBUG1
provides access to the debug serial port of the AST2500 SoC (UART 5). The UART works with 3.3v level signals and provides a 3.3v output and can be found on the bottom left of the mainboard.
Using this port you can access the U-Boot command prompt, the Linux bootlog and a shell.
BMC programming header
This header labeled BMC_PH1
provides access to the MX25L51245G 64MB flash chip containing the BMC firmware. Using an exernal SPI flash programmer this port allows for unbricking and easy reflashing of the BMC firmware during development.
This interface uses 3.3v level signals. Connecting the BMC RESET#
pin to GND
disables the AST2500, allowing an exernal programmer to reprogram the flash chip without interference from the SoC.
Manufacturing mode header
This header labeled MFG1
is connected to GPIO H4 of the AST2500 SoC. With the official firmware installed shorting this jumper makes the BMC boot into a special debug mode, dropping to a root shell on the BMC_DEBUG1 port. When running OpenBMC this GPIO is available for custom applications.
Chassis identification
These three headers labeled CHASSIS_ID1
, CHASSIS_ID2
and CHASSIS_ID3
are connected to GPIO G1, G2 and G3 of the AST2500 SoC for ID1, ID2 and ID3 respectively. On production boards these headers appear to not have been installed, but they are functional. When running OpenBMC these GPIOs are available for custom applications.
3.1.1.2 - ASRock Rack X570D4U mainboard: I2C busses
This page describes the I2C busses and connected on-board devices on the ASRock X570D4U mainboard.
I2C bus 0
This bus is connected to the AUX_PANEL1
connector. SMBus alert for this bus is connected to GPIO 52 (G4)
named input-aux-smb-alert-n
.
Device | Address | Available when host is off | Description |
---|---|---|---|
AUX panel SMBus header (AUX_PANEL1) | — | Yes | Standard 2.54mm header, pinout is in manual |
I2C bus 1
This bus is used for controlling on-board devices that are used when the host is on.
Device | Address | Available when host is off | Description |
---|---|---|---|
PCA9557 IO expander | 0x1C | No | Controls the FAN fault LEDs |
Unknown device | 0x1D | No | Unknown |
Nuvoton NCT6796D-R SuperIO | 0x2D | No | Host temperature monitoring interface (SuperIO) |
Nuvoton W83773G | 0x4C | Yes | Temperature monitoring interface for 10G NIC (Not installed on base model X570D4U boards) |
PCA9557 IO expander
Pin | Direction | Function |
---|---|---|
0 | Output | Fault LED for FAN 4 |
1 | Output | Fault LED for FAN 5 |
2 | Output | Fault LED for FAN 1 |
3 | Output | Unknown / not connected |
4 | Output | Fault LED for FAN 2 |
5 | Output | Fault LED for FAN 3 |
6 | Output | Fault LED for FAN 6 |
7 | Output | Unknown / not connected |
Nuvoton NCT6796D-R SuperIO
This chip can read the CPU and chipset temperatures. It should be possible to use the newly added nct6775-i2c driver to use this device.
Using the NCT6775-I2C driver
The OpenBMC port for the X570D4U already includes the nct6775-i2c
driver in it’s kernel, but as the SuperIO device only appears on the bus when the host system is powered on the driver needs to be loaded in and unloaded based on power state changes. This has not been implemented yet.
The driver can be manually loaded in using the following command:
echo "nct6775 0x2d" > /sys/bus/i2c/devices/i2c-1/new_device
If the driver was loaded correctly then you should now be able to find a folder called hwmon
in the device folder /sys/bus/i2c/devices/i2c-1/1-002d
. This folder will contain a symlink to the hwmon interface for the SuperIO chip. If the folder is missing then your kernel does not include the nct6775-i2c
driver.
Directly accessing and reading the temperature registers
Alternatively the temperatures can be read using this shell script, for which no kernel driver is required:
#!/bin/bash
i2cset -y 1 0x2d 0x4e 0x04
while :
do
TSI0INT=$((16#$(i2cget -y 1 0x2d 0x09 | cut -f2 -dx)))
TSI0FRC=$(($((16#$(i2cget -y 1 0x2d 0x0a | cut -f2 -dx)))>>5))
TSI1INT=$((16#$(i2cget -y 1 0x2d 0x0b | cut -f2 -dx)))
TSI1FRC=$(($((16#$(i2cget -y 1 0x2d 0x0c | cut -f2 -dx)))>>5))
echo "TSI0_TEMP: $TSI0INT.$TSI0FRC °C / TSI1_TEMP: $TSI1INT.$TSI1FRC °C"
sleep 0.5
done
Nuvoton W83773G
This device is available on the versions of the X570D4U which include a 10Gbit network adapter. It monitors the temperature of the 10Gbit NIC.
cat /sys/class/hwmon/hwmon0/temp2_input
I2C bus 2
This bus is used for connecting to exernal power supplies with SMBus monitoring support using the PSU_SMB1
connector. SMBus alert for this bus is connected to GPIO 54 (G6)
named input-psu-smb-alert-n
.
Device | Address | Available when host is off | Description |
---|---|---|---|
PSU SMBus header (PSU_SMB1) | — | Yes | MOLEX 70543-0003 connector, pinout is in manual |
I2C bus 3
This bus has an unknown purpose.
Device | Address | Available when host is off | Description |
---|---|---|---|
Unknown device | 0x13 | Yes | Unknown |
Unknown device | 0x14 | No | Unknown |
Unknown device | 0x15 | No | Unknown |
I2C bus 4
This bus is used to connect to expansion cards inserted into the PCI-Express slots of the mainboard.
Device | Address | Available when host is off | Description |
---|---|---|---|
NXP PCA9545A I2C bus switch | 0x70 | Yes | Bus multiplexer for switching between PCIe slots |
NXP PCA9545A I2C bus switch
Bus | Port |
---|---|
0 | PCI express 16x slot |
1 | PCI express 8x slot |
2 | Unknown |
3 | PCI express 1x slot |
I2C bus 5
This bus is connected to the BMC_SMB_1
connector. The BMC_PRESENT_1_N
signal on the BMC_SMB_1
connector is connected to GPIO 132 (Q4)
named input-bmc-smb-present-n
.
Device | Address | Available when host is off | Description |
---|---|---|---|
BMC SMbus header (BMC_SMB_1) | — | Yes | Unknown connector, pinout is in manual (might be MOLEX 353620550) |
I2C bus 7
This bus is used for connecting to the FRU EEPROM and the RAM DIMMs.
Device | Address | Available when host is off | Description |
---|---|---|---|
RAM DIMM A1 temperature sensor | 0x1A | No | |
RAM DIMM A2 temperature sensor | ???? | No | Not tested yet |
RAM DIMM B1 temperature sensor | 0x1B | No | |
RAM DIMM B2 temperature sensor | ???? | No | Not tested yet |
Unknown device | 0x30 | No | Unknown |
Unknown device | 0x35 | No | Unknown |
Unknown device | 0x36 | No | Unknown |
RAM DIMM A1 SPD EEPROM | 0x52 | No | |
RAM DIMM A2 SPD EEPROM | ???? | No | Not tested yet |
RAM DIMM B1 SPD EEPROM | 0x53 | No | |
RAM DIMM B2 SPD EEPROM | ???? | No | Not tested yet |
FRU EEPROM | 0x57 | Yes |
I2C bus 8
This bus is connected to the IPMB_1
connector.
Device | Address | Available when host is off | Description |
---|---|---|---|
IPMI SMbus header (IPMB_1) | — | Yes | MOLEX 22035045 connector, pinout is in manual |
3.1.1.3 - ASRock Rack X570D4U mainboard: GPIO
This page describes the GPIOs of the ASPEED AST2500 BMC on the ASRock X570D4U mainboard.
# | ID | Power domain | Peripheral | Type | Name | Description |
---|---|---|---|---|---|---|
0 | A0 | PV33D | GPIO | Input | input-locatorled-n | State of the locator LED (active low) |
1 | A1 | PV33D | ||||
2 | A2 | PV33D | ||||
3 | A3 | PV33D | ||||
4 | A4 | I2C | I2C bus 8 clock (IPMB SMBus) | |||
5 | A5 | I2C | I2C bus 8 data (IPMB SMBus) | |||
6 | A6 | |||||
7 | A7 | |||||
8 | B0 | LPVDD | GPIO | Input | input-bios-post-cmplt-n | BIOS has completed POST stage (active low) |
9 | B1 | LPVDD | (Changes on host boot) | |||
10 | B2 | LPVDD | (Changes on host boot) | |||
11 | B3 | LPVDD | ||||
12 | B4 | LPVDD | (Changes on host boot) | |||
13 | B5 | LPVDD | ||||
14 | B6 | LPVDD | ||||
15 | B7 | LPVDD | (Changes on host boot) | |||
16 | C0 | (I2C bus 9 clock) | ||||
17 | C1 | (I2C bus 9 data) | ||||
18 | C2 | (I2C bus 10 clock) | ||||
19 | C3 | (I2C bus 10 data) | ||||
20 | C4 | (I2C bus 11 clock) | ||||
21 | C5 | (I2C bus 11 data) | ||||
22 | C6 | GPIO | Output open drain | control-locatorbutton-n | Pull low to emulate identification button press | |
23 | C7 | |||||
24 | D0 | GPIO | Input | button-power-n | State of the power button (active low) | |
25 | D1 | GPIO | Output open drain | control-power-n | Pull low to emulate power button press | |
26 | D2 | GPIO | Input | button-reset-n | State of the reset button (active low) | |
27 | D3 | GPIO | Output open drain | control-reset-n | Pull low to emulate reset button press | |
28 | D4 | |||||
29 | D5 | |||||
30 | D6 | |||||
31 | D7 | |||||
32 | E0 | (UART3 CTS) | ||||
33 | E1 | (UART3 DCD) | ||||
34 | E2 | (UART3 DSR) | ||||
35 | E3 | (UART3 RING) | ||||
36 | E4 | (UART3 DTR) | ||||
37 | E5 | (UART3 RTS) | ||||
38 | E6 | (UART3 TX) | ||||
39 | E7 | (UART3 RX) | ||||
40 | F0 | (UART4 CTS, LPC HOST BIT 0) | ||||
41 | F1 | (UART4 DCD, LPC HOST BIT 1) | ||||
42 | F2 | (UART4 DSR, LPC HOST BIT 2) | ||||
43 | F3 | (UART4 RING, LPC HOST BIT 3) | ||||
44 | F4 | (UART4 DTR, LPC HOST CLOCK IO) | ||||
45 | F5 | (UART4 RTS, LPC HOST FRAME#) | ||||
46 | F6 | (UART4 TX, LPC HOST SERIRQ#, maybe BMC_PCH_SCI_LPC) | ||||
47 | F7 | (UART4 RX, LPC HOST RESET IO, maybe BMC_NCSI_MUX_STL) | ||||
48 | G0 | GPIO | Output | output-hwm-vbat-enable | Pull high to connect the RTC battery to ADC9 | |
49 | G1 | GPIO | Input | input-id0-n | Pulled low when jumper ID0 is closed | |
50 | G2 | GPIO | Input | input-id1-n | Pulled low when jumper ID1 is closed | |
51 | G3 | GPIO | Input | input-id2-n | Pulled low when jumper ID2 is closed | |
52 | G4 | GPIO | Input | input-aux-smb-alert-n | SMBus alert for I2C bus 0 (AUX_PANEL1) | |
53 | G5 | |||||
54 | G6 | GPIO | Input | input-psu-smb-alert-n | SMBus alert for I2C bus 2 (PSU_SMB1) | |
55 | G7 | |||||
56 | H0 | |||||
57 | H1 | |||||
58 | H2 | |||||
59 | H3 | |||||
60 | H4 | GPIO | Input | input-mfg-mode-n | Pulled low when jumper MFG1 is closed | |
61 | H5 | |||||
62 | H6 | GPIO | Output | led-heartbeat-n | Controls the green heartbeat LED on the board (active low) | |
63 | H7 | GPIO | Input | input-case-open-n | High while case open button is pressed, low when released | |
64 | I0 | (SYSCS#) | ||||
65 | I1 | (SYSCK) | ||||
66 | I2 | (SYSMOSI) | ||||
67 | I3 | (SYSMISO) | ||||
68 | I4 | (SPI1CS0# / VBCS#) | ||||
69 | I5 | (SPI1CK / VBCK) | ||||
70 | I6 | (SPI1MOSI / VBMOSI) | ||||
71 | I7 | (SPI1MISO / VBMISO) | ||||
72 | J0 | GPIO | Output | output-bmc-ready-n | Signals to the host that the BMC is ready (active low) | |
73 | J1 | (guess based on other asrock boards: BMC_PCH_BIOS_CS_N) | ||||
74 | J2 | |||||
75 | J3 | |||||
76 | J4 | VGA | VGA horizontal sync | |||
77 | J5 | VGA | VGA vertical sync | |||
78 | J6 | VGA | VGA DDC clock | |||
79 | J7 | VGA | VGA DDC data | |||
80 | K0 | I2C | I2C bus 4 clock (PCI Express SMBus) | |||
81 | K1 | I2C | I2C bus 4 data (PCI Express SMBus) | |||
82 | K2 | I2C | I2C bus 5 clock (BMC SMBus) | |||
83 | K3 | I2C | I2C bus 5 data (BMC SMBus) | |||
84 | K4 | (I2C bus 6 clock) | ||||
85 | K5 | (I2C bus 6 data) | ||||
86 | K6 | I2C | I2C bus 7 clock (FRU and SPD EEPROM SMBus) | |||
87 | K7 | I2C | I2C bus 7 data (FRU and SPD EEPROM SMBus) | |||
88 | L0 | (UART1 CTS) | ||||
89 | L1 | (UART1 DCD) | ||||
90 | L2 | (UART1 DSR) | ||||
91 | L3 | (UART1 RING) | ||||
92 | L4 | (UART1 DTR) | ||||
93 | L5 | (UART1 RTS) | ||||
94 | L6 | (UART1 TX) | ||||
95 | L7 | (UART1 RX) | ||||
96 | M0 | (UART2 CTS) | ||||
97 | M1 | (UART2 DCD) | ||||
98 | M2 | (UART2 DSR) | ||||
99 | M3 | (UART2 RING) | ||||
100 | M4 | (UART2 DTR) | ||||
101 | M5 | (UART2 RTS) | ||||
102 | M6 | (UART2 TX) | ||||
103 | M7 | (UART2 RX) | ||||
104 | N0 | PWM | FAN1 PWM output | |||
105 | N1 | PWM | FAN2 PWM output | |||
106 | N2 | PWM | FAN3 PWM output | |||
107 | N3 | PWM | FAN4 PWM output | |||
108 | N4 | PWM | FAN6 PWM output | |||
109 | N5 | PWM | FAN5 PWM output | |||
110 | N6 | |||||
111 | N7 | |||||
112 | O0 | Tachometer | FAN1 tachometer input | |||
113 | O1 | Tachometer | FAN2 tachometer input | |||
114 | O2 | Tachometer | FAN3 tachometer input | |||
115 | O3 | Tachometer | FAN4 tachometer input 1 | |||
116 | O4 | Tachometer | FAN5 tachometer input 1 | |||
117 | O5 | Tachometer | FAN6 tachometer input 1 | |||
118 | O6 | |||||
119 | O7 | |||||
120 | P0 | |||||
121 | P1 | |||||
122 | P2 | |||||
123 | P3 | Tachometer | FAN4 tachometer input 2 | |||
124 | P4 | Tachometer | FAN5 tachometer input 2 | |||
125 | P5 | Tachometer | FAN6 tachometer input 2 | |||
126 | P6 | |||||
127 | P7 | |||||
128 | Q0 | I2C | I2C bus 2 clock (PSU_SMB1) | |||
129 | Q1 | I2C | I2C bus 2 data (PSU_SMB1) | |||
130 | Q2 | I2C | I2C bus 3 clock | |||
131 | Q3 | I2C | I2C bus 3 data | |||
132 | Q4 | GPIO | Input | input-bmc-smb-present-n | BMC present input (BMC_SMB_1) | |
133 | Q5 | |||||
134 | Q6 | PV33D | ||||
135 | Q7 | PV33D | GPIO | Input | input-pcie-wake-n | Pulled low when a PCI Express card asserts WAKE# |
136 | R0 | |||||
137 | R1 | |||||
138 | R2 | (SPI2CS0#) | ||||
139 | R3 | (SPI2CK) | ||||
140 | R4 | (SPI2MOSI) | ||||
141 | R5 | (SPI2MISO) | ||||
142 | R6 | RGMII | MDC1 | |||
143 | R7 | RGMII | MDIO1 | |||
144 | S0 | PV33D | GPIO | Input | input-bmc-pchhot-n | Needs verification |
145 | S1 | PV33D | ||||
146 | S2 | PV33D | ||||
147 | S3 | PV33D | ||||
148 | S4 | PV33D | ||||
149 | S5 | PV33D | ||||
150 | S6 | PV33D | ||||
151 | S7 | PV33D | ||||
152 | T0 | RGMII | Dedicated LAN port: TXCK | |||
153 | T1 | RGMII | Dedicated LAN port: TXCL | |||
154 | T2 | RGMII | Dedicated LAN port: TXD0 | |||
155 | T3 | RGMII | Dedicated LAN port: TXD1 | |||
156 | T4 | RGMII | Dedicated LAN port: TXD2 | |||
157 | T5 | RGMII | Dedicated LAN port: TXD3 | |||
158 | T6 | RMII | NC-SI: RCLKO | |||
159 | T7 | RMII | NC-SI: TXEN | |||
160 | U0 | RMII | NC-SI: TXD0 | |||
161 | U1 | RMII | NC-SI: TXD1 | |||
162 | U2 | |||||
163 | U3 | |||||
164 | U4 | RGMII | Dedicated LAN port: RXCK | |||
165 | U5 | RGMII | Dedicated LAN port: RXCTL | |||
166 | U6 | RGMII | Dedicated LAN port: RXD0 | |||
167 | U7 | RGMII | Dedicated LAN port: RXD1 | |||
168 | V0 | RGMII | Dedicated LAN port: RXD2 | |||
169 | V1 | RGMII | Dedicated LAN port: RXD3 | |||
170 | V2 | RMII | NC-SI: CLKI | |||
171 | V3 | |||||
172 | V4 | RMII | NC-SI: RXD0 | |||
173 | V5 | RMII | NC-SI: RXD1 | |||
174 | V6 | RMII | NC-SI: CRSDV | |||
175 | V7 | RMII | NC-SI: RXER | |||
176 | W0 | ADC | Analog input representing 3VSB | |||
177 | W1 | ADC | Analog input representing 5VSB | |||
178 | W2 | ADC | Analog input representing VCPU | |||
179 | W3 | ADC | Analog input representing VSOC | |||
180 | W4 | ADC | Analog input representing VCCM | |||
181 | W5 | ADC | Analog input representing APU VDDP | |||
182 | W6 | ADC | Analog input representing PM VDD CLDO | |||
183 | W7 | ADC | Analog input representing PM VDDCR S5 | |||
184 | X0 | ADC | Analog input representing PM VDDCR | |||
185 | X1 | ADC | Analog input representing RTC battery voltage | |||
186 | X2 | ADC | Analog input representing 3V | |||
187 | X3 | ADC | Analog input representing 5V | |||
188 | X4 | ADC | Analog input representing 12V | |||
189 | X5 | (ADC) | ||||
190 | X6 | (ADC) | ||||
191 | X7 | (ADC) | ||||
192 | Y0 | PV33D | ||||
193 | Y1 | PV33D | ||||
194 | Y2 | PV33D | ||||
195 | Y3 | PV33D | ||||
196 | Y4 | I2C | I2C bus 0 clock (AUX_PANEL1) | |||
197 | Y5 | I2C | I2C bus 0 data (AUX_PANEL1) | |||
198 | Y6 | I2C | I2C bus 1 clock (SuperIO and thermal sensor) | |||
199 | Y7 | I2C | I2C bus 1 data (SuperIO and thermal sensor) | |||
200 | Z0 | PV33D | ||||
201 | Z1 | PV33D | ||||
202 | Z2 | PV33D | GPIO | Output | led-fault-n | |
203 | Z3 | PV33D | GPIO | Output | output-bmc-throttle-n | Needs verification |
204 | Z4 | PV33D | ||||
205 | Z5 | PV33D | ||||
206 | Z6 | PV33D | ||||
207 | Z7 | PV33D | ||||
208 | AA0 | PV33D | GPIO | Input | input-cpu1-thermtrip-latch-n | |
209 | AA1 | PV33D | ||||
210 | AA2 | PV33D | GPIO | Input | input-cpu1-prochot-n | |
211 | AA3 | PV33D | ||||
212 | AA4 | PV33D | ||||
213 | AA5 | PV33D | ||||
214 | AA6 | PV33D | ||||
215 | AA7 | PV33D | ||||
216 | AB0 | PV33D | ||||
217 | AA1 | PV33D | ||||
218 | AA2 | PV33D | ||||
219 | AA3 | PV33D | ||||
220 | — | |||||
221 | — | |||||
222 | — | |||||
223 | — | |||||
224 | AC0 | LPC | LAD0 | |||
225 | AC1 | LPC | LAD1 | |||
226 | AC2 | LPC | LAD2 | |||
227 | AC3 | LPC | LAD3 | |||
228 | AC4 | LPC | Clock | |||
229 | AC5 | LPC | LFRAME | |||
230 | AC6 | LPC | IRQ | |||
231 | AC7 | LPC | Reset |
3.1.1.4 - Programming SPI flash with an FT2232 breakout board
Connection diagram
Pin on Mainboard | Function SPI | Function QSPI | Pin on FTDI |
---|---|---|---|
CS# | Chip select | Chip select | ADBUS 3 |
VCC | 3.3v output | 3.3v output | Not connected |
SO/SIO1 | Data output | Data bit 1 | ADBUS 2 |
SIO3 | Unused | Data bit 3 | Not connected |
WP#/SIO2 | Write protect | Data bit 2 | Not connected |
SCLK | Clock | Clock | ADBUS 0 |
BMC RESET# | Reset | Reset | Ground |
SI/SIO0 | Data input | Data bit 0 | ADBUS 1 |
GND | Ground | Ground | Ground |
3.1.1.5 - ASRock Rack X570D4U mainboard: temperature sensors
This page describes the temperature sensors on the X570D4U.
Nuvoton NCT6796D-R SuperIO
This device can be accessed via I2C bus 1 at address 0x2D.
Input | Valid | Description |
---|---|---|
SYSTIN | Yes | Close to SuperIO chip, could be MB temperature |
CPUTIN | No | |
AUXTIN0 | No | |
AUXTIN1 | Yes | Close to SuperIO chip, could be MB temperature |
AUXTIN2 | Yes | Bottom left corner of the board, Card side temperature |
AUXTIN3 | No | |
AUXTIN4 | No | |
TSI0_TEMP | Yes | CPU temperature |
TSI1_TEMP | Yes | Chipset temperature |
Nuvoton W83773G
This device can be accessed via I2C bus 1 at address 0x4C.
Input | Valid | Description |
---|---|---|
temp1_input | Yes | Inside of the W83773G, located close to the 10Gbit NIC |
temp2_input | Yes | Cconnected to a temperature diode in or close to the 10Gbit NIC |
temp3_input | No |
3.1.1.6 - ASRock Rack X570D4U mainboard: fans
This page describes the fan connectors on the X570D4U.
Fan connectors
Connector | PWM | Tacho 1 | Tacho 2 |
---|---|---|---|
1 | 1 | 1 | - |
2 | 2 | 2 | - |
3 | 3 | 3 | - |
4 | 4 | 4 | 12 |
5 | 6 | 5 | 13 |
6 | 5 | 6 | 14 |
Fan 1-3 connector pinout
Pin | Function | Asrock label |
---|---|---|
1 | Ground | GND |
2 | Power | FAN_VOLTAGE |
3 | Tacho 1 | FAN_SPEED |
4 | PWM | FAN_SPEED_CONTROL |
Fan 4-6 connector pinout
Pin | Function | Asrock label |
---|---|---|
1 | Ground | GND |
2 | Power | FAN_VOLTAGE |
3 | Tacho 1 | FAN_SPEED |
4 | PWM | FAN_SPEED_CONTROL |
5 | Tacho 2 | SENSOR |
6 | - | NC |
3.1.2 - ASRock Rack PAUL
Project status: in progress
The ASRock Rack PAUL is a PCI-express add-in card for servers and workstations containing an Aspeed AST2500 BMC chip. A Baseboard Management Controller (BMC) is a small computer that allows for out-of-band management. It allows for remote power control, KVM (remote keyboard, video and mouse) control, virtual media insertion and much more.
Property | Value | Part |
---|---|---|
Processor | ARM1176JZS (ARMv6) @ 800MHz | AST2500 SoC |
RAM | 512MB DDR4 | K4A4G165WE-BCRC |
Storage | 3x 32MB SPI flash | MX25L25645G |
These parts make for quite a powerful system, unfortunately the operating system shipped by ASRock Rack is proprietary and dos not allow for easy modification. To allow for a more secure, transparent and customizable experience we are working on adding support for this mainboard to the mainline Linux kernel and the OpenBMC Linux distribution for BMCs.
Official documentation is provided in ASRock Racks manual.
3.1.2.1 - ASRock Rack PAUL: GPIO
This page describes the GPIOs of the ASPEED AST2500 BMC on the ASRock Rack Paul card.
# | ID | Power domain | Peripheral | Type | Name | Description | Verified |
---|---|---|---|---|---|---|---|
0 | A0 | PV33D | |||||
1 | A1 | PV33D | |||||
2 | A2 | PV33D | GPIO | Input | input-nmi | NMI input on pinheader | Yes |
3 | A3 | PV33D | |||||
4 | A4 | I2C | I2C bus 8 clock (IPMB_1) | Yes | |||
5 | A5 | I2C | I2C bus 8 data (IPMB_1) | Yes | |||
6 | A6 | ||||||
7 | A7 | ||||||
8 | B0 | LPVDD | |||||
9 | B1 | LPVDD | |||||
10 | B2 | LPVDD | |||||
11 | B3 | LPVDD | |||||
12 | B4 | LPVDD | |||||
13 | B5 | LPVDD | |||||
14 | B6 | LPVDD | |||||
15 | B7 | LPVDD | |||||
16 | C0 | SD card | SD card 1: CLK | Yes | |||
17 | C1 | SD card | SD card 1: CMD | Yes | |||
18 | C2 | SD card | SD card 1: DAT0 | Yes | |||
19 | C3 | SD card | SD card 1: DAT1 | Yes | |||
20 | C4 | SD card | SD card 1: DAT2 | Yes | |||
21 | C5 | SD card | SD card 1: DAT3 | Yes | |||
22 | C6 | SD card | SD card 1: CD# | Yes | |||
23 | C7 | ||||||
24 | D0 | GPIO | Input | button-power-n | AUX_PANEL1 pin 1 | Yes | |
25 | D1 | GPIO | Output open drain | control-power-n | AUX_PANEL1 pin 3 | Yes | |
26 | D2 | GPIO | Input | button-reset-n | AUX_PANEL1 pin 5 | Yes | |
27 | D3 | GPIO | Output open drain | control-reset-n | AUX_PANEL1 pin 7 | Yes | |
28 | D4 | GPIO | aux-panel-1-9 | AUX_PANEL1 pin 9 | Yes | ||
29 | D5 | GPIO | aux-panel-1-11 | AUX_PANEL1 pin 11 | Yes | ||
30 | D6 | GPIO | aux-panel-1-15 | AUX_PANEL1 pin 15 | Yes | ||
31 | D7 | GPIO | aux-panel-1-17 | AUX_PANEL1 pin 17 | Yes | ||
32 | E0 | (UART3 CTS) | |||||
33 | E1 | (UART3 DCD) | |||||
34 | E2 | (UART3 DSR) | |||||
35 | E3 | (UART3 RING) | |||||
36 | E4 | (UART3 DTR) | |||||
37 | E5 | (UART3 RTS) | |||||
38 | E6 | (UART3 TX) | |||||
39 | E7 | (UART3 RX) | |||||
40 | F0 | (UART4 CTS, LPC HOST BIT 0) | |||||
41 | F1 | (UART4 DCD, LPC HOST BIT 1) | |||||
42 | F2 | (UART4 DSR, LPC HOST BIT 2) | |||||
43 | F3 | (UART4 RING, LPC HOST BIT 3) | |||||
44 | F4 | (UART4 DTR, LPC HOST CLOCK IO) | |||||
45 | F5 | (UART4 RTS, LPC HOST FRAME#) | |||||
46 | F6 | (UART4 TX, LPC HOST SERIRQ#, maybe BMC_PCH_SCI_LPC) | |||||
47 | F7 | GPIO | Output | output-bios-flash-select | Switches SPI1 between the BIOS flash chip and BIOS_PH1 | Yes | |
48 | G0 | GPIO | Output | ||||
49 | G1 | ||||||
50 | G2 | ||||||
51 | G3 | ||||||
52 | G4 | GPIO | Input | input-aux-smb-alert-n | SMBus alert for I2C bus 5 (AUX_PANEL2) | Yes | |
53 | G5 | ||||||
54 | G6 | GPIO | Input | input-psu-smb-alert-n | SMBus alert for I2C bus 3 (PSU_SMB1) | Yes | |
55 | G7 | ||||||
56 | H0 | ||||||
57 | H1 | ||||||
58 | H2 | ||||||
59 | H3 | ||||||
60 | H4 | GPIO | Input | input-mfg-mode-n | Pulled low when jumper MFG1 is closed | Yes | |
61 | H5 | ||||||
62 | H6 | GPIO | Output | led-heartbeat-n | Controls the green heartbeat LED on the board (active low) | Yes | |
63 | H7 | ||||||
64 | I0 | (SYSCS#) | |||||
65 | I1 | (SYSCK) | |||||
66 | I2 | (SYSMOSI) | |||||
67 | I3 | (SYSMISO) | |||||
68 | I4 | SPI | CS | SPI1CS0# / VBCS# | Yes | ||
69 | I5 | SPI | SCK | SPI1CK / VBCK | Yes | ||
70 | I6 | SPI | MOSI | SPI1MOSI / VBMOSI | Yes | ||
71 | I7 | SPI | MISO | SPI1MISO / VBMISO | Yes | ||
72 | J0 | ||||||
73 | J1 | ||||||
74 | J2 | ||||||
75 | J3 | ||||||
76 | J4 | VGA | VGA horizontal sync | ||||
77 | J5 | VGA | VGA vertical sync | ||||
78 | J6 | VGA | VGA DDC clock | ||||
79 | J7 | VGA | VGA DDC data | ||||
80 | K0 | I2C | I2C bus 4 clock (temperature sensor) | Yes | |||
81 | K1 | I2C | I2C bus 4 data (temperature sensor) | Yes | |||
82 | K2 | I2C | I2C bus 5 clock (AUX_PANEL2) | Yes | |||
83 | K3 | I2C | I2C bus 5 data (AUX_PANEL2) | Yes | |||
84 | K4 | (I2C bus 6 clock) | |||||
85 | K5 | (I2C bus 6 data) | |||||
86 | K6 | I2C | I2C bus 7 clock (FRU and SPD EEPROM SMBus) | ||||
87 | K7 | I2C | I2C bus 7 data (FRU and SPD EEPROM SMBus) | ||||
88 | L0 | (UART1 CTS) | |||||
89 | L1 | (UART1 DCD) | |||||
90 | L2 | (UART1 DSR) | |||||
91 | L3 | (UART1 RING) | |||||
92 | L4 | (UART1 DTR) | |||||
93 | L5 | (UART1 RTS) | |||||
94 | L6 | (UART1 TX) | |||||
95 | L7 | (UART1 RX) | |||||
96 | M0 | (UART2 CTS) | |||||
97 | M1 | (UART2 DCD) | |||||
98 | M2 | (UART2 DSR) | |||||
99 | M3 | (UART2 RING) | |||||
100 | M4 | (UART2 DTR) | |||||
101 | M5 | (UART2 RTS) | |||||
102 | M6 | (UART2 TX) | |||||
103 | M7 | (UART2 RX) | |||||
104 | N0 | PWM | |||||
105 | N1 | PWM | FAN1 PWM output (pwm2) | Yes | |||
106 | N2 | PWM | FAN2 PWM output (pwm3) | Yes | |||
107 | N3 | PWM | |||||
108 | N4 | PWM | |||||
109 | N5 | PWM | |||||
110 | N6 | ||||||
111 | N7 | ||||||
112 | O0 | Tachometer | |||||
113 | O1 | Tachometer | FAN1 tachometer input (in2) | Yes | |||
114 | O2 | Tachometer | FAN2 tachometer input (in3) | Yes | |||
115 | O3 | Tachometer | |||||
116 | O4 | Tachometer | |||||
117 | O5 | Tachometer | |||||
118 | O6 | ||||||
119 | O7 | ||||||
120 | P0 | ||||||
121 | P1 | ||||||
122 | P2 | ||||||
123 | P3 | Tachometer | |||||
124 | P4 | Tachometer | |||||
125 | P5 | Tachometer | |||||
126 | P6 | ||||||
127 | P7 | ||||||
128 | Q0 | I2C | I2C bus 2 clock (BMC_SMB_2) | Yes | |||
129 | Q1 | I2C | I2C bus 2 data (BMC_SMB_2) | Yes | |||
130 | Q2 | I2C | I2C bus 3 clock (PSU_SMB1) | Yes | |||
131 | Q3 | I2C | I2C bus 3 data (PSU_SMB1) | Yes | |||
132 | Q4 | GPIO | Input | input-bmc-smb-present-1-n | BMC present input (BMC_SMB_1) | Yes | |
133 | Q5 | GPIO | Input | input-bmc-smb-present-2-n | BMC present input (BMC_SMB_2) | Yes | |
134 | Q6 | PV33D | |||||
135 | Q7 | PV33D | GPIO | Output | output-pcie-wake-n | PCI Express WAKE# | Yes |
136 | R0 | ||||||
137 | R1 | ||||||
138 | R2 | (SPI2CS0#) | |||||
139 | R3 | (SPI2CK) | |||||
140 | R4 | (SPI2MOSI) | |||||
141 | R5 | (SPI2MISO) | |||||
142 | R6 | RGMII | MDC1 | ||||
143 | R7 | RGMII | MDIO1 | ||||
144 | S0 | PV33D | |||||
145 | S1 | PV33D | |||||
146 | S2 | PV33D | |||||
147 | S3 | PV33D | |||||
148 | S4 | PV33D | |||||
149 | S5 | PV33D | |||||
150 | S6 | PV33D | |||||
151 | S7 | PV33D | |||||
152 | T0 | RGMII | Dedicated LAN port: TXCK | Yes | |||
153 | T1 | RGMII | Dedicated LAN port: TXCL | Yes | |||
154 | T2 | RGMII | Dedicated LAN port: TXD0 | Yes | |||
155 | T3 | RGMII | Dedicated LAN port: TXD1 | Yes | |||
156 | T4 | RGMII | Dedicated LAN port: TXD2 | Yes | |||
157 | T5 | RGMII | Dedicated LAN port: TXD3 | Yes | |||
158 | T6 | RMII | NC-SI: RCLKO | ||||
159 | T7 | RMII | NC-SI: TXEN | Yes | |||
160 | U0 | RMII | NC-SI: TXD0 | Yes | |||
161 | U1 | RMII | NC-SI: TXD1 | Yes | |||
162 | U2 | ||||||
163 | U3 | ||||||
164 | U4 | RGMII | Dedicated LAN port: RXCK | Yes | |||
165 | U5 | RGMII | Dedicated LAN port: RXCTL | Yes | |||
166 | U6 | RGMII | Dedicated LAN port: RXD0 | Yes | |||
167 | U7 | RGMII | Dedicated LAN port: RXD1 | Yes | |||
168 | V0 | RGMII | Dedicated LAN port: RXD2 | Yes | |||
169 | V1 | RGMII | Dedicated LAN port: RXD3 | Yes | |||
170 | V2 | RMII | NC-SI: CLKI | ||||
171 | V3 | ||||||
172 | V4 | RMII | NC-SI: RXD0 | Yes | |||
173 | V5 | RMII | NC-SI: RXD1 | Yes | |||
174 | V6 | RMII | NC-SI: CRSDV | Yes | |||
175 | V7 | RMII | NC-SI: RXER | ||||
176 | W0 | ADC | Analog input representing 3VSB | ||||
177 | W1 | ADC | Analog input representing 5VSB | ||||
178 | W2 | ADC | Analog input representing VCPU | ||||
179 | W3 | ADC | Analog input representing VSOC | ||||
180 | W4 | ADC | Analog input representing VCCM | ||||
181 | W5 | ADC | Analog input representing APU VDDP | ||||
182 | W6 | ADC | Analog input representing PM VDD CLDO | ||||
183 | W7 | ADC | Analog input representing PM VDDCR S5 | ||||
184 | X0 | ADC | Analog input representing PM VDDCR | ||||
185 | X1 | ADC | Analog input representing RTC battery voltage | ||||
186 | X2 | ADC | Analog input representing 3V | ||||
187 | X3 | ADC | Analog input representing 5V | ||||
188 | X4 | ADC | Analog input representing 12V | ||||
189 | X5 | (ADC) | |||||
190 | X6 | (ADC) | |||||
191 | X7 | (ADC) | |||||
192 | Y0 | PV33D | GPIO | aux-panel-2-11 | AUX_PANEL2 pin 11 | Yes | |
193 | Y1 | PV33D | GPIO | aux-panel-2-15 | AUX_PANEL2 pin 15 | Yes | |
194 | Y2 | PV33D | GPIO | aux-panel-2-17 | AUX_PANEL2 pin 17 | Yes | |
195 | Y3 | PV33D | GPIO | Output | led-fault-n | Red LED indicating system error & AUX_PANEL2 pin 19 | Yes |
196 | Y4 | I2C | I2C bus 0 clock (PCI express) | Yes | |||
197 | Y5 | I2C | I2C bus 0 data (PCI express) | Yes | |||
198 | Y6 | I2C | I2C bus 1 clock (BMC_SMB_1) | Yes | |||
199 | Y7 | I2C | I2C bus 1 data (BMC_SMB_1) | Yes | |||
200 | Z0 | PV33D | GPIO | aux-panel-2-3 | AUX_PANEL2 pin 3 | Yes | |
201 | Z1 | PV33D | GPIO | aux-panel-2-5 | AUX_PANEL2 pin 5 | Yes | |
202 | Z2 | PV33D | GPIO | aux-panel-2-7 | AUX_PANEL2 pin 7 | Yes | |
203 | Z3 | PV33D | GPIO | aux-panel-2-9 | AUX_PANEL2 pin 9 | Yes | |
204 | Z4 | PV33D | |||||
205 | Z5 | PV33D | |||||
206 | Z6 | PV33D | |||||
207 | Z7 | PV33D | |||||
208 | AA0 | PV33D | GPIO | Output | led-fan1-fault | Red LED indicating fault in FAN 1 | Yes |
209 | AA1 | PV33D | GPIO | Output | led-fan2-fault | Red LED indicating fault in FAN 2 | Yes |
210 | AA2 | PV33D | |||||
211 | AA3 | PV33D | |||||
212 | AA4 | PV33D | |||||
213 | AA5 | PV33D | |||||
214 | AA6 | PV33D | |||||
215 | AA7 | PV33D | |||||
216 | AB0 | PV33D | |||||
217 | AA1 | PV33D | |||||
218 | AA2 | PV33D | |||||
219 | AA3 | PV33D | |||||
220 | — | —- | |||||
221 | — | —- | |||||
222 | — | —- | |||||
223 | — | —- | |||||
224 | AC0 | LPC | LAD0 | Yes | |||
225 | AC1 | LPC | LAD1 | Yes | |||
226 | AC2 | LPC | LAD2 | Yes | |||
227 | AC3 | LPC | LAD3 | Yes | |||
228 | AC4 | LPC | Clock | Yes | |||
229 | AC5 | LPC | LFRAME | Yes | |||
230 | AC6 | LPC | IRQ | ||||
231 | AC7 | LPC | Reset | Yes |