diff --git a/src/arm/BONE-UART1.dts b/src/arm/BONE-UART1.dts new file mode 100644 index 00000000..daf284ca --- /dev/null +++ b/src/arm/BONE-UART1.dts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /dev/bone/uart/1 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-UART1 = __TIMESTAMP__; + }; +}; + +/* + * Update the default pinmux of the pins. + * See these files for the phandles (&P9_* & &P8_*) + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am335x-bone-common-univ.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am572x-bone-common-univ.dtsi + */ +&ocp { + P9_24_pinmux { pinctrl-0 = <&P9_24_uart_pin>; }; /* UART TX*/ + P9_26_pinmux { pinctrl-0 = <&P9_26_uart_pin>; }; /* UART RX*/ +}; + +/* + * See these files for the phandles (&bone_*) and other bone bus nodes + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbai-bone-buses.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbb-bone-buses.dtsi + */ +&bone_uart_1 { + status = "okay"; +}; \ No newline at end of file diff --git a/src/arm/BONE-UART2.dts b/src/arm/BONE-UART2.dts new file mode 100644 index 00000000..fe0fffeb --- /dev/null +++ b/src/arm/BONE-UART2.dts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /dev/bone/uart/2 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-UART2 = __TIMESTAMP__; + }; +}; + +/* + * Update the default pinmux of the pins. + * See these files for the phandles (&P9_* & &P8_*) + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am335x-bone-common-univ.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am572x-bone-common-univ.dtsi + */ +&ocp { + P9_21_pinmux { pinctrl-0 = <&P9_21_uart_pin>; }; /* UART TX*/ + P9_22_pinmux { pinctrl-0 = <&P9_22_uart_pin>; }; /* UART RX*/ +}; + +/* + * See these files for the phandles (&bone_*) and other bone bus nodes + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbai-bone-buses.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbb-bone-buses.dtsi + */ +&bone_uart_2 { + status = "okay"; +}; \ No newline at end of file diff --git a/src/arm/BONE-UART3.dts b/src/arm/BONE-UART3.dts new file mode 100644 index 00000000..0547249d --- /dev/null +++ b/src/arm/BONE-UART3.dts @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /dev/bone/uart/3 (only on BBB) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-UART3 = __TIMESTAMP__; + }; +}; + +/* + * Update the default pinmux of the pins. + * See these files for the phandles (&P9_* & &P8_*) + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am335x-bone-common-univ.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am572x-bone-common-univ.dtsi + */ +&ocp { + P9_42_pinmux { pinctrl-0 = <&P9_42_uart_pin>; }; /*UART TX*/ +}; + +/* + * See these files for the phandles (&bone_*) and other bone bus nodes + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbai-bone-buses.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbb-bone-buses.dtsi + */ +&bone_uart_3 { + status = "okay"; +}; \ No newline at end of file diff --git a/src/arm/BONE-UART4.dts b/src/arm/BONE-UART4.dts new file mode 100644 index 00000000..91f52d16 --- /dev/null +++ b/src/arm/BONE-UART4.dts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /dev/bone/uart/4 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-UART4 = __TIMESTAMP__; + }; +}; + +/* + * Update the default pinmux of the pins. + * See these files for the phandles (&P9_* & &P8_*) + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am335x-bone-common-univ.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am572x-bone-common-univ.dtsi + */ +&ocp { + P9_13_pinmux { pinctrl-0 = <&P9_13_uart_pin>; }; /* UART TX*/ + P9_11_pinmux { pinctrl-0 = <&P9_11_uart_pin>; }; /* UART RX*/ +}; + +/* + * See these files for the phandles (&bone_*) and other bone bus nodes + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbai-bone-buses.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbb-bone-buses.dtsi + */ +&bone_uart_4 { + status = "okay"; +}; \ No newline at end of file diff --git a/src/arm/BONE-UART5.dts b/src/arm/BONE-UART5.dts new file mode 100644 index 00000000..a9ce2fb7 --- /dev/null +++ b/src/arm/BONE-UART5.dts @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2020 Deepak Khatri + * + * Virtual cape for /dev/bone/uart/5 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ + +/dts-v1/; +/plugin/; + +/* +* Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/ +*/ +&{/chosen} { + overlays { + BONE-UART5 = __TIMESTAMP__; + }; +}; + +/* + * Update the default pinmux of the pins. + * See these files for the phandles (&P9_* & &P8_*) + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am335x-bone-common-univ.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/am572x-bone-common-univ.dtsi + */ +&ocp { + P8_37_pinmux { pinctrl-0 = <&P8_37_uart_pin>; }; /* UART TX*/ + P8_38_pinmux { pinctrl-0 = <&P8_38_uart_pin>; }; /* UART RX*/ +}; + +/* + * See these files for the phandles (&bone_*) and other bone bus nodes + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbai-bone-buses.dtsi + * https://github.com/lorforlinux/BeagleBoard-DeviceTrees/blob/compatibility/src/arm/bbb-bone-buses.dtsi + */ +&bone_uart_5 { + status = "okay"; +}; \ No newline at end of file