[RFC PATCH V2 08/12] arm64: tegra: I2C interface timings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Set I2C interface timing registers through config settings for
Tegra234 chip and P3701 board.

Signed-off-by: Krishna Yarlagadda <kyarlagadda@xxxxxxxxxx>
---
 MAINTAINERS                                   |   1 +
 arch/arm64/boot/dts/nvidia/tegra234-cfg.dtsi  | 465 ++++++++++++++++++
 .../dts/nvidia/tegra234-p3701-0000-cfg.dtsi   | 107 ++++
 .../boot/dts/nvidia/tegra234-p3701-0000.dtsi  |   1 +
 4 files changed, 574 insertions(+)
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-cfg.dtsi
 create mode 100644 arch/arm64/boot/dts/nvidia/tegra234-p3701-0000-cfg.dtsi

diff --git a/MAINTAINERS b/MAINTAINERS
index 23e79a878f2a..99495e159e70 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -22260,6 +22260,7 @@ M:	Thierry Reding <thierry.reding@xxxxxxxxx>
 R:	Laxman Dewangan <ldewangan@xxxxxxxxxx>
 R:	Krishna Yarlagadda <kyarlagadda@xxxxxxxxxx>
 S:	Supported
+F:	arch/arm64/boot/dts/nvidia/tegra234*cfg.dtsi
 F:	Documentation/devicetree/bindings/misc/nvidia,tegra-config-settings.yaml
 F:	Documentation/misc-devices/tegra-cfg.rst
 F:	drivers/soc/tegra/tegra-cfg.c
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-cfg.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-cfg.dtsi
new file mode 100644
index 000000000000..7e5b9c10c617
--- /dev/null
+++ b/arch/arm64/boot/dts/nvidia/tegra234-cfg.dtsi
@@ -0,0 +1,465 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+/ {
+	configsettings {
+		configi2c1: config-i2c3160000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c2: config-i2c3180000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c3: config-i2c3190000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c4: config-i2c31b0000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c5: config-i2c31c0000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c6: config-i2c31e0000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c7: config-i2cc240000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+		configi2c8: config-i2cc250000 {
+
+			i2c-common-cfg {
+				nvidia,i2c-hs-sclk-high-period = <0x03>;
+				nvidia,i2c-hs-sclk-low-period = <0x08>;
+			};
+
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+
+			i2c-high-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-clk-divisor-hs-mode = <0x02>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+				nvidia,i2c-hs-stop-setup-time = <0x09>;
+				nvidia,i2c-hs-start-hold-time = <0x09>;
+				nvidia,i2c-hs-start-setup-time = <0x09>;
+			};
+
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+
+		};
+
+	};
+
+	bus@0 {
+		i2c@3160000 {
+			config-settings = <&configi2c1>;
+		};
+
+		i2c@3180000 {
+			config-settings = <&configi2c2>;
+		};
+
+		i2c@3190000 {
+			config-settings = <&configi2c3>;
+		};
+
+		i2c@31b0000 {
+			config-settings = <&configi2c4>;
+		};
+
+		i2c@31c0000 {
+			config-settings = <&configi2c5>;
+		};
+
+		i2c@31e0000 {
+			config-settings = <&configi2c6>;
+		};
+
+		i2c@c240000 {
+			config-settings = <&configi2c7>;
+		};
+
+		i2c@c250000 {
+			config-settings = <&configi2c8>;
+		};
+
+	};
+};
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000-cfg.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000-cfg.dtsi
new file mode 100644
index 000000000000..72ce8ee5a57f
--- /dev/null
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000-cfg.dtsi
@@ -0,0 +1,107 @@
+// SPDX-License-Identifier: GPL-2.0-only
+
+#include "tegra234-cfg.dtsi"
+
+/ {
+	config-i2c3160000 {
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+
+	config-i2c3180000 {
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+			i2c-standard-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x4f>;
+				nvidia,i2c-sclk-high-period = <0x07>;
+				nvidia,i2c-sclk-low-period = <0x08>;
+				nvidia,i2c-bus-free-time = <0x08>;
+				nvidia,i2c-stop-setup-time = <0x08>;
+				nvidia,i2c-start-hold-time = <0x08>;
+				nvidia,i2c-start-setup-time = <0x08>;
+			};
+	};
+
+	config-i2c3190000 {
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+
+	config-i2c31c0000 {
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+
+	config-i2c31e0000 {
+			i2c-fast-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x3c>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+
+	config-i2cc240000 {
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+
+	config-i2cc250000 {
+			i2c-fastplus-cfg {
+				nvidia,i2c-clk-divisor-fs-mode = <0x16>;
+				nvidia,i2c-sclk-high-period = <0x02>;
+				nvidia,i2c-sclk-low-period = <0x02>;
+				nvidia,i2c-bus-free-time = <0x02>;
+				nvidia,i2c-stop-setup-time = <0x02>;
+				nvidia,i2c-start-hold-time = <0x02>;
+				nvidia,i2c-start-setup-time = <0x02>;
+			};
+	};
+};
diff --git a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
index cb792041fc62..71506c51a5ea 100644
--- a/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra234-p3701-0000.dtsi
@@ -2,6 +2,7 @@
 
 #include "tegra234.dtsi"
 #include "tegra234-p3701.dtsi"
+#include "tegra234-p3701-0000-cfg.dtsi"
 
 / {
 	model = "NVIDIA Jetson AGX Orin";
-- 
2.43.2





[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux