-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
drivers: i2c: Base OMAP I2C support got Ti-K3 devices
The OMAP I2C provides support for I2C serial interface on TI K3 series. It is compatible with Philips I2C physical layer. The commit includes: Zephyr i2c api implementation Signed-off-by: Dhruv Menon <[email protected]>
- Loading branch information
Showing
7 changed files
with
1,179 additions
and
0 deletions.
There are no files selected for viewing
84 changes: 84 additions & 0 deletions
84
boards/beagle/beaglebone_ai64/beaglebone_ai64_j721e_main_r5f0_0.dts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/* Copyright (C) 2023 BeagleBoard.org Foundation | ||
* Copyright (C) 2023 S Prashanth | ||
* Copyright (c) 2024 Texas Instruments Incorporated | ||
* Andrew Davis <[email protected]> | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <ti/j721e_main_r5.dtsi> | ||
#include <zephyr/dt-bindings/pinctrl/ti-k3-pinctrl.h> | ||
#include <freq.h> | ||
|
||
/ { | ||
model = "BeagleBone-AI64"; | ||
compatible = "beagle,beaglebone-ai64"; | ||
|
||
chosen { | ||
zephyr,sram = &ddr1; | ||
zephyr,console = &uart2; | ||
zephyr,shell-uart = &uart2; | ||
}; | ||
|
||
cpus { | ||
cpu@0 { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
ddr0: memory@a2000000 { | ||
compatible = "mmio-sram"; | ||
reg = <0xa2000000 DT_SIZE_M(1)>; | ||
}; | ||
|
||
rsc_table: memory@a2100000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0xa2100000 DT_SIZE_M(1)>; | ||
zephyr,memory-region = "RSC_TABLE"; | ||
}; | ||
|
||
ddr1: memory@a2200000 { | ||
compatible = "zephyr,memory-region", "mmio-sram"; | ||
reg = <0xa2200000 DT_SIZE_M(14)>; | ||
zephyr,memory-region = "DRAM"; | ||
}; | ||
}; | ||
|
||
&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>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
}; | ||
|
||
&systick_timer { | ||
status = "okay"; | ||
}; | ||
|
||
&pinctrl { | ||
uart2_tx_default: uart2_tx_default { | ||
/* 0x1c is address of padconfig register of p8.34 and 14 is mux mode */ | ||
pinmux = <K3_PINMUX(0x1c, PIN_OUTPUT, MUX_MODE_14)>; | ||
}; | ||
|
||
uart2_rx_default: uart2_rx_default { | ||
/* 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)>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copyright (C) 2024 BeagleBoard.org Foundation | ||
# Copyright (C) 2024 Dhruv Menon | ||
|
||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config I2C_OMAP | ||
bool "TI OMAP I2C Driver" | ||
default y | ||
select I2C_BITBANG | ||
help | ||
Enable the I2C driver for TI OMAP SoCs. | ||
|
||
menu "Custom I2C OMAP Logging" | ||
config OMAP_I2C_LOG_LEVEL | ||
int "OMAP I2C Log Level" | ||
default 4 # For DEBUG level | ||
range 0 4 | ||
help | ||
Set the log level for the OMAP I2C module: | ||
0: None | ||
1: Error | ||
2: Warning | ||
3: Info | ||
4: Debug | ||
endmenu |
Oops, something went wrong.