Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1274172 > unrolled thread
| Started by | Jon Mason <jonmason@broadcom.com> |
|---|---|
| First post | 2015-11-20 16:20 +0100 |
| Last post | 2015-11-20 19:20 +0100 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.kernel
[PATCH v3 0/3] ARM: dts: add support for NS, NSP, and NS2 clocks Jon Mason <jonmason@broadcom.com> - 2015-11-20 16:20 +0100
[PATCH v3 1/3] ARM: dts: enable clock support for BCM5301X Jon Mason <jonmason@broadcom.com> - 2015-11-20 16:20 +0100
Re: [PATCH v3 1/3] ARM: dts: enable clock support for BCM5301X Hauke Mehrtens <hauke@hauke-m.de> - 2015-11-21 15:30 +0100
Re: [PATCH v3 0/3] ARM: dts: add support for NS, NSP, and NS2 clocks Ray Jui <rjui@broadcom.com> - 2015-11-20 18:20 +0100
Re: [PATCH v3 0/3] ARM: dts: add support for NS, NSP, and NS2 clocks Florian Fainelli <f.fainelli@gmail.com> - 2015-11-20 19:20 +0100
| From | Jon Mason <jonmason@broadcom.com> |
|---|---|
| Date | 2015-11-20 16:20 +0100 |
| Subject | [PATCH v3 0/3] ARM: dts: add support for NS, NSP, and NS2 clocks |
| Message-ID | <qwVDH-uA-13@gated-at.bofh.it> |
Changes in v3: Tweaked the NSP entry names, per Ray Jui Changes in v2: Rebased off of outstanding NSP DT patches and tweaked the entry names per Ray Jui This patch series adds device tree support for the Broadcom Northstar, Northstar Plus, and Northstar 2 clocks. Last sent as an RFC (see https://lkml.org/lkml/2015/10/13/882) due to the inability to merge because of the driver dependencies. Those necessary driver changes were merged into 4.4. All comments have been addressed and it is ready to be pulled in. Jon Mason (3): ARM: dts: enable clock support for BCM5301X ARM: dts: enable clock support for Broadcom NSP ARM64: dts: enable clock support for Broadcom NS2 arch/arm/boot/dts/bcm-nsp.dtsi | 81 ++++++++++++++++++++++++------ arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++-------- arch/arm64/boot/dts/broadcom/ns2.dtsi | 80 +++++++++++++++++++++++++++++- 3 files changed, 216 insertions(+), 37 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Jon Mason <jonmason@broadcom.com> |
|---|---|
| Date | 2015-11-20 16:20 +0100 |
| Subject | [PATCH v3 1/3] ARM: dts: enable clock support for BCM5301X |
| Message-ID | <qwVDI-uA-37@gated-at.bofh.it> |
| In reply to | #1274172 |
Replace current device tree dummy clocks with real clock support for
Broadcom Northstar SoCs.
Signed-off-by: Jon Mason <jonmason@broadcom.com>
---
arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++++++----------
1 file changed, 71 insertions(+), 21 deletions(-)
diff --git a/arch/arm/boot/dts/bcm5301x.dtsi b/arch/arm/boot/dts/bcm5301x.dtsi
index 6f50f67..65a1309 100644
--- a/arch/arm/boot/dts/bcm5301x.dtsi
+++ b/arch/arm/boot/dts/bcm5301x.dtsi
@@ -8,6 +8,7 @@
* Licensed under the GNU/GPL. See COPYING for details.
*/
+#include <dt-bindings/clock/bcm-nsp.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
@@ -27,7 +28,7 @@
compatible = "ns16550";
reg = <0x0300 0x100>;
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
- clock-frequency = <100000000>;
+ clocks = <&iprocslow>;
status = "disabled";
};
@@ -35,48 +36,55 @@
compatible = "ns16550";
reg = <0x0400 0x100>;
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
- clock-frequency = <100000000>;
+ clocks = <&iprocslow>;
status = "disabled";
};
};
mpcore {
compatible = "simple-bus";
- ranges = <0x00000000 0x19020000 0x00003000>;
+ ranges = <0x00000000 0x19000000 0x00023000>;
#address-cells = <1>;
#size-cells = <1>;
- scu@0000 {
+ a9pll: arm_clk@00000 {
+ #clock-cells = <0>;
+ compatible = "brcm,nsp-armpll";
+ clocks = <&osc>;
+ reg = <0x00000 0x1000>;
+ };
+
+ scu@20000 {
compatible = "arm,cortex-a9-scu";
- reg = <0x0000 0x100>;
+ reg = <0x20000 0x100>;
};
- timer@0200 {
+ timer@20200 {
compatible = "arm,cortex-a9-global-timer";
- reg = <0x0200 0x100>;
+ reg = <0x20200 0x100>;
interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&clk_periph>;
+ clocks = <&periph_clk>;
};
- local-timer@0600 {
+ local-timer@20600 {
compatible = "arm,cortex-a9-twd-timer";
- reg = <0x0600 0x100>;
+ reg = <0x20600 0x100>;
interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&clk_periph>;
+ clocks = <&periph_clk>;
};
- gic: interrupt-controller@1000 {
+ gic: interrupt-controller@21000 {
compatible = "arm,cortex-a9-gic";
#interrupt-cells = <3>;
#address-cells = <0>;
interrupt-controller;
- reg = <0x1000 0x1000>,
- <0x0100 0x100>;
+ reg = <0x21000 0x1000>,
+ <0x20100 0x100>;
};
- L2: cache-controller@2000 {
+ L2: cache-controller@22000 {
compatible = "arm,pl310-cache";
- reg = <0x2000 0x1000>;
+ reg = <0x22000 0x1000>;
cache-unified;
arm,shared-override;
prefetch-data = <1>;
@@ -94,14 +102,37 @@
clocks {
#address-cells = <1>;
- #size-cells = <0>;
+ #size-cells = <1>;
+ ranges;
- /* As long as we do not have a real clock driver us this
- * fixed clock */
- clk_periph: periph {
+ osc: oscillator {
+ #clock-cells = <0>;
compatible = "fixed-clock";
+ clock-frequency = <25000000>;
+ };
+
+ iprocmed: iprocmed {
+ #clock-cells = <0>;
+ compatible = "fixed-factor-clock";
+ clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
+ clock-div = <2>;
+ clock-mult = <1>;
+ };
+
+ iprocslow: iprocslow {
+ #clock-cells = <0>;
+ compatible = "fixed-factor-clock";
+ clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
+ clock-div = <4>;
+ clock-mult = <1>;
+ };
+
+ periph_clk: periph_clk {
#clock-cells = <0>;
- clock-frequency = <400000000>;
+ compatible = "fixed-factor-clock";
+ clocks = <&a9pll>;
+ clock-div = <2>;
+ clock-mult = <1>;
};
};
@@ -178,6 +209,25 @@
};
};
+ lcpll0: lcpll0@1800c100 {
+ #clock-cells = <1>;
+ compatible = "brcm,nsp-lcpll0";
+ reg = <0x1800c100 0x14>;
+ clocks = <&osc>;
+ clock-output-names = "lcpll0", "pcie_phy", "sdio",
+ "ddr_phy";
+ };
+
+ genpll: genpll@1800c140 {
+ #clock-cells = <1>;
+ compatible = "brcm,nsp-genpll";
+ reg = <0x1800c140 0x24>;
+ clocks = <&osc>;
+ clock-output-names = "genpll", "phy", "ethernetclk",
+ "usbclk", "iprocfast", "sata1",
+ "sata2";
+ };
+
nand: nand@18028000 {
compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand";
reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Hauke Mehrtens <hauke@hauke-m.de> |
|---|---|
| Date | 2015-11-21 15:30 +0100 |
| Subject | Re: [PATCH v3 1/3] ARM: dts: enable clock support for BCM5301X |
| Message-ID | <qxhkR-6ty-13@gated-at.bofh.it> |
| In reply to | #1274175 |
On 11/20/2015 04:17 PM, Jon Mason wrote: > Replace current device tree dummy clocks with real clock support for > Broadcom Northstar SoCs. > > Signed-off-by: Jon Mason <jonmason@broadcom.com> > --- > arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++++++---------- > 1 file changed, 71 insertions(+), 21 deletions(-) > Acked-by: Hauke Mehrtens <hauke@hauke-m.de> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Ray Jui <rjui@broadcom.com> |
|---|---|
| Date | 2015-11-20 18:20 +0100 |
| Message-ID | <qwXvQ-1JB-29@gated-at.bofh.it> |
| In reply to | #1274172 |
Hi Jon, On 11/20/2015 7:17 AM, Jon Mason wrote: > Changes in v3: > Tweaked the NSP entry names, per Ray Jui > > Changes in v2: > Rebased off of outstanding NSP DT patches and tweaked the entry names > per Ray Jui > > > This patch series adds device tree support for the Broadcom Northstar, > Northstar Plus, and Northstar 2 clocks. > > Last sent as an RFC (see https://lkml.org/lkml/2015/10/13/882) due to > the inability to merge because of the driver dependencies. Those > necessary driver changes were merged into 4.4. All comments have been > addressed and it is ready to be pulled in. > > > Jon Mason (3): > ARM: dts: enable clock support for BCM5301X > ARM: dts: enable clock support for Broadcom NSP > ARM64: dts: enable clock support for Broadcom NS2 > > arch/arm/boot/dts/bcm-nsp.dtsi | 81 ++++++++++++++++++++++++------ > arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++-------- > arch/arm64/boot/dts/broadcom/ns2.dtsi | 80 +++++++++++++++++++++++++++++- > 3 files changed, 216 insertions(+), 37 deletions(-) > This entire patch series looks good to me! Thanks! Reviewed-by: Ray Jui <rjui@broadcom.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Florian Fainelli <f.fainelli@gmail.com> |
|---|---|
| Date | 2015-11-20 19:20 +0100 |
| Message-ID | <qwYrU-2lv-9@gated-at.bofh.it> |
| In reply to | #1274172 |
On 20/11/15 07:17, Jon Mason wrote: > Changes in v3: > Tweaked the NSP entry names, per Ray Jui > > Changes in v2: > Rebased off of outstanding NSP DT patches and tweaked the entry names > per Ray Jui > > > This patch series adds device tree support for the Broadcom Northstar, > Northstar Plus, and Northstar 2 clocks. > > Last sent as an RFC (see https://lkml.org/lkml/2015/10/13/882) due to > the inability to merge because of the driver dependencies. Those > necessary driver changes were merged into 4.4. All comments have been > addressed and it is ready to be pulled in. Patches 1-2 applied to devicetree/next Patch 3 applied to devicetree-arm64/next Thanks Jon! > > > Jon Mason (3): > ARM: dts: enable clock support for BCM5301X > ARM: dts: enable clock support for Broadcom NSP > ARM64: dts: enable clock support for Broadcom NS2 > > arch/arm/boot/dts/bcm-nsp.dtsi | 81 ++++++++++++++++++++++++------ > arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++-------- > arch/arm64/boot/dts/broadcom/ns2.dtsi | 80 +++++++++++++++++++++++++++++- > 3 files changed, 216 insertions(+), 37 deletions(-) > -- Florian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web