]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
m68k: dts: add i2c nodes
authorAngelo Dureghello <angelo@kernel-space.org>
Tue, 4 Apr 2023 22:59:27 +0000 (00:59 +0200)
committerHeiko Schocher <hs@denx.de>
Tue, 11 Apr 2023 04:52:05 +0000 (06:52 +0200)
Add all the i2c nodes for each family, and add specific i2c
overwrites in the related board-specific dts.

Signed-off-by: Angelo Dureghello <angelo@kernel-space.org>
23 files changed:
arch/m68k/dts/M5208EVBE.dts
arch/m68k/dts/M5253DEMO.dts
arch/m68k/dts/M5275EVB.dts
arch/m68k/dts/M53017EVB.dts
arch/m68k/dts/M5329AFEE.dts
arch/m68k/dts/M5329BFEE.dts
arch/m68k/dts/M5373EVB.dts
arch/m68k/dts/astro_mcf5373l.dts
arch/m68k/dts/eb_cpu5282.dts
arch/m68k/dts/eb_cpu5282_internal.dts
arch/m68k/dts/mcf5208.dtsi
arch/m68k/dts/mcf523x.dtsi
arch/m68k/dts/mcf5249.dtsi
arch/m68k/dts/mcf5253.dtsi
arch/m68k/dts/mcf5271.dtsi
arch/m68k/dts/mcf5275.dtsi
arch/m68k/dts/mcf5282.dtsi
arch/m68k/dts/mcf5301x.dtsi
arch/m68k/dts/mcf5307.dtsi
arch/m68k/dts/mcf5329.dtsi
arch/m68k/dts/mcf537x.dtsi
arch/m68k/dts/mcf5441x.dtsi
arch/m68k/dts/stmark2.dts

index 78973fca57dc76ad0660076291512667f944a196..1c32718af4002c4f720149a4db32f8aee95150b4 100644 (file)
@@ -23,3 +23,9 @@
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 515484ae933720e2594f1545e50846e648b081db..a3f070661ea9e56f5cf1fbbfca865f1c967ab9a7 100644 (file)
@@ -20,3 +20,8 @@
        status = "okay";
 };
 
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 4737f927db8be9cac9ab67261d1935737913a674..d79f8a7885792e352034cce89695119ba1ea5430 100644 (file)
@@ -27,3 +27,9 @@
 &fec1 {
        status = "okay";
 };
+
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 31c50b65c22551105f31f7b03cee8a81a94cbd3c..90851dd0af43ddd09b48ce507aeaefff7b1df684 100644 (file)
@@ -27,3 +27,9 @@
 &fec1 {
        status = "okay";
 };
+
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index de4af4743d5e35f54d9a24bc8777117cf8b0df9b..c1cd2845a387072d2ef39649df04d1fb20505805 100644 (file)
@@ -23,3 +23,9 @@
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 2b2aae2cf980b3d3be8ce23210fdfb6970863beb..51ec4b5d1aa9d90c845357f2536ba9fe2b488d7a 100644 (file)
@@ -23,3 +23,9 @@
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 7df8206d6304cc15cf27bda07d824aec5efaeb43..27ce800caeb2860349fe364bc172b642dfc505de 100644 (file)
@@ -23,3 +23,7 @@
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       status = "okay";
+};
index d3caf12db1adf947509f8b6709faf0971f46906d..40f84dd64b622b7cfe53061817cac035df1d1d50 100644 (file)
@@ -20,3 +20,8 @@
        status = "okay";
 };
 
+&i2c0 {
+       clock-frequency = <80000>;
+       u-boot,i2c-slave-addr = <0x7f>;
+       status = "okay";
+};
index 925f9af3a84a152d8b8d2ddfb63e3cff47fc01fd..27f33b9f90021646b93e585c2fd6a006c4b6d5b1 100644 (file)
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       status = "okay";
+
+       rtc@68 {
+               compatible = "dallas,ds1338";
+               reg = <0x68>;
+       };
+};
index ae6a8157cf638915e875dc6834319d810a002f8b..53a94ea7f759aebd8895cdf9a86a2edfc4c7b077 100644 (file)
 &fec0 {
        status = "okay";
 };
+
+&i2c0 {
+       status = "okay";
+
+       rtc@68 {
+               compatible = "dallas,ds1338";
+               reg = <0x68>;
+       };
+};
index 4802dd3074ee7fc94730524eab1de1d71c82f12f..9392facfa88169ff8177f8e7c3341baed082a493 100644 (file)
                        timeout-loop = <50000>;
                        status = "disabled";
                };
+
+               i2c0: i2c@fc058000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <0>;
+                       reg = <0xfc058000 0x14>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
        };
 };
index 550e824cb1244cd33972f3cdf047a830ce90b16b..41c7b9b2d1b7624aba3c0fa4f95ea577955249a8 100644 (file)
                                timeout-loop = <50000>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@300 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x300 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 248b3dc68bf3679c370c737d4a6e227276a956e2..d45d5532cafa625c4cd600699d350f3e67e03642 100644 (file)
                                reg = <0x200 0x40>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@280 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x280 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
+               };
+
+               mbar2: mbar2@80000000 {
+                       compatible = "simple-bus";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x00000000 0x80000000 0x10000>;
+                       reg = <0x80000000 0x10000>;
+
+                       i2c1: i2c@440 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x440 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 3bde2d6202828bfd0249785db077a1a86c3bf8bb..b9816f4754beffdfd45d042882f453d1e9505429 100644 (file)
                                reg = <0xc00 0x40>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@280 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x280 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
+               };
+
+               mbar2: mbar2@80000000 {
+                       compatible = "simple-bus";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0x00000000 0x80000000 0x10000>;
+                       reg = <0x80000000 0x10000>;
+
+                       i2c1: i2c@440 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x440 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index b3484c2c84b1e9f228e5b52d197904d5a6e93eff..fc82bd3c24d0c31214a14400fb61f9d859b80938 100644 (file)
                                timeout-loop = <50000>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@300 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x300 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index 99dd7d3924cd148a3bc4dd7c2801e260047375cb..402517cdec15f67b89e1b89436ad767dd08cc2a9 100644 (file)
                                timeout-loop = <50000>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@300 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x300 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index d9916b1cd95fc8c01836dffb8b64734ede0e55bf..883c0d03247c46f3e7e9e816fc38c17ed201a249 100644 (file)
                                timeout-loop = <50000>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@300 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x300 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index f60898aa4a4d0fe19eecc8306aed749ddcaec35e..a13afad093ada164ed5554145762590bc29e17d7 100644 (file)
                        timeout-loop = <50000>;
                        status = "disabled";
                };
+
+               i2c0: i2c@0xfc058000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <0>;
+                       reg = <0xfc058000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
        };
 };
index e199cf999149ef63de921d0cbad8c107e9f53389..d6d386b22e13c7375ddc19a9ef3744a89f6df8a5 100644 (file)
                                reg = <0x200 0x40>;
                                status = "disabled";
                        };
+
+                       i2c0: i2c@280 {
+                               compatible = "fsl-i2c";
+                               #address-cells=<1>;
+                               #size-cells=<0>;
+                               cell-index = <0>;
+                               reg = <0x280 0x14>;
+                               clock-frequency = <100000>;
+                               status = "disabled";
+                       };
                };
        };
 };
index de348968b56f9f6452ec7d27b95c5c3320bd819d..7501cc4b018a5e79520c9d32c1280df44091e122 100644 (file)
                        timeout-loop = <50000>;
                        status = "disabled";
                };
+
+               i2c0: i2c@0xfc058000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <0>;
+                       reg = <0xfc058000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
        };
 };
index 2a2a32a59ba836cf9ec8ac70bc2afdf5f63520b9..338b8b4583cb0e1131370db7e2bbe022b3d997b7 100644 (file)
                        timeout-loop = <50000>;
                        status = "disabled";
                };
+
+               i2c0: i2c@0xfc058000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <0>;
+                       reg = <0xfc058000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
        };
 };
index 6769bdc270a524ebf70229138e718d67d01483cc..dcca36312f5cbe932338a0c38cdfb044d412b2c7 100644 (file)
                        timeout-loop = <50000>;
                        status = "disabled";
                };
+
+               i2c0: i2c@0xfc058000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <0>;
+                       reg = <0xfc058000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
+
+               i2c1: i2c@0xfc038000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <1>;
+                       reg = <0xfc038000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
+
+               i2c2: i2c@0xfc010000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <2>;
+                       reg = <0xfc010000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
+
+               i2c3: i2c@0xfc014000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <3>;
+                       reg = <0xfc014000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
+
+               i2c4: i2c@0xfc018000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <4>;
+                       reg = <0xfc018000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
+
+               i2c5: i2c@0xfc01c000 {
+                       compatible = "fsl-i2c";
+                       #address-cells=<1>;
+                       #size-cells=<0>;
+                       cell-index = <5>;
+                       reg = <0xfc01c000 0x100>;
+                       clock-frequency = <100000>;
+                       status = "disabled";
+               };
        };
 };
index ebe8580a0aa9db02686b39e8d20cd5a3fab57b69..3ba68b77d64f313d116a39b685e26dcb066507bc 100644 (file)
@@ -41,3 +41,7 @@
        status = "okay";
        mii-base = <0>;
 };
+
+&i2c0 {
+       status = "okay";
+};