Add support for eMMC PHY on Intel Thunder Bay
Subsystems (5)
cover Add support for eMMC PHY on Intel Thunder Bay
From: Rashmi A <[email protected]>
This patch set enables the support for eMMC PHY on the Intel Thunder Bay SoC.
Patch 1 Holds the relevant Device Tree bindings documentation
and listings of new files in MAINTAINERS file
Patch 2 Adds support for eMMC Intel Thunder Bay Patch 3 Adds Thunder Bay eMMC PHY support
The review comments from Adrian Hunter, Kris Pan, Furong Zhou and Mark Gross have been incorporated.
Please help to review this patch set
Thanks
Rashmi A (3):
dt-bindings: phy: intel: Add Thunder Bay eMMC PHY bindings
mmc: sdhci-of-arasan: Add intel Thunder Bay SOC support to the arasan
eMMC driver
phy: intel: Add Thunder Bay eMMC PHY support
.../phy/intel,phy-thunderbay-emmc.yaml | 49 ++ MAINTAINERS | 7 + drivers/mmc/host/sdhci-of-arasan.c | 29 +- drivers/phy/intel/Kconfig | 10 + drivers/phy/intel/Makefile | 1 + drivers/phy/intel/phy-intel-thunderbay-emmc.c | 500 ++++++++++++++++++ 6 files changed, 595 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/phy/intel,phy-thunderbay-emmc.yaml create mode 100644 drivers/phy/intel/phy-intel-thunderbay-emmc.c
Signature · 7 lines
2.17.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
PATCH 1/3 dt-bindings: phy: intel: Add Thunder Bay eMMC PHY bindings
From: Rashmi A <[email protected]>
Binding description for Intel Thunder Bay eMMC PHY. Added the newly introduced files into MAINTAINERS file-list
--- .../phy/intel,phy-thunderbay-emmc.yaml | 49 +++++++++++++++++++ MAINTAINERS | 7 +++ 2 files changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/intel,phy-thunderbay-emmc.yaml
Documentation/devicetree/bindings/phy/intel,phy-thunderbay-emmc.yaml new file +49 -0
@@ -0,0 +1,49 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/intel,phy-thunderbay-emmc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel Thunder Bay eMMC PHY bindings + +maintainers: + - Srikandan Nandhini <[email protected]> + +properties: + compatible: + oneOf: + - const: intel,thunderbay-emmc-phy + - const: intel,thunderbay-sdhci-5.1 + - const: intel,thunderbay-sd-phy + + "#phy-cells": + const: 0 + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: emmcclk + +required: + - "#phy-cells" + - compatible + - reg + - clocks + +additionalProperties: false + +examples: + - | + mmc_phy@80440800 { + #phy-cells = <0x0>; + compatible = "intel,thunderbay-emmc-phy"; + status = "okay"; + reg = <0x80440800 0x100>; + clocks = <&emmc>; + clock-names = "emmcclk"; + };
MAINTAINERS +7 -0
@@ -9278,6 +9278,13 @@ F: drivers/crypto/keembay/keembay-ocs-hcu-core.c F: drivers/crypto/keembay/ocs-hcu.c F: drivers/crypto/keembay/ocs-hcu.h +INTEL THUNDER BAY EMMC PHY DRIVER +M: Nandhini Srikandan <[email protected]> +M: Rashmi A <[email protected]> +S: Maintained +F: Documentation/devicetree/bindings/phy/intel,phy-thunderbay-emmc.yaml +F: drivers/phy/intel/phy-intel-thunderbay-emmc.c + INTEL MANAGEMENT ENGINE (mei) M: Tomas Winkler <[email protected]> L: [email protected]
Signature · 7 lines
2.17.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
PATCH 2/3 mmc: sdhci-of-arasan: Add intel Thunder Bay SOC support to the arasan eMMC driver
In reply to [email protected]From: Rashmi A <[email protected]>
Intel Thunder Bay SoC eMMC controller is based on Arasan eMMC 5.1 host controller IP
--- drivers/mmc/host/sdhci-of-arasan.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-)
drivers/mmc/host/sdhci-of-arasan.c +28 -1
@@ -185,6 +185,13 @@ static const struct sdhci_arasan_soc_ctl_map intel_lgm_sdxc_soc_ctl_map = { .hiword_update = false, }; +static const struct sdhci_arasan_soc_ctl_map thunderbay_soc_ctl_map = { + .baseclkfreq = { .reg =0x0 , .width =8 , .shift =14 }, + .clockmultiplier = { .reg =0x4 , .width =8 , .shift =14 }, + .support64b = { .reg =0x4 , .width =1 , .shift =24 }, + .hiword_update = false, +}; +static const struct sdhci_arasan_soc_ctl_map intel_keembay_soc_ctl_map = { .baseclkfreq = { .reg =0x0 , .width =8 , .shift =14 }, .clockmultiplier = { .reg =0x4 , .width =8 , .shift =14 },
@@ -430,6 +437,15 @@ static const struct sdhci_pltfm_data sdhci_arasan_cqe_pdata = { SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN, }; +static const struct sdhci_pltfm_data sdhci_arasan_thunderbay_pdata = { + .ops = &sdhci_arasan_cqe_ops, + .quirks =SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |SDHCI_QUIRK_NO_ENDATTR_IN_NOPDESC , + .quirks2 =SDHCI_QUIRK2_PRESET_VALUE_BROKEN | +SDHCI_QUIRK2_CLOCK_DIV_ZERO_BROKEN | +SDHCI_QUIRK2_STOP_WITH_TC | +SDHCI_QUIRK2_CAPS_BIT63_FOR_HS400 , +}; +#ifdef CONFIG_PM_SLEEP /** * sdhci_arasan_suspend - Suspend method for the driver
@@ -1098,6 +1114,12 @@ static struct sdhci_arasan_of_data sdhci_arasan_generic_data = { .clk_ops = &arasan_clk_ops, }; +static const struct sdhci_arasan_of_data sdhci_arasan_thunderbay_data = { + .soc_ctl_map = &thunderbay_soc_ctl_map, + .pdata = &sdhci_arasan_thunderbay_pdata, + .clk_ops = &arasan_clk_ops, +}; +static const struct sdhci_pltfm_data sdhci_keembay_emmc_pdata = { .ops = &sdhci_arasan_cqe_ops, .quirks = SDHCI_QUIRK_CAP_CLOCK_BASE_BROKEN |
@@ -1231,6 +1253,10 @@ static const struct of_device_id sdhci_arasan_of_match[] = { .compatible = "intel,keembay-sdhci-5.1-sdio", .data = &intel_keembay_sdio_data, }, + { + .compatible = "intel,thunderbay-sdhci-5.1", + .data = &sdhci_arasan_thunderbay_data, + },/* Generic compatible below here */ { .compatible = "arasan,sdhci-8.9a",
@@ -1582,7 +1608,8 @@ static int sdhci_arasan_probe(struct platform_device *pdev)if (of_device_is_compatible (np,"intel,keembay-sdhci-5.1-emmc" ) ||of_device_is_compatible (np,"intel,keembay-sdhci-5.1-sd" ) || -of_device_is_compatible (np,"intel,keembay-sdhci-5.1-sdio" )) { +of_device_is_compatible (np,"intel,keembay-sdhci-5.1-sdio" ) || +of_device_is_compatible (np,"intel,thunderbay-sdhci-5.1" )) {sdhci_arasan_update_clockmultiplier (host,0x0 );sdhci_arasan_update_support64b (host,0x0 );
Signature · 7 lines
2.17.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy
PATCH 3/3 phy: intel: Add Thunder Bay eMMC PHY support
In reply to [email protected]From: Rashmi A <[email protected]>
Add support for eMMC PHY on Intel Thunder Bay SoC, uses the Arasan eMMC phy
--- drivers/phy/intel/Kconfig | 10 + drivers/phy/intel/Makefile | 1 + drivers/phy/intel/phy-intel-thunderbay-emmc.c | 500 ++++++++++++++++++ 3 files changed, 511 insertions(+) create mode 100644 drivers/phy/intel/phy-intel-thunderbay-emmc.c
drivers/phy/intel/Kconfig +10 -0
@@ -46,3 +46,13 @@ config PHY_INTEL_LGM_EMMC select GENERIC_PHY help Enable this to support the Intel EMMC PHY + +config PHY_INTEL_THUNDERBAY_EMMC + tristate "Intel Thunder Bay eMMC PHY driver" + depends on OF && (ARCH_THUNDERBAY || COMPILE_TEST) + select GENERIC_PHY + help + This option enables support for Intel Thunder Bay SoC eMMC PHY. + + To compile this driver as a module, choose M here: the module + will be called phy-intel-thunderbay-emmc.ko.
drivers/phy/intel/Makefile +1 -0
@@ -1,5 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_PHY_INTEL_KEEMBAY_EMMC) += phy-intel-keembay-emmc.o +obj-$(CONFIG_PHY_INTEL_THUNDERBAY_EMMC) += phy-intel-thunderbay-emmc.o obj-$(CONFIG_PHY_INTEL_KEEMBAY_USB) += phy-intel-keembay-usb.o obj-$(CONFIG_PHY_INTEL_LGM_COMBO) += phy-intel-lgm-combo.o obj-$(CONFIG_PHY_INTEL_LGM_EMMC) += phy-intel-lgm-emmc.o
drivers/phy/intel/phy-intel-thunderbay-emmc.c new file +500 -0
500 lines not on this page · raw message
Signature · 7 lines
2.17.1 -- linux-phy mailing list [email protected] https://lists.infradead.org/mailman/listinfo/linux-phy