Re: [PATCH v3 6/6] board: add support for Schneider HMIBSC board

2024-04-05 Thread Stephan Gerhold
On Fri, Apr 05, 2024 at 02:37:42PM +0530, Sumit Garg wrote: > Support for Schneider Electric HMIBSC. Features: > - Qualcomm Snapdragon 410C SoC - APQ8016 (4xCortex A53, Adreno 306) > - 2GiB RAM > - 64GiB eMMC, SD slot > - WiFi and Bluetooth > - 2x Host, 1x Device USB port > - HDMI > - Discrete

Re: [PATCH v2 5/5] board: add support for Schneider HMIBSC board

2024-03-13 Thread Stephan Gerhold
On Wed, Mar 13, 2024 at 12:08:58PM +0530, Sumit Garg wrote: > On Mon, 11 Mar 2024 at 20:07, Stephan Gerhold wrote: > > On Mon, Mar 11, 2024 at 04:40:26PM +0530, Sumit Garg wrote: > > > Support for Schneider Electric HMIBSC. Features: > > > - Qualcomm Snapdragon 410C

Re: [PATCH v2 5/5] board: add support for Schneider HMIBSC board

2024-03-11 Thread Stephan Gerhold
On Mon, Mar 11, 2024 at 04:40:26PM +0530, Sumit Garg wrote: > Support for Schneider Electric HMIBSC. Features: > - Qualcomm Snapdragon 410C SoC - APQ8016 (4xCortex A53, Adreno 306) > - 2GiB RAM > - 64GiB eMMC, SD slot > - WiFi and Bluetooth > - 2x Host, 1x Device USB port > - HDMI > - Discrete

Re: [PATCH v2 2/5] apq8016: Add support for UART1 clocks and pinmux

2024-03-11 Thread Stephan Gerhold
On Mon, Mar 11, 2024 at 12:27:11PM +, Caleb Connolly wrote: > On 11/03/2024 11:10, Sumit Garg wrote: > > SE HMIBSC board uses UART1 as the main debug console, so add > > corresponding clocks and pinmux support. Along with that update > > instructions to enable clocks for debug UART support. >

Re: [PATCH 8/8] board: add support for Qualcomm SA8155P-ADP board

2024-03-04 Thread Stephan Gerhold
On Thu, Feb 29, 2024 at 02:21:09PM +, Volodymyr Babchuk wrote: > SA8155P Automotive Development Platform is Qualcomm SA8155-based board > for developers. The nice thing that it has unlocked loaders with test > keys support, which means that U-Boot for this platform can be > launched at earlier

Re: [PATCH 0/8] Add support for Qualcomm SA8155-ADP board

2024-03-04 Thread Stephan Gerhold
On Fri, Mar 01, 2024 at 06:25:39PM +, Volodymyr Babchuk wrote: > Caleb Connolly writes: > > On 29/02/2024 14:21, Volodymyr Babchuk wrote: > >> This patch series adds support for Qualcomm SA8155-ADP development > >> board. Main motivation for this series is to allow running > >> virtualization

Re: [PATCH 18/21] dts: msm8916: import DT from Linux

2023-12-07 Thread Stephan Gerhold
On Thu, Dec 07, 2023 at 07:11:02PM +, Caleb Connolly wrote: > On 21/11/2023 19:21, Stephan Gerhold wrote: > > On Tue, Nov 21, 2023 at 05:09:41PM +, Caleb Connolly wrote: > >> Import the msm8916 devicetree from Linux and adjust the dragonboard410c >

Re: [PATCH 18/21] dts: msm8916: import DT from Linux

2023-11-21 Thread Stephan Gerhold
On Tue, Nov 21, 2023 at 05:09:41PM +, Caleb Connolly wrote: > Import the msm8916 devicetree from Linux and adjust the dragonboard410c > devicetree to use it. > Can you add a note here from which Linux version you took the DT? It seems quite old, the msm8916-pm8916.dtsi doesn't exist anymore

Re: [PATCH v2 3/5] gpio: qcom_pmic: fix support for upstream DT

2023-11-09 Thread Stephan Gerhold
On Wed, Nov 08, 2023 at 04:20:55PM +, Caleb Connolly wrote: > Linux devicetrees use the "gpio-ranges" property, add support for > parsing it instead of "gpio-count" so that upstream DTs can be used with > U-Boot. > > Signed-off-by: Caleb Connolly > --- > drivers/gpio/qcom_pmic_gpio.c | 26

