]> git.sur5r.net Git - u-boot/commitdiff
ARM: tegra: fix Tegra186 I2C clock name
authorStephen Warren <swarren@nvidia.com>
Thu, 18 Aug 2016 17:08:43 +0000 (11:08 -0600)
committerTom Warren <twarren@nvidia.com>
Thu, 25 Aug 2016 20:47:49 +0000 (13:47 -0700)
The Tegra I2C binding dictates that the clock name for the Tegra I2C clock
be "div-clk" not "i2c". Fix the Tegra186 DT and I2C driver to honor this.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/dts/tegra186.dtsi
drivers/i2c/tegra_i2c.c

index d9e7f0351f57c5512943e7bf150dbd20175d807a..54ef7e3e4adce3e415f4729983f46b0fc1e22ebc 100644 (file)
@@ -45,7 +45,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C1>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C1>;
                reset-names = "i2c";
                status = "disabled";
@@ -58,7 +58,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C3>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C3>;
                reset-names = "i2c";
                status = "disabled";
@@ -71,7 +71,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C4>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C4>;
                reset-names = "i2c";
                status = "disabled";
@@ -84,7 +84,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C6>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C6>;
                reset-names = "i2c";
                status = "disabled";
@@ -97,7 +97,7 @@
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C7>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C7>;
                reset-names = "i2c";
                status = "disabled";
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C9>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C9>;
                reset-names = "i2c";
                status = "disabled";
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C2>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C2>;
                reset-names = "i2c";
                status = "disabled";
                #address-cells = <1>;
                #size-cells = <0>;
                clocks = <&bpmp TEGRA186_CLK_I2C8>;
-               clock-names = "i2c";
+               clock-names = "div-clk";
                resets = <&bpmp TEGRA186_RESET_I2C8>;
                reset-names = "i2c";
                status = "disabled";
index 31ba263b72952177679db7650126616ac207ad2c..0dbcc5a1cfea9de12b394a541936d8ed73ba7116 100644 (file)
@@ -414,7 +414,7 @@ static int tegra_i2c_probe(struct udevice *dev)
                error("reset_get_by_name() failed: %d\n", ret);
                return ret;
        }
-       ret = clk_get_by_name(dev, "i2c", &i2c_bus->clk);
+       ret = clk_get_by_name(dev, "div-clk", &i2c_bus->clk);
        if (ret) {
                error("clk_get_by_name() failed: %d\n", ret);
                return ret;