Commit a23c4134 authored by Jonas Gorski's avatar Jonas Gorski Committed by Paul Burton

MIPS: BMIPS: add clock controller nodes

Now that we have a driver for the clock controller, add nodes to allow
devices to make use of it.
Signed-off-by: default avatarJonas Gorski <jonas.gorski@gmail.com>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: default avatarPaul Burton <paul.burton@mips.com>
Cc: linux-clk@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-mips@vger.kernel.org
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: bcm-kernel-feedback-list@broadcom.com
Cc: Kevin Cernekee <cernekee@gmail.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
parent 5dad549d
...@@ -51,16 +51,22 @@ ubus { ...@@ -51,16 +51,22 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
periph_cntl: syscon@fff8c000 { clkctl: clock-controller@fff8c004 {
compatible = "brcm,bcm3368-clocks";
reg = <0xfff8c004 0x4>;
#clock-cells = <1>;
};
periph_cntl: syscon@fff8c008 {
compatible = "syscon"; compatible = "syscon";
reg = <0xfff8c000 0xc>; reg = <0xfff8c000 0x4>;
native-endian; native-endian;
}; };
reboot: syscon-reboot@fff8c008 { reboot: syscon-reboot@fff8c008 {
compatible = "syscon-reboot"; compatible = "syscon-reboot";
regmap = <&periph_cntl>; regmap = <&periph_cntl>;
offset = <0x8>; offset = <0x0>;
mask = <0x1>; mask = <0x1>;
}; };
......
...@@ -51,16 +51,22 @@ ubus { ...@@ -51,16 +51,22 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
periph_cntl: syscon@10000000 { clkctl: clock-controller@10000004 {
compatible = "brcm,bcm63268-clocks";
reg = <0x10000004 0x4>;
#clock-cells = <1>;
};
periph_cntl: syscon@10000008 {
compatible = "syscon"; compatible = "syscon";
reg = <0x10000000 0x14>; reg = <0x10000000 0xc>;
native-endian; native-endian;
}; };
reboot: syscon-reboot@10000008 { reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot"; compatible = "syscon-reboot";
regmap = <&periph_cntl>; regmap = <&periph_cntl>;
offset = <0x8>; offset = <0x0>;
mask = <0x1>; mask = <0x1>;
}; };
......
...@@ -51,6 +51,12 @@ ubus { ...@@ -51,6 +51,12 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
clkctl: clock-controller@10000004 {
compatible = "brcm,bcm6328-clocks";
reg = <0x10000004 0x4>;
#clock-cells = <1>;
};
periph_intc: interrupt-controller@10000020 { periph_intc: interrupt-controller@10000020 {
compatible = "brcm,bcm6345-l1-intc"; compatible = "brcm,bcm6345-l1-intc";
reg = <0x10000020 0x10>, reg = <0x10000020 0x10>,
......
...@@ -51,16 +51,22 @@ ubus { ...@@ -51,16 +51,22 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
periph_cntl: syscon@fffe0000 { clkctl: clock-controller@fffe0004 {
compatible = "brcm,bcm6358-clocks";
reg = <0xfffe0004 0x4>;
#clock-cells = <1>;
};
periph_cntl: syscon@fffe0008 {
compatible = "syscon"; compatible = "syscon";
reg = <0xfffe0000 0xc>; reg = <0xfffe0000 0x4>;
native-endian; native-endian;
}; };
reboot: syscon-reboot@fffe0008 { reboot: syscon-reboot@fffe0008 {
compatible = "syscon-reboot"; compatible = "syscon-reboot";
regmap = <&periph_cntl>; regmap = <&periph_cntl>;
offset = <0x8>; offset = <0x0>;
mask = <0x1>; mask = <0x1>;
}; };
......
...@@ -51,16 +51,22 @@ ubus { ...@@ -51,16 +51,22 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
periph_cntl: syscon@10000000 { clkctl: clock-controller@10000004 {
compatible = "brcm,bcm6362-clocks";
reg = <0x10000004 0x4>;
#clock-cells = <1>;
};
periph_cntl: syscon@10000008 {
compatible = "syscon"; compatible = "syscon";
reg = <0x10000000 0x14>; reg = <0x10000000 0xc>;
native-endian; native-endian;
}; };
reboot: syscon-reboot@10000008 { reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot"; compatible = "syscon-reboot";
regmap = <&periph_cntl>; regmap = <&periph_cntl>;
offset = <0x8>; offset = <0x0>;
mask = <0x1>; mask = <0x1>;
}; };
......
...@@ -51,16 +51,22 @@ ubus { ...@@ -51,16 +51,22 @@ ubus {
compatible = "simple-bus"; compatible = "simple-bus";
ranges; ranges;
periph_cntl: syscon@10000000 { clkctl: clock-controller@10000004 {
compatible = "brcm,bcm6368-clocks";
reg = <0x10000004 0x4>;
#clock-cells = <1>;
};
periph_cntl: syscon@100000008 {
compatible = "syscon"; compatible = "syscon";
reg = <0x10000000 0x14>; reg = <0x10000000 0xc>;
native-endian; native-endian;
}; };
reboot: syscon-reboot@10000008 { reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot"; compatible = "syscon-reboot";
regmap = <&periph_cntl>; regmap = <&periph_cntl>;
offset = <0x8>; offset = <0x0>;
mask = <0x1>; mask = <0x1>;
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment