[PATCH v2 2/2] arm: dts: qcom: Sync pinctrl DT nodes with Linux bindings

2022-07-27 Thread Sumit Garg
is inconsistency for Qcom SoCs in order to comply with upstream DT bindings. This is done via removing compatibles from "msm_gpio" driver and via binding to "msm_gpio" driver from pinctrl driver in case "gpio-controller" property is specified for pinctrl node. Sugges

[PATCH v2 1/2] pinctrl: sdm845: Remove redundant CONFIG_SDM845 check

2022-07-27 Thread Sumit Garg
DT compatible is sufficient to make platform specific differentiation, so remove redundant CONFIG_SDM845 check. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/Makefile | 2 +- arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions

[PATCH v2 0/2] Initial step for Linux DT sync on Qcom SoCs

2022-07-27 Thread Sumit Garg
This is an initial step towards achieving complete Linux DT sync on Qcom SoCs/boards. It syncs up DT compatibles for pinctrl and GPIO drivers. Changes in v2: - Separate patch for CONFIG_SDM845 check removal. - Fix pinctrl DT compatibles for db410c and db820c. Sumit Garg (2): pinctrl: sdm845

Re: [PATCH v3 0/9] New boards support: db845c and qcs404-evb

2022-07-19 Thread Sumit Garg
On Tue, 19 Jul 2022 at 16:31, Tom Rini wrote: > > On Tue, Jul 19, 2022 at 11:01:12AM +0530, Sumit Garg wrote: > > Hi Tom, Ramon, > > > > On Tue, 12 Jul 2022 at 12:42, Sumit Garg wrote: > > > > > > Add support for two new boards db845c and qcs404-e

Re: [PATCH v3 0/9] New boards support: db845c and qcs404-evb

2022-07-18 Thread Sumit Garg
Hi Tom, Ramon, On Tue, 12 Jul 2022 at 12:42, Sumit Garg wrote: > > Add support for two new boards db845c and qcs404-evb: > - db845c is a 96boards compliant platform aka RB3 based on Qualcomm > SDM845 SoC. > - qcs404-evb is an evaluation board from Qualcomm based on QCS404 SoC.

Re: [PATCH] arm: dts: qcom: Sync pinctrl DT nodes with Linux bindings

2022-07-18 Thread Sumit Garg
On Sat, 16 Jul 2022 at 18:54, Stephan Gerhold wrote: > > On Fri, Jul 15, 2022 at 03:21:45PM +0530, Sumit Garg wrote: > > On Thu, 14 Jul 2022 at 23:45, Stephan Gerhold wrote: > > > On Thu, Jul 14, 2022 at 01:03:37PM +0530, Sumit Garg wrote: > > > > This is based

Re: [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-15 Thread Sumit Garg
On Thu, 14 Jul 2022 at 23:57, Stephan Gerhold wrote: > > On Thu, Jul 14, 2022 at 01:10:45PM +0530, Sumit Garg wrote: > > On Thu, 14 Jul 2022 at 01:02, Stephan Gerhold wrote: > > > Can you check how hard it would be to reuse the upstream QCS404 DT? > > > > >

Re: [PATCH] arm: dts: qcom: Sync pinctrl DT nodes with Linux bindings

2022-07-15 Thread Sumit Garg
On Thu, 14 Jul 2022 at 23:45, Stephan Gerhold wrote: > > On Thu, Jul 14, 2022 at 01:03:37PM +0530, Sumit Garg wrote: > > Currently for all Qcom SoCs/boards there are separate compatibles for > > GPIO and pinctrl. But this is inconsistent with official (upstream) Linux > >

Re: [PATCH] arm: dts: db410c/db820c: Fix SPMI addresses

2022-07-14 Thread Sumit Garg
t since v2022.01) but I got caught > up in other work and completely forgot about it. I guess no one else > is actively testing U-Boot on DB410c/DB820c. :/ > --- > arch/arm/dts/dragonboard410c.dts | 9 +++-- > arch/arm/dts/dragonboard820c.dts | 11 +++ > 2 files changed, 14 insertio

