I see. Thanks Robert. The P9 is the BBB expansion header? If so, we are not using an expansion header and we don't have P9 correct? So, we need to pinmux the following:
CAN0 RX is D17 CAN0 TX is D18 CAN1 RX is E17 CAN1 TX is E18 per our pinmux file using the TI PinMux tool to avoid conflicts. On Mon, Oct 30, 2017 at 4:54 PM, Robert Nelson <[email protected]> wrote: > > > On Mon, Oct 30, 2017 at 4:37 PM, Tracy Smith <[email protected]> > wrote: > >> ok that works I'll use the dtb-rebuilder. >> >> I'm comparing against the BBB schematic for the pin numbers and need to >> understand how they are mapping to the pinmux pins in >> src/arm/am335x-bone-common.dtsi. >> >> For example, which BBB schematic pins are P9.19 and P2.20 on the BBB >> schematic since I need to check for any conflicts on our board for >> pinmuxing. I don't see a gpio9-19 or a gpio9-20 on the BBB rev-c schematic. >> I'm looking at document 450-5500-001 Rev C March 21, 2014. >> > > > P9.19/P9.20 is an i2c bus by default, so you'll have to carve it out like: > > https://github.com/RobertCNelson/linux-dev/blob/ > master/patches/soc/ti/uboot/0002-am335x-bone-common- > config-pin-carve-out-P9.19-P9.20.patch > > > - i2c2_pins: pinmux_i2c2_pins { > - pinctrl-single,pins = < > - AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3) /* > uart1_ctsn.i2c2_sda */ > - AM33XX_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE3) /* > uart1_rtsn.i2c2_scl */ > - >; > - }; > +// i2c2_pins: pinmux_i2c2_pins { > +// pinctrl-single,pins = < > +// AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3) /* > uart1_ctsn.i2c2_sda */ > +// AM33XX_IOPAD(0x97c, PIN_INPUT_PULLUP | MUX_MODE3) /* > uart1_rtsn.i2c2_scl */ > +// >; > +// }; > &i2c2 { > pinctrl-names = "default"; > - pinctrl-0 = <&i2c2_pins>; > + //pinctrl-0 = <&i2c2_pins>; > + pinctrl-0 = <>; > > Otherwise the can0/1 is just: > > &am33xx_pinmux { > dcan0_pins: pinmux_dcan0_pins { > pinctrl-single,pins = < > AM33XX_IOPAD(0x0978, PIN_INPUT_PULLUP | MUX_MODE2) /* P9_20: > uart1_ctsn.d_can0_tx */ > AM33XX_IOPAD(0x097c, PIN_INPUT_PULLUP | MUX_MODE2) /* P9_19: > uart1_rtsn.d_can0_rx */ > >; > }; > > dcan1_pins: pinmux_dcan1_pins { > pinctrl-single,pins = < > AM33XX_IOPAD(0x0980, PIN_INPUT_PULLUP | MUX_MODE2) /* P9_26: > uart1_rxd.dcan1_tx */ > AM33XX_IOPAD(0x0984, PIN_INPUT_PULLUP | MUX_MODE2) /* P9_24: > uart1_txd.dcan1_rx */ > >; > }; > }; > > &dcan0 { > pinctrl-names = "default"; > pinctrl-0 = <&dcan0_pins>; > status = "okay"; > }; > > &dcan1 { > pinctrl-names = "default"; > pinctrl-0 = <&dcan1_pins>; > status = "okay"; > }; > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- Confidentiality notice: This e-mail message, including any attachments, may contain legally privileged and/or confidential information. If you are not the intended recipient(s), please immediately notify the sender and delete this e-mail message. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAChUvXN%3DOhrJ-HaBd%3D9%3De6dNpuRyKc7%2BtngdqPCgHum-7s%3D1iw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
