Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp187180pxa; Fri, 21 Aug 2020 04:51:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxxxEmBgcnmJJASlVyYuzFvuh/FtyEi6p/Gzm2XRvb8U81SF7d1cCmTQxH1xnKfkbverj62 X-Received: by 2002:a17:906:6406:: with SMTP id d6mr2511235ejm.30.1598010710834; Fri, 21 Aug 2020 04:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598010710; cv=none; d=google.com; s=arc-20160816; b=Jv+T6ITTTvVL3nck1PrBtaIGvdD3IqFDIQ9aMIZiNPzbmfd4Y8cPNvI2tD2MZY1twZ X+jkkOZtB3IgjgXxef40kCE/p0fgGqOANGlnFgIASSUQ+owoTD/x1FztuxtDsdKzt9mK HcHTd+/9wVKNIHCaLDCpNiSC2lDOj4Q7V+jPAxfg3cePbL7BFRqXApuFb0I4zTan+Ldl IJRETSS0ygXNO14Hwf70qkqbfOp3/7231rr/3BZqtyKLOjkfiA6Pqmu+C/ZlZBDZ4qYC HbveAS4JtatP25jM1ZxmHKa7H/HCsTwqfJschZgazzXtYuLaN3mhN1uWAxEK3dTYkPll O9EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=WQW+hwsgSW8GclumXLsqKjM5D5SmpbNCpuD6kLDKpuI=; b=UYZY4FWo3xrpc+1upQfTqtbFBZeIaSX7zX5YoEjkF7sGTmGtFTYukBZnJwR0NbuZ03 jOS0q0hUv/N3AWgnBHyVFVlhjVDTT6nYZMoGLeAAplkujTvSk1Yhxc5+6oDTI3qm651L x0QWy9f/DDJG9EeZN9azp1wMxLdBVqjK79y2oY1DzbwL/hTCZVbfKI7jb3+zsWYu3/gZ wk5x/6zq0W6+w7LQZVDVfxApjD8+N3tJegVmJBtvyJNj6ztRglD+klAfXPky1IlnWmCH 2obFaN4dVchykmMfGkjzVrnbyByf7SQWdZppZtu+Twk8b0a1ETQODD6D6TrfL02UlMb3 sPCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si1246864edx.86.2020.08.21.04.51.27; Fri, 21 Aug 2020 04:51:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728173AbgHULul (ORCPT + 99 others); Fri, 21 Aug 2020 07:50:41 -0400 Received: from mga02.intel.com ([134.134.136.20]:14287 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728550AbgHULju (ORCPT ); Fri, 21 Aug 2020 07:39:50 -0400 IronPort-SDR: Y5K4zKlOqOXhkIeHxmflq9y3e5V83CXMLAo/MW/tfKfYTOU+bl4WBf53W+3yEKl3KDe7nC19tG LfiJ5wHc59Cw== X-IronPort-AV: E=McAfee;i="6000,8403,9719"; a="143305569" X-IronPort-AV: E=Sophos;i="5.76,335,1592895600"; d="scan'208";a="143305569" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Aug 2020 04:39:39 -0700 IronPort-SDR: 8Sf87sfsDKabPw+QBy4GE2Sn2+XhoMzh7YDQ/CEJfaG8d3zBCBccMrQcd9YCuyf3tak5HIeRjv BROt9xdMvj8A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,335,1592895600"; d="scan'208";a="327740407" Received: from wwanmoha-ilbpg2.png.intel.com ([10.88.227.42]) by orsmga008.jf.intel.com with ESMTP; 21 Aug 2020 04:39:37 -0700 From: Wan Ahmad Zainie To: kishon@ti.com, vkoul@kernel.org, robh+dt@kernel.org, andriy.shevchenko@intel.com, eswara.kota@linux.intel.com, vadivel.muruganx.ramuthevar@linux.intel.com, lakshmi.bai.raja.subramanian@intel.com Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v7 0/3] phy: intel: Add Keem Bay eMMC PHY support Date: Fri, 21 Aug 2020 19:37:44 +0800 Message-Id: <20200821113747.2912-1-wan.ahmad.zainie.wan.mohamad@intel.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. The first patch is new and added to rename rename phy-intel-{combo,emmc}.c to phy-intel-lgm-{combo,emmc}.c.. The second patch is to document DT bindings for Keem Bay eMMC PHY. The the third is the driver file, loosely based on phy-rockchip-emmc.c and phy-intel-emmc.c. The latter is not being reused as there are quite a number of differences i.e. registers offset, supported clock rates, bitfield to set. The patch was tested with Keem Bay evaluation module board. Thank you. Best regards, Zainie Changes since v6: - Add new patch to rename phy-intel-{combo,emmc}.c to phy-intel-lgm-{combo,emmc}.c. - Add Reviewed-by: Rob Herring tag to 2nd patch. - In 3rd patch, - add and use generic helper to update register bits, - end module name with .ko in Kconfig help. Changes since resend v5: - In keembay_emmc_phy_power(), remove redundant return ret;. Resend v5: - Include missing changes done for phy-keembay-emmc.c (See Changes since v3) Changes since v4: - In Kconfig file, add depends on ARM64 || COMPILE_TEST and depends on OF && HAS_IOMEM. - In Kconfig file, reword the help section to be more verbose. Changes since v3: - Exit keembay_emmc_phy_power() with return ret;. - In keembay_emmc_phy_init(), use PTR_ERR_OR_ZERO(...). - In keembay_emmc_phy_probe(), devm_regmap_init_mmio(...) in single line. Changes since v2: - Modify DT example to use single cell for address and size. Changes since v1: - Rework phy-keembay-emmc.c to make it similar to phy-intel-emmc.c. - Use regmap_mmio, and remove reference to intel,syscon. - Use node name phy@.... - Update license i.e. use dual license. Wan Ahmad Zainie (3): phy: intel: Rename phy-intel to phy-intel-lgm dt-bindings: phy: intel: Add Keem Bay eMMC PHY bindings phy: intel: Add Keem Bay eMMC PHY support .../bindings/phy/intel,keembay-emmc-phy.yaml | 44 +++ drivers/phy/intel/Kconfig | 22 +- drivers/phy/intel/Makefile | 5 +- drivers/phy/intel/phy-intel-keembay-emmc.c | 310 ++++++++++++++++++ ...hy-intel-combo.c => phy-intel-lgm-combo.c} | 0 ...{phy-intel-emmc.c => phy-intel-lgm-emmc.c} | 0 6 files changed, 374 insertions(+), 7 deletions(-) create mode 100644 Documentation/devicetree/bindings/phy/intel,keembay-emmc-phy.yaml create mode 100644 drivers/phy/intel/phy-intel-keembay-emmc.c rename drivers/phy/intel/{phy-intel-combo.c => phy-intel-lgm-combo.c} (100%) rename drivers/phy/intel/{phy-intel-emmc.c => phy-intel-lgm-emmc.c} (100%) -- 2.17.1