Skip to content

Instantly share code, notes, and snippets.

@pdp7
Created October 24, 2019 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pdp7/5a65f1fdf03ce4e6d4c366ac1b69838c to your computer and use it in GitHub Desktop.
Save pdp7/5a65f1fdf03ce4e6d4c366ac1b69838c to your computer and use it in GitHub Desktop.
PocketBeagle PWM
        "name": "EHRPWM1A",
        "gpio": 50,
        "mux": "gpmc_a2",
        "eeprom": 34,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ehrpwm1",
            "sysfs": 3,
            "index": 0,
            "muxmode": 6,
            "path": "ehrpwm.1:0",
            "name": "EHRPWM1A",
            "chip": "48302000",
            "addr": "48302200"
        },
        "key": [
            "P9_14",
            "P2_1"
        ],
        "universalName": [
            "ocp:P9_14_pinmux",
            "ocp:P2_01_pinmux",
            "ocp:PWM_pinmux"
        ],
        "name": "UART2_TXD",
        "gpio": 3,
        "mux": "spi0_d0",
        "eeprom": 1,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ehrpwm0",
            "sysfs": 1,
            "index": 1,
            "muxmode": 3,
            "path": "ehrpwm.0:1",
            "name": "EHRPWM0B",
            "chip": "48300000",
            "addr": "48300200"
        },
        "key": [
            "P9_21",
            "GPS_4",
            "P1_10"
        ],
        "name": "UART2_RXD",
        "gpio": 2,
        "mux": "spi0_sclk",
        "eeprom": 0,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ehrpwm0",
            "sysfs": 0,
            "index": 0,
            "muxmode": 3,
            "path": "ehrpwm.0:0",
            "name": "EHRPWM0A",
            "chip": "48300000",
            "addr": "48300200"
        },
        "key": [
            "P9_22",
            "GPS_3",
            "P1_8"
        ],
        "name": "SPI1_CS0",
        "gpio": 113,
        "mux": "mcasp0_ahclkr",
        "eeprom": 63,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ecap2",
            "sysfs": 7,
            "index": 0,
            "muxmode": 4,
            "path": "ecap.2",
            "name": "ECAPPWM2",
            "universalMode": "pwm2",
            "chip": "48304000",
            "addr": "48304100"
        },
        "key": [
            "P9_28",
            "GP0_6",
            "P2_30",
            "PRU0_3"
        ],
        "name": "SPI1_D0",
        "gpio": 111,
        "mux": "mcasp0_fsx",
        "eeprom": 61,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ehrpwm0",
            "sysfs": 1,
            "index": 1,
            "muxmode": 1,
            "path": "ehrpwm.0:1",
            "name": "EHRPWM0B",
            "chip": "48300000",
            "addr": "48300200"
        },
        "key": [
            "P9_29",
            "S1_1_4",
            "S1_2_4",
            "P1_33",
            "PRU0_1"
        ],
        "name": "SPI1_SCLK",
        "gpio": 110,
        "mux": "mcasp0_aclkx",
        "eeprom": 65,
        // From am335x technical manual, p.183
        // http://www.ti.com/lit/ug/spruh73n/spruh73n.pdf
        "pwm": {
            "module": "ehrpwm0",
            "sysfs": 0,
            "index": 0,
            "muxmode": 1,
            "path": "ehrpwm.0:0",
            "name": "EHRPWM0A",
            "chip": "48300000",
            "addr": "48300200"
        },
        "key": [
            "P9_31",
            "S1_1_5",
            "S1_2_5",
            "P1_36"
        ],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment