| | 2431 | |
| | 2432 | [=#pin20] |
| | 2433 | = Pin 20 & 22 Details |
| | 2434 | |
| | 2435 | Pins 20 and 22 are used on some modems for selecting between USB and PCIe mode. |
| | 2436 | |
| | 2437 | On the GW16140 M.2 adapter, Pin 22 is not connected, and pin 20 is tied to ground. |
| | 2438 | |
| | 2439 | On the GW16FB0-C FSA (used on VeniceFLEX and Catalina), pins 20 and 22 are connected to gpios (M2_GPIO5 and M2_GPIO6 respectively), with more details here: [wiki:FSA#GW16FB0FSAM.2B-KeyAdapter] |
| | 2440 | |
| | 2441 | On the Venice GW74xx pins 20 and 22 are mapped to GPIO. |
| | 2442 | |
| | 2443 | If for some reason the software state of the GPIO is too late during boot (i.e. the modem uses them as power on strapping and you can't control the power-on) then there are resistor loading options on the board (contact support@gateworks.com) |
| | 2444 | |
| | 2445 | The gpio's can be seen in U-Boot with 'gpio status', are defaulted low and can be manipulated with 'gpio set' and 'gpio clear'. Here is an example showing all the m2 pins: |
| | 2446 | {{{ |
| | 2447 | u-boot=> gpio status |
| | 2448 | Bank GPIO1_: |
| | 2449 | GPIO1_9: input: 1 [x] dio0.gpio-hog |
| | 2450 | GPIO1_11: input: 1 [x] dio1.gpio-hog |
| | 2451 | |
| | 2452 | Bank GPIO2_: |
| | 2453 | GPIO2_6: input: 0 [x] m2_pin20.gpio-hog |
| | 2454 | GPIO2_11: input: 0 [x] m2_pin22.gpio-hog |
| | 2455 | GPIO2_12: output: 1 [x] tpm_rst#.gpio-hog |
| | 2456 | GPIO2_13: output: 1 [x] pcie1_wdis#.gpio-hog |
| | 2457 | GPIO2_14: output: 1 [x] pcie3_wdis#.gpio-hog |
| | 2458 | GPIO2_15: output: 1 [x] led-0.gpios |
| | 2459 | GPIO2_16: output: 0 [x] led-1.gpios |
| | 2460 | GPIO2_18: output: 1 [x] pcie2_wdis#.gpio-hog |
| | 2461 | |
| | 2462 | Bank GPIO3_: |
| | 2463 | GPIO3_6: output: 0 [x] m2_rst.gpio-hog |
| | 2464 | GPIO3_14: output: 1 [x] m2_wdis2#.gpio-hog |
| | 2465 | |
| | 2466 | Bank GPIO4_: |
| | 2467 | GPIO4_2: output: 1 [x] m2_off#.gpio-hog |
| | 2468 | GPIO4_18: output: 1 [x] m2_wdis1#.gpio-hog |
| | 2469 | GPIO4_29: output: 1 [x] ethernet@30be0000.phy-reset-gpios |
| | 2470 | GPIO4_30: output: 1 [x] ethernet-phy@0.reset-gpios |
| | 2471 | GPIO4_31: output: 0 [x] rs485_en.gpio-hog |
| | 2472 | |
| | 2473 | Bank GPIO5_: |
| | 2474 | GPIO5_0: output: 0 [x] rs485_hd.gpio-hog |
| | 2475 | GPIO5_1: output: 0 [x] rs485_term.gpio-hog |
| | 2476 | GPIO5_14: output: 0 [x] i2c@30a20000.scl-gpios |
| | 2477 | GPIO5_15: output: 0 [x] i2c@30a20000.sda-gpios |
| | 2478 | GPIO5_16: output: 0 [x] i2c@30a30000.scl-gpios |
| | 2479 | GPIO5_17: output: 0 [x] i2c@30a30000.sda-gpios |
| | 2480 | u-boot=> gpio set m2_pin20.gpio-hog |
| | 2481 | gpio: pin m2_pin20.gpio-hog (gpio 38) value is 1 |
| | 2482 | u-boot=> gpio set m2_pin22.gpio-hog |
| | 2483 | gpio: pin m2_pin22.gpio-hog (gpio 43) value is 1 |
| | 2484 | |
| | 2485 | }}} |
| | 2486 | |
| | 2487 | |
| | 2488 | |
| | 2489 | |
| | 2490 | |
| | 2491 | |