On Mon, Oct 30, 2017 at 4:37 PM, Tracy Smith <tlsmith3...@gmail.com> 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/

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYjaE4qqzVs6%3DP2JQ%2B9UzVQ20j0AgM6V38HYb-hNP54aDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to