]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: bcm2835: fix clock node aliasing in device tree
authorStephen Warren <swarren@wwwdotorg.org>
Tue, 15 Jan 2013 04:07:20 +0000 (21:07 -0700)
committerStephen Warren <swarren@wwwdotorg.org>
Tue, 15 Jan 2013 04:47:09 +0000 (21:47 -0700)
Both clock nodes in the current device tree are named "clock" and hence
end up being the same node. Rename the nodes to different names to avoid
this. In fact, fixed-clock uses the node name as the clock name, so name
the nodes after the clock they represent. Move the clocks into a
"clocks" sub-node to group them and avoid any possible naming conflicts
with other nodes also named after the device type.

Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
arch/arm/boot/dts/bcm2835.dtsi

index c69a591631b897083c30c5ee8c79aee6b7913487..4bf2a8774aa76ab53889c51208f5fa0cf6841c11 100644 (file)
@@ -89,15 +89,23 @@ sdhci: sdhci {
                };
        };
 
-       clk_i2c: clock {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <150000000>;
-       };
+       clocks {
+               compatible = "simple-bus";
+               #address-cells = <1>;
+               #size-cells = <0>;
 
-       clk_mmc: clock {
-               compatible = "fixed-clock";
-               #clock-cells = <0>;
-               clock-frequency = <100000000>;
+               clk_mmc: mmc {
+                       compatible = "fixed-clock";
+                       reg = <0>;
+                       #clock-cells = <0>;
+                       clock-frequency = <100000000>;
+               };
+
+               clk_i2c: i2c {
+                       compatible = "fixed-clock";
+                       reg = <1>;
+                       #clock-cells = <0>;
+                       clock-frequency = <150000000>;
+               };
        };
 };