All of lore.kernel.org
 help / color / mirror / Atom feed
From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Caleb Connolly <caleb.connolly@linaro.org>
Cc: Sumit Garg <sumit.garg@linaro.org>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Tom Rini <trini@konsulko.com>
Subject: Re: [PATCH v2 8/8] board: add support for Qualcomm SA8155P-ADP board
Date: Mon, 11 Mar 2024 18:23:04 +0000	[thread overview]
Message-ID: <87edcg1vcp.fsf@epam.com> (raw)
In-Reply-To: <0cda2608-856f-4650-92a6-4860a0d7c8b6@linaro.org>


Hi Caleb,

Caleb Connolly <caleb.connolly@linaro.org> writes:

> On 06/03/2024 21:24, Volodymyr Babchuk wrote:
>> 
>> Hi Caleb,
>> 
>> Caleb Connolly <caleb.connolly@linaro.org> writes:
>> 
>> [...]
>>>>>> +};
>>>>>> +
>>>>>> +&tlmm {
>>>>>> +       /* U-Boot pinctrl driver does not understand multiple tiles */
>>>>>> +       reg = <0x0 0x03000000 0x0 0x1000000>;
>>>>>> +       /delete-property/ reg-names;
>>>>>
>>>>> This won't be needed if we can make the tiles offset in the pinctrl
>>>>> driver compatible:
>>>>>
>>>>> #define WEST   0x00000000
>>>>> #define EAST   0x00400000
>>>>> #define NORTH  0x00800000
>>>>> #define SOUTH  0x00C00000
>>>>
>>>> Hmm, I assume that in this case pinctrl driver should map all the four
>>>> tiles independently? Are there guarantees in U-Boot that four separate
>>>> memory regions will be mapped into virtual memory with the same relative
>>>> positions? Linux clearly don't make such guarantees.
>>>
>>> U-Boot doesn't use virtual addresses on arm platforms, it only goes as
>>> far as reading the address from DT, nothing else, so this is totally
>>> fine and is how the other SoCs do it.
>> 
>> For me it looks like we are depending on implementation details
>> knowledge. I.e MMU API does not provide such guarantees, but drivers
>> know how ARM MMU code is working internally and drivers depend on
>> exactly this behavior. But if you are saying that it is totally fine,
>> I'll rework the patch. No big deal. Actually, I already tried this and
>> it is working fine.
>> 
>>>>>> +
>>>>>> +       /* U-Boot ethernet driver wants to drive reset as GPIO */
>>>>>> +       /delete-node/ phy-reset-pins;
>>>>>
>>>>> I suppose this is not needed as phy-reset-pins also configures the pin
>>>>> as GPIO only.
>>>>>
>>>> Well, yes. This also puzzles me up, but for some reason it stops working
>>>> if I leave this node intact. Looks like I need to look at this deeper
>>>> before posting the next version.
>>>
>>> Possibly the pinconf defined in the phy-reset-pins node causes U-Boot to
>>> misbehave, can you check if this patch fixes it (there is a bug in the
>>> line "return msm_gpio_direction_input(dev, gpio);", it should become
>>> just "msm_gpio_direction_input(dev, gpio);").
>>>
>>> I had the exact same issue with the gpio-regulator driver and this was
>>> the solution I ended up going with.
>>>
>>> https://urldefense.com/v3/__https://lore.kernel.org/u-boot/20240131-b4-qcom-livetree-v1-7-4071c0787db0@linaro.org/__;!!GF_29dbcQIUBPA!xFhZe7DKgRbr63sirEJLuH-B0AnGs7jvx8tdJPKLTgFuZ3I3_zpVml7l23G-_vJO_JiUR-wUO4GMPJFcE-8p50H3pf7nbxit$
>>> [lore[.]kernel[.]org]
>> 
>> It is exactly this. With your patch I don't need to /delete-node/
>> anymore. I'll add a comment in the cover message that this series are
>> depended on your patch.
>
> Please can you split the power domain and clock patches into a separate
> series? As I'd like to depend on them for the next revision of my
> series, and we'd otherwise have a cyclical dependency.

Of course.

As I understood, you are interested in "clk: qcom: clear div mask before
assigning a new divider" and "clk: qcom: add support for power domains
uclass", correct?


-- 
WBR, Volodymyr

  reply	other threads:[~2024-03-11 18:23 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-06  0:52 [PATCH v2 0/8] Add support for Qualcomm SA8155-ADP board Volodymyr Babchuk
2024-03-06  0:52 ` [PATCH v2 1/8] qcom: board: validate fdt before trying to use it Volodymyr Babchuk
2024-03-06  6:00   ` Sumit Garg
2024-03-06 11:29   ` Caleb Connolly
2024-03-06  0:52 ` [PATCH v2 2/8] clk: qcom: clear div mask before assigning a new divider Volodymyr Babchuk
2024-03-06  6:00   ` Sumit Garg
2024-03-06  0:52 ` [PATCH v2 3/8] net: dw_eth_qos: add support for Qualcomm SM8150 SoC Volodymyr Babchuk
2024-03-06  6:01   ` Sumit Garg
2024-03-06  0:53 ` [PATCH v2 4/8] clk: qcom: add support for power domains uclass Volodymyr Babchuk
2024-03-06  6:17   ` Sumit Garg
2024-03-06 14:56   ` Caleb Connolly
2024-03-06  0:53 ` [PATCH v2 6/8] pinctrl: qcom: pass pin number to get_function_mux callback Volodymyr Babchuk
2024-03-06  6:21   ` Sumit Garg
2024-03-06  0:53 ` [PATCH v2 5/8] clk: qcom: add driver for SM8150 SoC Volodymyr Babchuk
2024-03-06  6:19   ` Sumit Garg
2024-03-06 14:39   ` Caleb Connolly
2024-07-27 15:09   ` Julius Lehmann
2024-03-06  0:53 ` [PATCH v2 8/8] board: add support for Qualcomm SA8155P-ADP board Volodymyr Babchuk
2024-03-06  5:52   ` Sumit Garg
2024-03-06 19:14     ` Volodymyr Babchuk
2024-03-06 20:26       ` Caleb Connolly
2024-03-06 21:24         ` Volodymyr Babchuk
2024-03-07  7:56           ` Sumit Garg
2024-03-11 15:13           ` Caleb Connolly
2024-03-11 18:23             ` Volodymyr Babchuk [this message]
2024-03-11 18:51               ` Caleb Connolly
2024-03-11 20:11                 ` Volodymyr Babchuk
2024-03-19 21:18                   ` Volodymyr Babchuk
2024-03-20 13:18                     ` Caleb Connolly
2024-03-06 14:29   ` Caleb Connolly
2024-03-06  0:53 ` [PATCH v2 7/8] pinctrl: qcom: add driver for SM8150 SoC Volodymyr Babchuk
2024-03-06 14:31   ` Caleb Connolly

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87edcg1vcp.fsf@epam.com \
    --to=volodymyr_babchuk@epam.com \
    --cc=caleb.connolly@linaro.org \
    --cc=neil.armstrong@linaro.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.