Skip to content

Commit 96cadba

Browse files
malto101kartben
authored andcommitted
boards: beagle: Enable I2C6 on BeagleBone AI64 board
Provide I2C Support to BeagleBone AI64 board. Signed-off-by: Dhruv Menon <dhruvmenon1104@gmail.com>
1 parent 8302474 commit 96cadba

File tree

5 files changed

+95
-1
lines changed

5 files changed

+95
-1
lines changed

boards/beagle/beaglebone_ai64/beaglebone_ai64_j721e_main_r5f0_0-pinctrl.dtsi

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@
1818
/* 0x14 is address of padconfig register of p8.22 and 14 is mux mode */
1919
pinmux = <K3_PINMUX(0x14, PIN_INPUT, MUX_MODE_14)>;
2020
};
21+
i2c6_scl_default: i2c6_scl_default {
22+
/* 0x1e0 is the address of padconfig register of p9.17 and 2 is mux mode */
23+
pinmux = <K3_PINMUX(0x1d0, PIN_INPUT_PULLUP, MUX_MODE_2)>;
24+
};
25+
i2c6_sda_default: i2c6_sda_default {
26+
/* 0x1dc is the address of padconfig register of p9.18 and 2 is mux mode */
27+
pinmux = <K3_PINMUX(0x1e4, PIN_INPUT_PULLUP, MUX_MODE_2)>;
28+
};
2129
};

boards/beagle/beaglebone_ai64/beaglebone_ai64_j721e_main_r5f0_0.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@
4545
};
4646
};
4747

48+
&i2c6 {
49+
status = "okay";
50+
pinctrl-0 = <&i2c6_scl_default &i2c6_sda_default>;
51+
pinctrl-names = "default";
52+
};
53+
4854
&uart2 {
4955
status = "okay";
5056
pinctrl-0 = <&uart2_tx_default &uart2_rx_default>;

boards/beagle/beaglebone_ai64/beaglebone_ai64_j721e_main_r5f0_0.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ toolchain:
1414
- xtools
1515
supported:
1616
- uart
17+
- i2c
1718
vendor: beagle

boards/beagle/beaglebone_ai64/doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,11 @@ The board configuration supports,
4444
+-----------+------------+-----------------------+
4545
| Interface | Controller | Driver/Component |
4646
+===========+============+=======================+
47-
| UART | on-chip | serial port-polling |
47+
| UART | on-chip | serial port-polling, |
4848
| | | serial port-interrupt |
4949
+-----------+------------+-----------------------+
50+
| I2C | on-chip | i2c-polling |
51+
+-----------+------------+-----------------------+
5052

5153
Other hardwares features are currently not supported.
5254

dts/arm/ti/j721e_main_r5.dtsi

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,83 @@
5555
status = "okay";
5656
};
5757

58+
i2c0: i2c0@2000000 {
59+
compatible = "ti,omap-i2c";
60+
reg = <0x02000000 0x1000>;
61+
interrupts = <0 150 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
62+
interrupt-parent = <&vim>;
63+
clock-frequency = <100000>;
64+
#address-cells = <1>;
65+
#size-cells = <0>;
66+
status = "disabled";
67+
};
68+
69+
i2c1: i2c1@2010000 {
70+
compatible = "ti,omap-i2c";
71+
reg = <0x02010000 0x1000>;
72+
interrupts = <0 151 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
73+
interrupt-parent = <&vim>;
74+
clock-frequency = <100000>;
75+
#address-cells = <1>;
76+
#size-cells = <0>;
77+
status = "disabled";
78+
};
79+
80+
i2c2: i2c2@2020000 {
81+
compatible = "ti,omap-i2c";
82+
reg = <0x02020000 0x1000>;
83+
interrupts = <0 183 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
84+
interrupt-parent = <&vim>;
85+
clock-frequency = <100000>;
86+
#address-cells = <1>;
87+
#size-cells = <0>;
88+
status = "disabled";
89+
};
90+
91+
i2c3: i2c3@2030000 {
92+
compatible = "ti,omap-i2c";
93+
reg = <0x02030000 0x1000>;
94+
interrupts = <0 184 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
95+
interrupt-parent = <&vim>;
96+
clock-frequency = <100000>;
97+
#address-cells = <1>;
98+
#size-cells = <0>;
99+
status = "disabled";
100+
};
101+
102+
i2c4: i2c4@2040000 {
103+
compatible = "ti,omap-i2c";
104+
reg = <0x02040000 0x1000>;
105+
interrupts = <0 185 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
106+
interrupt-parent = <&vim>;
107+
clock-frequency = <100000>;
108+
#address-cells = <1>;
109+
#size-cells = <0>;
110+
status = "disabled";
111+
};
112+
113+
i2c5: i2c5@2050000 {
114+
compatible = "ti,omap-i2c";
115+
reg = <0x02050000 0x1000>;
116+
interrupts = <0 186 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
117+
interrupt-parent = <&vim>;
118+
clock-frequency = <100000>;
119+
#address-cells = <1>;
120+
#size-cells = <0>;
121+
status = "disabled";
122+
};
123+
124+
i2c6: i2c@2060000 {
125+
compatible = "ti,omap-i2c";
126+
reg = <0x02060000 0x1000>;
127+
interrupts = <0 187 IRQ_TYPE_LEVEL IRQ_DEFAULT_PRIORITY>;
128+
interrupt-parent = <&vim>;
129+
clock-frequency = <100000>;
130+
#address-cells = <1>;
131+
#size-cells = <0>;
132+
status = "disabled";
133+
};
134+
58135
uart1: uart@2810000 {
59136
compatible = "ns16550";
60137
reg = <0x02810000 0x100>;

0 commit comments

Comments
 (0)