Skip to content

Commit

Permalink
boards: beagle: Enable I2C6 on BeagleBone AI64 board
Browse files Browse the repository at this point in the history
Provide I2C Support to BeagleBone AI64 board.

Signed-off-by: Dhruv Menon <[email protected]>
  • Loading branch information
malto101 committed Dec 2, 2024
1 parent 149fece commit 8c14ae1
Show file tree
Hide file tree
Showing 6 changed files with 98 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,12 @@
/* 0x14 is address of padconfig register of p8.22 and 14 is mux mode */
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_14)>;
};
i2c6_scl_default: i2c6_scl_default {
/* 0x1e0 is the address of padconfig register of p9.17 and 2 is mux mode */
pinmux = <K3_PINMUX(0x1d0, PIN_INPUT_PULLUP, MUX_MODE_2)>;
};
i2c6_sda_default: i2c6_sda_default {
/* 0x1dc is the address of padconfig register of p9.18 and 2 is mux mode */
pinmux = <K3_PINMUX(0x1e4, PIN_INPUT_PULLUP, MUX_MODE_2)>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@
};
};

&i2c6 {
status = "okay";
pinctrl-0 = <&i2c6_scl_default &i2c6_sda_default>;
pinctrl-names = "default";
};

&uart2 {
status = "okay";
pinctrl-0 = <&uart2_tx_default &uart2_rx_default>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ toolchain:
- xtools
supported:
- uart
- i2c
vendor: beagle
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
# Enable Console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# Enable I2C
CONFIG_I2C=y
4 changes: 3 additions & 1 deletion boards/beagle/beaglebone_ai64/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,11 @@ The board configuration supports,
+-----------+------------+-----------------------+
| Interface | Controller | Driver/Component |
+===========+============+=======================+
| UART | on-chip | serial port-polling |
| UART | on-chip | serial port-polling, |
| | | serial port-interrupt |
+-----------+------------+-----------------------+
| I2C | on-chip | i2c-polling |
+-----------+------------+-----------------------+

Other hardwares features are currently not supported.

Expand Down
77 changes: 77 additions & 0 deletions dts/arm/ti/j721e_main_r5.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,83 @@
status = "okay";
};

i2c0: i2c0@2000000 {
compatible = "ti,omap-i2c";
reg = <0x02000000 0x1000>;
interrupts = <0 150 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c1: i2c1@2010000 {
compatible = "ti,omap-i2c";
reg = <0x02010000 0x1000>;
interrupts = <0 151 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c2: i2c2@2020000 {
compatible = "ti,omap-i2c";
reg = <0x02020000 0x1000>;
interrupts = <0 183 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c3: i2c3@2030000 {
compatible = "ti,omap-i2c";
reg = <0x02030000 0x1000>;
interrupts = <0 184 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c4: i2c4@2040000 {
compatible = "ti,omap-i2c";
reg = <0x02040000 0x1000>;
interrupts = <0 185 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c5: i2c5@2050000 {
compatible = "ti,omap-i2c";
reg = <0x02050000 0x1000>;
interrupts = <0 186 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

i2c6: i2c@2060000 {
compatible = "ti,omap-i2c";
reg = <0x02060000 0x1000>;
interrupts = <0 187 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
interrupt-parent = <&vim>;
clock-frequency = <100000>;
#address-cells = <1>;
#size-cells = <0>;
status = "disabled";
};

uart1: uart@2810000 {
compatible = "ns16550";
reg = <0x02810000 0x100>;
Expand Down

0 comments on commit 8c14ae1

Please sign in to comment.