Skip to content

Instantly share code, notes, and snippets.

@pdp7
Last active August 1, 2019 15:37
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/58a9f02bf8fb2a86fad7e0947cd0bdc7 to your computer and use it in GitHub Desktop.
Save pdp7/58a9f02bf8fb2a86fad7e0947cd0bdc7 to your computer and use it in GitHub Desktop.
PB CAN
pdp7@sp3:~/dev/beagle/bb.org-overlays$ diff src/arm/PB-CAN*dts
4c4
< * Virtual cape for CAN0 on connector pins for P1.28 and P1.26 on PocketBeagle
---
> * Virtual cape for CAN1 on connector pins PocketBeagle P2.09 and P2.11
20c20
< part-number = "PB-CAN0";
---
> part-number = "PB-CAN1";
26,27c26,27
< "P1.28", /* dcan0_rx */
< "P1.26", /* dcan0_tx */
---
> "P2.09", /* can1_rx */
> "P2.11", /* can1_tx */
29c29
< "dcan0";
---
> "dcan1";
40c40
< PB-CAN0-00A0 = __TIMESTAMP__;
---
> PB-CAN1-00A0 = __TIMESTAMP__;
52,53c52,53
< P1_28_pinmux { status = "disabled"; }; /* P1_28: i2c2_scl.d_can0_rx */
< P1_26_pinmux { status = "disabled"; }; /* P1_26: i2c2_sda.d_can0_tx */
---
> P2_09_pinmux { status = "disabled"; }; /* P2_09: uart1_txd.d_can1_rx */
> P2_11_pinmux { status = "disabled"; }; /* P2_11: uart1_rxd.d_can1_tx */
60c60
< pb_dcan0_pins: pinmux_dcan0_pins {
---
> pb_dcan1_pins: pinmux_dcan1_pins {
63,64c63,64
< PB_P1_28 (PIN_INPUT_PULLUP | MUX_MODE2) /* P9_19: i2c2_scl.d_can0_rx */
< PB_P1_26 (PIN_OUTPUT_PULLUP | MUX_MODE2) /* P9_20: i2c2_sda.d_can0_tx */
---
> PB_P2_09 (PIN_INPUT_PULLUP | MUX_MODE2) /* P2_09: uart1_txd.d_can1_rx */
> PB_P2_11 (PIN_OUTPUT_PULLUP | MUX_MODE) /* P2_11: uart1_rxd.d_can1_tx */
71c71
< target = <&dcan0>;
---
> target = <&dcan1>;
75c75
< pinctrl-0 = <&pb_dcan0_pins>;
---
> pinctrl-0 = <&pb_dcan1_pins>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment