diff mbox series

[v2,03/27] powerpc: create dts component of i2c to build up an SoC

Message ID 20200417102728.31188-3-biwen.li@oss.nxp.com
State Superseded
Headers show
Series [v2,01/27] rtc: ds1337: Add driver model support | expand

Commit Message

Biwen Li (OSS) April 17, 2020, 10:27 a.m. UTC
From: Biwen Li <biwen.li at nxp.com>

Provide a common i2c components that we can utilize to
build up the various device tree.

Signed-off-by: Biwen Li <biwen.li at nxp.com>
---
 arch/powerpc/dts/pq3-i2c-0.dtsi   | 15 +++++++++++++++
 arch/powerpc/dts/pq3-i2c-1.dtsi   | 15 +++++++++++++++
 arch/powerpc/dts/qoriq-i2c-0.dtsi | 26 ++++++++++++++++++++++++++
 arch/powerpc/dts/qoriq-i2c-1.dtsi | 26 ++++++++++++++++++++++++++
 4 files changed, 82 insertions(+)
 create mode 100644 arch/powerpc/dts/pq3-i2c-0.dtsi
 create mode 100644 arch/powerpc/dts/pq3-i2c-1.dtsi
 create mode 100644 arch/powerpc/dts/qoriq-i2c-0.dtsi
 create mode 100644 arch/powerpc/dts/qoriq-i2c-1.dtsi

Comments

Priyanka Jain (OSS) April 27, 2020, 7:48 a.m. UTC | #1
>-----Original Message-----
>From: U-Boot <u-boot-bounces at lists.denx.de> On Behalf Of Biwen Li
>Sent: Friday, April 17, 2020 3:57 PM
>To: Jagdish Gediya <jagdish.gediya at nxp.com>; Priyanka Jain
><priyanka.jain at nxp.com>; hs at denx.de; jagan at amarulasolutions.com;
>aford173 at gmail.com; Alison Wang <alison.wang at nxp.com>;
>jh80.chung at samsung.com; Pramod Kumar <pramod.kumar_1 at nxp.com>;
>Rajesh Bhagat <rajesh.bhagat at nxp.com>; Ruchika Gupta
><ruchika.gupta at nxp.com>; olteanv at gmail.com
>Cc: Xiaobo Xie <xiaobo.xie at nxp.com>; Jiafei Pan <jiafei.pan at nxp.com>; u-
>boot at lists.denx.de; Z.q. Hou <zhiqiang.hou at nxp.com>; Biwen Li
><biwen.li at nxp.com>
>Subject: [v2 03/27] powerpc: create dts component of i2c to build up an SoC
>
>From: Biwen Li <biwen.li at nxp.com>
>
>Provide a common i2c components that we can utilize to build up the various
>device tree.
>
>Signed-off-by: Biwen Li <biwen.li at nxp.com>
>---
> arch/powerpc/dts/pq3-i2c-0.dtsi   | 15 +++++++++++++++
> arch/powerpc/dts/pq3-i2c-1.dtsi   | 15 +++++++++++++++
> arch/powerpc/dts/qoriq-i2c-0.dtsi | 26 ++++++++++++++++++++++++++
>arch/powerpc/dts/qoriq-i2c-1.dtsi | 26 ++++++++++++++++++++++++++
> 4 files changed, 82 insertions(+)
> create mode 100644 arch/powerpc/dts/pq3-i2c-0.dtsi  create mode 100644
>arch/powerpc/dts/pq3-i2c-1.dtsi  create mode 100644
>arch/powerpc/dts/qoriq-i2c-0.dtsi  create mode 100644
>arch/powerpc/dts/qoriq-i2c-1.dtsi
>
>diff --git a/arch/powerpc/dts/pq3-i2c-0.dtsi b/arch/powerpc/dts/pq3-i2c-
>0.dtsi new file mode 100644 index 0000000000..86a91e6336
>--- /dev/null
>+++ b/arch/powerpc/dts/pq3-i2c-0.dtsi
>@@ -0,0 +1,15 @@
>+// SPDX-License-Identifier: GPL-2.0+ OR X11
>+/*
>+ * PQ3 I2C Device Tree stub
>+ *
>+ * Copyright 2020 NXP
>+ */
>+i2c at 3000 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <0>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x3000 0x100>;
>+	interrupts = <43 2 0 0>;
>+};
>diff --git a/arch/powerpc/dts/pq3-i2c-1.dtsi b/arch/powerpc/dts/pq3-i2c-
>1.dtsi new file mode 100644 index 0000000000..5d79b1fb4c
>--- /dev/null
>+++ b/arch/powerpc/dts/pq3-i2c-1.dtsi
>@@ -0,0 +1,15 @@
>+// SPDX-License-Identifier: GPL-2.0+ OR X11
>+/*
>+ * PQ3 I2C Device Tree stub
>+ *
>+ * Copyright 2020 NXP
>+ */
>+i2c at 3100 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <1>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x3100 0x100>;
>+	interrupts = <43 2 0 0>;
>+};
>diff --git a/arch/powerpc/dts/qoriq-i2c-0.dtsi b/arch/powerpc/dts/qoriq-i2c-
>0.dtsi
>new file mode 100644
>index 0000000000..f9f979e041
>--- /dev/null
>+++ b/arch/powerpc/dts/qoriq-i2c-0.dtsi
>@@ -0,0 +1,26 @@
>+// SPDX-License-Identifier: GPL-2.0+ OR X11
>+/*
>+ * QorIQ I2C Device Tree stub
>+ *
>+ * Copyright 2020 NXP
>+ */
>+i2c0: i2c at 118000 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <0>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x118000 0x100>;
>+	interrupts = <38 2 0 0>;
>+};
>+
>+i2c1: i2c at 118100 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <1>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x118100 0x100>;
>+	interrupts = <38 2 0 0>;
>+};
>+
>diff --git a/arch/powerpc/dts/qoriq-i2c-1.dtsi b/arch/powerpc/dts/qoriq-i2c-
>1.dtsi
>new file mode 100644
>index 0000000000..e065ddd472
>--- /dev/null
>+++ b/arch/powerpc/dts/qoriq-i2c-1.dtsi
>@@ -0,0 +1,26 @@
>+// SPDX-License-Identifier: GPL-2.0+ OR X11
>+/*
>+ * QorIQ I2C Device Tree stub
>+ *
>+ * Copyright 2020 NXP
>+ */
>+i2c2: i2c at 119000 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <2>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x119000 0x100>;
>+	interrupts = <39 2 0 0>;
>+};
>+
>+i2c3: i2c at 119100 {
>+	#address-cells = <1>;
>+	#size-cells = <0>;
>+	cell-index = <3>;
>+	compatible = "fsl-i2c";
>+	u-boot,dm-pre-reloc;
>+	reg = <0x119100 0x100>;
>+	interrupts = <39 2 0 0>;
>+};
>+
>--
>2.17.1
Reviewed-by: Priyanka Jain <priyanka.jain at nxp.com>
diff mbox series

Patch

diff --git a/arch/powerpc/dts/pq3-i2c-0.dtsi b/arch/powerpc/dts/pq3-i2c-0.dtsi
new file mode 100644
index 0000000000..86a91e6336
--- /dev/null
+++ b/arch/powerpc/dts/pq3-i2c-0.dtsi
@@ -0,0 +1,15 @@ 
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 I2C Device Tree stub
+ *
+ * Copyright 2020 NXP
+ */
+i2c at 3000 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <0>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x3000 0x100>;
+	interrupts = <43 2 0 0>;
+};
diff --git a/arch/powerpc/dts/pq3-i2c-1.dtsi b/arch/powerpc/dts/pq3-i2c-1.dtsi
new file mode 100644
index 0000000000..5d79b1fb4c
--- /dev/null
+++ b/arch/powerpc/dts/pq3-i2c-1.dtsi
@@ -0,0 +1,15 @@ 
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * PQ3 I2C Device Tree stub
+ *
+ * Copyright 2020 NXP
+ */
+i2c at 3100 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <1>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x3100 0x100>;
+	interrupts = <43 2 0 0>;
+};
diff --git a/arch/powerpc/dts/qoriq-i2c-0.dtsi b/arch/powerpc/dts/qoriq-i2c-0.dtsi
new file mode 100644
index 0000000000..f9f979e041
--- /dev/null
+++ b/arch/powerpc/dts/qoriq-i2c-0.dtsi
@@ -0,0 +1,26 @@ 
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * QorIQ I2C Device Tree stub
+ *
+ * Copyright 2020 NXP
+ */
+i2c0: i2c at 118000 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <0>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x118000 0x100>;
+	interrupts = <38 2 0 0>;
+};
+
+i2c1: i2c at 118100 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <1>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x118100 0x100>;
+	interrupts = <38 2 0 0>;
+};
+
diff --git a/arch/powerpc/dts/qoriq-i2c-1.dtsi b/arch/powerpc/dts/qoriq-i2c-1.dtsi
new file mode 100644
index 0000000000..e065ddd472
--- /dev/null
+++ b/arch/powerpc/dts/qoriq-i2c-1.dtsi
@@ -0,0 +1,26 @@ 
+// SPDX-License-Identifier: GPL-2.0+ OR X11
+/*
+ * QorIQ I2C Device Tree stub
+ *
+ * Copyright 2020 NXP
+ */
+i2c2: i2c at 119000 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <2>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x119000 0x100>;
+	interrupts = <39 2 0 0>;
+};
+
+i2c3: i2c at 119100 {
+	#address-cells = <1>;
+	#size-cells = <0>;
+	cell-index = <3>;
+	compatible = "fsl-i2c";
+	u-boot,dm-pre-reloc;
+	reg = <0x119100 0x100>;
+	interrupts = <39 2 0 0>;
+};
+