Re: [PATCH v2 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-09 Thread Stephan Gerhold
On Wed, Nov 08, 2023 at 04:20:54PM +, Caleb Connolly wrote: > The power and resin keys were implemented as GPIOs here, but their only > use would be as buttons. Avoid the additional layer of introspection and > rework this driver into a button driver. > > While we're here, replace the

Re: [PATCH 2/5] gpio: qcom_pmic: rework pwrkey driver into a button driver

2023-11-07 Thread Stephan Gerhold
On Mon, Nov 06, 2023 at 08:57:30PM +, Caleb Connolly wrote: > The power and resin keys were implemented as GPIOs here, but their only > use would be as buttons. Avoid the additional layer of introspection and > rework this driver into a button driver. > > While we're here, replace the

Re: [PATCH 13/14] i2c: Add support for Qualcomm I2C driver

2023-01-20 Thread Stephan Gerhold
On Fri, Jan 20, 2023 at 05:55:35PM +0530, Sumit Garg wrote: > On Fri, 20 Jan 2023 at 14:16, Heiko Schocher wrote: > > On 20.01.23 08:17, Sumit Garg wrote: > > > Add support for Qualcomm I2C QUP driver which is inspired from > > > corresponding driver in Linux: drivers/i2c/busses/i2c-qup.c. > > >

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

2022-07-16 Thread Stephan Gerhold
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 on top of mine other patch-set [1]. Although, I have > > > tested

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

2022-07-14 Thread Stephan Gerhold
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? > > > > It turned out to be patch [1] on top of this patch-set. Please help me >

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

2022-07-14 Thread Stephan Gerhold
pinctrl driver in case > "gpio-controller" property is specified for pinctrl node. > > Suggested-by: Stephan Gerhold > Signed-off-by: Sumit Garg This is a great start, thank you! > --- > > This is based on top of mine other patch-set [1]. Although, I have >

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

2022-07-13 Thread Stephan Gerhold
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

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

2022-07-13 Thread Stephan Gerhold
moving to using the Linux DTs as-is. This would likely avoid such mistakes in the future and would also make the porting process much easier. Cc: Dzmitry Sankouski Fixes: f5a2d6b4b03a ("spmi: msm: add arbiter version 5 support") Signed-off-by: Stephan Gerhold --- Sorry for sending th

Re: [PATCH v2] board: stemmy: Increase boot image to 64 MB

2021-11-23 Thread Stephan Gerhold
LEN > Must RESET board to recover > > Fix this by bumping to SZ_64MB. > > Cc: Stephan Gerhold > Signed-off-by: Linus Walleij Great, thanks for changing it! :) Reviewed-by: Stephan Gerhold > --- > ChangeLog v1->v2: > - Bump to 64MB instead of 16MB > --- >

Re: [PATCH] board: stemmy: Increase boot image to 16 MB

2021-11-19 Thread Stephan Gerhold
gt; > > > Loading Kernel Image > > Image too large: increase CONFIG_SYS_BOOTM_LEN > > Must RESET board to recover > > > > Fix this by bumping to SZ_16MB. > > > > Cc: Stephan Gerhold > > Signed-off-by: Linus Walleij > > --- > &g

Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-24 Thread Stephan Gerhold
Hi, On Fri, Sep 24, 2021 at 05:35:57PM +0300, Dzmitry Sankouski wrote: > I haven't tried to install u-boot on the phone with Android boot image > yet(though another guy in the community project I contribute, reported it > works). > I can only test u-boot with kexec, it's the only way to get debug

Re: [PATCH 6/6 v3] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-24 Thread Stephan Gerhold
Hi, On Thu, Sep 23, 2021 at 09:57:32PM +0300, dsankou...@gmail.com wrote: > From: Dzmitry Sankouski > > Samsung S9 SM-G9600 - Snapdragon SDM845 version of the phone, > for China \ Hong Kong markets. > Has unlockable bootloader, unlike SM-G960U (American market version), > which allows running

Re: [PATCH 5/6] SoC: qcom: add support for SDM845

2021-09-24 Thread Stephan Gerhold
Hi, On Thu, Sep 23, 2021 at 09:57:31PM +0300, dsankou...@gmail.com wrote: > From: Dzmitry Sankouski > > Hi-end qualcomm chip, introduced in late 2017. > Mostly used in flagship phones and tablets of 2018. > Features: > - arm64 arch > - total of 8 Kryo 385 Gold / Silver cores > - Hexagon 685 DSP

