Skip to content

Commit a23c413

Browse files
KanjiMonsterpaulburton
authored andcommitted
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: Jonas Gorski <jonas.gorski@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Paul 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>
1 parent 5dad549 commit a23c413

6 files changed

Lines changed: 51 additions & 15 deletions

File tree

‎arch/mips/boot/dts/brcm/bcm3368.dtsi‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54-
periph_cntl: syscon@fff8c000 {
54+
clkctl: clock-controller@fff8c004 {
55+
compatible = "brcm,bcm3368-clocks";
56+
reg = <0xfff8c004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
60+
periph_cntl: syscon@fff8c008 {
5561
compatible = "syscon";
56-
reg = <0xfff8c000 0xc>;
62+
reg = <0xfff8c000 0x4>;
5763
native-endian;
5864
};
5965

6066
reboot: syscon-reboot@fff8c008 {
6167
compatible = "syscon-reboot";
6268
regmap = <&periph_cntl>;
63-
offset = <0x8>;
69+
offset = <0x0>;
6470
mask = <0x1>;
6571
};
6672

‎arch/mips/boot/dts/brcm/bcm63268.dtsi‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54-
periph_cntl: syscon@10000000 {
54+
clkctl: clock-controller@10000004 {
55+
compatible = "brcm,bcm63268-clocks";
56+
reg = <0x10000004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
60+
periph_cntl: syscon@10000008 {
5561
compatible = "syscon";
56-
reg = <0x10000000 0x14>;
62+
reg = <0x10000000 0xc>;
5763
native-endian;
5864
};
5965

6066
reboot: syscon-reboot@10000008 {
6167
compatible = "syscon-reboot";
6268
regmap = <&periph_cntl>;
63-
offset = <0x8>;
69+
offset = <0x0>;
6470
mask = <0x1>;
6571
};
6672

‎arch/mips/boot/dts/brcm/bcm6328.dtsi‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54+
clkctl: clock-controller@10000004 {
55+
compatible = "brcm,bcm6328-clocks";
56+
reg = <0x10000004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
5460
periph_intc: interrupt-controller@10000020 {
5561
compatible = "brcm,bcm6345-l1-intc";
5662
reg = <0x10000020 0x10>,

‎arch/mips/boot/dts/brcm/bcm6358.dtsi‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54-
periph_cntl: syscon@fffe0000 {
54+
clkctl: clock-controller@fffe0004 {
55+
compatible = "brcm,bcm6358-clocks";
56+
reg = <0xfffe0004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
60+
periph_cntl: syscon@fffe0008 {
5561
compatible = "syscon";
56-
reg = <0xfffe0000 0xc>;
62+
reg = <0xfffe0000 0x4>;
5763
native-endian;
5864
};
5965

6066
reboot: syscon-reboot@fffe0008 {
6167
compatible = "syscon-reboot";
6268
regmap = <&periph_cntl>;
63-
offset = <0x8>;
69+
offset = <0x0>;
6470
mask = <0x1>;
6571
};
6672

‎arch/mips/boot/dts/brcm/bcm6362.dtsi‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54-
periph_cntl: syscon@10000000 {
54+
clkctl: clock-controller@10000004 {
55+
compatible = "brcm,bcm6362-clocks";
56+
reg = <0x10000004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
60+
periph_cntl: syscon@10000008 {
5561
compatible = "syscon";
56-
reg = <0x10000000 0x14>;
62+
reg = <0x10000000 0xc>;
5763
native-endian;
5864
};
5965

6066
reboot: syscon-reboot@10000008 {
6167
compatible = "syscon-reboot";
6268
regmap = <&periph_cntl>;
63-
offset = <0x8>;
69+
offset = <0x0>;
6470
mask = <0x1>;
6571
};
6672

‎arch/mips/boot/dts/brcm/bcm6368.dtsi‎

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,22 @@
5151
compatible = "simple-bus";
5252
ranges;
5353

54-
periph_cntl: syscon@10000000 {
54+
clkctl: clock-controller@10000004 {
55+
compatible = "brcm,bcm6368-clocks";
56+
reg = <0x10000004 0x4>;
57+
#clock-cells = <1>;
58+
};
59+
60+
periph_cntl: syscon@100000008 {
5561
compatible = "syscon";
56-
reg = <0x10000000 0x14>;
62+
reg = <0x10000000 0xc>;
5763
native-endian;
5864
};
5965

6066
reboot: syscon-reboot@10000008 {
6167
compatible = "syscon-reboot";
6268
regmap = <&periph_cntl>;
63-
offset = <0x8>;
69+
offset = <0x0>;
6470
mask = <0x1>;
6571
};
6672

0 commit comments

Comments
 (0)