public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andreas Dannenberg <dannenberg@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 04/18] arm: dts: k3-am65: Add I2C nodes
Date: Wed, 8 May 2019 16:37:37 -0500	[thread overview]
Message-ID: <20190508213751.23179-5-dannenberg@ti.com> (raw)
In-Reply-To: <20190508213751.23179-1-dannenberg@ti.com>

Add I2C DT nodes

Signed-off-by: Vignesh R <vigneshr@ti.com>
---
 arch/arm/dts/k3-am65-main.dtsi   | 44 ++++++++++++++++++++++++++++++++
 arch/arm/dts/k3-am65-mcu.dtsi    | 11 ++++++++
 arch/arm/dts/k3-am65-wakeup.dtsi | 11 ++++++++
 arch/arm/dts/k3-am65.dtsi        |  6 +++++
 4 files changed, 72 insertions(+)

diff --git a/arch/arm/dts/k3-am65-main.dtsi b/arch/arm/dts/k3-am65-main.dtsi
index f7c2a60d5c..9164348396 100644
--- a/arch/arm/dts/k3-am65-main.dtsi
+++ b/arch/arm/dts/k3-am65-main.dtsi
@@ -85,4 +85,48 @@
 		pinctrl-single,register-width = <32>;
 		pinctrl-single,function-mask = <0xffffffff>;
 	};
+
+	main_i2c0: i2c at 2000000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x0 0x2000000 0x0 0x100>;
+		interrupts = <GIC_SPI 200 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 110 1>;
+		power-domains = <&k3_pds 110>;
+	};
+
+	main_i2c1: i2c at 2010000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x0 0x2010000 0x0 0x100>;
+		interrupts = <GIC_SPI 201 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 111 1>;
+		power-domains = <&k3_pds 111>;
+	};
+
+	main_i2c2: i2c at 2020000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x0 0x2020000 0x0 0x100>;
+		interrupts = <GIC_SPI 202 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 112 1>;
+		power-domains = <&k3_pds 112>;
+	};
+
+	main_i2c3: i2c at 2030000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x0 0x2030000 0x0 0x100>;
+		interrupts = <GIC_SPI 203 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 113 1>;
+		power-domains = <&k3_pds 113>;
+	};
 };
diff --git a/arch/arm/dts/k3-am65-mcu.dtsi b/arch/arm/dts/k3-am65-mcu.dtsi
index 8c611d16df..1fd027748e 100644
--- a/arch/arm/dts/k3-am65-mcu.dtsi
+++ b/arch/arm/dts/k3-am65-mcu.dtsi
@@ -15,4 +15,15 @@
 			clock-frequency = <96000000>;
 			current-speed = <115200>;
 	};
+
+	mcu_i2c0: i2c at 40b00000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x0 0x40b00000 0x0 0x100>;
+		interrupts = <GIC_SPI 564 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 114 1>;
+		power-domains = <&k3_pds 114>;
+	};
 };
diff --git a/arch/arm/dts/k3-am65-wakeup.dtsi b/arch/arm/dts/k3-am65-wakeup.dtsi
index 1b67747dfe..1f85006f55 100644
--- a/arch/arm/dts/k3-am65-wakeup.dtsi
+++ b/arch/arm/dts/k3-am65-wakeup.dtsi
@@ -51,4 +51,15 @@
 		clock-frequency = <48000000>;
 		current-speed = <115200>;
 	};
+
+	wkup_i2c0: i2c at 42120000 {
+		compatible = "ti,am654-i2c", "ti,omap4-i2c";
+		reg = <0x42120000 0x100>;
+		interrupts = <GIC_SPI 696 IRQ_TYPE_LEVEL_HIGH>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		clock-names = "fck";
+		clocks = <&k3_clks 115 1>;
+		power-domains = <&k3_pds 115>;
+	};
 };
diff --git a/arch/arm/dts/k3-am65.dtsi b/arch/arm/dts/k3-am65.dtsi
index 3d4bf369d0..5bcf6e0693 100644
--- a/arch/arm/dts/k3-am65.dtsi
+++ b/arch/arm/dts/k3-am65.dtsi
@@ -22,6 +22,12 @@
 		serial2 = &main_uart0;
 		serial3 = &main_uart1;
 		serial4 = &main_uart2;
+		i2c0 = &wkup_i2c0;
+		i2c1 = &mcu_i2c0;
+		i2c2 = &main_i2c0;
+		i2c3 = &main_i2c1;
+		i2c4 = &main_i2c2;
+		i2c5 = &main_i2c3;
 	};
 
 	chosen { };
-- 
2.17.1

  parent reply	other threads:[~2019-05-08 21:37 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-08 21:37 [U-Boot] [PATCH 00/18] Add EEPROM-based board detect support for TI Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 01/18] i2c: omap24xx_i2c: Adapt driver to support K3 devices Andreas Dannenberg
2019-05-09 11:19   ` Heiko Schocher
2019-05-08 21:37 ` [U-Boot] [PATCH 02/18] arm: omap_i2c: Remove unwanted header file inclusion Andreas Dannenberg
2019-05-09 11:20   ` Heiko Schocher
2019-05-08 21:37 ` [U-Boot] [PATCH 03/18] arm: dts: k3-am65: Move pinctrl nodes out of U-Boot specific dtsi Andreas Dannenberg
2019-05-08 21:37 ` Andreas Dannenberg [this message]
2019-05-08 21:37 ` [U-Boot] [PATCH 05/18] arm: dts: k3-am654-base-board: Enable wkup_i2c0 across all boot stages Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 06/18] configs: am65x_evm_defconfig: Enable I2C support Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 07/18] configs: am65x_hs_evm_defconfig: " Andreas Dannenberg
2019-05-08 21:53   ` Andrew F. Davis
2019-05-08 21:37 ` [U-Boot] [PATCH 08/18] arm64: dts: k3-am654-base-board: Add I2C GPIO expander @ 0x38 Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 09/18] configs: am65x_evm_a53: Enable PCA953X-type GPIO driver Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 10/18] configs: am65x_hs_evm_a53: " Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 11/18] configs: am65x_evm_a53: Increase malloc pool before relocation Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 12/18] configs: am65x_hs_evm_a53: " Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 13/18] arm: K3: am654: Map common EEPROM data into SRAM scratch space Andreas Dannenberg
2019-05-09  3:52   ` Lokesh Vutla
2019-05-09 16:03     ` Andrew F. Davis
2019-05-09 16:27       ` Andreas Dannenberg
2019-05-15 20:11         ` Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 14/18] ti: common: am6: Add support for board description EEPROM Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 15/18] ti: common: am6: Add support for setting MAC addresses Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 16/18] board: ti: am654: Use EEPROM-based board detection Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 17/18] configs: am65x_evm: Add support for applying overlays Andreas Dannenberg
2019-05-08 21:37 ` [U-Boot] [PATCH 18/18] configs: am65x_hs_evm: " Andreas Dannenberg
2019-05-16 20:25 ` [U-Boot] [PATCH 00/18] Add EEPROM-based board detect support for TI Lokesh Vutla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190508213751.23179-5-dannenberg@ti.com \
    --to=dannenberg@ti.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox