All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sumit Garg <sumit.garg@linaro.org>
To: Konrad Dybcio <konrad.dybcio@linaro.org>
Cc: u-boot@lists.denx.de, Bhupesh Sharma <bhupesh.sharma@linaro.org>,
	 Dzmitry Sankouski <dsankouski@gmail.com>,
	Ramon Fried <rfried.dev@gmail.com>
Subject: Re: [PATCH 6/7] serial: msm_geni: Use upstream Linux bindings
Date: Fri, 24 Mar 2023 11:43:03 +0530	[thread overview]
Message-ID: <CAFA6WYMJoC-gMvFyMjSKXnTHYd_oJ8GbkayTKGW4Ji=NhbgA3g@mail.gmail.com> (raw)
In-Reply-To: <20230324004040.572525-6-konrad.dybcio@linaro.org>

On Fri, 24 Mar 2023 at 06:10, Konrad Dybcio <konrad.dybcio@linaro.org> wrote:
>
> The name "se" is used in upstream Linux device trees and has been for
> ages, long before this U-Boot-ism was introduced. Same goes for the
> existing compatible. Get rid of that.
>
> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
> ---
>
>  arch/arm/dts/sdm845.dtsi         | 4 ++--
>  drivers/serial/serial_msm_geni.c | 6 ++++--
>  2 files changed, 6 insertions(+), 4 deletions(-)
>
> diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi
> index 607af277f8be..92bdc82177d6 100644
> --- a/arch/arm/dts/sdm845.dtsi
> +++ b/arch/arm/dts/sdm845.dtsi
> @@ -52,10 +52,10 @@
>                 };
>
>                 debug_uart: serial@a84000 {
> -                       compatible = "qcom,msm-geni-uart";
> +                       compatible = "qcom,geni-debug-uart";

With this the custom u-boot DT bindings [1] becomes redundant, we
should remove that as well.

[1] doc/device-tree-bindings/serial/msm-geni-serial.txt

-Sumit

>                         reg = <0xa84000 0x4000>;
>                         reg-names = "se_phys";
> -                       clock-names = "se-clk";
> +                       clock-names = "se";
>                         clocks = <&gcc GCC_QUPV3_WRAP1_S1_CLK>;
>                         pinctrl-names = "default";
>                         pinctrl-0 = <&qup_uart9>;
> diff --git a/drivers/serial/serial_msm_geni.c b/drivers/serial/serial_msm_geni.c
> index 3943ca43e49e..6c9371c4e69d 100644
> --- a/drivers/serial/serial_msm_geni.c
> +++ b/drivers/serial/serial_msm_geni.c
> @@ -189,7 +189,7 @@ static int geni_serial_set_clock_rate(struct udevice *dev, u64 rate)
>         struct clk *clk;
>         int ret;
>
> -       clk = devm_clk_get(dev, "se-clk");
> +       clk = devm_clk_get(dev, "se");
>         if (!clk)
>                 return -EINVAL;
>
> @@ -554,7 +554,9 @@ static int msm_serial_ofdata_to_platdata(struct udevice *dev)
>  }
>
>  static const struct udevice_id msm_serial_ids[] = {
> -       {.compatible = "qcom,msm-geni-uart"}, {}};
> +       { .compatible = "qcom,geni-debug-uart" },
> +       { }
> +};
>
>  U_BOOT_DRIVER(serial_msm_geni) = {
>         .name = "serial_msm_geni",
> --
> 2.40.0
>

  reply	other threads:[~2023-03-24  6:13 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-24  0:40 [PATCH 1/7] mmc: msm_sdhci: Match clocks through "clocks" property Konrad Dybcio
2023-03-24  0:40 ` [PATCH 2/7] serial: msm: " Konrad Dybcio
2023-03-24  6:00   ` Sumit Garg
2023-03-24  9:34     ` Konrad Dybcio
2023-03-24  0:40 ` [PATCH 3/7] serial: msm: Always bind before relocation Konrad Dybcio
2023-03-24  6:04   ` Sumit Garg
2023-03-24  9:35     ` Konrad Dybcio
2023-03-24  0:40 ` [PATCH 4/7] arch: snapdragon: clock: " Konrad Dybcio
2023-03-24  6:06   ` Sumit Garg
2023-03-24 15:24     ` Tom Rini
2023-03-27  5:37       ` Sumit Garg
2023-03-27 16:24         ` Tom Rini
2023-03-24  0:40 ` [PATCH 5/7] arm: snapdragon: pinctrl: " Konrad Dybcio
2023-03-24  6:06   ` Sumit Garg
2023-03-24  0:40 ` [PATCH 6/7] serial: msm_geni: Use upstream Linux bindings Konrad Dybcio
2023-03-24  6:13   ` Sumit Garg [this message]
2023-03-24  9:35     ` Konrad Dybcio
2023-03-24  0:40 ` [PATCH 7/7] arm: Migrate Apple M1 to save_prev_bl_data Konrad Dybcio
2023-03-27 19:31   ` Mark Kettenis
2023-03-28  8:17     ` Konrad Dybcio
2023-03-28 14:30       ` Tom Rini
2023-03-24  5:55 ` [PATCH 1/7] mmc: msm_sdhci: Match clocks through "clocks" property Sumit Garg
2023-03-24  7:05 ` Bhupesh Sharma

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='CAFA6WYMJoC-gMvFyMjSKXnTHYd_oJ8GbkayTKGW4Ji=NhbgA3g@mail.gmail.com' \
    --to=sumit.garg@linaro.org \
    --cc=bhupesh.sharma@linaro.org \
    --cc=dsankouski@gmail.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=rfried.dev@gmail.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.