aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRajeev Kumar <rajeev-dlh.kumar@st.com>2012-11-10 01:43:40 -0500
committerMike Turquette <mturquette@linaro.org>2012-11-21 14:45:19 -0500
commitdf2449aba4749fb8d04c3c1bbfad5cf8863c323b (patch)
tree46b967f34849952fa3c784befddd82875b237fb6 /drivers
parent70ee65771424829fd092a1df9afcc7e24c94004b (diff)
CLK: SPEAr: Fix dev_id & con_id for multiple clocks
dev_id & con_id names of multiple clocks are incorrect. This patch fixes these names with the names that come via DT. Signed-off-by: Rajeev Kumar <rajeev-dlh.kumar@st.com> Signed-off-by: Shiraz Hashim <shiraz.hashim@st.com> Signed-off-by: Bhavna Yadav <bhavna.yadav@st.com> Signed-off-by: Vipul Kumar Samar <vipulkumar.samar@st.com> Signed-off-by: Deepak Sikri <deepak.sikri@st.com> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/clk/spear/spear1310_clock.c30
-rw-r--r--drivers/clk/spear/spear1340_clock.c42
-rw-r--r--drivers/clk/spear/spear3xx_clock.c12
-rw-r--r--drivers/clk/spear/spear6xx_clock.c6
4 files changed, 49 insertions, 41 deletions
diff --git a/drivers/clk/spear/spear1310_clock.c b/drivers/clk/spear/spear1310_clock.c
index 0fcec2aae19c..f13b1d23b4a9 100644
--- a/drivers/clk/spear/spear1310_clock.c
+++ b/drivers/clk/spear/spear1310_clock.c
@@ -401,7 +401,7 @@ void __init spear1310_clk_init(void)
401 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0, 401 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0,
402 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_RTC_CLK_ENB, 0, 402 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_RTC_CLK_ENB, 0,
403 &_lock); 403 &_lock);
404 clk_register_clkdev(clk, NULL, "fc900000.rtc"); 404 clk_register_clkdev(clk, NULL, "e0580000.rtc");
405 405
406 /* clock derived from 24 or 25 MHz osc clk */ 406 /* clock derived from 24 or 25 MHz osc clk */
407 /* vco-pll */ 407 /* vco-pll */
@@ -615,7 +615,7 @@ void __init spear1310_clk_init(void)
615 ARRAY_SIZE(gmac_phy_parents), 0, 615 ARRAY_SIZE(gmac_phy_parents), 0,
616 SPEAR1310_PERIP_CLK_CFG, SPEAR1310_GMAC_PHY_CLK_SHIFT, 616 SPEAR1310_PERIP_CLK_CFG, SPEAR1310_GMAC_PHY_CLK_SHIFT,
617 SPEAR1310_GMAC_PHY_CLK_MASK, 0, &_lock); 617 SPEAR1310_GMAC_PHY_CLK_MASK, 0, &_lock);
618 clk_register_clkdev(clk, NULL, "stmmacphy.0"); 618 clk_register_clkdev(clk, "stmmacphy.0", NULL);
619 619
620 /* clcd */ 620 /* clcd */
621 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents, 621 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents,
@@ -638,7 +638,7 @@ void __init spear1310_clk_init(void)
638 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, 638 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0,
639 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_CLCD_CLK_ENB, 0, 639 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_CLCD_CLK_ENB, 0,
640 &_lock); 640 &_lock);
641 clk_register_clkdev(clk, "clcd_clk", NULL); 641 clk_register_clkdev(clk, NULL, "e1000000.clcd");
642 642
643 /* i2s */ 643 /* i2s */
644 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents, 644 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents,
@@ -705,35 +705,37 @@ void __init spear1310_clk_init(void)
705 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0, 705 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0,
706 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UHC0_CLK_ENB, 0, 706 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UHC0_CLK_ENB, 0,
707 &_lock); 707 &_lock);
708 clk_register_clkdev(clk, "usbh.0_clk", NULL); 708 clk_register_clkdev(clk, NULL, "e4000000.ohci");
709 clk_register_clkdev(clk, NULL, "e4800000.ehci");
709 710
710 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0, 711 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0,
711 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UHC1_CLK_ENB, 0, 712 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UHC1_CLK_ENB, 0,
712 &_lock); 713 &_lock);
713 clk_register_clkdev(clk, "usbh.1_clk", NULL); 714 clk_register_clkdev(clk, NULL, "e5000000.ohci");
715 clk_register_clkdev(clk, NULL, "e5800000.ehci");
714 716
715 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0, 717 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0,
716 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UOC_CLK_ENB, 0, 718 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_UOC_CLK_ENB, 0,
717 &_lock); 719 &_lock);
718 clk_register_clkdev(clk, NULL, "uoc"); 720 clk_register_clkdev(clk, NULL, "e3800000.otg");
719 721
720 clk = clk_register_gate(NULL, "pcie_sata_0_clk", "ahb_clk", 0, 722 clk = clk_register_gate(NULL, "pcie_sata_0_clk", "ahb_clk", 0,
721 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_0_CLK_ENB, 723 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_0_CLK_ENB,
722 0, &_lock); 724 0, &_lock);
723 clk_register_clkdev(clk, NULL, "dw_pcie.0"); 725 clk_register_clkdev(clk, NULL, "dw_pcie.0");
724 clk_register_clkdev(clk, NULL, "ahci.0"); 726 clk_register_clkdev(clk, NULL, "b1000000.ahci");
725 727
726 clk = clk_register_gate(NULL, "pcie_sata_1_clk", "ahb_clk", 0, 728 clk = clk_register_gate(NULL, "pcie_sata_1_clk", "ahb_clk", 0,
727 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_1_CLK_ENB, 729 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_1_CLK_ENB,
728 0, &_lock); 730 0, &_lock);
729 clk_register_clkdev(clk, NULL, "dw_pcie.1"); 731 clk_register_clkdev(clk, NULL, "dw_pcie.1");
730 clk_register_clkdev(clk, NULL, "ahci.1"); 732 clk_register_clkdev(clk, NULL, "b1800000.ahci");
731 733
732 clk = clk_register_gate(NULL, "pcie_sata_2_clk", "ahb_clk", 0, 734 clk = clk_register_gate(NULL, "pcie_sata_2_clk", "ahb_clk", 0,
733 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_2_CLK_ENB, 735 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_PCIE_SATA_2_CLK_ENB,
734 0, &_lock); 736 0, &_lock);
735 clk_register_clkdev(clk, NULL, "dw_pcie.2"); 737 clk_register_clkdev(clk, NULL, "dw_pcie.2");
736 clk_register_clkdev(clk, NULL, "ahci.2"); 738 clk_register_clkdev(clk, NULL, "b4000000.ahci");
737 739
738 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0, 740 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0,
739 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_SYSRAM0_CLK_ENB, 0, 741 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_SYSRAM0_CLK_ENB, 0,
@@ -754,7 +756,7 @@ void __init spear1310_clk_init(void)
754 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", 0, 756 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", 0,
755 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_ADC_CLK_ENB, 0, 757 SPEAR1310_PERIP1_CLK_ENB, SPEAR1310_ADC_CLK_ENB, 0,
756 &_lock); 758 &_lock);
757 clk_register_clkdev(clk, NULL, "adc_clk"); 759 clk_register_clkdev(clk, NULL, "e0080000.adc");
758 760
759 /* clock derived from apb clk */ 761 /* clock derived from apb clk */
760 clk = clk_register_gate(NULL, "ssp0_clk", "apb_clk", 0, 762 clk = clk_register_gate(NULL, "ssp0_clk", "apb_clk", 0,
@@ -916,15 +918,15 @@ void __init spear1310_clk_init(void)
916 SPEAR1310_RAS_CTRL_REG1, 918 SPEAR1310_RAS_CTRL_REG1,
917 SPEAR1310_SMII_RGMII_PHY_CLK_SHIFT, 919 SPEAR1310_SMII_RGMII_PHY_CLK_SHIFT,
918 SPEAR1310_PHY_CLK_MASK, 0, &_lock); 920 SPEAR1310_PHY_CLK_MASK, 0, &_lock);
919 clk_register_clkdev(clk, NULL, "stmmacphy.1"); 921 clk_register_clkdev(clk, "stmmacphy.1", NULL);
920 clk_register_clkdev(clk, NULL, "stmmacphy.2"); 922 clk_register_clkdev(clk, "stmmacphy.2", NULL);
921 clk_register_clkdev(clk, NULL, "stmmacphy.4"); 923 clk_register_clkdev(clk, "stmmacphy.4", NULL);
922 924
923 clk = clk_register_mux(NULL, "rmii_phy_mclk", rmii_phy_parents, 925 clk = clk_register_mux(NULL, "rmii_phy_mclk", rmii_phy_parents,
924 ARRAY_SIZE(rmii_phy_parents), 0, 926 ARRAY_SIZE(rmii_phy_parents), 0,
925 SPEAR1310_RAS_CTRL_REG1, SPEAR1310_RMII_PHY_CLK_SHIFT, 927 SPEAR1310_RAS_CTRL_REG1, SPEAR1310_RMII_PHY_CLK_SHIFT,
926 SPEAR1310_PHY_CLK_MASK, 0, &_lock); 928 SPEAR1310_PHY_CLK_MASK, 0, &_lock);
927 clk_register_clkdev(clk, NULL, "stmmacphy.3"); 929 clk_register_clkdev(clk, "stmmacphy.3", NULL);
928 930
929 clk = clk_register_mux(NULL, "uart1_mclk", uart_parents, 931 clk = clk_register_mux(NULL, "uart1_mclk", uart_parents,
930 ARRAY_SIZE(uart_parents), 0, SPEAR1310_RAS_CTRL_REG0, 932 ARRAY_SIZE(uart_parents), 0, SPEAR1310_RAS_CTRL_REG0,
diff --git a/drivers/clk/spear/spear1340_clock.c b/drivers/clk/spear/spear1340_clock.c
index 2352cee7f645..dae2ba60a8f9 100644
--- a/drivers/clk/spear/spear1340_clock.c
+++ b/drivers/clk/spear/spear1340_clock.c
@@ -425,7 +425,7 @@ void __init spear1340_clk_init(void)
425 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0, 425 clk = clk_register_gate(NULL, "rtc-spear", "osc_32k_clk", 0,
426 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_RTC_CLK_ENB, 0, 426 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_RTC_CLK_ENB, 0,
427 &_lock); 427 &_lock);
428 clk_register_clkdev(clk, NULL, "fc900000.rtc"); 428 clk_register_clkdev(clk, NULL, "e0580000.rtc");
429 429
430 /* clock derived from 24 or 25 MHz osc clk */ 430 /* clock derived from 24 or 25 MHz osc clk */
431 /* vco-pll */ 431 /* vco-pll */
@@ -499,7 +499,7 @@ void __init spear1340_clk_init(void)
499 clk = clk_register_gate(NULL, "thermal_gclk", "thermal_clk", 0, 499 clk = clk_register_gate(NULL, "thermal_gclk", "thermal_clk", 0,
500 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_THSENS_CLK_ENB, 0, 500 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_THSENS_CLK_ENB, 0,
501 &_lock); 501 &_lock);
502 clk_register_clkdev(clk, NULL, "spear_thermal"); 502 clk_register_clkdev(clk, NULL, "e07008c4.thermal");
503 503
504 /* clock derived from pll4 clk */ 504 /* clock derived from pll4 clk */
505 clk = clk_register_fixed_factor(NULL, "ddr_clk", "pll4_clk", 0, 1, 505 clk = clk_register_fixed_factor(NULL, "ddr_clk", "pll4_clk", 0, 1,
@@ -659,7 +659,7 @@ void __init spear1340_clk_init(void)
659 clk = clk_register_gate(NULL, "c3_clk", "c3_mclk", 0, 659 clk = clk_register_gate(NULL, "c3_clk", "c3_mclk", 0,
660 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_C3_CLK_ENB, 0, 660 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_C3_CLK_ENB, 0,
661 &_lock); 661 &_lock);
662 clk_register_clkdev(clk, NULL, "c3"); 662 clk_register_clkdev(clk, NULL, "e1800000.c3");
663 663
664 /* gmac */ 664 /* gmac */
665 clk = clk_register_mux(NULL, "phy_input_mclk", gmac_phy_input_parents, 665 clk = clk_register_mux(NULL, "phy_input_mclk", gmac_phy_input_parents,
@@ -679,7 +679,7 @@ void __init spear1340_clk_init(void)
679 ARRAY_SIZE(gmac_phy_parents), 0, 679 ARRAY_SIZE(gmac_phy_parents), 0,
680 SPEAR1340_PERIP_CLK_CFG, SPEAR1340_GMAC_PHY_CLK_SHIFT, 680 SPEAR1340_PERIP_CLK_CFG, SPEAR1340_GMAC_PHY_CLK_SHIFT,
681 SPEAR1340_GMAC_PHY_CLK_MASK, 0, &_lock); 681 SPEAR1340_GMAC_PHY_CLK_MASK, 0, &_lock);
682 clk_register_clkdev(clk, NULL, "stmmacphy.0"); 682 clk_register_clkdev(clk, "stmmacphy.0", NULL);
683 683
684 /* clcd */ 684 /* clcd */
685 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents, 685 clk = clk_register_mux(NULL, "clcd_syn_mclk", clcd_synth_parents,
@@ -702,7 +702,7 @@ void __init spear1340_clk_init(void)
702 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0, 702 clk = clk_register_gate(NULL, "clcd_clk", "clcd_pixel_mclk", 0,
703 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_CLCD_CLK_ENB, 0, 703 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_CLCD_CLK_ENB, 0,
704 &_lock); 704 &_lock);
705 clk_register_clkdev(clk, "clcd_clk", NULL); 705 clk_register_clkdev(clk, NULL, "e1000000.clcd");
706 706
707 /* i2s */ 707 /* i2s */
708 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents, 708 clk = clk_register_mux(NULL, "i2s_src_mclk", i2s_src_parents,
@@ -769,23 +769,25 @@ void __init spear1340_clk_init(void)
769 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0, 769 clk = clk_register_gate(NULL, "usbh0_clk", "ahb_clk", 0,
770 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UHC0_CLK_ENB, 0, 770 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UHC0_CLK_ENB, 0,
771 &_lock); 771 &_lock);
772 clk_register_clkdev(clk, "usbh.0_clk", NULL); 772 clk_register_clkdev(clk, NULL, "e4000000.ohci");
773 clk_register_clkdev(clk, NULL, "e4800000.ehci");
773 774
774 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0, 775 clk = clk_register_gate(NULL, "usbh1_clk", "ahb_clk", 0,
775 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UHC1_CLK_ENB, 0, 776 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UHC1_CLK_ENB, 0,
776 &_lock); 777 &_lock);
777 clk_register_clkdev(clk, "usbh.1_clk", NULL); 778 clk_register_clkdev(clk, NULL, "e5000000.ohci");
779 clk_register_clkdev(clk, NULL, "e5800000.ehci");
778 780
779 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0, 781 clk = clk_register_gate(NULL, "uoc_clk", "ahb_clk", 0,
780 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UOC_CLK_ENB, 0, 782 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_UOC_CLK_ENB, 0,
781 &_lock); 783 &_lock);
782 clk_register_clkdev(clk, NULL, "uoc"); 784 clk_register_clkdev(clk, NULL, "e3800000.otg");
783 785
784 clk = clk_register_gate(NULL, "pcie_sata_clk", "ahb_clk", 0, 786 clk = clk_register_gate(NULL, "pcie_sata_clk", "ahb_clk", 0,
785 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_PCIE_SATA_CLK_ENB, 787 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_PCIE_SATA_CLK_ENB,
786 0, &_lock); 788 0, &_lock);
787 clk_register_clkdev(clk, NULL, "dw_pcie"); 789 clk_register_clkdev(clk, NULL, "dw_pcie");
788 clk_register_clkdev(clk, NULL, "ahci"); 790 clk_register_clkdev(clk, NULL, "b1000000.ahci");
789 791
790 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0, 792 clk = clk_register_gate(NULL, "sysram0_clk", "ahb_clk", 0,
791 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_SYSRAM0_CLK_ENB, 0, 793 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_SYSRAM0_CLK_ENB, 0,
@@ -806,7 +808,7 @@ void __init spear1340_clk_init(void)
806 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", 0, 808 clk = clk_register_gate(NULL, "adc_clk", "adc_syn_gclk", 0,
807 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_ADC_CLK_ENB, 0, 809 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_ADC_CLK_ENB, 0,
808 &_lock); 810 &_lock);
809 clk_register_clkdev(clk, NULL, "adc_clk"); 811 clk_register_clkdev(clk, NULL, "e0080000.adc");
810 812
811 /* clock derived from apb clk */ 813 /* clock derived from apb clk */
812 clk = clk_register_gate(NULL, "ssp_clk", "apb_clk", 0, 814 clk = clk_register_gate(NULL, "ssp_clk", "apb_clk", 0,
@@ -827,12 +829,12 @@ void __init spear1340_clk_init(void)
827 clk = clk_register_gate(NULL, "i2s_play_clk", "apb_clk", 0, 829 clk = clk_register_gate(NULL, "i2s_play_clk", "apb_clk", 0,
828 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_I2S_PLAY_CLK_ENB, 0, 830 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_I2S_PLAY_CLK_ENB, 0,
829 &_lock); 831 &_lock);
830 clk_register_clkdev(clk, NULL, "b2400000.i2s"); 832 clk_register_clkdev(clk, NULL, "b2400000.i2s-play");
831 833
832 clk = clk_register_gate(NULL, "i2s_rec_clk", "apb_clk", 0, 834 clk = clk_register_gate(NULL, "i2s_rec_clk", "apb_clk", 0,
833 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_I2S_REC_CLK_ENB, 0, 835 SPEAR1340_PERIP1_CLK_ENB, SPEAR1340_I2S_REC_CLK_ENB, 0,
834 &_lock); 836 &_lock);
835 clk_register_clkdev(clk, NULL, "b2000000.i2s"); 837 clk_register_clkdev(clk, NULL, "b2000000.i2s-rec");
836 838
837 clk = clk_register_gate(NULL, "kbd_clk", "apb_clk", 0, 839 clk = clk_register_gate(NULL, "kbd_clk", "apb_clk", 0,
838 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_KBD_CLK_ENB, 0, 840 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_KBD_CLK_ENB, 0,
@@ -896,7 +898,7 @@ void __init spear1340_clk_init(void)
896 clk = clk_register_gate(NULL, "spdif_out_clk", "spdif_out_mclk", 0, 898 clk = clk_register_gate(NULL, "spdif_out_clk", "spdif_out_mclk", 0,
897 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_SPDIF_OUT_CLK_ENB, 899 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_SPDIF_OUT_CLK_ENB,
898 0, &_lock); 900 0, &_lock);
899 clk_register_clkdev(clk, NULL, "spdif-out"); 901 clk_register_clkdev(clk, NULL, "d0000000.spdif-out");
900 902
901 clk = clk_register_mux(NULL, "spdif_in_mclk", spdif_in_parents, 903 clk = clk_register_mux(NULL, "spdif_in_mclk", spdif_in_parents,
902 ARRAY_SIZE(spdif_in_parents), 0, 904 ARRAY_SIZE(spdif_in_parents), 0,
@@ -907,7 +909,7 @@ void __init spear1340_clk_init(void)
907 clk = clk_register_gate(NULL, "spdif_in_clk", "spdif_in_mclk", 0, 909 clk = clk_register_gate(NULL, "spdif_in_clk", "spdif_in_mclk", 0,
908 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_SPDIF_IN_CLK_ENB, 0, 910 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_SPDIF_IN_CLK_ENB, 0,
909 &_lock); 911 &_lock);
910 clk_register_clkdev(clk, NULL, "spdif-in"); 912 clk_register_clkdev(clk, NULL, "d0100000.spdif-in");
911 913
912 clk = clk_register_gate(NULL, "acp_clk", "acp_mclk", 0, 914 clk = clk_register_gate(NULL, "acp_clk", "acp_mclk", 0,
913 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_ACP_CLK_ENB, 0, 915 SPEAR1340_PERIP2_CLK_ENB, SPEAR1340_ACP_CLK_ENB, 0,
@@ -917,7 +919,7 @@ void __init spear1340_clk_init(void)
917 clk = clk_register_gate(NULL, "plgpio_clk", "plgpio_mclk", 0, 919 clk = clk_register_gate(NULL, "plgpio_clk", "plgpio_mclk", 0,
918 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_PLGPIO_CLK_ENB, 0, 920 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_PLGPIO_CLK_ENB, 0,
919 &_lock); 921 &_lock);
920 clk_register_clkdev(clk, NULL, "plgpio"); 922 clk_register_clkdev(clk, NULL, "e2800000.gpio");
921 923
922 clk = clk_register_gate(NULL, "video_dec_clk", "video_dec_mclk", 0, 924 clk = clk_register_gate(NULL, "video_dec_clk", "video_dec_mclk", 0,
923 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_VIDEO_DEC_CLK_ENB, 925 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_VIDEO_DEC_CLK_ENB,
@@ -937,25 +939,25 @@ void __init spear1340_clk_init(void)
937 clk = clk_register_gate(NULL, "cam0_clk", "cam0_mclk", 0, 939 clk = clk_register_gate(NULL, "cam0_clk", "cam0_mclk", 0,
938 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM0_CLK_ENB, 0, 940 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM0_CLK_ENB, 0,
939 &_lock); 941 &_lock);
940 clk_register_clkdev(clk, NULL, "spear_camif.0"); 942 clk_register_clkdev(clk, NULL, "d0200000.cam0");
941 943
942 clk = clk_register_gate(NULL, "cam1_clk", "cam1_mclk", 0, 944 clk = clk_register_gate(NULL, "cam1_clk", "cam1_mclk", 0,
943 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM1_CLK_ENB, 0, 945 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM1_CLK_ENB, 0,
944 &_lock); 946 &_lock);
945 clk_register_clkdev(clk, NULL, "spear_camif.1"); 947 clk_register_clkdev(clk, NULL, "d0300000.cam1");
946 948
947 clk = clk_register_gate(NULL, "cam2_clk", "cam2_mclk", 0, 949 clk = clk_register_gate(NULL, "cam2_clk", "cam2_mclk", 0,
948 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM2_CLK_ENB, 0, 950 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM2_CLK_ENB, 0,
949 &_lock); 951 &_lock);
950 clk_register_clkdev(clk, NULL, "spear_camif.2"); 952 clk_register_clkdev(clk, NULL, "d0400000.cam2");
951 953
952 clk = clk_register_gate(NULL, "cam3_clk", "cam3_mclk", 0, 954 clk = clk_register_gate(NULL, "cam3_clk", "cam3_mclk", 0,
953 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM3_CLK_ENB, 0, 955 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_CAM3_CLK_ENB, 0,
954 &_lock); 956 &_lock);
955 clk_register_clkdev(clk, NULL, "spear_camif.3"); 957 clk_register_clkdev(clk, NULL, "d0500000.cam3");
956 958
957 clk = clk_register_gate(NULL, "pwm_clk", "pwm_mclk", 0, 959 clk = clk_register_gate(NULL, "pwm_clk", "pwm_mclk", 0,
958 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_PWM_CLK_ENB, 0, 960 SPEAR1340_PERIP3_CLK_ENB, SPEAR1340_PWM_CLK_ENB, 0,
959 &_lock); 961 &_lock);
960 clk_register_clkdev(clk, NULL, "pwm"); 962 clk_register_clkdev(clk, NULL, "e0180000.pwm");
961} 963}
diff --git a/drivers/clk/spear/spear3xx_clock.c b/drivers/clk/spear/spear3xx_clock.c
index 59049cf81a74..417f93734612 100644
--- a/drivers/clk/spear/spear3xx_clock.c
+++ b/drivers/clk/spear/spear3xx_clock.c
@@ -255,7 +255,7 @@ static void __init spear320_clk_init(void)
255 255
256 clk = clk_register_fixed_factor(NULL, "pwm_clk", "ras_ahb_clk", 0, 1, 256 clk = clk_register_fixed_factor(NULL, "pwm_clk", "ras_ahb_clk", 0, 1,
257 1); 257 1);
258 clk_register_clkdev(clk, "pwm", NULL); 258 clk_register_clkdev(clk, NULL, "a8000000.pwm");
259 259
260 clk = clk_register_fixed_factor(NULL, "ssp1_clk", "ras_ahb_clk", 0, 1, 260 clk = clk_register_fixed_factor(NULL, "ssp1_clk", "ras_ahb_clk", 0, 1,
261 1); 261 1);
@@ -275,7 +275,7 @@ static void __init spear320_clk_init(void)
275 275
276 clk = clk_register_fixed_factor(NULL, "i2s_clk", "ras_apb_clk", 0, 1, 276 clk = clk_register_fixed_factor(NULL, "i2s_clk", "ras_apb_clk", 0, 1,
277 1); 277 1);
278 clk_register_clkdev(clk, NULL, "i2s"); 278 clk_register_clkdev(clk, NULL, "a9400000.i2s");
279 279
280 clk = clk_register_mux(NULL, "i2s_ref_clk", i2s_ref_parents, 280 clk = clk_register_mux(NULL, "i2s_ref_clk", i2s_ref_parents,
281 ARRAY_SIZE(i2s_ref_parents), 0, SPEAR320_CONTROL_REG, 281 ARRAY_SIZE(i2s_ref_parents), 0, SPEAR320_CONTROL_REG,
@@ -486,7 +486,9 @@ void __init spear3xx_clk_init(void)
486 /* clock derived from pll3 clk */ 486 /* clock derived from pll3 clk */
487 clk = clk_register_gate(NULL, "usbh_clk", "pll3_clk", 0, PERIP1_CLK_ENB, 487 clk = clk_register_gate(NULL, "usbh_clk", "pll3_clk", 0, PERIP1_CLK_ENB,
488 USBH_CLK_ENB, 0, &_lock); 488 USBH_CLK_ENB, 0, &_lock);
489 clk_register_clkdev(clk, "usbh_clk", NULL); 489 clk_register_clkdev(clk, NULL, "e1800000.ehci");
490 clk_register_clkdev(clk, NULL, "e1900000.ohci");
491 clk_register_clkdev(clk, NULL, "e2100000.ohci");
490 492
491 clk = clk_register_fixed_factor(NULL, "usbh.0_clk", "usbh_clk", 0, 1, 493 clk = clk_register_fixed_factor(NULL, "usbh.0_clk", "usbh_clk", 0, 1,
492 1); 494 1);
@@ -498,7 +500,7 @@ void __init spear3xx_clk_init(void)
498 500
499 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB, 501 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB,
500 USBD_CLK_ENB, 0, &_lock); 502 USBD_CLK_ENB, 0, &_lock);
501 clk_register_clkdev(clk, NULL, "designware_udc"); 503 clk_register_clkdev(clk, NULL, "e1100000.usbd");
502 504
503 /* clock derived from ahb clk */ 505 /* clock derived from ahb clk */
504 clk = clk_register_fixed_factor(NULL, "ahbmult2_clk", "ahb_clk", 0, 2, 506 clk = clk_register_fixed_factor(NULL, "ahbmult2_clk", "ahb_clk", 0, 2,
@@ -546,7 +548,7 @@ void __init spear3xx_clk_init(void)
546 /* clock derived from apb clk */ 548 /* clock derived from apb clk */
547 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB, 549 clk = clk_register_gate(NULL, "adc_clk", "apb_clk", 0, PERIP1_CLK_ENB,
548 ADC_CLK_ENB, 0, &_lock); 550 ADC_CLK_ENB, 0, &_lock);
549 clk_register_clkdev(clk, NULL, "adc"); 551 clk_register_clkdev(clk, NULL, "d0080000.adc");
550 552
551 clk = clk_register_gate(NULL, "gpio0_clk", "apb_clk", 0, PERIP1_CLK_ENB, 553 clk = clk_register_gate(NULL, "gpio0_clk", "apb_clk", 0, PERIP1_CLK_ENB,
552 GPIO_CLK_ENB, 0, &_lock); 554 GPIO_CLK_ENB, 0, &_lock);
diff --git a/drivers/clk/spear/spear6xx_clock.c b/drivers/clk/spear/spear6xx_clock.c
index a98d0866f541..c7fa67c7c0ab 100644
--- a/drivers/clk/spear/spear6xx_clock.c
+++ b/drivers/clk/spear/spear6xx_clock.c
@@ -261,11 +261,13 @@ void __init spear6xx_clk_init(void)
261 /* clock derived from pll3 clk */ 261 /* clock derived from pll3 clk */
262 clk = clk_register_gate(NULL, "usbh0_clk", "pll3_clk", 0, 262 clk = clk_register_gate(NULL, "usbh0_clk", "pll3_clk", 0,
263 PERIP1_CLK_ENB, USBH0_CLK_ENB, 0, &_lock); 263 PERIP1_CLK_ENB, USBH0_CLK_ENB, 0, &_lock);
264 clk_register_clkdev(clk, NULL, "usbh.0_clk"); 264 clk_register_clkdev(clk, NULL, "e1800000.ehci");
265 clk_register_clkdev(clk, NULL, "e1900000.ohci");
265 266
266 clk = clk_register_gate(NULL, "usbh1_clk", "pll3_clk", 0, 267 clk = clk_register_gate(NULL, "usbh1_clk", "pll3_clk", 0,
267 PERIP1_CLK_ENB, USBH1_CLK_ENB, 0, &_lock); 268 PERIP1_CLK_ENB, USBH1_CLK_ENB, 0, &_lock);
268 clk_register_clkdev(clk, NULL, "usbh.1_clk"); 269 clk_register_clkdev(clk, NULL, "e2000000.ehci");
270 clk_register_clkdev(clk, NULL, "e2100000.ohci");
269 271
270 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB, 272 clk = clk_register_gate(NULL, "usbd_clk", "pll3_clk", 0, PERIP1_CLK_ENB,
271 USBD_CLK_ENB, 0, &_lock); 273 USBD_CLK_ENB, 0, &_lock);