Re: [PATCH 3/6] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 SoC

2021-09-24 Thread Stephan Gerhold
Hi, On Thu, Sep 23, 2021 at 09:57:29PM +0300, dsankou...@gmail.com wrote: > From: Dzmitry Sankouski > > Signed-off-by: Dzmitry Sankouski > Cc: Ramon Fried > Cc: Tom Rini > --- > arch/arm/mach-snapdragon/pinctrl-sdm845.c | 44 +++ >

Re: [PATCH 3/5] arm: Disable ATAGs support

2021-09-04 Thread Stephan Gerhold
Hi Tom, On Mon, Aug 30, 2021 at 09:16:30AM -0400, Tom Rini wrote: > With the exception of nokia_rx51 and icnova-a20-swac, disable ATAG > support. A large number of platforms had enabled support but never > supported a kernel so old as to require it. Further, some platforms are > old enough to

[PATCH 4/7] arm: dts: u8500: u-boot: Add fixed clock for eMMC

2021-08-07 Thread Stephan Gerhold
on U8500, so for now add a simple fixed-clock for the eMMC that allows obtaining the clock frequency. This should be replaced eventually if some board actually requires enabling some of the clocks. Signed-off-by: Stephan Gerhold --- arch/arm/dts/ste-dbx5x0-u-boot.dtsi | 11 ++- 1 file changed

[PATCH 7/7] arm: u8500: Prefer building in thumb mode by default

2021-08-07 Thread Stephan Gerhold
Enabling CONFIG_SYS_THUMB_BUILD produces a significantly smaller U-Boot binary (250 KiB vs 320 KiB) that still seems to be fully functional. Make use of that by default but keep it as "imply" so it can be disabled for testing in case this causes trouble for someone. Signed-off-by: Steph

[PATCH 6/7] board: stemmy: Update documentation

