devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
  • * [PATCH v2 3/3] ARM: dts: bcm281xx: define real clocks
           [not found] <1392402560-12929-1-git-send-email-elder@linaro.org>
           [not found] ` <1392402560-12929-1-git-send-email-elder-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
    @ 2014-02-14 18:29 ` Alex Elder
      1 sibling, 0 replies; 2+ messages in thread
    From: Alex Elder @ 2014-02-14 18:29 UTC (permalink / raw)
      To: mturquette, mporter, bcm
      Cc: Alex Elder, Rob Herring, Pawel Moll, Mark Rutland, Ian Campbell,
    	Kumar Gala, Russell King, bcm-kernel-feedback-list, devicetree,
    	linux-arm-kernel, linux-kernel
    
    From: Alex Elder <alex.elder@linaro.org>
    
    Replace the "fake" clocks defined in the "bcm11351.dtsi" device tree
    file with real definitions backed by the new BCM281xx clock driver.
    
    Signed-off-by: Alex Elder <elder@linaro.org>
    Reviewed-by: Matt Porter <matt.porter@linaro.org>
    Reviewed-by: Tim Kryger <tim.kryger@linaro.org>
    ---
     arch/arm/boot/dts/bcm11351.dtsi |  192 ++++++++++++++++++++++++++++-----------
     1 file changed, 140 insertions(+), 52 deletions(-)
    
    diff --git a/arch/arm/boot/dts/bcm11351.dtsi b/arch/arm/boot/dts/bcm11351.dtsi
    index e491b82..94b36f6 100644
    --- a/arch/arm/boot/dts/bcm11351.dtsi
    +++ b/arch/arm/boot/dts/bcm11351.dtsi
    @@ -14,6 +14,8 @@
     #include <dt-bindings/interrupt-controller/arm-gic.h>
     #include <dt-bindings/interrupt-controller/irq.h>
     
    +#include "dt-bindings/clock/bcm281xx.h"
    +
     #include "skeleton.dtsi"
     
     / {
    @@ -43,7 +45,7 @@
     		compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart";
     		status = "disabled";
     		reg = <0x3e000000 0x1000>;
    -		clocks = <&uartb_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_UARTB>;
     		interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
     		reg-shift = <2>;
     		reg-io-width = <4>;
    @@ -53,7 +55,7 @@
     		compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart";
     		status = "disabled";
     		reg = <0x3e001000 0x1000>;
    -		clocks = <&uartb2_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_UARTB2>;
     		interrupts = <GIC_SPI 66 IRQ_TYPE_LEVEL_HIGH>;
     		reg-shift = <2>;
     		reg-io-width = <4>;
    @@ -63,7 +65,7 @@
     		compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart";
     		status = "disabled";
     		reg = <0x3e002000 0x1000>;
    -		clocks = <&uartb3_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_UARTB3>;
     		interrupts = <GIC_SPI 65 IRQ_TYPE_LEVEL_HIGH>;
     		reg-shift = <2>;
     		reg-io-width = <4>;
    @@ -73,7 +75,7 @@
     		compatible = "brcm,bcm11351-dw-apb-uart", "snps,dw-apb-uart";
     		status = "disabled";
     		reg = <0x3e003000 0x1000>;
    -		clocks = <&uartb4_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_UARTB4>;
     		interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
     		reg-shift = <2>;
     		reg-io-width = <4>;
    @@ -95,7 +97,7 @@
     		compatible = "brcm,kona-timer";
     		reg = <0x35006000 0x1000>;
     		interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
    -		clocks = <&hub_timer_clk>;
    +		clocks = <&aon_ccu BCM281XX_AON_CCU_HUB_TIMER>;
     	};
     
     	gpio: gpio@35003000 {
    @@ -118,7 +120,7 @@
     		compatible = "brcm,kona-sdhci";
     		reg = <0x3f180000 0x10000>;
     		interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
    -		clocks = <&sdio1_clk>;
    +		clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO1>;
     		status = "disabled";
     	};
     
    @@ -126,7 +128,7 @@
     		compatible = "brcm,kona-sdhci";
     		reg = <0x3f190000 0x10000>;
     		interrupts = <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
    -		clocks = <&sdio2_clk>;
    +		clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO2>;
     		status = "disabled";
     	};
     
    @@ -134,7 +136,7 @@
     		compatible = "brcm,kona-sdhci";
     		reg = <0x3f1a0000 0x10000>;
     		interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
    -		clocks = <&sdio3_clk>;
    +		clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO3>;
     		status = "disabled";
     	};
     
    @@ -142,7 +144,7 @@
     		compatible = "brcm,kona-sdhci";
     		reg = <0x3f1b0000 0x10000>;
     		interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
    -		clocks = <&sdio4_clk>;
    +		clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO4>;
     		status = "disabled";
     	};
     
    @@ -157,7 +159,7 @@
     		interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>;
     		#address-cells = <1>;
     		#size-cells = <0>;
    -		clocks = <&bsc1_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_BSC1>;
     		status = "disabled";
     	};
     
    @@ -167,7 +169,7 @@
     		interrupts = <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>;
     		#address-cells = <1>;
     		#size-cells = <0>;
    -		clocks = <&bsc2_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_BSC2>;
     		status = "disabled";
     	};
     
    @@ -177,7 +179,7 @@
     		interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
     		#address-cells = <1>;
     		#size-cells = <0>;
    -		clocks = <&bsc3_clk>;
    +		clocks = <&slave_ccu BCM281XX_SLAVE_CCU_BSC3>;
     		status = "disabled";
     	};
     
    @@ -187,105 +189,191 @@
     		interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
     		#address-cells = <1>;
     		#size-cells = <0>;
    -		clocks = <&pmu_bsc_clk>;
    +		clocks = <&aon_ccu BCM281XX_AON_CCU_PMU_BSC>;
     		status = "disabled";
     	};
     
     	clocks {
    -		bsc1_clk: bsc1 {
    -			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +		#address-cells = <1>;
    +		#size-cells = <1>;
    +		ranges;
    +
    +		root_ccu: root_ccu {
    +			compatible = "brcm,bcm11351-root-ccu";
    +			reg = <0x35001000 0x0f00>;
    +			#clock-cells = <1>;
    +			clock-output-names = "frac_1m";
    +		};
    +
    +		hub_ccu: hub_ccu {
    +			compatible = "brcm,bcm11351-hub-ccu";
    +			reg = <0x34000000 0x0f00>;
    +			#clock-cells = <1>;
    +			clock-output-names = "tmon_1m";
    +		};
    +
    +		aon_ccu: aon_ccu {
    +			compatible = "brcm,bcm11351-aon-ccu";
    +			reg = <0x35002000 0x0f00>;
    +			#clock-cells = <1>;
    +			clock-output-names = "hub_timer",
    +					     "pmu_bsc",
    +					     "pmu_bsc_var";
    +		};
    +
    +		master_ccu: master_ccu {
    +			compatible = "brcm,bcm11351-master-ccu";
    +			reg = <0x3f001000 0x0f00>;
    +			#clock-cells = <1>;
    +			clock-output-names = "sdio1",
    +					     "sdio2",
    +					     "sdio3",
    +					     "sdio4",
    +					     "usb_ic",
    +					     "hsic2_48m",
    +					     "hsic2_12m";
    +		};
    +
    +		slave_ccu: slave_ccu {
    +			compatible = "brcm,bcm11351-slave-ccu";
    +			reg = <0x3e011000 0x0f00>;
    +			#clock-cells = <1>;
    +			clock-output-names = "uartb",
    +					     "uartb2",
    +					     "uartb3",
    +					     "uartb4",
    +					     "ssp0",
    +					     "ssp2",
    +					     "bsc1",
    +					     "bsc2",
    +					     "bsc3",
    +					     "pwm";
    +		};
    +
    +		ref_1m_clk: ref_1m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <1000000>;
     		};
     
    -		bsc2_clk: bsc2 {
    +		ref_32k_clk: ref_32k {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +			clock-frequency = <32768>;
    +		};
    +
    +		bbl_32k_clk: bbl_32k {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <32768>;
     		};
     
    -		bsc3_clk: bsc3 {
    +		ref_13m_clk: ref_13m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
     			clock-frequency = <13000000>;
    -			#clock-cells = <0>;
     		};
     
    -		pmu_bsc_clk: pmu_bsc {
    +		var_13m_clk: var_13m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
     			clock-frequency = <13000000>;
    -			#clock-cells = <0>;
     		};
     
    -		hub_timer_clk: hub_timer {
    -			compatible = "fixed-clock";
    -			clock-frequency = <32768>;
    +		dft_19_5m_clk: dft_19_5m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <19500000>;
     		};
     
    -		pwm_clk: pwm {
    +		ref_crystal_clk: ref_crystal {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
     			clock-frequency = <26000000>;
    -			#clock-cells = <0>;
     		};
     
    -		sdio1_clk: sdio1 {
    -			compatible = "fixed-clock";
    -			clock-frequency = <48000000>;
    +		ref_cx40_clk: ref_cx40 {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <40000000>;
     		};
     
    -		sdio2_clk: sdio2 {
    -			compatible = "fixed-clock";
    -			clock-frequency = <48000000>;
    +		ref_52m_clk: ref_52m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <52000000>;
     		};
     
    -		sdio3_clk: sdio3 {
    -			compatible = "fixed-clock";
    -			clock-frequency = <48000000>;
    +		var_52m_clk: var_52m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <52000000>;
     		};
     
    -		sdio4_clk: sdio4 {
    +		usb_otg_ahb_clk: usb_otg_ahb {
     			compatible = "fixed-clock";
    -			clock-frequency = <48000000>;
    +			clock-frequency = <52000000>;
     			#clock-cells = <0>;
     		};
     
    -		tmon_1m_clk: tmon_1m {
    -			compatible = "fixed-clock";
    -			clock-frequency = <1000000>;
    +		ref_96m_clk: ref_96m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <96000000>;
     		};
     
    -		uartb_clk: uartb {
    -			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +		var_96m_clk: var_96m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <96000000>;
     		};
     
    -		uartb2_clk: uartb2 {
    +		ref_104m_clk: ref_104m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +			clock-frequency = <104000000>;
    +		};
    +
    +		var_104m_clk: var_104m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <104000000>;
     		};
     
    -		uartb3_clk: uartb3 {
    +		ref_156m_clk: ref_156m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +			clock-frequency = <156000000>;
    +		};
    +
    +		var_156m_clk: var_156m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <156000000>;
     		};
     
    -		uartb4_clk: uartb4 {
    +		ref_208m_clk: ref_208m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
    -			clock-frequency = <13000000>;
    +			clock-frequency = <208000000>;
    +		};
    +
    +		var_208m_clk: var_208m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <208000000>;
     		};
     
    -		usb_otg_ahb_clk: usb_otg_ahb {
    +		ref_312m_clk: ref_312m {
    +			#clock-cells = <0>;
     			compatible = "fixed-clock";
    -			clock-frequency = <52000000>;
    +			clock-frequency = <312000000>;
    +		};
    +
    +		var_312m_clk: var_312m {
     			#clock-cells = <0>;
    +			compatible = "fixed-clock";
    +			clock-frequency = <312000000>;
     		};
     	};
     
    -- 
    1.7.9.5
    
    ^ permalink raw reply related	[flat|nested] 2+ messages in thread

  • end of thread, other threads:[~2014-02-14 18:29 UTC | newest]
    
    Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <1392402560-12929-1-git-send-email-elder@linaro.org>
         [not found] ` <1392402560-12929-1-git-send-email-elder-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
    2014-02-14 18:29   ` [PATCH v2 1/3] clk: bcm281xx: add initial clock framework support Alex Elder
    2014-02-14 18:29 ` [PATCH v2 3/3] ARM: dts: bcm281xx: define real clocks Alex Elder
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).