Re: [PATCH v2 1/4] board/qualcomm: introduce phone config

2024-12-06 Thread Julius Lehmann
On 04.10.24 14:46, Caleb Connolly wrote: Phones don't have keyboards! Introduce a phone-specific config fragment and associated environment file to make U-Boot more useful on these devices. This allows for navigating via the buttons and enabling various USB gadget modes or displaying info about U

[PATCH v2] scsi: fix disk capacity too small by one sector

2024-10-26 Thread Julius Lehmann
sector. Read/Write operations on other sectors have not been affected. Trying to partition scsi backed storage via ums has resulted in "storage too small" errors. doc: https://linux.die.net/man/8/sg_readcap Signed-off-by: Julius Lehmann --- Changes in v2: - fixed corresponding test c

Re: [PATCH] scsi: fix disk capacity too small by one sector

2024-10-22 Thread Julius Lehmann
> Am 22.10.2024 um 05:35 schrieb Tom Rini : > > On Mon, Oct 14, 2024 at 06:06:35PM +0200, Julius Lehmann wrote: > >> SCSI READ CAPACITY reports the address of the last >> block and the block size. The total number of blocks >> is thus last block address plus

[PATCH] scsi: fix disk capacity too small by one sector

2024-10-14 Thread Julius Lehmann
sectors have not been affected. Trying to partition scsi backed storage via ums has resulted in "storage too small" errors. doc: https://linux.die.net/man/8/sg_readcap Signed-off-by: Julius Lehmann --- drivers/scsi/scsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scs

Re: [PATCH 0/4] ufs: add support for Qualcomm UFS Controller

2024-10-11 Thread Julius Lehmann
: 20240910-topic-ufs-qcom-controller-4b2905610963 Tested successfully on SM8150 tablet. However, some merge conflicts had to be fixed and maybe also add CONFIG_QCOM_UFS=y to qcom_defconfig Tested-by: Julius Lehmann Best regards,

Re: [PATCH v3 00/13] ufs: enhancements to support Qualcomm UFS controllers

2024-10-11 Thread Julius Lehmann
ements-fe8ef9ce39d8 tested the whole series in combination with https://lore.kernel.org/u-boot/20240910-topic-ufs-qcom-controller-v1-0-54c0d2231...@linaro.org/ on a SM8150 tablet Tested-by: Julius Lehmann Best regards,

[PATCH v2] clk: stub: add sm8150 compatible id

2024-10-11 Thread Julius Lehmann
Add support for sm8150 clock controller to clk stub driver. --- Simple patch to extend the clk stub driver to support binding to sm8150 clock controllers. Signed-off-by: Julius Lehmann --- Changes in v2: - fix: syntax typo, missing "," - Link to v1: https://lore.kernel.org/r/2024100

Re: [PATCH] clk: stub: add sm8150 compatible id

2024-10-09 Thread Julius Lehmann
On 09.10.24 11:49, Julius Lehmann wrote: Add support for sm8150 clock controller to clk stub driver. --- Simple patch to extend the clk stub driver to support binding to sm8150 clock controllers. Signed-off-by: Julius Lehmann --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion

[PATCH] clk: stub: add sm8150 compatible id

2024-10-09 Thread Julius Lehmann
Add support for sm8150 clock controller to clk stub driver. --- Simple patch to extend the clk stub driver to support binding to sm8150 clock controllers. Signed-off-by: Julius Lehmann --- drivers/clk/clk-stub.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/clk-stub.c b

[PATCH] phy: qcom: Add SM8150 to QMP UFS PHY driver

2024-10-02 Thread Julius Lehmann
o.org/ on a Xiaomi Mi Pad 5. Signed-off-by: Julius Lehmann --- drivers/phy/qcom/phy-qcom-qmp-ufs.c | 62 + 1 file changed, 62 insertions(+) diff --git a/drivers/phy/qcom/phy-qcom-qmp-ufs.c b/drivers/phy/qcom/phy-qcom-qmp-ufs.c

Re: [PATCH 1/4] board/qualcomm: introduce phone config

2024-10-01 Thread Julius Lehmann
On 31.08.24 18:48, Caleb Connolly wrote: Phones don't have keyboards! Introduce a phone-specific config fragment and associated environment file to make U-Boot more useful on these devices. This allows for navigating via the buttons and enabling various USB gadget modes or displaying info about U

[PATCH v3 3/3] config: qcom: add sm8150 to qcom_defconfig

2024-09-11 Thread Julius Lehmann
Enable clk and pinctrl for sm8150 Signed-off-by: Julius Lehmann Reviewed-by: Caleb Connolly --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 2a2253f766..e7ed03ff0f 100644 --- a/configs/qcom_defconfig +++ b

[PATCH v3 1/3] clk: qcom: add driver for SM8150 SoC

2024-09-11 Thread Julius Lehmann
Babchuk Reviewed-by: Caleb Connolly Signed-off-by: Julius Lehmann --- drivers/clk/qcom/Kconfig| 9 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-sm8150.c | 319 3 files changed, 329 insertions(+) diff --git a/drivers/clk/qcom

[PATCH v3 2/3] pinctrl: qcom: add driver for SM8150 SoC

2024-09-11 Thread Julius Lehmann
. Co-authored-by: Volodymyr Babchuk Reviewed-by: Caleb Connolly Signed-off-by: Julius Lehmann --- drivers/pinctrl/qcom/Kconfig | 8 ++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm8150.c | 156 ++ 3 files changed, 165

[PATCH v3 0/3] Support for Qualcomm sm8150 SoC

2024-09-11 Thread Julius Lehmann
register values in sm8150_clks, alphabetic ordering and added GCC_SDCC2_APPS_CLK rate setting. Thanks for all the help again! Signed-off-by: Julius Lehmann --- Changes in v3: - fix: config: alphabetic ordering in Kconfig and Makefile - fix: clk: qcom: sm8150 if expression in clk_enable now correct

[PATCH v2 3/3] config: qcom: add sm8150 to qcom_defconfig

2024-09-11 Thread Julius Lehmann
Enable clk and pinctrl for sm8150 Signed-off-by: Julius Lehmann Reviewed-by: Caleb Connolly --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 2a2253f766..5b46f43b11 100644 --- a/configs/qcom_defconfig +++ b

[PATCH v2 2/3] pinctrl: qcom: add driver for SM8150 SoC

2024-09-11 Thread Julius Lehmann
. Co-authored-by: Volodymyr Babchuk Signed-off-by: Julius Lehmann --- drivers/pinctrl/qcom/Kconfig | 8 ++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm8150.c | 156 ++ 3 files changed, 165 insertions(+) diff --git a

[PATCH v2 1/3] clk: qcom: add driver for SM8150 SoC

2024-09-11 Thread Julius Lehmann
Babchuk Signed-off-by: Julius Lehmann --- drivers/clk/qcom/Kconfig| 9 ++ drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-sm8150.c | 300 3 files changed, 310 insertions(+) diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom

[PATCH v2 0/3] Support for Qualcomm sm8150 SoC

2024-09-11 Thread Julius Lehmann
: Julius Lehmann --- Changes in v2: - fix: clk: qcom: sm8150 command registers for phy_aux_clk (usb) - refactor: pinctrl: qcom: sm8150 use special_pin_start and special_pins_data - Link to v1: https://lore.kernel.org/r/20240909155315.307026-1-lehma...@devpi.de --- Julius Lehmann (3): clk: qcom

Re: [PATCH 2/3] pinctrl: qcom: add driver for SM8150 SoC

2024-09-10 Thread Julius Lehmann
Hi Neil and Caleb, thank you for taking a look at my patch. On 10.09.24 14:07, Neil Armstrong wrote: On 10/09/2024 14:05, Caleb Connolly wrote: Hi Julius, Thanks for the patch! On 09/09/2024 17:53, Julius Lehmann wrote: Add pinctrl and GPIO driver for SM8150. Driver code is based on the

Re: [PATCH 1/3] clk: qcom: add driver for SM8150 SoC

2024-09-09 Thread Julius Lehmann
+static ulong sm8150_clk_set_rate(struct clk *clk, ulong rate) +{ + struct msm_clk_priv *priv = dev_get_priv(clk->dev); + const struct freq_tbl *freq; + + switch (clk->id) { + case GCC_QUPV3_WRAP1_S4_CLK: /* UART2 aka debug-uart */ + freq = qcom_find_freq(ftbl

[PATCH 2/3] pinctrl: qcom: add driver for SM8150 SoC

2024-09-09 Thread Julius Lehmann
. Co-authored-by: Volodymyr Babchuk Signed-off-by: Julius Lehmann --- drivers/pinctrl/qcom/Kconfig | 8 ++ drivers/pinctrl/qcom/Makefile | 1 + drivers/pinctrl/qcom/pinctrl-sm8150.c | 119 ++ 3 files changed, 128 insertions(+) create mode 100644 drivers

[PATCH 3/3] config: qcom: add sm8150 to qcom_defconfig

2024-09-09 Thread Julius Lehmann
Enable clk and pinctrl for sm8150 Signed-off-by: Julius Lehmann --- configs/qcom_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/qcom_defconfig b/configs/qcom_defconfig index 419e969e5d..03587d2dc7 100644 --- a/configs/qcom_defconfig +++ b/configs/qcom_defconfig

[PATCH 1/3] clk: qcom: add driver for SM8150 SoC

2024-09-09 Thread Julius Lehmann
Babchuk Signed-off-by: Julius Lehmann --- drivers/clk/qcom/Kconfig| 9 + drivers/clk/qcom/Makefile | 1 + drivers/clk/qcom/clock-sm8150.c | 298 3 files changed, 308 insertions(+) create mode 100644 drivers/clk/qcom/clock-sm8150.c diff --git a

[PATCH 0/3] Support for Qualcomm sm8150 SoC

2024-09-09 Thread Julius Lehmann
hopefully nothing is missing. Julius Lehmann (3): clk: qcom: add driver for SM8150 SoC pinctrl: qcom: add driver for SM8150 SoC config: qcom: add sm8150 to qcom_defconfig configs/qcom_defconfig| 2 + drivers/clk/qcom/Kconfig | 9 + drivers/clk/qcom

Re: [PATCH v2 5/8] clk: qcom: add driver for SM8150 SoC

2024-07-27 Thread Julius Lehmann
Sorry to bump this thread, but any chance on getting this patch (5/8 clk) and (7/8 pinctrl) merged? I do have an SM8150 device myself (Xiaomi Mi Pad 5) and would benefit from clk and pinctrl drivers. From the reviews it seems not much work would be required. Kind regards Julius