Skip to content

Commit

Permalink
MIPS: BMIPS: add clock controller nodes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonas Gorski authored and Paul Burton committed Jul 21, 2019
1 parent 5dad549 commit a23c413
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 15 deletions.
12 changes: 9 additions & 3 deletions arch/mips/boot/dts/brcm/bcm3368.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,22 @@
compatible = "simple-bus";
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";
reg = <0xfff8c000 0xc>;
reg = <0xfff8c000 0x4>;
native-endian;
};

reboot: syscon-reboot@fff8c008 {
compatible = "syscon-reboot";
regmap = <&periph_cntl>;
offset = <0x8>;
offset = <0x0>;
mask = <0x1>;
};

Expand Down
12 changes: 9 additions & 3 deletions arch/mips/boot/dts/brcm/bcm63268.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,22 @@
compatible = "simple-bus";
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";
reg = <0x10000000 0x14>;
reg = <0x10000000 0xc>;
native-endian;
};

reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot";
regmap = <&periph_cntl>;
offset = <0x8>;
offset = <0x0>;
mask = <0x1>;
};

Expand Down
6 changes: 6 additions & 0 deletions arch/mips/boot/dts/brcm/bcm6328.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
compatible = "simple-bus";
ranges;

clkctl: clock-controller@10000004 {
compatible = "brcm,bcm6328-clocks";
reg = <0x10000004 0x4>;
#clock-cells = <1>;
};

periph_intc: interrupt-controller@10000020 {
compatible = "brcm,bcm6345-l1-intc";
reg = <0x10000020 0x10>,
Expand Down
12 changes: 9 additions & 3 deletions arch/mips/boot/dts/brcm/bcm6358.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,22 @@
compatible = "simple-bus";
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";
reg = <0xfffe0000 0xc>;
reg = <0xfffe0000 0x4>;
native-endian;
};

reboot: syscon-reboot@fffe0008 {
compatible = "syscon-reboot";
regmap = <&periph_cntl>;
offset = <0x8>;
offset = <0x0>;
mask = <0x1>;
};

Expand Down
12 changes: 9 additions & 3 deletions arch/mips/boot/dts/brcm/bcm6362.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,22 @@
compatible = "simple-bus";
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";
reg = <0x10000000 0x14>;
reg = <0x10000000 0xc>;
native-endian;
};

reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot";
regmap = <&periph_cntl>;
offset = <0x8>;
offset = <0x0>;
mask = <0x1>;
};

Expand Down
12 changes: 9 additions & 3 deletions arch/mips/boot/dts/brcm/bcm6368.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,22 @@
compatible = "simple-bus";
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";
reg = <0x10000000 0x14>;
reg = <0x10000000 0xc>;
native-endian;
};

reboot: syscon-reboot@10000008 {
compatible = "syscon-reboot";
regmap = <&periph_cntl>;
offset = <0x8>;
offset = <0x0>;
mask = <0x1>;
};

Expand Down

0 comments on commit a23c413

Please sign in to comment.