Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710155 > unrolled thread
| Started by | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| First post | 2017-08-12 06:10 +0200 |
| Last post | 2017-08-12 07:20 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC Chen-Yu Tsai <wens@csie.org> - 2017-08-12 06:10 +0200
Re: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC icenowy@aosc.io - 2017-08-12 07:00 +0200
Re: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC Chen-Yu Tsai <wens@csie.org> - 2017-08-12 07:20 +0200
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2017-08-12 06:10 +0200 |
| Subject | Re: [PATCH v3 08/10] clk: sunxi-ng: support R40 SoC |
| Message-ID | <udvUm-4bG-9@gated-at.bofh.it> |
On Sat, Jul 22, 2017 at 11:00 AM, <icenowy@aosc.io> wrote: > 在 2017-05-29 15:34,Chen-Yu Tsai 写道: >> >> Hi, >> >> On Sat, May 27, 2017 at 06:23:06PM +0800, Icenowy Zheng wrote: [...] >>> + >>> +/* >>> + * For the special bit in gate part, please see the BSP source code at >>> + * >>> https://github.com/BPI-SINOVOIP/BPI-M2U-bsp/blob/master/linux-sunxi/drivers/clk/sunxi/clk-sun8iw11.c#L665 >>> + */ >>> +static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_sata_clk, "pll-sata", >>> + "osc24M", 0x034, >>> + 8, 5, /* N */ >>> + 4, 2, /* K */ >>> + 0, 2, /* M */ >>> + BIT(31) | BIT(14), /* gate */ >>> + BIT(28), /* lock */ >>> + 0); >> >> >> I think this is a somewhat simplified approach. From what I understand >> of the user manual, the SATA clock path look like: >> >> >> [ PLL-PERIPH0-SATA ] -\ >> mux @ 0x34 bit 30 --- gate @ 0x34 bit 14 --- ... >> [ PLL-SATA ] ---------/ >> >> ... from above ... ------\ >> mux @ 0xc8 bit 24 --- gate @ 0xc8 bit 31 >> [ external oscillator ] -/ >> >> If you choose to simplify the implementation, please include a detailed >> note as to why you chose to do so, and the validity of the simplification. > > > I think it can be fully implemented... > > But how should I call the internal clock controlled by the mux @ 0x34 bit > 30? sata-pll-mux? ChenYu
[toc] | [next] | [standalone]
| From | icenowy@aosc.io |
|---|---|
| Date | 2017-08-12 07:00 +0200 |
| Message-ID | <udwGJ-4uj-1@gated-at.bofh.it> |
| In reply to | #1710155 |
在 2017-08-12 12:04,Chen-Yu Tsai 写道: > On Sat, Jul 22, 2017 at 11:00 AM, <icenowy@aosc.io> wrote: >> 在 2017-05-29 15:34,Chen-Yu Tsai 写道: >>> >>> Hi, >>> >>> On Sat, May 27, 2017 at 06:23:06PM +0800, Icenowy Zheng wrote: > > [...] > >>>> + >>>> +/* >>>> + * For the special bit in gate part, please see the BSP source code >>>> at >>>> + * >>>> https://github.com/BPI-SINOVOIP/BPI-M2U-bsp/blob/master/linux-sunxi/drivers/clk/sunxi/clk-sun8iw11.c#L665 >>>> + */ >>>> +static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_sata_clk, "pll-sata", >>>> + "osc24M", 0x034, >>>> + 8, 5, /* N */ >>>> + 4, 2, /* K */ >>>> + 0, 2, /* M */ >>>> + BIT(31) | BIT(14), /* gate */ >>>> + BIT(28), /* lock */ >>>> + 0); >>> >>> >>> I think this is a somewhat simplified approach. From what I >>> understand >>> of the user manual, the SATA clock path look like: >>> >>> >>> [ PLL-PERIPH0-SATA ] -\ >>> mux @ 0x34 bit 30 --- gate @ 0x34 bit 14 --- >>> ... >>> [ PLL-SATA ] ---------/ >>> >>> ... from above ... ------\ >>> mux @ 0xc8 bit 24 --- gate @ 0xc8 bit 31 >>> [ external oscillator ] -/ >>> >>> If you choose to simplify the implementation, please include a >>> detailed >>> note as to why you chose to do so, and the validity of the >>> simplification. >> >> >> I think it can be fully implemented... >> >> But how should I call the internal clock controlled by the mux @ 0x34 >> bit >> 30? > > sata-pll-mux? I choose to call it pll-sata-out, as the mux @ 0x34 bit 30 is called "PLL_OUTPUT_SEL". > > ChenYu > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
[toc] | [prev] | [next] | [standalone]
| From | Chen-Yu Tsai <wens@csie.org> |
|---|---|
| Date | 2017-08-12 07:20 +0200 |
| Message-ID | <udx06-4QR-5@gated-at.bofh.it> |
| In reply to | #1710160 |
On Sat, Aug 12, 2017 at 12:51 PM, <icenowy@aosc.io> wrote: > 在 2017-08-12 12:04,Chen-Yu Tsai 写道: >> >> On Sat, Jul 22, 2017 at 11:00 AM, <icenowy@aosc.io> wrote: >>> >>> 在 2017-05-29 15:34,Chen-Yu Tsai 写道: >>>> >>>> >>>> Hi, >>>> >>>> On Sat, May 27, 2017 at 06:23:06PM +0800, Icenowy Zheng wrote: >> >> >> [...] >> >>>>> + >>>>> +/* >>>>> + * For the special bit in gate part, please see the BSP source code at >>>>> + * >>>>> >>>>> https://github.com/BPI-SINOVOIP/BPI-M2U-bsp/blob/master/linux-sunxi/drivers/clk/sunxi/clk-sun8iw11.c#L665 >>>>> + */ >>>>> +static SUNXI_CCU_NKM_WITH_GATE_LOCK(pll_sata_clk, "pll-sata", >>>>> + "osc24M", 0x034, >>>>> + 8, 5, /* N */ >>>>> + 4, 2, /* K */ >>>>> + 0, 2, /* M */ >>>>> + BIT(31) | BIT(14), /* gate */ >>>>> + BIT(28), /* lock */ >>>>> + 0); >>>> >>>> >>>> >>>> I think this is a somewhat simplified approach. From what I understand >>>> of the user manual, the SATA clock path look like: >>>> >>>> >>>> [ PLL-PERIPH0-SATA ] -\ >>>> mux @ 0x34 bit 30 --- gate @ 0x34 bit 14 --- ... >>>> [ PLL-SATA ] ---------/ >>>> >>>> ... from above ... ------\ >>>> mux @ 0xc8 bit 24 --- gate @ 0xc8 bit 31 >>>> [ external oscillator ] -/ >>>> >>>> If you choose to simplify the implementation, please include a detailed >>>> note as to why you chose to do so, and the validity of the >>>> simplification. >>> >>> >>> >>> I think it can be fully implemented... >>> >>> But how should I call the internal clock controlled by the mux @ 0x34 bit >>> 30? >> >> >> sata-pll-mux? > > > I choose to call it pll-sata-out, as the mux @ 0x34 bit 30 is called > "PLL_OUTPUT_SEL". Cool. Note that the clock names don't really matter for end users. The only place this is visible is debugfs, or if some driver prints it out for debug messages. So the only real requirement is that the name makes some sense to any developers using it, in a way that they can spot if they are using it wrong, like accidentally using a clock for another module, and being able to roughly match it up to the datasheet. ChenYu
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web