2021-08-07 Thread Stephan Gerhold
ot instead of just ending up at the U-Boot prompt. The device table is mostly taken from the postmarketOS wiki article (https://wiki.postmarketos.org/wiki/ST-Ericsson_NovaThor_U8500). All the newly added devices were tested by Linus Walleij. Signed-off-by: Stephan Gerhold --- I tried to have

[PATCH 3/7] arm: dts: u8500: Update from Linux ux500-dts-for-v5.15

2021-08-07 Thread Stephan Gerhold
kernel.org/linux-arm-kernel/20210709182234.47232-1-step...@gerhold.net/ Signed-off-by: Stephan Gerhold --- arch/arm/dts/ste-ab8500.dtsi | 116 +++ arch/arm/dts/ste-ab8505.dtsi | 95 ++-- arch/arm/dts/ste-dbx5x0.dtsi | 14 ++--- 3 files cha

[PATCH 5/7] board: stemmy: Add basic Fastboot support

2021-08-07 Thread Stephan Gerhold
. Samsung uses quite strange GPT partition labels on these boards, so also add a bunch of fastboot_partition_alias_* to make this more easy to use. Signed-off-by: Stephan Gerhold --- arch/arm/dts/ste-ux500-samsung-stemmy.dts | 16 ++ configs/stemmy_defconfig

[PATCH 2/7] arm: u8500: Imply options for new drivers

2021-08-07 Thread Stephan Gerhold
otherwise the Ux500 MUSB glue driver does not show up in the configuration. Signed-off-by: Stephan Gerhold --- arch/arm/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 3a745ce126..dd223ada57 100644 --- a/arch/arm/Kconfig +++ b/arch/a

[PATCH 0/7] Enable new drivers added for U-Boot 2021.10 in "stemmy" board

2021-08-07 Thread Stephan Gerhold
This series finishes up the work done for ARM U8500 in the U-Boot 2021.10 merge window. The new drivers are added to MAINTAINERS, then enabled in Kconfig and finally the "stemmy" board is updated to make use of them. Stephan Gerhold (7): MAINTAINERS: Add new drivers for ARM U8500

[PATCH 1/7] MAINTAINERS: Add new drivers for ARM U8500

2021-08-07 Thread Stephan Gerhold
Update MAINTAINERS with various drivers for ARM U8500 that were added during the U-Boot 2021.10 merge window. Signed-off-by: Stephan Gerhold --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 776ff703b9..d64dcfacad 100644 --- a/MAINTAINERS

[PATCH v2 2/2] arm: mach-snapdrgon: misc: Simplify msm_generate_mac_addr()

2021-08-03 Thread Stephan Gerhold
more efficient and cleaner but does not result in any functional difference. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- Changes in v2: - Rebase on u-boot/master to fix conflict with recent changes - Add comment to clarify what put_unaligned_be32() does here arch/arm/mach

[PATCH v2 1/2] arm: mach-snapdragon: misc: Initialize eMMC if necessary

2021-08-03 Thread Stephan Gerhold
t;cid" that is later accessed. To fix this, call mmc_init() to ensure the eMMC is initialized. There is no functional difference if the eMMC is already initialized since then mmc_init() will just return without doing anything. Reviewed-by: Ramon Fried Signed-off-by: Stephan Gerhold --- (no cha

[PATCH 1/2] arm: mach-snapdragon: misc: Initialize eMMC if necessary

2021-08-02 Thread Stephan Gerhold
t;cid" that is later accessed. To fix this, call mmc_init() to ensure the eMMC is initialized. There is no functional difference if the eMMC is already initialized since then mmc_init() will just return without doing anything. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- arch/arm/mach-

[PATCH 2/2] arm: mach-snapdrgon: misc: Simplify msm_generate_mac_addr()

2021-08-02 Thread Stephan Gerhold
more efficient and cleaner but does not result in any functional difference. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- arch/arm/mach-snapdragon/misc.c | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/arch/arm/mach-snapdragon/misc.c b/arch/arm/mach

Re: [PATCH 3/3] serial: serial_msm: Delay initialization to let pins stabilize

2021-07-15 Thread Stephan Gerhold
On Wed, Jul 14, 2021 at 11:39:34PM +0300, Ramon Fried wrote: > On Wed, Jul 14, 2021 at 11:56 AM Stephan Gerhold wrote: > > > > For some reason, the DragonBoard 410c aborts autoboot immediately if > > U-Boot is started without LK. It looks like it picks up a single broken >

[PATCH 2/3] board: dragonboard410c: Fix fastboot

2021-07-14 Thread Stephan Gerhold
oboot process instead of ending up in the U-Boot shell. Also make sure to unset "preboot" again immediately in case the user saves the environment after triggering fastboot. Cc: Ramon Fried Fixes: aa043ee91a47 ("db410c: automatically launch fastboot") Signed-off-by: Stephan Gerhol

[PATCH 3/3] serial: serial_msm: Delay initialization to let pins stabilize

2021-07-14 Thread Stephan Gerhold
-by: Stephan Gerhold --- drivers/serial/serial_msm.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/serial/serial_msm.c b/drivers/serial/serial_msm.c index d8dd5c1104..ac4d0824b9 100644 --- a/drivers/serial/serial_msm.c +++ b/drivers/serial/serial_msm.c @@ -18,6 +18,7 @@ #include

[PATCH 0/3] board: dragonboard410c: Fix some minor issues

2021-07-14 Thread Stephan Gerhold
ld be also applied independently. PATCH 3/3 is likely directly related to [1]. [1]: https://lore.kernel.org/u-boot/20210707090602.32515-1-step...@gerhold.net/ Stephan Gerhold (3): board: dragonboard410c: Fix PHYS_SDRAM_1_SIZE board: dragonboard410c: Fix fastboot serial: serial_msm: Delay init

[PATCH 1/3] board: dragonboard410c: Fix PHYS_SDRAM_1_SIZE

2021-07-14 Thread Stephan Gerhold
986 MiB. Fixes: 626f048bbc14 ("board: Add Qualcomm Dragonboard 410C support") Signed-off-by: Stephan Gerhold --- include/configs/dragonboard410c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/dragonboard410c.h b/include/configs/dragonboard41

Re: [PATCH] board: dragonboard410c: Load U-Boot directly without LK

2021-07-10 Thread Stephan Gerhold
On Sat, Jul 10, 2021 at 10:07:28PM +0300, Ramon Fried wrote: > On Wed, Jul 7, 2021 at 12:06 PM Stephan Gerhold wrote: > > > > At the moment the U-Boot port for the DragonBoard 410c is designed > > to be loaded as an Android boot image after Qualcomm's Little Kerne

[PATCH v2 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-08 Thread Stephan Gerhold
to AB8500 and vice-versa. The ab8500.h header is mostly taken as-is from Linux (with some minor adjustments) to allow using similar code in both Linux and U-Boot. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- Changes in v2: - Add more error checking in prcmu_wait_i2c_mbx_ready() - Clarify why

[PATCH v2 0/3] Add support for USB on ST-Ericsson Ux500

2021-07-08 Thread Stephan Gerhold
in U-Boot. Changes in v2: - Add more error checking in prcmu_wait_i2c_mbx_ready() - Clarify why error is not checked at end of ab8500_transfer() - Assign AB8500_BIT_PHY_CTRL_DEVICE_EN by default and only replace it with AB8500_BIT_PHY_CTRL_HOST_EN if needed (Jaehoon Chung) Stephan Gerhold (3): p

[PATCH v2 3/3] usb: musb-new: Add glue driver for ST-Ericsson Ux500

2021-07-08 Thread Stephan Gerhold
to make USB work. The new Ux500 glue driver is only tested to work with DM_USB and DM_USB_GADGET. Both host and gadget mode work fine on the u8500 "stemmy" board that is already present in U-Boot. Reviewed-by: Linus Walleij Signed-off-by: Stephan Gerhold --- (no changes since v1)

[PATCH v2 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-08 Thread Stephan Gerhold
at compile time. When the MUSB driver is configured in host mode the PHY is configured in host mode, and similarly when the MUSB driver is configured in device/gadget mode. Reviewed-by: Linus Walleij Signed-off-by: Stephan Gerhold --- Changes in v2: - Assign AB8500_BIT_PHY_CTRL_DEVICE_EN by default

Re: [PATCH 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-07 Thread Stephan Gerhold
On Wed, Jul 07, 2021 at 06:25:37AM +0900, Jaehoon Chung wrote: > On 7/6/21 5:52 PM, Stephan Gerhold wrote: > > On Tue, Jul 06, 2021 at 10:08:03AM +0900, Jaehoon Chung wrote: > >> On 7/6/21 1:28 AM, Stephan Gerhold wrote: > >>> All devices based on ST-Ericsson Ux50

[PATCH 2/2] board: stemmy: Copy atags for booting downstream/vendor kernel

2021-07-07 Thread Stephan Gerhold
are copied as-is and not generated in U-Boot. Also use the chance and provide a serial# for U-Boot by parsing the ATAG_SERIAL that is also passed by the Samsung bootloader. Signed-off-by: Stephan Gerhold --- arch/arm/mach-u8500/Kconfig | 1 + board/ste/stemmy/stemm

[PATCH 1/2] board: stemmy: Parse atags to get available memory

2021-07-07 Thread Stephan Gerhold
make it more clear where some of the magic values in there are actually coming from. Signed-off-by: Stephan Gerhold --- arch/arm/mach-u8500/Kconfig | 1 + board/ste/stemmy/README | 1 + board/ste/stemmy/stemmy.c | 62 - configs/stemmy_defconfig|

[PATCH] board: dragonboard410c: Load U-Boot directly without LK

2021-07-07 Thread Stephan Gerhold
dn't be possible that easily without a lot of work already done three years ago by Ramon Fried. A lot of missing initialization, pinctrl etc was already added back then even though it was not strictly needed yet. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- Related RFC with even more det

[PATCH 3/4] mmc: arm_pl180_mmci: Simplify code using mmc_of_parse()

2021-07-06 Thread Stephan Gerhold
e.g. "non-removable" can be used to disable CD entirely. Signed-off-by: Stephan Gerhold --- drivers/mmc/arm_pl180_mmci.c | 19 --- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index e632eed03

[PATCH 0/4] Add support for eMMC on ST-Ericsson Ux500(v2)

2021-07-06 Thread Stephan Gerhold
This patch series adds support for the eMMC on ST-Ericsson Ux500: 1. Some minor fixes+cleanup for the arm_pl180_mmci driver. 3. Add the necessary configuration for ST-Ericsson Ux500v2. This was tested on the u8500 "stemmy" board that is already present in U-Boot. Stephan

[PATCH 2/4] mmc: arm_pl180_mmci: Simplify code using dev_read_addr_ptr()

2021-07-06 Thread Stephan Gerhold
Simplify the code a bit by using dev_read_addr_ptr() instead of dev_read_addr(). This avoids having to cast explicitly to void*. Signed-off-by: Stephan Gerhold --- drivers/mmc/arm_pl180_mmci.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/mmc

[PATCH 4/4] mmc: arm_pl180_mmci: Add configuration for ST-Ericsson Ux500v2

2021-07-06 Thread Stephan Gerhold
-by: Stephan Gerhold --- drivers/mmc/arm_pl180_mmci.c | 22 +++--- drivers/mmc/arm_pl180_mmci.h | 1 + 2 files changed, 16 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c index 809b86570a..f99b5f997e 100644 --- a/drivers/mmc

[PATCH 1/4] mmc: arm_pl180_mmci: Don't bind to all arm, primecell devices

2021-07-06 Thread Stephan Gerhold
1a4000 - probe failed: -38 Cc: Patrice Chotard Fixes: 6f41d1a17e20 ("mmc: arm_pl180_mmci: Sync compatible with kernel") Signed-off-by: Stephan Gerhold --- drivers/mmc/arm_pl180_mmci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/arm_pl180_mmc

Re: [PATCH 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-06 Thread Stephan Gerhold
On Tue, Jul 06, 2021 at 10:10:54AM +0900, Jaehoon Chung wrote: > Hi Stephan, > > On 7/6/21 1:28 AM, Stephan Gerhold wrote: > > The AB8500 PMIC contains an USB PHY that needs to be set up in > > device or host mode to make USB work properly. Add a simple driver > >

Re: [PATCH 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-06 Thread Stephan Gerhold
On Tue, Jul 06, 2021 at 10:08:03AM +0900, Jaehoon Chung wrote: > On 7/6/21 1:28 AM, Stephan Gerhold wrote: > > All devices based on ST-Ericsson Ux500 use a PMIC similar to AB8500 > > (Analog Baseband). There is AB8500, AB8505, AB9540 and AB8540 > > although in practice o

[PATCH 2/3] phy: Add driver for ST-Ericsson AB8500 USB PHY

2021-07-05 Thread Stephan Gerhold
at compile time. When the MUSB driver is configured in host mode the PHY is configured in host mode, and similarly when the MUSB driver is configured in device/gadget mode. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- Better suggestions to make the USB PHY driver aware of the mode are very

[PATCH 3/3] usb: musb-new: Add glue driver for ST-Ericsson Ux500

2021-07-05 Thread Stephan Gerhold
to make USB work. The new Ux500 glue driver is only tested to work with DM_USB and DM_USB_GADGET. Both host and gadget mode work fine on the u8500 "stemmy" board that is already present in U-Boot. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- This patch could be applied separ

[PATCH 1/3] power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU

2021-07-05 Thread Stephan Gerhold
to AB8500 and vice-versa. The ab8500.h header is mostly taken as-is from Linux (with some minor adjustments) to allow using similar code in both Linux and U-Boot. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- drivers/power/pmic/Kconfig | 10 ++ drivers/power/pmic/Makefile | 1 + drivers

[PATCH 0/3] Add support for USB on ST-Ericsson Ux500

2021-07-05 Thread Stephan Gerhold
in U-Boot. Stephan Gerhold (3): power: pmic: Add driver for ST-Ericsson AB8500 via PRCMU phy: Add driver for ST-Ericsson AB8500 USB PHY usb: musb-new: Add glue driver for ST-Ericsson Ux500 drivers/phy/Kconfig | 6 + drivers/phy/Makefile | 1 + drivers/phy/phy-ab

[PATCH] arm: mach-snapdragon: pinctrl: Place pin_name in .data section

2021-07-05 Thread Stephan Gerhold
ced in the .data section instead of .bss to fix this. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- arch/arm/mach-snapdragon/pinctrl-apq8016.c | 3 +-- arch/arm/mach-snapdragon/pinctrl-apq8096.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-snapdragon/pinct

Re: [RFC] Load U-Boot without LK on DragonBoard 410c (+ DB820c?)

2021-07-04 Thread Stephan Gerhold
On Sun, Jul 04, 2021 at 02:08:39PM +0300, Ramon Fried wrote: > On Sun, Jul 4, 2021 at 12:42 AM Stephan Gerhold wrote: > > > > On Thu, Jul 01, 2021 at 11:07:55AM +0200, Stephan Gerhold wrote: > > > Hi! > > > > > > at the moment the U-Boot ports for both Dr

Re: [RFC] Load U-Boot without LK on DragonBoard 410c (+ DB820c?)

2021-07-03 Thread Stephan Gerhold
On Thu, Jul 01, 2021 at 11:07:55AM +0200, Stephan Gerhold wrote: > Hi! > > at the moment the U-Boot ports for both DragonBoard 410c and 820c are > designed to be loaded as an Android boot image after Qualcomm's LK > bootloader. This is simple to set up but LK is redundant in thi

[PATCH] video: Add simple driver for ST-Ericsson MCDE with pre-configured display

2021-07-02 Thread Stephan Gerhold
ideo_sync() callback that triggers the sync and wait for completion. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- drivers/video/Kconfig | 12 +++ drivers/video/Makefile | 1 + drivers/video/mcde_simple.c | 141 3 files changed, 154 insertions(+)

[PATCH] timer: nomadik-mtu: Use dev_read_addr_ptr()

2021-07-02 Thread Stephan Gerhold
Simplify the code a bit by using dev_read_addr_ptr() instead of dev_read_addr(). This avoids having to cast explicitly to the struct nomadik_mtu_regs. Signed-off-by: Stephan Gerhold --- drivers/timer/nomadik-mtu-timer.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git

[PATCH 2/2] gpio: Add driver for Nomadik GPIO

2021-07-02 Thread Stephan Gerhold
g state. The driver implements support for it for use together with DM_GPIO and the existing ste-dbx5x0.dtsi device tree. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- drivers/gpio/Kconfig| 8 +++ drivers/gpio/Makefile | 1 + drivers/gpio/nmk_gpio.c | 125 +++

[PATCH 1/2] gpio: Drop long unused DB8500 GPIO driver

2021-07-02 Thread Stephan Gerhold
new, simplified GPIO driver based on DM_GPIO. Signed-off-by: Stephan Gerhold --- drivers/gpio/Makefile | 1 - drivers/gpio/db8500_gpio.c | 221 - 2 files changed, 222 deletions(-) delete mode 100644 drivers/gpio/db8500_gpio.c diff --git a/drivers/gpi

Re: [RFC] Load U-Boot without LK on DragonBoard 410c (+ DB820c?)

2021-07-02 Thread Stephan Gerhold
On Fri, Jul 02, 2021 at 01:04:42PM +0300, Ramon Fried wrote: > On Thu, Jul 1, 2021 at 4:24 PM Stephan Gerhold wrote: > > On Thu, Jul 01, 2021 at 01:27:30PM +0200, Nicolas Dechesne wrote: > > > On Thu, Jul 1, 2021 at 11:07 AM Stephan Gerhold > > >

[PATCH] image: android: Automatically detect more compression types

2021-07-01 Thread Stephan Gerhold
for the magic bytes of bzip2, gzip, lzma and lzo. It's easy to make use of it here to increase the chance that we do the right thing and the user does not become confused with strange crashes. This allows booting Android boot images that contain GZIP-compressed kernel images. Signed-off-by: Stephan G

Re: [RFC] Load U-Boot without LK on DragonBoard 410c (+ DB820c?)

2021-07-01 Thread Stephan Gerhold
Hi Nicolas, On Thu, Jul 01, 2021 at 01:27:30PM +0200, Nicolas Dechesne wrote: > On Thu, Jul 1, 2021 at 11:07 AM Stephan Gerhold wrote: > > > > Hi! > > > > at the moment the U-Boot ports for both DragonBoard 410c and 820c are > > designed to be loaded as an Andro

[RFC] Load U-Boot without LK on DragonBoard 410c (+ DB820c?)

2021-07-01 Thread Stephan Gerhold
Hi! at the moment the U-Boot ports for both DragonBoard 410c and 820c are designed to be loaded as an Android boot image after Qualcomm's LK bootloader. This is simple to set up but LK is redundant in this case, since everything done by LK can be also done directly by U-Boot. Dropping LK

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-29 Thread Stephan Gerhold
On Tue, Jun 29, 2021 at 08:16:09AM +0300, Ramon Fried wrote: > On Mon, Jun 28, 2021 at 10:16 PM Stephan Gerhold wrote: > > > > On Mon, Jun 28, 2021 at 10:04:29PM +0300, Ramon Fried wrote: > > > On Mon, Jun 28, 2021 at 9:59 PM Stephan Gerhold > > > wrote: >

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Stephan Gerhold
On Mon, Jun 28, 2021 at 10:04:29PM +0300, Ramon Fried wrote: > On Mon, Jun 28, 2021 at 9:59 PM Stephan Gerhold wrote: > > > > On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > > > On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold > > > wrote: >

Re: [PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Stephan Gerhold
On Mon, Jun 28, 2021 at 08:15:28PM +0300, Ramon Fried wrote: > On Mon, Jun 28, 2021 at 11:40 AM Stephan Gerhold wrote: > > > > At the moment, the U-Boot serial_msm driver does not initialize the > > UART_DM_DMEN register with the required value. Usually this does not &

[PATCH] serial: serial_msm: Ensure BAM/single character mode are disabled

2021-06-28 Thread Stephan Gerhold
T_DM_DMEN to 0x0. [1] [1]: https://git.linaro.org/landing-teams/working/qualcomm/lk.git/tree/platform/msm_shared/uart_dm.c?h=dragonboard410c-LA.BR.1.2.7-03810-8x16.0-linaro3#n203 Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- drivers/serial/serial_msm.c | 4 1 file changed, 4 inser

[PATCH] arm: dts: db410c: Add missing cd-gpios for SD card detection

2021-06-27 Thread Stephan Gerhold
ings - the soc_gpios are actually already used with two cells for the gpio-leds so this was just wrong all the time. Cc: Ramon Fried Signed-off-by: Stephan Gerhold --- arch/arm/dts/dragonboard410c.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/dragonboard410

Re: [RFC PATCH 0/5] arm: Restore minimal support for ST-Ericsson U8500 SoC

2020-01-23 Thread Stephan Gerhold
On Wed, Jan 22, 2020 at 01:03:50PM -0500, Tom Rini wrote: > On Wed, Jan 22, 2020 at 05:47:07PM +0100, Stephan Gerhold wrote: > > Hi Tom, > > > > On Sat, Jan 04, 2020 at 06:45:14PM +0100, Stephan Gerhold wrote: > > > This patch series restores minimal U-Boot sup

Re: [RFC PATCH 0/5] arm: Restore minimal support for ST-Ericsson U8500 SoC

2020-01-22 Thread Stephan Gerhold
Hi Tom, On Sat, Jan 04, 2020 at 06:45:14PM +0100, Stephan Gerhold wrote: > This patch series restores minimal U-Boot support for > the ST-Ericsson NovaThor U8500 SoC. > > Previous support for U8500 was removed in > commit 68282f55b846 ("arm: Remove unused ST-Ericsson u8500

[RFC PATCH 5/5] board: Add new Samsung "stemmy" board based on ST-Ericsson U8500

2020-01-04 Thread Stephan Gerhold
support for "stemmy". For now only UART is supported but this will be extended later. Signed-off-by: Stephan Gerhold --- arch/arm/dts/Makefile | 2 + arch/arm/dts/ste-ux500-samsung-stemmy.dts | 20 + arch/arm/mach-u8500/Kconfig | 21

[RFC PATCH 2/5] arm: dts: Import device tree for ST-Ericsson Ux500

2020-01-04 Thread Stephan Gerhold
from https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-stericsson.git/ tag "ux500-armsoc-v5.6-2" commit 224bf0fe7292 ("ARM: dts: ux500: samsung-golden: Add Bluetooth") (queued for merge in Linux 5.6) Signed-off-by: Stephan Gerhold --- I ignored all the c

[RFC PATCH 3/5] arm: Add support for ST-Ericsson U8500 SoC

2020-01-04 Thread Stephan Gerhold
ay without implementing some functionality - e.g. all clocks are already enabled by the original bootloader. More functionality will be added in future patches. Cc: Mathieu Poirier Cc: John Rigby Signed-off-by: Stephan Gerhold --- arch/arm/Kconfig| 20 arch/ar

[RFC PATCH 4/5] MAINTAINERS: Add ARM U8500

2020-01-04 Thread Stephan Gerhold
Add myself as maintainer for ST-Ericsson U8500 SoC to MAINTAINERS. Linus Walleij usually reviews all Ux500 related patches, so add him as a reviewer. Cc: Linus Walleij Signed-off-by: Stephan Gerhold --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b

[RFC PATCH 1/5] timer: Add driver for Nomadik Multi Timer Unit (MTU)

2020-01-04 Thread Stephan Gerhold
The Nomadik Multi Timer Unit (MTU) provides 4 decrementing free-running timers. It is used in ST-Ericsson Ux500 SoCs. The driver uses the first timer to implement UCLASS_TIMER. Signed-off-by: Stephan Gerhold --- drivers/timer/Kconfig | 9 +++ drivers/timer/Makefile

[RFC PATCH 0/5] arm: Restore minimal support for ST-Ericsson U8500 SoC

2020-01-04 Thread Stephan Gerhold
ite straightforward, with only ~225 new lines of C code, plus device tree and documentation. The only patch that stands out with ~1.8k lines is the device tree import, directly copied (without modification) from the Linux kernel. Stephan Gerhold (5): timer: Add driver for Nomadik Multi Time