Skip to content

Commit 9332a1b

Browse files
committed
soc: xlnx: zynq7000: add I2C Controllers
Add device tree nodes for the Cadence I2C controllers. Signed-off-by: Simon Maurer <[email protected]>
1 parent ec3bcd3 commit 9332a1b

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

dts/arm/xilinx/zynq7000.dtsi

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@
4848
#interrupt-cells = <4>;
4949
};
5050

51+
i2c0: i2c@e0004000 {
52+
compatible = "cdns,i2c";
53+
reg = <0xe0004000 0x1000>;
54+
status = "disabled";
55+
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL
56+
IRQ_DEFAULT_PRIORITY>;
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
fifo-depth = <16>;
60+
};
61+
62+
i2c1: i2c@e0005000 {
63+
compatible = "cdns,i2c";
64+
reg = <0xe0005000 0x1000>;
65+
status = "disabled";
66+
interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL
67+
IRQ_DEFAULT_PRIORITY>;
68+
#address-cells = <1>;
69+
#size-cells = <0>;
70+
fifo-depth = <16>;
71+
};
72+
5173
gem0: ethernet@e000b000 {
5274
compatible = "xlnx,gem";
5375
status = "disabled";

soc/xlnx/zynq7000/Kconfig.defconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,11 @@ config FLASH_BASE_ADDRESS
2323
config SOC_RESET_HOOK
2424
default y
2525

26+
if I2C_CADENCE
27+
28+
config I2C_CADENCE_BROKEN_HOLD_BIT
29+
default y if $(dt_nodelabel_enabled,i2c0) || $(dt_nodelabel_enabled,i2c1)
30+
31+
endif # I2C_CADENCE
32+
2633
endif # SOC_FAMILY_XILINX_ZYNQ7000

0 commit comments

Comments
 (0)