[PATCH 22/25] ARM: tegra: Move I2C clock frequency to bus nodes

Thierry Reding
2021-12-09T17:35:02Z

From: Thierry Reding <treding@nvidia.com>

The "clock-frequency" property for an I2C controller needs to be
specified at the bus level.

Signed-off-by: Thierry Reding <treding@nvidia.com>
---
arch/arm/boot/dts/tegra30-asus-nexus7-grouper.dtsi | 3 ++-
arch/arm/boot/dts/tegra30-asus-nexus7-tilapia.dtsi | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper.dtsi b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper.dtsi
index a044dbd200a9..d5f28e424244 100644
--- a/arch/arm/boot/dts/tegra30-asus-nexus7-grouper.dtsi
+++ b/arch/arm/boot/dts/tegra30-asus-nexus7-grouper.dtsi
@@ -134,10 +134,11 @@ gmi_cs6_n_pi3 {
};

i2c@7000c500 {
+ clock-frequency = <100000>;
+
nfc@28 {
compatible = "nxp,pn544-i2c";
reg = <0x28>;
- clock-frequency = <100000>;

interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(X, 0) IRQ_TYPE_EDGE_RISING>;
diff --git a/arch/arm/boot/dts/tegra30-asus-nexus7-tilapia.dtsi b/arch/arm/boot/dts/tegra30-asus-nexus7-tilapia.dtsi
index a681ad51fddd..713bb2c36fcc 100644
--- a/arch/arm/boot/dts/tegra30-asus-nexus7-tilapia.dtsi
+++ b/arch/arm/boot/dts/tegra30-asus-nexus7-tilapia.dtsi
@@ -197,6 +197,8 @@ gmi_cs6_n_pi3 {
};

i2c@7000c500 {
+ clock-frequency = <100000>;
+
proximity-sensor@28 {
compatible = "microchip,cap1106";
reg = <0x28>;
@@ -223,8 +225,6 @@ nfc@2a {
compatible = "nxp,pn544-i2c";
reg = <0x2a>;

- clock-frequency = <100000>;
-
interrupt-parent = <&gpio>;
interrupts = <TEGRA_GPIO(S, 7) IRQ_TYPE_EDGE_RISING>;

--
2.34.1