public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Álvaro Fernández Rojas" <noltari@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/5] mips: bmips: add bcm6345-clk driver support for BCM6328
Date: Sun,  7 May 2017 20:13:03 +0200	[thread overview]
Message-ID: <1494180785-15121-4-git-send-email-noltari@gmail.com> (raw)
In-Reply-To: <1494180785-15121-1-git-send-email-noltari@gmail.com>

This driver can control up to 32 clocks.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
 v2: no changes.

 arch/mips/dts/brcm,bcm6328.dtsi           |  7 +++++++
 include/dt-bindings/clock/bcm6328-clock.h | 25 +++++++++++++++++++++++++
 2 files changed, 32 insertions(+)
 create mode 100644 include/dt-bindings/clock/bcm6328-clock.h

diff --git a/arch/mips/dts/brcm,bcm6328.dtsi b/arch/mips/dts/brcm,bcm6328.dtsi
index a5b43ae..6b5c5dd 100644
--- a/arch/mips/dts/brcm,bcm6328.dtsi
+++ b/arch/mips/dts/brcm,bcm6328.dtsi
@@ -4,6 +4,7 @@
  * SPDX-License-Identifier:	GPL-2.0+
  */
 
+#include <dt-bindings/clock/bcm6328-clock.h>
 #include <dt-bindings/gpio/gpio.h>
 #include "skeleton.dtsi"
 
@@ -43,6 +44,12 @@
 			clock-frequency = <50000000>;
 			u-boot,dm-pre-reloc;
 		};
+
+		periph_clk: periph-clk {
+			compatible = "brcm,bcm6345-clk";
+			reg = <0x10000004 0x4>;
+			#clock-cells = <1>;
+		};
 	};
 
 	ubus {
diff --git a/include/dt-bindings/clock/bcm6328-clock.h b/include/dt-bindings/clock/bcm6328-clock.h
new file mode 100644
index 0000000..5d0fc11
--- /dev/null
+++ b/include/dt-bindings/clock/bcm6328-clock.h
@@ -0,0 +1,25 @@
+/*
+ * Copyright (C) 2017 Álvaro Fernández Rojas <noltari@gmail.com>
+ *
+ * Derived from linux/arch/mips/include/asm/mach-bcm63xx/bcm63xx_regs.h
+ *
+ * SPDX-License-Identifier:	GPL-2.0+
+ */
+
+#ifndef __DT_BINDINGS_CLOCK_BCM6328_H
+#define __DT_BINDINGS_CLOCK_BCM6328_H
+
+#define BCM6328_CLK_PHYMIPS	0
+#define BCM6328_CLK_ADSL_QPROC	1
+#define BCM6328_CLK_ADSL_AFE	2
+#define BCM6328_CLK_ADSL	3
+#define BCM6328_CLK_MIPS	4
+#define BCM6328_CLK_SAR		5
+#define BCM6328_CLK_PCM		6
+#define BCM6328_CLK_USBD	7
+#define BCM6328_CLK_USBH	8
+#define BCM6328_CLK_HSSPI	9
+#define BCM6328_CLK_PCIE	10
+#define BCM6328_CLK_ROBOSW	11
+
+#endif /* __DT_BINDINGS_CLOCK_BCM6328_H */
-- 
2.1.4

  parent reply	other threads:[~2017-05-07 18:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-03 13:09 [U-Boot] [PATCH 0/5] dm: clk: add BCM6345 gated clock controller support Álvaro Fernández Rojas
2017-05-03 13:09 ` [U-Boot] [PATCH 1/5] dm: clk: add BCM6345 clock driver Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:09 ` [U-Boot] [PATCH 2/5] mips: bmips: add bcm6345-clk driver support for BCM6358 Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:09 ` [U-Boot] [PATCH 3/5] mips: bmips: add bcm6345-clk driver support for BCM6328 Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:09 ` [U-Boot] [PATCH 4/5] mips: bmips: add bcm6345-clk driver support for BCM63268 Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-03 13:09 ` [U-Boot] [PATCH 5/5] mips: bmips: enable bcm6345-clk driver for all BMIPS boards Álvaro Fernández Rojas
2017-05-04 16:51   ` Simon Glass
2017-05-07 18:13 ` [U-Boot] [PATCH v2 0/5] dm: clk: add BCM6345 gated clock controller support Álvaro Fernández Rojas
2017-05-07 18:13   ` [U-Boot] [PATCH v2 1/5] dm: clk: add BCM6345 clock driver Álvaro Fernández Rojas
2017-05-07 18:13   ` [U-Boot] [PATCH v2 2/5] mips: bmips: add bcm6345-clk driver support for BCM6358 Álvaro Fernández Rojas
2017-05-07 18:13   ` Álvaro Fernández Rojas [this message]
2017-05-07 18:13   ` [U-Boot] [PATCH v2 4/5] mips: bmips: add bcm6345-clk driver support for BCM63268 Álvaro Fernández Rojas
2017-05-07 18:13   ` [U-Boot] [PATCH v2 5/5] mips: bmips: enable bcm6345-clk driver for all BMIPS boards Álvaro Fernández Rojas
2017-05-10 14:19   ` [U-Boot] [PATCH v2 0/5] dm: clk: add BCM6345 gated clock controller support Daniel Schwierzeck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1494180785-15121-4-git-send-email-noltari@gmail.com \
    --to=noltari@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox