[PATCH v1 9/9] mmc: sdhci-of-arasan: Add UHS-1 support for Keem Bay SOC

2021-01-14 Thread Muhammad Husaini Zulkifli
output is controlled by gpio-regulator. Voltage rail output is controlled by Keem Bay SD regulator. Keem Bay SD regulator encapsulated the Secure Monitor Calling Convention (SMCCC) to communicate with Trusted Firmware during set voltage operation. Signed-off-by: Muhammad Husaini Zulkifli Acked

[PATCH v1 3/9] mmc: sdhci-of-arasan: Add structure device pointer in probe function

2021-01-14 Thread Muhammad Husaini Zulkifli
Add struct device *dev in probe func() so that it can widely use in probe to make code more readable. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Adrian Hunter Acked-by: Andy Shevchenko --- drivers/mmc/host/sdhci-of-arasan.c | 34 +++--- 1 file changed, 17

[PATCH v1 8/9] regulator: keembay: Add regulator for Keem Bay SoC

2021-01-14 Thread Muhammad Husaini Zulkifli
it. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Andy Shevchenko --- drivers/regulator/Kconfig| 10 ++ drivers/regulator/Makefile | 1 + drivers/regulator/keembay-sd-regulator.c | 112 +++ 3 files changed, 123 insertions(+) create mode 100644

[PATCH v1 7/9] dt-bindings: regulator: keembay: Add DT binding documentation

2021-01-14 Thread Muhammad Husaini Zulkifli
Add DT Binding Documentation for Keem Bay SD Regulator. Signed-off-by: Muhammad Husaini Zulkifli --- .../bindings/regulator/keembay-regulator.yaml | 36 +++ 1 file changed, 36 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/keembay-regulator.yaml

[PATCH v1 6/9] dt-bindings: mmc: Update phy and regulator supply for Keem Bay SOC

2021-01-14 Thread Muhammad Husaini Zulkifli
Add DT bindings of vmmc, vqmmc and sdvrail supplies of regulator and phys for the phandle of sd0_phy which contain additional property for otap delay and sel_clk_buffer. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Adrian Hunter --- Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml

[PATCH v1 5/9] firmware: keembay: Add support for Trusted Firmware Service call

2021-01-14 Thread Muhammad Husaini Zulkifli
Export inline function to encapsulate AON_CFG1 for controling the I/O Rail supplied voltage levels which communicate with Trusted Firmware. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Andy Shevchenko --- include/linux/firmware/intel/keembay.h | 82 ++ 1 file

[PATCH v1 4/9] mmc: sdhci-of-arasan: Use dev_err_probe() to avoid spamming logs

2021-01-14 Thread Muhammad Husaini Zulkifli
Using dev_err_probe() can avoid spamming logs when probe is deferred. This function can also help to reduce code the size, uniform error handling and simplify the code. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Adrian Hunter Acked-by: Andy Shevchenko --- drivers/mmc/host/sdhci

[PATCH v1 2/9] mmc: sdhci-of-arasan: Convert to use np instead of pdev->dev.of_node

2021-01-14 Thread Muhammad Husaini Zulkifli
Use np pointer to simplify code and improve readability. Signed-off-by: Muhammad Husaini Zulkifli Suggested-by: Andy Shevchenko Acked-by: Adrian Hunter Acked-by: Andy Shevchenko --- drivers/mmc/host/sdhci-of-arasan.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

[PATCH v1 1/9] mmc: sdhci-of-arasan: use of_device_get_match_data()

2021-01-14 Thread Muhammad Husaini Zulkifli
Use of_device_get_match_data() helper to get the match-data. Signed-off-by: Muhammad Husaini Zulkifli Suggested-by: Andy Shevchenko Acked-by: Adrian Hunter Acked-by: Andy Shevchenko --- drivers/mmc/host/sdhci-of-arasan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH v1 0/9] mmc: sdhci-of-arasan: Add UHS-1 support for Keem Bay SOC

2021-01-14 Thread Muhammad Husaini Zulkifli
Bay hardware, two regulators are been used to change the I/O bus line voltage which are "vqmmc-supply" and "sdvrail-supply". All of these patches was tested with Keem Bay evaluation module board. Kindly help to review this patch set. Muhammad Husaini Zulkifli (9): mm

[PATCH v1 2/2] mmc: sdhci-of-arasan: Change code style of mapping the syscon field

2021-01-11 Thread Muhammad Husaini Zulkifli
Change code style of mapping the syscon in sdhci_arasan_update_support64b() for readability and consistency. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Andy Shevchenko Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-of-arasan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v1 1/2] mmc: sdhci-of-arasan: Fixed kernel-doc format warning

2021-01-11 Thread Muhammad Husaini Zulkifli
kernel-doc script tool: drivers/mmc/host/sdhci-of-arasan.c:1388: warning: contents before sections Let's fix this by using standard conventions kernel-doc format. Fixes: 36c6aadaae86 ("mmc: sdhci-of-arasan: Add support for Intel Keem Bay") Signed-off-by: Muhammad Husaini Zulkifli Acked

[PATCH v1 0/2] mmc: sdhci-of-arasan: Fixed kernel-doc format warning

2021-01-11 Thread Muhammad Husaini Zulkifli
Hi, This patch series are to fix the kernel-doc format warning when using kernel-doc script tool and to change code style of mapping the syscon field for readability and consistency. Kindly help to review this patch set. Thanks. Muhammad Husaini Zulkifli (2): mmc: sdhci-of-arasan: Fixed

[PATCH v6 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-12-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Keem Bay SOC can support dual voltage operations for GPIO SD Pins to either 1.8V or 3.3V for bus IO line power. In order to operate the GPIOs line for Clk,Cmd and Data on Keem Bay Hardware, it is important to configure the supplied voltage applied to their I/O

[PATCH v6 3/4] dt-bindings: mmc: Add phys, vmmc and vqmmc supplies for Keem Bay SOC

2020-12-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add DT bindings of vmmc and vqmmc supplies of regulator and phys for the phandle of sd0_phy which contain additional property for otap delay and sel_clk_buffer. Signed-off-by: Muhammad Husaini Zulkifli --- Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml

[PATCH v6 2/4] firmware: keembay: Add support for Trusted Firmware Service call

2020-12-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Export inline function to encapsulate AON_CFG1 for controling the I/O Rail supplied voltage levels which communicate with Trusted Firmware. Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Michal Simek Acked-by: Sudeep Holla --- include/linux/firmware/intel

[PATCH v6 1/4] mmc: sdhci-of-arasan: Add structure device pointer in probe func

2020-12-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add struct device *dev in probe func() so that it can widely use in probe to make code more readable. Signed-off-by: Muhammad Husaini Zulkifli Reviewed-by: mark gross --- drivers/mmc/host/sdhci-of-arasan.c | 38 +++--- 1 file changed

[PATCH v6 0/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-12-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hello This patch series adds UHS-1 Support for Keem Bay SOC. Patch 1 : Add struct device *dev in probe func(),so that dev pointer can be widely use in probe to make code more readable. Patch 2 : Export function to be use by device driver to configure voltage

[PATCH v2 1/1] mmc: sdhci-of-arasan: Fix clock registration fail for Keem Bay SOC

2020-11-17 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Commit 16ada730a759 ("mmc: sdhci-of-arasan: Modify clock operations handling") introduces platform specific SDHCI clock operation. Each platform should specify clock operations handlers. Commit 16ada730a759 ("mmc: sdhci-of-arasan: Modify clock oper

[PATCH v2 0/1] mmc: sdhci-of-arasan: Fix clock registration fail for Keem Bay SOC

2020-11-17 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. This patch specify clock operations handlers for Keem Bay SOC devices due to the introduction of new clock operations handling. Tested with Keem Bay evaluation module board. Kindly help to review it. Thank you. Changes since v1: - Update the commit

[PATCH v1 1/1] mmc: sdhci-of-arasan: Specify .clk_ops for Keem Bay SOC

2020-11-05 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Commit 16ada730a759 ("mmc: sdhci-of-arasan: Modify clock operations handling") introduces platform specific SDHCI clock operation. This patch declares the clock operation for Keem Bay. Add clk_ops for SD, EMMC and SDIO operations. Fixes: 36c6aada

[PATCH v1 0/1] mmc: sdhci-of-arasan: Specify .clk_ops for Keem Bay SOC

2020-11-05 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. This patch declares the .clk_ops for Keem Bay SOC due to the introduction of new clock operations handling. This was tested with Keem Bay evaluation module board. Kindly help to review it. Thank you. Muhammad Husaini Zulkifli (1): mmc: sdhci-of-arasan

[PATCH v5 2/4] dt-bindings: mmc: Add uhs-gpio for Keem Bay UHS-1 Support

2020-10-08 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add DT bindings of uhs-gpio for Keem Bay SOC UHS Mode Support Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Michal Simek --- Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git

[PATCH v5 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-08 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface. There are 2 places to control the voltage. 1) By setting the AON register using firmware driver calling system-level platform management layer (SMC) to set the register. 2) By controlling the GPIO

[PATCH v5 0/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-08 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. The first patch is the header file to handle ATF call. The second patch is DT binding for arasan controller for uhs support. The third patch is to introduce the structure device pointer in arasan controller probe. The fourth patch is to enable UHS-1

[PATCH v5 3/4] mmc: sdhci-of-arasan: Add structure device pointer in probe

2020-10-08 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add struct device *dev in probe func() so that it can widely use in probe to make code more readable. Signed-off-by: Muhammad Husaini Zulkifli --- drivers/mmc/host/sdhci-of-arasan.c | 37 +++--- 1 file changed, 19 insertions(+), 18

[PATCH v5 1/4] firmware: keembay: Add support for Trusted Firmware Service call

2020-10-08 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add header file to handle API function for device driver to communicate with Trusted Firmware - A profile(TF-A) or Trusted Firmware - M profile (TF-M). Signed-off-by: Muhammad Husaini Zulkifli Acked-by: Michal Simek Acked-by: Sudeep Holla --- include/linux

[PATCH v4 3/4] mmc: sdhci-of-arasan: Add structure device pointer in probe

2020-10-07 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add struct device *dev in probe func() so that it can widely use in probe to make code more readable. Signed-off-by: Muhammad Husaini Zulkifli --- drivers/mmc/host/sdhci-of-arasan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/sdhci

[PATCH v4 0/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-07 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. The first patch is the header file to handle ATF call. The second patch is DT binding for arasan controller for uhs support. The third patch is to introduce the structure device pointer in arasan controller probe. The fourth patch is to enable UHS-1

[PATCH v4 4/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-07 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface. There are 2 places to control the voltage. 1) By setting the AON register using firmware driver calling system-level platform management layer (SMC) to set the register. 2) By controlling the GPIO

[PATCH v4 2/4] dt-bindings: mmc: Add uhs-gpio for Keem Bay UHS-1 Support

2020-10-07 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add DT bindings of uhs-gpio for Keem Bay SOC UHS Mode Support Signed-off-by: Muhammad Husaini Zulkifli --- Documentation/devicetree/bindings/mmc/arasan,sdhci.yaml | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation

[PATCH v4 1/4] firmware: keembay: Add support for Arm Trusted Firmware Service call

2020-10-07 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add header file to handle API function for device driver to communicate with Arm Trusted Firmware. Signed-off-by: Muhammad Husaini Zulkifli --- .../linux/firmware/intel/keembay_firmware.h | 47 +++ 1 file changed, 47 insertions(+) create mode

[PATCH v3 1/2] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-06 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface. There are 2 places to control the voltage. 1) By setting the AON register using firmware driver calling system-level platform management layer (SMC) to set the register. 2) By controlling the GPIO

[PATCH v3 0/2] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-06 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. The first patch is to enable UHS-1 Support for Keem Bay EVM. The second patch is the header file to handle ATF call. These 2 patches was tested with Keem Bay evaluation module board. Kindly help to review this patch set. Thank you. Changes since v2

[PATCH v3 2/2] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-06 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add header file to handle API function for device driver to communicate with Arm Trusted Firmware. Signed-off-by: Muhammad Husaini Zulkifli --- .../linux/firmware/intel/keembay_firmware.h | 46 +++ 1 file changed, 46 insertions(+) create mode

[PATCH v2 1/3] dt-bindings: arm: firmware: Add binding for Keem Bay Firmware Support

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add bindings for Keem Bay implementation of Arm Trusted Firmware Services call. Update the MAINTAINERS list. Signed-off-by: Muhammad Husaini Zulkifli --- .../arm/firmware/keembay,firmware.yaml| 36 +++ MAINTAINERS

[PATCH v2 0/3] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Hi. The first patch is to document DT bindings for Keem Bay Firmware Driver and update the Maintainers list. The second patch is the firmware driver file. The third patch is to enable UHS-1 Support for Keem Bay EVM. The patch was tested with Keem Bay

[PATCH v2 3/3] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface. There are 2 places to control the voltage. 1) By setting the AON register using firmware driver calling system-level platform management layer (SMC) to set the register. 2) By controlling the GPIO

[PATCH v2 2/3] firmware: Keem Bay: Add support for Arm Trusted Firmware Service call

2020-10-01 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Add generic firmware driver for Keem Bay SOC to support Arm Trusted Firmware Services call. Signed-off-by: Muhammad Husaini Zulkifli --- drivers/firmware/Kconfig | 1 + drivers/firmware/Makefile | 1 + drivers/firmware

[PATCH v1 1/1] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC

2020-09-13 Thread muhammad . husaini . zulkifli
From: Muhammad Husaini Zulkifli Voltage switching sequence is needed to support UHS-1 interface as Keem Bay EVM is using external voltage regulator to switch between 1.8V and 3.3V. Signed-off-by: Muhammad Husaini Zulkifli Reviewed-by: Andy Shevchenko Reviewed-by: Adrian Hunter --- drivers