Skip to content

Commit 9705596

Browse files
committed
Merge tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux
Pull clk fixes from Stephen Boyd: "One build fix for an Amlogic clk driver and a handful of Allwinner clk driver fixes for some DT bindings and a randconfig build error that all came in this merge window" * tag 'clk-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/clk/linux: clk: sunxi-ng: a64: Export PLL_PERIPH0 clock for the PRCM clk: sunxi-ng: h3: Export PLL_PERIPH0 clock for the PRCM dt-bindings: clock: sunxi-ccu: Add pll-periph to PRCM's needed clocks clk: sunxi-ng: sun5i: Fix ahb_bist_clk definition clk: sunxi-ng: enable SUNXI_CCU_MP for PRCM clk: meson: gxbb: fix build error without RESET_CONTROLLER clk: sunxi-ng: v3s: Fix usb otg device reset bit clk: sunxi-ng: a31: Correct lcd1-ch1 clock register offset
2 parents 865be78 + 949bdfe commit 9705596

File tree

10 files changed

+19
-8
lines changed

10 files changed

+19
-8
lines changed

Documentation/devicetree/bindings/clock/sunxi-ccu.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ Required properties :
2222
- #clock-cells : must contain 1
2323
- #reset-cells : must contain 1
2424

25-
For the PRCM CCUs on H3/A64, one more clock is needed:
25+
For the PRCM CCUs on H3/A64, two more clocks are needed:
26+
- "pll-periph": the SoC's peripheral PLL from the main CCU
2627
- "iosc": the SoC's internal frequency oscillator
2728

2829
Example for generic CCU:
@@ -39,8 +40,8 @@ Example for PRCM CCU:
3940
r_ccu: clock@01f01400 {
4041
compatible = "allwinner,sun50i-a64-r-ccu";
4142
reg = <0x01f01400 0x100>;
42-
clocks = <&osc24M>, <&osc32k>, <&iosc>;
43-
clock-names = "hosc", "losc", "iosc";
43+
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;
44+
clock-names = "hosc", "losc", "iosc", "pll-periph";
4445
#clock-cells = <1>;
4546
#reset-cells = <1>;
4647
};

drivers/clk/meson/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ config COMMON_CLK_MESON8B
1414
config COMMON_CLK_GXBB
1515
bool
1616
depends on COMMON_CLK_AMLOGIC
17+
select RESET_CONTROLLER
1718
help
1819
Support for the clock controller on AmLogic S905 devices, aka gxbb.
1920
Say Y if you want peripherals and CPU frequency scaling to work.

drivers/clk/sunxi-ng/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ config SUN8I_R_CCU
156156
bool "Support for Allwinner SoCs' PRCM CCUs"
157157
select SUNXI_CCU_DIV
158158
select SUNXI_CCU_GATE
159+
select SUNXI_CCU_MP
159160
default MACH_SUN8I || (ARCH_SUNXI && ARM64)
160161

161162
endif

drivers/clk/sunxi-ng/ccu-sun50i-a64.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
#define CLK_PLL_VIDEO0_2X 8
3232
#define CLK_PLL_VE 9
3333
#define CLK_PLL_DDR0 10
34-
#define CLK_PLL_PERIPH0 11
34+
35+
/* PLL_PERIPH0 exported for PRCM */
36+
3537
#define CLK_PLL_PERIPH0_2X 12
3638
#define CLK_PLL_PERIPH1 13
3739
#define CLK_PLL_PERIPH1_2X 14

drivers/clk/sunxi-ng/ccu-sun5i.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static SUNXI_CCU_GATE(ahb_ss_clk, "ahb-ss", "ahb",
243243
static SUNXI_CCU_GATE(ahb_dma_clk, "ahb-dma", "ahb",
244244
0x060, BIT(6), 0);
245245
static SUNXI_CCU_GATE(ahb_bist_clk, "ahb-bist", "ahb",
246-
0x060, BIT(6), 0);
246+
0x060, BIT(7), 0);
247247
static SUNXI_CCU_GATE(ahb_mmc0_clk, "ahb-mmc0", "ahb",
248248
0x060, BIT(8), 0);
249249
static SUNXI_CCU_GATE(ahb_mmc1_clk, "ahb-mmc1", "ahb",

drivers/clk/sunxi-ng/ccu-sun6i-a31.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ static SUNXI_CCU_M_WITH_MUX_GATE(lcd0_ch1_clk, "lcd0-ch1", lcd_ch1_parents,
556556
0x12c, 0, 4, 24, 3, BIT(31),
557557
CLK_SET_RATE_PARENT);
558558
static SUNXI_CCU_M_WITH_MUX_GATE(lcd1_ch1_clk, "lcd1-ch1", lcd_ch1_parents,
559-
0x12c, 0, 4, 24, 3, BIT(31),
559+
0x130, 0, 4, 24, 3, BIT(31),
560560
CLK_SET_RATE_PARENT);
561561

562562
static const char * const csi_sclk_parents[] = { "pll-video0", "pll-video1",

drivers/clk/sunxi-ng/ccu-sun8i-h3.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@
2929
#define CLK_PLL_VIDEO 6
3030
#define CLK_PLL_VE 7
3131
#define CLK_PLL_DDR 8
32-
#define CLK_PLL_PERIPH0 9
32+
33+
/* PLL_PERIPH0 exported for PRCM */
34+
3335
#define CLK_PLL_PERIPH0_2X 10
3436
#define CLK_PLL_GPU 11
3537
#define CLK_PLL_PERIPH1 12

drivers/clk/sunxi-ng/ccu-sun8i-v3s.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ static struct ccu_reset_map sun8i_v3s_ccu_resets[] = {
537537
[RST_BUS_EMAC] = { 0x2c0, BIT(17) },
538538
[RST_BUS_HSTIMER] = { 0x2c0, BIT(19) },
539539
[RST_BUS_SPI0] = { 0x2c0, BIT(20) },
540-
[RST_BUS_OTG] = { 0x2c0, BIT(23) },
540+
[RST_BUS_OTG] = { 0x2c0, BIT(24) },
541541
[RST_BUS_EHCI0] = { 0x2c0, BIT(26) },
542542
[RST_BUS_OHCI0] = { 0x2c0, BIT(29) },
543543

include/dt-bindings/clock/sun50i-a64-ccu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#ifndef _DT_BINDINGS_CLK_SUN50I_A64_H_
4444
#define _DT_BINDINGS_CLK_SUN50I_A64_H_
4545

46+
#define CLK_PLL_PERIPH0 11
47+
4648
#define CLK_BUS_MIPI_DSI 28
4749
#define CLK_BUS_CE 29
4850
#define CLK_BUS_DMA 30

include/dt-bindings/clock/sun8i-h3-ccu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
#ifndef _DT_BINDINGS_CLK_SUN8I_H3_H_
4444
#define _DT_BINDINGS_CLK_SUN8I_H3_H_
4545

46+
#define CLK_PLL_PERIPH0 9
47+
4648
#define CLK_CPUX 14
4749

4850
#define CLK_BUS_CE 20

0 commit comments

Comments
 (0)