I want to use GPIO1_8 as CAN1_TX and GPIO1_9 as CAN1_RX.
I want to enable it via dts/dtbo but for that i need the device tree offset and i am not able to find that.
I also tried editing the am335x-bone-common.dtsi and compiling it and using its dtb file but it did not work (attached the screen shot of the dtsi file addition i did for CAN).
I added this:
dcan1_pins: pinmux_dcan1_pins {
pinctrl-single,pins = <
AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE2) /* GPIO1_8 as CAN1 TX */
AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2) /* GPIO1_9 as CAN1 RX */
>;
};
&dcan1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&dcan1_pins>;
};
Can anyone please help me in doing that?
Thanks in advance!