Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1256549
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Hans de Goede <hdegoede@redhat.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [linux-sunxi] Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI |
| Date | Tue, 27 Oct 2015 09:20:02 +0100 |
| Message-ID | <qo7E6-2QQ-7@gated-at.bofh.it> (permalink) |
| References | <qm4r0-8qy-7@gated-at.bofh.it> <qm4r3-8qy-77@gated-at.bofh.it> <qmP6A-Po-45@gated-at.bofh.it> <qmQci-2mN-5@gated-at.bofh.it> <qn1hn-1Fi-3@gated-at.bofh.it> <qn2Gu-3AV-9@gated-at.bofh.it> <qnXbI-4On-23@gated-at.bofh.it> |
| X-Original-To | Maxime Ripard <maxime.ripard@free-electrons.com>, Jean-Francois Moine <moinejf@free.fr> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Scanned-By | MIMEDefang 2.68 on 10.5.11.27 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jens Kuske <jenskuske@gmail.com>, devicetree@vger.kernel.org, Vishnu Patekar <vishnupatekar0510@gmail.com>, Emilio López <emilio@elopez.com.ar>, Michael Turquette <mturquette@baylibre.com>, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, Chen-Yu Tsai <wens@csie.org>, Rob Herring <robh+dt@kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Linus Walleij <linus.walleij@linaro.org>, linux-arm-kernel@lists.infradead.org |
| X-Original-Date | Tue, 27 Oct 2015 09:12:17 +0100 |
| X-Original-Message-ID | <562F31E1.9070203@redhat.com> |
| X-Original-References | <1445444428-4652-1-git-send-email-jenskuske@gmail.com> <1445444428-4652-2-git-send-email-jenskuske@gmail.com> <20151023181406.GK10947@lukather> <20151023212013.50bcbe4a@OPI2> <20151024071328.GQ10947@lukather> <20151024104749.179dab64@OPI2> <20151026210623.GB10947@lukather> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1256549 |
Show key headers only | View raw
Hi,
On 26-10-15 22:06, Maxime Ripard wrote:
> On Sat, Oct 24, 2015 at 10:47:49AM +0200, Jean-Francois Moine wrote:
>> On Sat, 24 Oct 2015 09:13:28 +0200
>> Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>>
>>> Or simply
>>>
>>> bus_gates {
>>> clocks = <&ahb1>, <&ahb2>;
>>> clock-indices = <5>, <6>, <8>, ...
>>> clock-output-names = "bus_ce", "bus_dma", "bus_mmc0"
>>> };
>>
>> I don't understand: the apb1, apb2, ahb1 and ahb2 clocks may be
>> programmed independently to different frequencies
>
> I don't understand why you're talking about frequencies here.
>
>> and you have to know which of them is the parent of each leaf clock.
>
> Indeed, but that's also doable here. Just not in the DT.
>
>> So, either you hard-code the parents as Jens did in a first proposal,
>> or you define the full list of parents in the DT as in the last
>> proposal, or you use a container per parent in the DT as I proposed.
>>
>> There could be an other solution using the output clock name to define
>> the parent clock:
>>
>> bus_gates {
>> clocks = <&ahb1>, <&ahb2>, <&apb1>, <&apb2>;
>> clock-indices = <5>, <6>, <8>, ...
>> clock-output-names = "ahb1_ce", "ahb1_dma", "ahb1_mmc0"
>> };
>>
>> with the documentation:
>>
>> "the clocks MUST be defined in order: ahb1, ahb2, apb1, apb2."
>>
>> and the code
>>
>> if (strncmp(clock_name, "ahb1", 4) == 0)
>> clk_parent = of_clk_get_parent_name(node, 0);
>> else if (..)
>>
>> but it seems a bit hacky.
>
> It's exactly what I suggested, without the string comparison, but
> relying on the ID instead.
I'm not following you here, what do you mean with "the ID" ?
Regards,
Hans
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 4/6] reset: sunxi: Add compatible for Allwinner H3 bus resets Jens Kuske <jenskuske@gmail.com> - 2015-10-21 18:30 +0200
[PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jens Kuske <jenskuske@gmail.com> - 2015-10-21 18:30 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-22 10:10 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jean-Francois Moine <moinejf@free.fr> - 2015-10-22 10:40 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-22 10:50 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jean-Francois Moine <moinejf@free.fr> - 2015-10-22 11:00 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-22 11:20 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jens Kuske <jenskuske@gmail.com> - 2015-10-22 14:00 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-23 20:10 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jean-Francois Moine <moinejf@free.fr> - 2015-10-22 19:40 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-23 20:20 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jean-Francois Moine <moinejf@free.fr> - 2015-10-23 21:30 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-24 09:20 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Jean-Francois Moine <moinejf@free.fr> - 2015-10-24 10:50 +0200
Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-26 22:10 +0100
Re: [linux-sunxi] Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Hans de Goede <hdegoede@redhat.com> - 2015-10-27 09:20 +0100
Re: [linux-sunxi] Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Hans de Goede <hdegoede@redhat.com> - 2015-10-24 10:50 +0200
Re: [linux-sunxi] Re: [PATCH 5/6] ARM: dts: sunxi: Add Allwinner H3 DTSI Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-26 22:10 +0100
Re: [PATCH 4/6] reset: sunxi: Add compatible for Allwinner H3 bus resets Maxime Ripard <maxime.ripard@free-electrons.com> - 2015-10-22 10:00 +0200
Re: [PATCH 4/6] reset: sunxi: Add compatible for Allwinner H3 bus resets Jens Kuske <jenskuske@gmail.com> - 2015-10-27 18:00 +0100
csiph-web