Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
checkpoint
  • Loading branch information
rickkas7 committed Apr 28, 2025
commit e2ffdd5b7dd4beb6699f1e8e1fe37fdfbc7a39a1
148 changes: 148 additions & 0 deletions src/assets/files/pinInfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,154 @@
]
}
},
{
"id": 0,
"name": "m-hat-ioex",
"pins": [
{
"num": 1,
"name": "3V3",
"desc": "3.3V power",
"isPower": true,
"net": "3V3"
},
{
"num": 2,
"name": "GND",
"desc": "Ground",
"isPower": true,
"net": "GND"
},
{
"num": 3,
"name": "A5",
"altName": "D14",
"desc": "A5 Analog in, GPIO",
"analogRead": true,
"analogWriteDAC": false,
"analogWritePWM": false,
"attachInterrupt": "Yes. You can only have 8 active interrupt pins.",
"digitalRead": true,
"digitalWrite": true,
"hardwareADC": "ADC7",
"hardwarePin": "P0.31",
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_A5",
"somPin": "RESERVED",
"tone": false
},
{
"num": 4,
"name": "D23",
"desc": "GPIO",
"analogRead": false,
"analogWriteDAC": false,
"analogWritePWM": false,
"attachInterrupt": "Yes. You can only have 8 active interrupt pins.",
"digitalRead": true,
"digitalWrite": true,
"hardwarePin": "P1.03",
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_D23",
"somPin": "GPIO1",
"tone": false
},
{
"num": 5,
"name": "A6",
"desc": "A6 Analog in, PWM, GPIO",
"analogRead": true,
"analogWriteDAC": false,
"analogWritePWM": true,
"attachInterrupt": "Yes. You can only have 8 active interrupt pins.",
"digitalRead": true,
"digitalWrite": true,
"hardwareADC": "ADC3",
"hardwarePin": "P0.05",
"hardwareTimer": "PWM2",
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_A6",
"somPin": "RESERVED",
"tone": "A0, A1, A6, and A7 must have the same frequency."
},
{
"num": 6,
"name": "D24",
"desc": "D24 on M-SoM, NC on B-SoM",
"isIO": true,
"net": "M2_D24"
},
{
"num": 7,
"name": "SOM14",
"desc": "SOM14 (M.2 Pin 51), NC",
"isIO": true,
"net": "SOM14"
},
{
"num": 8,
"name": "D25",
"desc": "D25 on M-SoM, NC on B-SoM",
"isIO": true,
"net": "M2_D25"
},
{
"num": 9,
"name": "SOM17",
"desc": "SOM 17 (M.2 Pin 57), NC",
"isIO": true,
"net": "SOM17"
},
{
"num": 10,
"name": "D6",
"desc": "PWM, GPIO",
"analogRead": false,
"analogWriteDAC": false,
"analogWritePWM": true,
"attachInterrupt": "Yes. You can only have 8 active interrupt pins.",
"digitalRead": true,
"digitalWrite": true,
"hardwarePin": "P1.04",
"hardwareTimer": "PWM1",
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_D6",
"somPin": "PWM2",
"tone": "D4, D5, and D6 must have the same frequency."
}
],
"diagram": {
"columns": [
"num",
"name",
[
"isPower",
"hardwareADC",
"i2c"
],
[
"spi",
"swd"
],
[],
[
"hardwareTimer"
],
[
"serial"
],
"hardwarePin"
]
}
},
{
"id": 0,
"name": "M.2 SoM breakout board Feather, B-SoM",
Expand Down
52 changes: 34 additions & 18 deletions src/content/reference/datasheets/m-series/m-hat-datasheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,24 +184,40 @@ The Raspberry Pi UART0 is connected to the Particle M.2 SoM `Serial1` UART, with

## Internal peripherals

| M.2 Pin | Name | Description | Schematic Net |
| ---: | :--- | :--- | :--- |
| 17 | D21 | USB PD chip reset | PD_RST |
| 19 | D20 | USB PD chip alert | RD_ALERT |
| 23 | A0 | | SEL |
| 20 | SCL | I2C SCL | M2_SCL |
| 22 | SDA | I2C SDA | M2_SDA |
| 33 | A1 | Grove A1 | M2_A2/MISO |
| 35 | A2 | Grove A2 | M2_A2/SCK |
| 37 | A3 | | EN1_CTR |
| 41 | A4 | | EN2_CTR |
| 47 | A7 | | M2_A7/PMIC_INT |
| 48 | CS | | WAKE_RPI_CTR |
| 59 | D26 | | PD_ATTACH |
| 62 | D22 | | 3V3_DETECTION |
| 66 | D5 | | TEMP_ALERT |
| 68 | D5 | | RTC_INT |
| 72 | D7 | 3V3_AUX power control | A7/AUX_PWR_EN |

| M.2 Pin | Name | Schematic Net | MCU direction | Connected To | Description |
| ---: | :--- | :--- | :--- | :--- | :--- |
| 17 | D21 | PD_RST | Out | STUSB4500 | USB PD controller reset |
| 19 | D20 | RD_ALERT | In | STUSB4500 | USB PD controller alert interrupt |
| 23 | A0 | SEL | Out | FSA2567 | HIGH to disconnect UART |
| 20 | SCL | M2_SCL | I/O | Multiple | I2C SCL |
| 22 | SDA | M2_SDA | I/O | Multiple | I2C SDA |
| 33 | A1 | M2_A2/MISO | I/O, ADC | Grove | Grove A2 (inner) |
| 35 | A2 | M2_A2/SCK | I/O, ADC | Grove | Grove A1 (outer) |
| 37 | A3 | EN1_CTR | Out | LiPo 5V | HIGH turns off LiPo to 5V boost converter |
| 41 | A4 | EN2_CTR | Out | DCIN 5V | HIGH turns off MP28167 5V_DCIN buck-boost converter |
| 47 | A7 | M2_A7/PMIC_INT | In | PM-BAT | PMIC and fuel gauge interrupt from power module |
| 48 | CS | WAKE_RPI_CTR | Out | HAT | Pi power control via GPIO4 |
| 59 | D26 | PD_ATTACH | In | STUSB4500 | USB PD controller attachment interrupt |
| 62 | D22 | 3V3_DETECTION | In | HAT Conn | HIGH when Pi is supplying 3V3 |
| 66 | D5 | TEMP_ALERT | In | TMP112A | Temperature alert output |
| 68 | D5 | RTC_INT | In | AB1805 | RTC/Watchog FOUT/IRQ output |
| 72 | D7 | A7/AUX_PWR_EN | Out | PM-BAT | 3V3_AUX power control |


#### PD_RST

This is the PD_RST line to reset the STUSB4500 USB PD controller. You normally will not need to use this.

There is a 10K hardware pull-down resistor on this pin. If you set the pin to OUTPUT and HIGH, it will reset the chip.

#### PD_ALERT

This is the PD_ALERT output from the STUSB4500 USB PD controller.

#### PD_ATTACH

This is the PD_ATTACH output from the STUSB4500 USB PD controller.

#### EN1_CTR

Expand Down
16 changes: 8 additions & 8 deletions src/pinInfo/platforms/m-hat-ioex.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_A5",
"somPin": "RESERVED",
"tone": false,
"net": "M2_A5"
"tone": false
},
{
"num": 4,
Expand All @@ -50,9 +50,9 @@
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_D23",
"somPin": "GPIO1",
"tone": false,
"net": "M2_D23"
"tone": false
},
{
"num": 5,
Expand All @@ -70,9 +70,9 @@
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_A6",
"somPin": "RESERVED",
"tone": "A0, A1, A6, and A7 must have the same frequency.",
"net": "M2_A6"
"tone": "A0, A1, A6, and A7 must have the same frequency."
},
{
"num": 6,
Expand Down Expand Up @@ -117,9 +117,9 @@
"internalPull": "13K",
"is5VTolerant": false,
"isIO": true,
"net": "M2_D6",
"somPin": "PWM2",
"tone": "D4, D5, and D6 must have the same frequency.",
"net": "M2_D6"
"tone": "D4, D5, and D6 must have the same frequency."
}
],
"diagram": {
Expand Down