Re: [PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-14 Thread Sumit Garg
Hi Stephan, On Thu, 14 Jul 2022 at 01:02, Stephan Gerhold wrote: > > 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 QCS40

[PATCH] arm: dts: qcom: Sync pinctrl DT nodes with Linux bindings

2022-07-14 Thread Sumit Garg
is inconsistency for Qcom SoCs in order to comply with upstream DT bindings. This is done via removing compatibles from "msm_gpio" driver and via binding to "msm_gpio" driver from pinctrl driver in case "gpio-controller" property is specified for pinctrl node. Sugges

Re: [PATCH v2 0/9] New boards support: db845c and qcs404-evb

2022-07-12 Thread Sumit Garg
On Tue, 12 Jul 2022 at 13:58, Peng Fan wrote: > > > > On 7/12/2022 1:53 PM, Sumit Garg wrote: > > Hi Peng, > > > > On Tue, 12 Jul 2022 at 06:27, Peng Fan wrote: > >> > >> > >> > >> On 7/8/2022 9:13 PM, Sumit Garg wrote: > >

[PATCH v3 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-12 Thread Sumit Garg
-by: Sumit Garg --- 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

[PATCH v3 8/9] clocks: qcom: Add clock driver for QCS404 SoC

2022-07-12 Thread Sumit Garg
Currently this clock driver initializes clocks for UART and eMMC. Along with this import "qcom,gcc-qcs404.h" header from Linux mainline to support DT bindings. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/clock-qcs404.c | 79 arch/arm/mach-snapdragon/clock-sn

[PATCH v3 6/9] mmc: msm_sdhci: Add SDCC version 5.0.0 support

2022-07-12 Thread Sumit Garg
onfiguring register read/write to msm specific registers. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- drivers/mmc/msm_sdhci.c | 96 +++-- 1 file changed, 64 insertions(+), 32 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdh

[PATCH v3 7/9] pinctrl: qcom: Add pinctrl driver for QCS404 SoC

2022-07-12 Thread Sumit Garg
Currently this pinctrl driver only supports BLSP UART2 specific pin configuration. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/pinctrl-qcs404.c | 55 +++ arch/arm/mach-snapdragon

[PATCH v3 5/9] board: qualcomm: Add support for dragonboard845c

2022-07-12 Thread Sumit Garg
build and boot instructions, refer to doc/board/qualcomm/sdm845.rst, board: dragonboard845c. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/dts/dragonboard845c-uboot.dtsi | 37 +++ arch/arm/dts/dragonboard845c.dts | 44 arch/arm/mach-snapdragon

[PATCH v3 3/9] clocks: sdm845: Import qcom,gcc-sdm845.h

2022-07-12 Thread Sumit Garg
Rather than using magic numbers as clock ids for peripherals import qcom,gcc-sdm845.h from Linux to be used standard macros for clock ids. So start using corresponding clk-id macro for debug UART. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/dts/sdm845.dtsi

[PATCH v3 4/9] uart: sdm845: Fix debug UART pinmux

2022-07-12 Thread Sumit Garg
Configure debug UART pins as function: "qup9" rather than being regular gpios. It fixes a hang seen during pinmux setting. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/dts/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[PATCH v3 2/9] arm64: dts: sdm845: Remove redundant u-boot DT properties

2022-07-12 Thread Sumit Garg
: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/dts/sdm845.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 6f2fb20d68..88030156d9 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -18,7 +18,6

[PATCH v3 1/9] board: starqltechn: Align DT node overrides with sdm845.dtsi

2022-07-12 Thread Sumit Garg
Currently there is a mismatch among DT node overrides in starqltechn board DTS file and the actual DT nodes in the sdm845.dtsi. So fix that to align with DT nodes in sdm845.dtsi. Signed-off-by: Sumit Garg Reviewed-by: Ramon Fried --- arch/arm/dts/starqltechn-uboot.dtsi | 18

[PATCH v3 0/9] New boards support: db845c and qcs404-evb

2022-07-12 Thread Sumit Garg
x27;s review tag for patches 1-7. Changes in v2: - Added patch #1 to fix DT node overrides in starqltechn-uboot.dtsi. - Updated patch #2 commit description. - Fixed a typo (s/96Board/96Boards/) in patch #5. Sumit Garg (9): board: starqltechn: Align DT node overrides with sdm845.dtsi arm64

Re: [PATCH v2 0/9] New boards support: db845c and qcs404-evb

2022-07-11 Thread Sumit Garg
Hi Peng, On Tue, 12 Jul 2022 at 06:27, Peng Fan wrote: > > > > On 7/8/2022 9:13 PM, Sumit Garg wrote: > > Add support for two new boards db845c and qcs404-evb: > > - db845c is a 96boards compliant platform aka RB3 based on Qualcomm > >SDM845 SoC. > > - qc

Re: [PATCH v2 8/9] clocks: qcom: Add clock driver for QCS404 SoC

2022-07-11 Thread Sumit Garg
Hi Ramon, Thanks for your review. On Mon, 11 Jul 2022 at 20:08, Ramon Fried wrote: > > On Fri, Jul 8, 2022 at 4:14 PM Sumit Garg wrote: > > > > Currently its a dummy clock driver as clocks for UART and eMMC have been > > already enabled by ABL. Along with this import &q

[PATCH v2 9/9] board: qualcomm: Add support for QCS404 EVB

2022-07-08 Thread Sumit Garg
-by: Sumit Garg --- 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

[PATCH v2 8/9] clocks: qcom: Add clock driver for QCS404 SoC

2022-07-08 Thread Sumit Garg
Currently its a dummy clock driver as clocks for UART and eMMC have been already enabled by ABL. Along with this import "qcom,gcc-qcs404.h" header from Linux mainline to support DT bindings. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/clock-qcs404.c | 30 arc

[PATCH v2 7/9] pinctrl: qcom: Add pinctrl driver for QCS404 SoC

2022-07-08 Thread Sumit Garg
Currently this pinctrl driver only supports BLSP UART2 specific pin configuration. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/pinctrl-qcs404.c | 55 +++ arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1

[PATCH v2 6/9] mmc: msm_sdhci: Add SDCC version 5.0.0 support

2022-07-08 Thread Sumit Garg
onfiguring register read/write to msm specific registers. Signed-off-by: Sumit Garg --- drivers/mmc/msm_sdhci.c | 96 +++-- 1 file changed, 64 insertions(+), 32 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index d63d7b3a2c..604f9c3ff9 10

[PATCH v2 5/9] board: qualcomm: Add support for dragonboard845c

2022-07-08 Thread Sumit Garg
build and boot instructions, refer to doc/board/qualcomm/sdm845.rst, board: dragonboard845c. Signed-off-by: Sumit Garg --- arch/arm/dts/dragonboard845c-uboot.dtsi | 37 +++ arch/arm/dts/dragonboard845c.dts | 44 arch/arm/mach-snapdragon/Kconfig | 14

[PATCH v2 4/9] uart: sdm845: Fix debug UART pinmux

2022-07-08 Thread Sumit Garg
Configure debug UART pins as function: "qup9" rather than being regular gpios. It fixes a hang seen during pinmux setting. Signed-off-by: Sumit Garg --- arch/arm/dts/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/

[PATCH v2 3/9] clocks: sdm845: Import qcom,gcc-sdm845.h

2022-07-08 Thread Sumit Garg
Rather than using magic numbers as clock ids for peripherals import qcom,gcc-sdm845.h from Linux to be used standard macros for clock ids. So start using corresponding clk-id macro for debug UART. Signed-off-by: Sumit Garg --- arch/arm/dts/sdm845.dtsi| 3 +- arch/arm/mach

[PATCH v2 2/9] arm64: dts: sdm845: Remove redundant u-boot DT properties

2022-07-08 Thread Sumit Garg
: Sumit Garg --- arch/arm/dts/sdm845.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 6f2fb20d68..88030156d9 100644 --- a/arch/arm/dts/sdm845.dtsi +++ b/arch/arm/dts/sdm845.dtsi @@ -18,7 +18,6 @@ compatible = "s

[PATCH v2 1/9] board: starqltechn: Align DT node overrides with sdm845.dtsi

2022-07-08 Thread Sumit Garg
Currently there is a mismatch among DT node overrides in starqltechn board DTS file and the actual DT nodes in the sdm845.dtsi. So fix that to align with DT nodes in sdm845.dtsi. Signed-off-by: Sumit Garg --- arch/arm/dts/starqltechn-uboot.dtsi | 18 -- arch/arm/dts

[PATCH v2 0/9] New boards support: db845c and qcs404-evb

2022-07-08 Thread Sumit Garg
patch #2 commit description. - Fixed a typo (s/96Board/96Boards/) in patch #5. Sumit Garg (9): board: starqltechn: Align DT node overrides with sdm845.dtsi arm64: dts: sdm845: Remove redundant u-boot DT properties clocks: sdm845: Import qcom,gcc-sdm845.h uart: sdm845: Fix debug UART pinmux

Re: [PATCH 4/8] board: qualcomm: Add support for dragonboard845c

2022-07-04 Thread Sumit Garg
Hi Daniel, On Mon, 4 Jul 2022 at 21:36, Daniel Thompson wrote: > > On Mon, Jul 04, 2022 at 06:28:41PM +0530, Sumit Garg wrote: > > diff --git a/arch/arm/dts/dragonboard845c-uboot.dtsi > > b/arch/arm/dts/dragonboard845c-uboot.dtsi > > new file mode 100644 > >

Re: [PATCH 1/8] arm64: dts: sdm845: Remove redundant u-boot DT properties

2022-07-04 Thread Sumit Garg
Hi Daniel, Thanks for your review. On Mon, 4 Jul 2022 at 21:28, Daniel Thompson wrote: > > On Mon, Jul 04, 2022 at 06:28:38PM +0530, Sumit Garg wrote: > > U-boot specific DT properties belong to *-uboot.dtsi > > ... and are already included in starqltechn-uboot.dtsi (which is

Re: [PATCH 0/8] New boards support: db845c and qcs404-evb

2022-07-04 Thread Sumit Garg
ing etc. Please follow documentation added/updated by this patch-set [1] [2]. [1] doc/board/qualcomm/sdm845.rst [2] doc/board/qualcomm/qcs404.rst -Sumit > > Peter > > > Sumit Garg (8): > > arm64: dts: sdm845: Remove redundant u-boot DT properties > > clocks: sdm84

[PATCH 8/8] board: qualcomm: Add support for QCS404 EVB

2022-07-04 Thread Sumit Garg
-by: Sumit Garg --- 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

[PATCH 7/8] clocks: qcom: Add clock driver for QCS404 SoC

2022-07-04 Thread Sumit Garg
Currently its a dummy clock driver as clocks for UART and eMMC have been already enabled by ABL. Along with this import "qcom,gcc-qcs404.h" header from Linux mainline to support DT bindings. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/clock-qcs404.c | 30 arc

[PATCH 6/8] pinctrl: qcom: Add pinctrl driver for QCS404 SoC

2022-07-04 Thread Sumit Garg
Currently this pinctrl driver only supports BLSP UART2 specific pin configuration. Signed-off-by: Sumit Garg --- arch/arm/mach-snapdragon/Makefile | 1 + arch/arm/mach-snapdragon/pinctrl-qcs404.c | 55 +++ arch/arm/mach-snapdragon/pinctrl-snapdragon.c | 1

[PATCH 5/8] mmc: msm_sdhci: Add SDCC version 5.0.0 support

2022-07-04 Thread Sumit Garg
onfiguring register read/write to msm specific registers. Signed-off-by: Sumit Garg --- drivers/mmc/msm_sdhci.c | 96 +++-- 1 file changed, 64 insertions(+), 32 deletions(-) diff --git a/drivers/mmc/msm_sdhci.c b/drivers/mmc/msm_sdhci.c index d63d7b3a2c..604f9c3ff9 10

[PATCH 4/8] board: qualcomm: Add support for dragonboard845c

2022-07-04 Thread Sumit Garg
build and boot instructions, refer to doc/board/qualcomm/sdm845.rst, board: dragonboard845c. Signed-off-by: Sumit Garg --- arch/arm/dts/dragonboard845c-uboot.dtsi | 37 +++ arch/arm/dts/dragonboard845c.dts | 44 arch/arm/mach-snapdragon/Kconfig | 14

[PATCH 3/8] uart: sdm845: Fix debug UART pinmux

2022-07-04 Thread Sumit Garg
Configure debug UART pins as function: "qup9" rather than being regular gpios. It fixes a hang seen during pinmux setting. Signed-off-by: Sumit Garg --- arch/arm/dts/sdm845.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/

[PATCH 2/8] clocks: sdm845: Import qcom,gcc-sdm845.h

2022-07-04 Thread Sumit Garg
Rather than using magic numbers as clock ids for peripherals import qcom,gcc-sdm845.h from Linux to be used standard macros for clock ids. So start using corresponding clk-id macro for debug UART. Signed-off-by: Sumit Garg --- arch/arm/dts/sdm845.dtsi| 3 +- arch/arm/mach

[PATCH 1/8] arm64: dts: sdm845: Remove redundant u-boot DT properties

2022-07-04 Thread Sumit Garg
U-boot specific DT properties belong to *-uboot.dtsi, so remove corresponding redundant properties. Signed-off-by: Sumit Garg --- arch/arm/dts/sdm845.dtsi | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/dts/sdm845.dtsi b/arch/arm/dts/sdm845.dtsi index 6f2fb20d68..88030156d9

[PATCH 0/8] New boards support: db845c and qcs404-evb

2022-07-04 Thread Sumit Garg
via Android Boot Loader (ABL) which is an EFI application. Sumit Garg (8): arm64: dts: sdm845: Remove redundant u-boot DT properties clocks: sdm845: Import qcom,gcc-sdm845.h uart: sdm845: Fix debug UART pinmux board: qualcomm: Add support for dragonboard845c mmc: msm_sdhci: Add SDCC

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Sumit Garg
+ tee-dev ML On Tue, 12 Feb 2019 at 17:36, Alexander Graf wrote: > > On 02/12/2019 12:34 PM, Heinrich Schuchardt wrote: > > On 2/12/19 10:49 AM, Alexander Graf wrote: > >> On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: > >>> Hello Alex, hello Takahiro, > >>> > >>> this morning I met Daniel Th

Re: [U-Boot] [RFC] efi_loader: EFI variables

2019-02-12 Thread Sumit Garg
On Tue, 12 Feb 2019 at 21:45, Daniel Thompson wrote: > > On Tue, Feb 12, 2019 at 12:34:29PM +0100, Heinrich Schuchardt wrote: > > On 2/12/19 10:49 AM, Alexander Graf wrote: > > > On 02/03/2019 07:32 PM, Heinrich Schuchardt wrote: > > >> Hello Alex, hello Takahiro, > > >> > > >> this morning I met

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-12-12 Thread Sumit Garg
On Wed, 12 Dec 2018 at 13:07, Takahiro Akashi wrote: > > On Wed, Dec 12, 2018 at 12:14:27PM +0530, Sumit Garg wrote: > > On Wed, 12 Dec 2018 at 07:09, Takahiro Akashi > > wrote: > > > > > > On Tue, Dec 11, 2018 at 06:04:05PM +0530, Sumit Garg wrote: > &g

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-12-11 Thread Sumit Garg
On Wed, 12 Dec 2018 at 07:09, Takahiro Akashi wrote: > > On Tue, Dec 11, 2018 at 06:04:05PM +0530, Sumit Garg wrote: > > On Mon, 26 Nov 2018 at 16:51, Sumit Garg wrote: > > > > > > Currently on qemu-arm platforms environment is kept in RAM. Instead > > > us

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-12-11 Thread Sumit Garg
On Mon, 26 Nov 2018 at 16:51, Sumit Garg wrote: > > Currently on qemu-arm platforms environment is kept in RAM. Instead > use pflash device 1 to provide persistent environment support across > device reset. > > Also (optionally) provide support for persistent environment across

Re: [U-Boot] [PATCH v2] qemu-arm: Enable VirtIO distro target

2018-12-11 Thread Sumit Garg
Hi Tom, On Tue, 13 Nov 2018 at 14:33, Alexander Graf wrote: > > > > On 13.11.18 05:51, Sumit Garg wrote: > > With -device virtio-blk-device,drive=hd0, it could detect distro boot > > target. > > > > Signed-off-by: Sumit Garg > > Reviewed-by: Alexa

Re: [U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support

2018-12-07 Thread Sumit Garg
On Fri, 7 Dec 2018 at 07:56, Takahiro Akashi wrote: > > # My patch is more or less a RFC to raise attention. > > On Wed, Dec 05, 2018 at 11:53:42AM +0530, Sumit Garg wrote: > > Hi Akashi, > > > > On Wed, 28 Nov 2018 at 11:28, AKASHI Takahiro > > wrote: > &

Re: [U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support

2018-12-04 Thread Sumit Garg
Hi Akashi, On Wed, 28 Nov 2018 at 11:28, AKASHI Takahiro wrote: > > As the subject suggested, this patch set allows any efi variable to be > volatile or non-volatile as UEFI specification describes. > > With my efishell patch[1] with patch #2, you can try as follows: > => efi setvar PlatformLan

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-11-27 Thread Sumit Garg
On Tue, 27 Nov 2018 at 13:44, Takahiro Akashi wrote: > > On Tue, Nov 27, 2018 at 01:11:44PM +0530, Sumit Garg wrote: > > Hi Akashi, > > > > On Tue, 27 Nov 2018 at 12:14, AKASHI Takahiro > > wrote: > > > > > > Sumit, > > > > > >

Re: [U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-11-26 Thread Sumit Garg
Hi Akashi, On Tue, 27 Nov 2018 at 12:14, AKASHI Takahiro wrote: > > Sumit, > > # I have a similar patch in my local branch :) > IIRC, we did sync on this work. > On Mon, Nov 26, 2018 at 04:50:17PM +0530, Sumit Garg wrote: > > Currently on qemu-arm platforms environment

[U-Boot] [PATCH] qemu-arm: Add persistent environment support

2018-11-26 Thread Sumit Garg
qemu-img: qemu-img create -f raw envstore.img 64M - Add a pflash drive parameter to the command line: -drive if=pflash,format=raw,index=1,file=envstore.img Signed-off-by: Sumit Garg --- configs/qemu_arm64_defconfig | 7 +++ configs/qemu_arm_defconfig | 7 +++ doc/README.qemu

[U-Boot] [PATCH v2] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
With -device virtio-blk-device,drive=hd0, it could detect distro boot target. Signed-off-by: Sumit Garg --- Changes in v2: Change boot order to SCSI; VIRTIO; DHCP as DHCP is quiet slow, so kept as last boot option. Depends on https://patchwork.ozlabs.org/patch/995524/ which adds VirtIO distro

Re: [U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
Hi Tuomas, On Tue, 13 Nov 2018 at 00:23, Tuomas Tynkkynen wrote: > > Hi Sumit, > > On Mon, 12 Nov 2018 15:29:08 +0530 > Sumit Garg wrote: > > > With -device virtio-blk-device,drive=hd0, it could detect distro boot > > target. > > > > Signed-off-by:

[U-Boot] [PATCH] qemu-arm: Enable VirtIO distro target

2018-11-12 Thread Sumit Garg
With -device virtio-blk-device,drive=hd0, it could detect distro boot target. Signed-off-by: Sumit Garg --- Depends on https://patchwork.ozlabs.org/patch/995524/ which adds VirtIO distro boot command. include/configs/qemu-arm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

Re: [U-Boot] [PATCH v3 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Sumit Garg
e with the PSCI firmware > driver. > > As the same HVC/SMC problem is also evident for the ARMv8 poweroff command > let's move it into the same code module. > > Signed-off-by: Heinrich Schuchardt Apart from last comment regarding "reset_misc()" api, I think i

Re: [U-Boot] [PATCH v2 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Sumit Garg
On Mon, 15 Oct 2018 at 22:00, Heinrich Schuchardt wrote: > > On 10/15/2018 09:34 AM, Sumit Garg wrote: > > On Sat, 13 Oct 2018 at 12:42, Heinrich Schuchardt > > wrote: > >> > >> When an operating system started via bootefi tries to reset or power off > >

Re: [U-Boot] [PATCH v2 1/1] efi_loader: PSCI reset and shutdown

2018-10-15 Thread Sumit Garg
On Sat, 13 Oct 2018 at 12:42, Heinrich Schuchardt wrote: > > When an operating system started via bootefi tries to reset or power off > this is done by calling the EFI runtime ResetSystem(). On most ARMv8 system > the actual reset relies on PSCI. Depending on whether the PSCI firmware > resides th

Re: [U-Boot] [PATCH 1/1] efi_loader: PSCI reset and shutdown for EL1

2018-10-11 Thread Sumit Garg
On Thu, 11 Oct 2018 at 17:50, Sumit Garg wrote: > > On Thu, 11 Oct 2018 at 08:56, Heinrich Schuchardt wrote: > > > > When starting an aarch64 system under QEMU it runs in EL1/EL0. So we have > > to use HVC for PSCI calls. > > > > Without the patch resett

Re: [U-Boot] [PATCH 1/1] efi_loader: PSCI reset and shutdown for EL1

2018-10-11 Thread Sumit Garg
> > Signed-off-by: Heinrich Schuchardt > --- > arch/arm/cpu/armv8/fwcall.c | 14 +- > 1 file changed, 9 insertions(+), 5 deletions(-) > I too was facing this crash and got it fixed before I saw this patch today. Tested-by: Sumit Garg > diff --git a/arch/arm/cpu/armv8

[U-Boot] [PATCH v2] armv8: sec_firmware: Add support for multiple loadables

2018-04-23 Thread Sumit Garg
Enable support for multiple loadable images in SEC firmware FIT image. Also add example "sec_firmware_ppa.its" file. Signed-off-by: Sumit Garg --- Changes in v2: Added example "sec_firmware_ppa.its" file. Also added printf instead of debug in case of error scenario.

Re: [U-Boot] [PATCH v2] arm64: ls1012ardb: Add distro secure boot support

2018-01-30 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, January 30, 2018 2:57 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai > Subject: Re: [PATCH v2] arm64: ls1012ardb: Add distro secure boot support > > On

Re: [U-Boot] [PATCH] armv8: sec_firmware: Add support for multiple loadables

2018-01-15 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Monday, January 15, 2018 10:43 PM > > On 01/15/2018 09:09 AM, Sumit Garg wrote: > >> From: York Sun > >> Sent: Monday, January 15, 2018 10:16 PM > >> > >> On 01/14/2018 08:55 PM, Sumit Gar

Re: [U-Boot] [PATCH v2] arm64: ls1012ardb: Add distro secure boot support

2018-01-15 Thread Sumit Garg
> From: York Sun > Sent: Monday, January 15, 2018 10:59 PM > > On 01/08/2018 09:59 PM, Sumit Garg wrote: > > From: Vinitha Pillai-B57223 > > > > Enable validation of boot.scr script prior to its execution dependent > > on "secureboot" flag in environ

Re: [U-Boot] [PATCH] armv8: sec_firmware: Add support for multiple loadables

2018-01-15 Thread Sumit Garg
> From: York Sun > Sent: Monday, January 15, 2018 10:16 PM > > On 01/14/2018 08:55 PM, Sumit Garg wrote: > > Enable support for multiple loadable images in SEC firmware FIT image. > > > > Signed-off-by: Sumit Garg > > --- > &g

[U-Boot] [PATCH] armv8: sec_firmware: Add support for multiple loadables

2018-01-14 Thread Sumit Garg
Enable support for multiple loadable images in SEC firmware FIT image. Signed-off-by: Sumit Garg --- arch/arm/cpu/armv8/sec_firmware.c | 51 +++ 1 file changed, 41 insertions(+), 10 deletions(-) diff --git a/arch/arm/cpu/armv8/sec_firmware.c b/arch/arm/cpu

Re: [U-Boot] [PATCH v2 3/3] ls1088ardb: Add SD Secure boot target support

2018-01-10 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Thursday, January 11, 2018 1:03 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Ashish Kumar ; > Udit Agarwal > Subject: Re: [PATCH v2 3/3] ls1088ardb: Add SD Secure boot targ

[U-Boot] [PATCH v2] arm64: ls1012ardb: Add distro secure boot support

2018-01-08 Thread Sumit Garg
From: Vinitha Pillai-B57223 Enable validation of boot.scr script prior to its execution dependent on "secureboot" flag in environment. Enable fall back option to qspi boot in case of secure boot. Signed-off-by: Sumit Garg Signed-off-by: Vinitha Pillai --- Changes in v2: Rebased

[U-Boot] [PATCH v3] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

2018-01-08 Thread Sumit Garg
As part of chain of trust with confidentiality along with distro boot, linux kernel image needs to be stored in encrypted form on ext4 boot partition. So enable CONFIG_CMD_EXT4_WRITE in case of Secure boot on ARM based platforms. Signed-off-by: Sumit Garg Reviewed-by: Tom Rini --- Changes in

Re: [U-Boot] [PATCH v3] crypto/fsl: fix BLOB encapsulation and decapsulation

2018-01-07 Thread Sumit Garg
> -Original Message- > From: Clemens Gruber [mailto:clemens.gru...@pqgruber.com] > Sent: Monday, January 08, 2018 12:56 AM > To: York Sun > Cc: u-boot@lists.denx.de; Fabio Estevam ; Tom Rini > ; Vini Pillai ; Ruchika Gupta > ; Breno Matheus Lima ; > Fabio Estev

Re: [U-Boot] [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction

2018-01-05 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Friday, January 05, 2018 9:40 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Ruchika Gupta > > Subject: Re: [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction > > On 01/05/2018

Re: [U-Boot] [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction

2018-01-05 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Friday, January 05, 2018 9:26 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Ruchika Gupta > > Subject: Re: [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction > > On 08/30/2017

[U-Boot] [PATCH v2 3/3] ls1088ardb: Add SD Secure boot target support

2018-01-05 Thread Sumit Garg
Signed-off-by: Udit Agarwal Signed-off-by: Sumit Garg --- Changes in v2: Rebased to top of master arch/arm/include/asm/fsl_secure_boot.h | 16 board/freescale/ls1088a/MAINTAINERS| 5 +++ .../ls1088ardb_sdcard_qspi_SECURE_BOOT_defconfig | 45

[U-Boot] [PATCH v2 2/3] armv8: ls1088a: SPL size reduction

2018-01-05 Thread Sumit Garg
/ls1088a/ls1088a.c to keep board_early_init_f funcations in case of SPL build. 3. Changes in ls1088a_common.h & ls1088ardb.h to remove driver specific macros due to which static data was being compiled in case of SPL build. Signed-off-by: Sumit Garg --- Changes in v2: Removed code spec

[U-Boot] [PATCH v2 1/3] armv8: fsl-layerscape: SPL size reduction

2018-01-05 Thread Sumit Garg
Compile-off mp.c and libfdt.c in case of SPL build. SPL size reduces by approx 2k. Signed-off-by: Sumit Garg --- Changes in v2: Removed code specific to D-Cache off. With GCC 6.2 tool-chain, able to reduce size to 79K. arch/arm/cpu/armv8/fsl-layerscape/Makefile | 2 ++ 1 file changed, 2

Re: [U-Boot] [PATCH] armv8: ls1088ardb: Put distro boot functions under CONFIG_SPL_BUILD

2018-01-05 Thread Sumit Garg
Hi Ashish, Changes in below patch are already part of following patch already in upstream. https://patchwork.ozlabs.org/patch/806983/ Regards, Sumit > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Ashish > Kumar > Sent: Friday, January 05, 2018 5:0

Re: [U-Boot] [PATCH v2] crypto/fsl: fix BLOB encapsulation and decapsulation

2018-01-05 Thread Sumit Garg
> From: Clemens Gruber [mailto:clemens.gru...@pqgruber.com] > Sent: Friday, January 05, 2018 6:32 PM > > Hi Sumit, Fabio, York, > > On Fri, Jan 05, 2018 at 06:47:36AM +, Sumit Garg wrote: > > Hi Clemens, York, Fabio, > > > > > -Original Message-

Re: [U-Boot] [PATCH v2] crypto/fsl: fix BLOB encapsulation and decapsulation

2018-01-04 Thread Sumit Garg
Hi Clemens, York, Fabio, > -Original Message- > From: U-Boot [mailto:u-boot-boun...@lists.denx.de] On Behalf Of Fabio > Estevam > Sent: Friday, January 05, 2018 3:27 AM > To: York Sun > Cc: Breno Matheus Lima ; u-boot@lists.denx.de; > clemens.gru...@pqgruber.com; Fabio Estevam > Subject:

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-11-30 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Thursday, November 30, 2017 12:07 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Ashish Kumar > Subject: Re: [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction > > On 10/0

Re: [U-Boot] [PATCH] arm64: ls1012ardb: Add distro secure boot support

2017-10-30 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, October 31, 2017 3:51 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > > Subject: Re: [PATCH] arm64: ls1012ardb: Add distro secure boot support > > On 09/07/2017

Re: [U-Boot] [PATCH 2/2] armv8: sec_firmware: Add support for loadables in FIT

2017-10-24 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, October 24, 2017 8:00 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Z.q. Hou ; Pankaj > Gupta ; Arun Pathak ; Sahil > Malhotra > Subject: Re: [PATCH 2/2] armv8: se

Re: [U-Boot] [PATCH 2/2] armv8: sec_firmware: Add support for loadables in FIT

2017-10-23 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, October 24, 2017 2:51 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Z.q. Hou ; Pankaj > Gupta ; Arun Pathak ; Sahil > Malhotra > Subject: Re: [PATCH 2/2] armv8: se

Re: [U-Boot] [PATCH 1/2] armv8: layerscape: Allocate 66 MB DDR for secure memory

2017-10-23 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, October 24, 2017 2:36 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Z.q. Hou ; Pankaj > Gupta ; Arun Pathak ; Sahil > Malhotra > Subject: Re: [PATCH 1/2] armv8: lay

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-10-05 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Thursday, October 05, 2017 12:12 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Ashish Kumar > Subject: Re: [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction > > On 10/0

Re: [U-Boot] [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction

2017-10-03 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Friday, September 15, 2017 2:08 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > > Subject: Re: [PATCH 1/3] armv8: fsl-layerscape: SPL size reduction > > On 08/29/2017 12:01 AM,

[U-Boot] [PATCH] armv8: fsl-layerscape: Allocate Secure memory from first ddr region

2017-10-03 Thread Sumit Garg
ned-off-by: Sumit Garg --- Tested on ls1012ardb, ls1043ardb, ls1046ardb, ls2088ardb, ls1088ardb. arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 59 ++--- 1 file changed, 18 insertions(+), 41 deletions(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/cpu.c b/arch/arm/

[U-Boot] [PATCH] arm64: ls1012ardb: Add distro secure boot support

2017-09-07 Thread Sumit Garg
Enable validation of boot.scr script prior to its execution dependent on "secureboot" flag in environment. Enable fall back option to qspi boot in case of secure boot. Signed-off-by: Sumit Garg Tested-by: Vinitha Pillai --- configs/ls1012ardb_qspi_SECURE_BOOT_defconfig | 1 + inclu

Re: [U-Boot] [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

2017-09-07 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Thursday, September 07, 2017 9:01 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; tr...@konsulko.com > Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable > CONFIG_CMD_EXT4_WRITE

Re: [U-Boot] [Patch v2] configs: SECURE_BOOT: Enable CONFIG_CMD_EXT4_WRITE

2017-09-06 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Wednesday, September 06, 2017 9:47 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; tr...@konsulko.com > Subject: Re: [Patch v2] configs: SECURE_BOOT: Enable > CONFIG_CMD_EXT4_WRI

Re: [U-Boot] [PATCH] arm64: ls1043ardb: Add distro secure boot support

2017-09-01 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Friday, September 01, 2017 4:38 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Mingkai Hu ; > Shengzhou Liu > Subject: Re: [PATCH] arm64: ls1043ardb: Add distro secure boot suppo

[U-Boot] [PATCH 2/2] armv8: sec_firmware: Add support for loadables in FIT

2017-09-01 Thread Sumit Garg
SEC firmware FIT image. Signed-off-by: Sumit Garg --- arch/arm/cpu/armv8/fsl-layerscape/ppa.c | 16 +- arch/arm/cpu/armv8/sec_firmware.c | 92 +-- arch/arm/include/asm/armv8/sec_firmware.h | 4 +- 3 files changed, 104 insertions(+), 8 deletions(-) diff

[U-Boot] [PATCH 1/2] armv8: layerscape: Allocate 66 MB DDR for secure memory

2017-09-01 Thread Sumit Garg
Change DDR allocated for secure memory from 2 MB to 66 MB. This additional 64 MB secure memory is required for trusted OS running in Trusted Execution Environment using ARMv8 TrustZone. Signed-off-by: Sumit Garg --- arch/arm/include/asm/arch-fsl-layerscape/config.h | 2 +- 1 file changed, 1

Re: [U-Boot] [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction

2017-08-30 Thread Sumit Garg
< snip > > >> On 08/29/2017 12:02 AM, Sumit Garg wrote: > >>> Using changes in this patch we were able to reduce approx 8k size of > >>> u-boot-spl.bin image. Following is breif description of changes to > >>> reduce SPL size: > >&g

Re: [U-Boot] [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction

2017-08-29 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Tuesday, August 29, 2017 9:25 PM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Prabhakar Kushwaha ; Ruchika Gupta > > Subject: Re: [u-boot-release] [PATCH 2/3] armv8: ls1088a: SPL size reduction > > On 08/29/2017

[U-Boot] [PATCH 3/3] ls1088ardb: Add SD Secure boot target support

2017-08-29 Thread Sumit Garg
Signed-off-by: Udit Agarwal Signed-off-by: Sumit Garg --- Dependent on ls1088 base SD boot target. Also dependent on ls1088 QPSI secure boot target. arch/arm/include/asm/fsl_secure_boot.h | 16 - board/freescale/ls1088a/MAINTAINERS| 5

<    2   3   4   5   6   7   8   9   >