Skip to contentSkip to conversation

clk: at91: sam9x60: Don't use audio PLL

PATCH Superseded Codrin Ciubotariu 2 participants 3 messages Jan 30, 2020 – Jan 31, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clk: at91: sam9x60: Don't use audio PLL

On sam9x60, there is not audio PLL and so I2S and classD have to use one of the best matching parents for their generated clock.

Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
---
 drivers/clk/at91/sam9x60.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/clk/at91/sam9x60.c +2 -4
index 77398aefeb6d..0aeb44fed9de 100644
@@ -144,11 +144,9 @@ static const struct {
 	{ .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
 	{ .n = "flex11_gclk", .id = 32, },
 	{ .n = "flex12_gclk", .id = 33, },
-	{ .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 },
-		.pll = true, },
+	{ .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 }, },
 	{ .n = "pit64b_gclk", .id = 37, },
-	{ .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 },
-		.pll = true, },
+	{ .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 }, },
 	{ .n = "tcb1_gclk",   .id = 45, },
 	{ .n = "dbgu_gclk",   .id = 47, },
 };
Signature · 1 line
2.20.1
#1 lore raw

Hi Codrin,

Quoted 17 lines · Codrin Ciubotariu

On sam9x60, there is not audio PLL and so I2S and classD have to use one of the best matching parents for their generated clock.

Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
---
 drivers/clk/at91/sam9x60.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/clk/at91/sam9x60.c +0 -0
index 77398aefeb6d..0aeb44fed9de 100644
@@ -144,11 +144,9 @@ static const struct {
        { .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
        { .n = "flex11_gclk", .id = 32, },
        { .n = "flex12_gclk", .id = 33, },

drivers/clk/at91/sam9x60.c static const struct { · line 152

Quoted 10 lines
drivers/clk/at91/sam9x60.c +2 -4
-       { .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 },
-               .pll = true, },
+       { .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 }, },
        { .n = "pit64b_gclk", .id = 37, },
-       { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 },
-               .pll = true, },
+       { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 }, },
        { .n = "tcb1_gclk",   .id = 45, },
        { .n = "dbgu_gclk",   .id = 47, },
 };

Please remove also the pll member of:

static const struct {                                                           
        char *n;                                                                
        u8 id;                                                                  
        struct clk_range r;                                                     
        bool pll;                                                               
}                                                      
Quoted 9 lines

--
2.20.1

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#2 lore raw
Quoted 33 lines · On 31.01.2020 12:42, Claudiu Beznea - M18063 wrote:

Hi Codrin,

Quoted 17 lines · Codrin Ciubotariu

On sam9x60, there is not audio PLL and so I2S and classD have to use one of the best matching parents for their generated clock.

Fixes 01e2113de9a5 ("clk: at91: add sam9x60 pmc driver")
---
  drivers/clk/at91/sam9x60.c | 6 ++----
  1 file changed, 2 insertions(+), 4 deletions(-)
drivers/clk/at91/sam9x60.c +0 -0
index 77398aefeb6d..0aeb44fed9de 100644
@@ -144,11 +144,9 @@ static const struct {
         { .n = "sdmmc1_gclk", .id = 26, .r = { .min = 0, .max = 105000000 }, },
         { .n = "flex11_gclk", .id = 32, },
         { .n = "flex12_gclk", .id = 33, },

drivers/clk/at91/sam9x60.c static const struct { · line 152

Quoted 10 lines
drivers/clk/at91/sam9x60.c +2 -4
-       { .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 },
-               .pll = true, },
+       { .n = "i2s_gclk",    .id = 34, .r = { .min = 0, .max = 105000000 }, },
         { .n = "pit64b_gclk", .id = 37, },
-       { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 },
-               .pll = true, },
+       { .n = "classd_gclk", .id = 42, .r = { .min = 0, .max = 100000000 }, },
         { .n = "tcb1_gclk",   .id = 45, },
         { .n = "dbgu_gclk",   .id = 47, },
  };

Please remove also the pll member of:

Quoted 6 lines
static const struct {
         char *n;
         u8 id;
         struct clk_range r;
         bool pll;
}

Sure, will send v2.

Thanks and best regards,
Codrin