From 448bf7819b7262bad06c28ea45c700911c0f4539 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Mi=C5=82ecki?= Date: Thu, 3 Dec 2015 10:19:16 +0000 Subject: [PATCH] bcm53xx: use backported BCM5301X patches from stblinux devicetree/next MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rafał Miłecki SVN-Revision: 47708 --- ...M-dts-bcm5301x-Add-BCM-SVK-DT-files.patch} | 5 +- ...s-enable-clock-support-for-BCM5301X.patch} | 49 +++++++++++++------ 2 files changed, 38 insertions(+), 16 deletions(-) rename target/linux/bcm53xx/patches-4.4/{083-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch => 030-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch} (97%) rename target/linux/bcm53xx/patches-4.4/{050-ARM-dts-enable-clock-support-for-BCM5301X.patch => 031-ARM-dts-enable-clock-support-for-BCM5301X.patch} (76%) diff --git a/target/linux/bcm53xx/patches-4.4/083-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch b/target/linux/bcm53xx/patches-4.4/030-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch similarity index 97% rename from target/linux/bcm53xx/patches-4.4/083-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch rename to target/linux/bcm53xx/patches-4.4/030-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch index cd22e19176..c63627d473 100644 --- a/target/linux/bcm53xx/patches-4.4/083-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch +++ b/target/linux/bcm53xx/patches-4.4/030-ARM-dts-bcm5301x-Add-BCM-SVK-DT-files.patch @@ -1,6 +1,6 @@ -From a0aef7fbab0d8b5a0d445c74990e5233beda246e Mon Sep 17 00:00:00 2001 +From ccf0b5e37115f8675455632f583d06ea94f43539 Mon Sep 17 00:00:00 2001 From: Jon Mason -Date: Wed, 21 Oct 2015 18:46:04 -0400 +Date: Mon, 2 Nov 2015 13:34:53 -0500 Subject: [PATCH] ARM: dts: bcm5301x: Add BCM SVK DT files Add device tree files for Broadcom Northstar based SVKs. Since the @@ -8,6 +8,7 @@ bcm5301x.dtsi already exists, all that is necessary is the dts files to enable the UARTs. With these files, the SVKs are able to boot to shell. Signed-off-by: Jon Mason +Signed-off-by: Florian Fainelli --- arch/arm/boot/dts/Makefile | 5 +++- arch/arm/boot/dts/bcm94708.dts | 56 +++++++++++++++++++++++++++++++++++ diff --git a/target/linux/bcm53xx/patches-4.4/050-ARM-dts-enable-clock-support-for-BCM5301X.patch b/target/linux/bcm53xx/patches-4.4/031-ARM-dts-enable-clock-support-for-BCM5301X.patch similarity index 76% rename from target/linux/bcm53xx/patches-4.4/050-ARM-dts-enable-clock-support-for-BCM5301X.patch rename to target/linux/bcm53xx/patches-4.4/031-ARM-dts-enable-clock-support-for-BCM5301X.patch index a9a5246c0c..e8dd0cdd5c 100644 --- a/target/linux/bcm53xx/patches-4.4/050-ARM-dts-enable-clock-support-for-BCM5301X.patch +++ b/target/linux/bcm53xx/patches-4.4/031-ARM-dts-enable-clock-support-for-BCM5301X.patch @@ -1,15 +1,17 @@ -From e96ef422d0095fe9ae39b03c0805a0db8ff7e382 Mon Sep 17 00:00:00 2001 +From cdc36b22f0e4b8badf3db14395f0aa44dcbce4b3 Mon Sep 17 00:00:00 2001 From: Jon Mason -Date: Tue, 13 Oct 2015 17:22:25 -0400 -Subject: [PATCH 50/50] ARM: dts: enable clock support for BCM5301X +Date: Fri, 20 Nov 2015 10:17:18 -0500 +Subject: [PATCH] ARM: dts: enable clock support for BCM5301X Replace current device tree dummy clocks with real clock support for Broadcom Northstar SoCs. Signed-off-by: Jon Mason +Reviewed-by: Ray Jui +Signed-off-by: Florian Fainelli --- - arch/arm/boot/dts/bcm5301x.dtsi | 88 ++++++++++++++++++++++++++++++++--------- - 1 file changed, 69 insertions(+), 19 deletions(-) + arch/arm/boot/dts/bcm5301x.dtsi | 92 +++++++++++++++++++++++++++++++---------- + 1 file changed, 71 insertions(+), 21 deletions(-) --- a/arch/arm/boot/dts/bcm5301x.dtsi +++ b/arch/arm/boot/dts/bcm5301x.dtsi @@ -21,7 +23,24 @@ Signed-off-by: Jon Mason #include #include #include -@@ -42,41 +43,48 @@ +@@ -27,7 +28,7 @@ + compatible = "ns16550"; + reg = <0x0300 0x100>; + interrupts = ; +- clock-frequency = <100000000>; ++ clocks = <&iprocslow>; + status = "disabled"; + }; + +@@ -35,48 +36,55 @@ + compatible = "ns16550"; + reg = <0x0400 0x100>; + interrupts = ; +- clock-frequency = <100000000>; ++ clocks = <&iprocslow>; + status = "disabled"; + }; + }; mpcore { compatible = "simple-bus"; @@ -102,8 +121,7 @@ Signed-off-by: Jon Mason + }; + + iprocmed: iprocmed { - #clock-cells = <0>; -- clock-frequency = <400000000>; ++ #clock-cells = <0>; + compatible = "fixed-factor-clock"; + clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; + clock-div = <2>; @@ -119,7 +137,8 @@ Signed-off-by: Jon Mason + }; + + periph_clk: periph_clk { -+ #clock-cells = <0>; + #clock-cells = <0>; +- clock-frequency = <400000000>; + compatible = "fixed-factor-clock"; + clocks = <&a9pll>; + clock-div = <2>; @@ -127,11 +146,10 @@ Signed-off-by: Jon Mason }; }; -@@ -189,4 +220,23 @@ - - brcm,nand-has-wp; +@@ -178,6 +209,25 @@ + }; }; -+ + + lcpll0: lcpll0@1800c100 { + #clock-cells = <1>; + compatible = "brcm,nsp-lcpll0"; @@ -150,4 +168,7 @@ Signed-off-by: Jon Mason + "usbclk", "iprocfast", "sata1", + "sata2"; + }; - }; ++ + nand: nand@18028000 { + compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1", "brcm,brcmnand"; + reg = <0x18028000 0x600>, <0x1811a408 0x600>, <0x18028f00 0x20>; -- 2.30.2