public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan@gerhold.net>
To: Sumit Garg <sumit.garg@linaro.org>
Cc: u-boot@lists.denx.de, rfried.dev@gmail.com, peng.fan@nxp.com,
	jh80.chung@samsung.com, sjg@chromium.org, trini@konsulko.com,
	dsankouski@gmail.com, vinod.koul@linaro.org,
	nicolas.dechesne@linaro.org, mworsfold@impinj.com,
	daniel.thompson@linaro.org, pbrobinson@gmail.com
Subject: Re: [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB
Date: Wed, 13 Jul 2022 21:31:50 +0200	[thread overview]
Message-ID: <Ys8dpkALdNZKHyLL@gerhold.net> (raw)
In-Reply-To: <20220712071212.2188390-10-sumit.garg@linaro.org>

Hi Sumit,

On Tue, Jul 12, 2022 at 12:42:12PM +0530, Sumit Garg wrote:
> Add support for Qualcomm QCS404 SoC based evaluation board.
> 
> Features:
> - Qualcomm Snapdragon QCS404 SoC
> - 1GiB RAM
> - 8GiB eMMC, uSD slot
> 
> U-boot is chain loaded by ABL in 64-bit mode as part of boot.img.
> For detailed build and boot instructions, refer to
> doc/board/qualcomm/qcs404.rst.
> 
> Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
> ---
>  arch/arm/dts/Makefile                    |  1 +
>  arch/arm/dts/qcs404-evb-uboot.dtsi       | 24 +++++++
>  arch/arm/dts/qcs404-evb.dts              | 81 ++++++++++++++++++++++++
>  arch/arm/mach-snapdragon/Kconfig         | 11 ++++
>  arch/arm/mach-snapdragon/Makefile        |  2 +
>  arch/arm/mach-snapdragon/sysmap-qcs404.c | 31 +++++++++
>  board/qualcomm/qcs404-evb/Kconfig        | 15 +++++
>  board/qualcomm/qcs404-evb/MAINTAINERS    |  6 ++
>  board/qualcomm/qcs404-evb/Makefile       |  6 ++
>  board/qualcomm/qcs404-evb/qcs404-evb.c   | 33 ++++++++++
>  board/qualcomm/qcs404-evb/qcs404-evb.its | 64 +++++++++++++++++++
>  configs/qcs404evb_defconfig              | 39 ++++++++++++
>  doc/board/qualcomm/index.rst             |  1 +
>  doc/board/qualcomm/qcs404.rst            | 79 +++++++++++++++++++++++
>  include/configs/qcs404-evb.h             | 27 ++++++++
>  15 files changed, 420 insertions(+)
>  create mode 100644 arch/arm/dts/qcs404-evb-uboot.dtsi
>  create mode 100644 arch/arm/dts/qcs404-evb.dts
>  create mode 100644 arch/arm/mach-snapdragon/sysmap-qcs404.c
>  create mode 100644 board/qualcomm/qcs404-evb/Kconfig
>  create mode 100644 board/qualcomm/qcs404-evb/MAINTAINERS
>  create mode 100644 board/qualcomm/qcs404-evb/Makefile
>  create mode 100644 board/qualcomm/qcs404-evb/qcs404-evb.c
>  create mode 100644 board/qualcomm/qcs404-evb/qcs404-evb.its
>  create mode 100644 configs/qcs404evb_defconfig
>  create mode 100644 doc/board/qualcomm/qcs404.rst
>  create mode 100644 include/configs/qcs404-evb.h
> 
> [...]
> diff --git a/arch/arm/dts/qcs404-evb.dts b/arch/arm/dts/qcs404-evb.dts
> new file mode 100644
> index 0000000000..4f0ae20bdb
> --- /dev/null
> +++ b/arch/arm/dts/qcs404-evb.dts
> @@ -0,0 +1,81 @@
> +// SPDX-License-Identifier: GPL-2.0+
> +/*
> + * Qualcomm QCS404 based evaluation board device tree source
> + *
> + * (C) Copyright 2022 Sumit Garg <sumit.garg@linaro.org>
> + */
> +
> +/dts-v1/;
> +
> +#include "skeleton64.dtsi"
> +#include <dt-bindings/gpio/gpio.h>
> +#include <dt-bindings/pinctrl/pinctrl-snapdragon.h>
> +#include <dt-bindings/clock/qcom,gcc-qcs404.h>
> +
> +/ {
> +	model = "Qualcomm Technologies, Inc. QCS404 EVB";
> +	compatible = "qcom,qcs404-evb", "qcom,qcs404";
> +	#address-cells = <0x2>;
> +	#size-cells = <0x2>;
> +
> +	chosen {
> +		stdout-path = "serial0:115200n8";
> +	};
> +
> +	aliases {
> +		serial0 = &debug_uart;
> +	};
> +
> +	memory {
> +		device_type = "memory";
> +		reg = <0 0x80000000 0 0x40000000>;
> +	};
> +
> +	soc {
> +		#address-cells = <0x1>;
> +		#size-cells = <0x1>;
> +		ranges = <0x0 0x0 0x0 0xffffffff>;
> +		compatible = "simple-bus";
> +
> +		pinctrl_north@1300000 {
> +			compatible = "qcom,tlmm-qcs404";
> +			reg = <0x1300000 0x200000>;
> +
> +			blsp1_uart2: uart {
> +				pins = "GPIO_17", "GPIO_18";
> +				function = "blsp_uart2";
> +			};
> +		};
> +

I know you're just following the example of the existing Qualcomm boards
here but I think we should really avoid adding any more custom device
trees that are inconsistent with the official (upstream) Linux bindings.

Many other boards in U-Boot have moved to using the upstream Linux DTs
as-is (with some additions in -u-boot.dtsi) and I think we should do the
same for the Qualcomm boards. Judging from Tom's comments on other
patches (e.g. [1]), this might even be a requirement now?

The SPMI fix I just sent for DB410c/DB820c [2] is a good example why it
is important to have bindings consistent with Linux. Looking at your
patch reminded me that I never sent this fix (thanks!).

Can you check how hard it would be to reuse the upstream QCS404 DT?

Thanks!
Stephan

[1]: https://lore.kernel.org/u-boot/20220601152800.GJ25375@bill-the-cat/
[2]: https://lore.kernel.org/u-boot/20220713191711.4155-1-stephan@gerhold.net/

  reply	other threads:[~2022-07-13 19:32 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-12  7:12 [PATCH v3 0/9] New boards support: db845c and qcs404-evb Sumit Garg
2022-07-12  7:12 ` [PATCH v3 1/9] board: starqltechn: Align DT node overrides with sdm845.dtsi Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 2/9] arm64: dts: sdm845: Remove redundant u-boot DT properties Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 3/9] clocks: sdm845: Import qcom,gcc-sdm845.h Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 4/9] uart: sdm845: Fix debug UART pinmux Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 5/9] board: qualcomm: Add support for dragonboard845c Sumit Garg
2022-07-25 21:21   ` Tom Rini
2023-08-23 23:57   ` Simon Glass
2023-08-24 10:43     ` Sumit Garg
2023-08-28 17:54       ` Simon Glass
2023-08-28 20:23         ` Peter Robinson
2023-08-28 22:09           ` Simon Glass
2023-08-29 10:24             ` Sumit Garg
2023-09-10 23:14               ` Simon Glass
2022-07-12  7:12 ` [PATCH v3 6/9] mmc: msm_sdhci: Add SDCC version 5.0.0 support Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 7/9] pinctrl: qcom: Add pinctrl driver for QCS404 SoC Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 8/9] clocks: qcom: Add clock " Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-12  7:12 ` [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB Sumit Garg
2022-07-13 19:31   ` Stephan Gerhold [this message]
2022-07-14  7:40     ` Sumit Garg
2022-07-14 18:27       ` Stephan Gerhold
2022-07-15 10:24         ` Sumit Garg
2022-07-25 21:21   ` Tom Rini
2022-07-19  5:31 ` [PATCH v3 0/9] New boards support: db845c and qcs404-evb Sumit Garg
2022-07-19 11:01   ` Tom Rini
2022-07-19 11:09     ` Sumit Garg

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=Ys8dpkALdNZKHyLL@gerhold.net \
    --to=stephan@gerhold.net \
    --cc=daniel.thompson@linaro.org \
    --cc=dsankouski@gmail.com \
    --cc=jh80.chung@samsung.com \
    --cc=mworsfold@impinj.com \
    --cc=nicolas.dechesne@linaro.org \
    --cc=pbrobinson@gmail.com \
    --cc=peng.fan@nxp.com \
    --cc=rfried.dev@gmail.com \
    --cc=sjg@chromium.org \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=vinod.koul@linaro.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox