Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp650458pxu; Tue, 1 Dec 2020 23:06:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyp32/CfEp3YMC/7GEf3QrUg1bJpok2o78icQbhLUIDXH1qyjUQnwx9ILqRvmjY7NXYGsiJ X-Received: by 2002:a17:906:8292:: with SMTP id h18mr1014545ejx.481.1606892773139; Tue, 01 Dec 2020 23:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606892773; cv=none; d=google.com; s=arc-20160816; b=d7NfNja1EsLtoNyd1Pg6KgpiCWUaEfg2Ec1za0ogYYGiMPGj36SrkE1/BAb9ZzZFfn MmmybWNEfkdFtjtSNV1mZi775hQ3BLYopdYZsBkOZ5OtMnDQVVzZxjWwhghB6rEcuSj0 9rN1zF+fFCwl21abBRSLsLys8ZNiPQypuQaUG7tU8IPIVlvX+zEcQPZrcmrReOvR80a5 Db6uLCpdkiSwuNtp0lOKJLKWNSs4DlrJyoMyfTEUWL9VfaKmPyNiQ+6UGjAdIIX7eknS H6XDmhEnCpjRfG8OBQQ5VFjiE52sxOczjzHxvLXYyTwz8k7RZOp2HyQruqIF4+gmQ1oW 8+CA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=FMja5JqYxBPurASAmDAtu/8f7jDAHzUra1XQPxY2CxY=; b=fzTDWEzWesYbZ701D902QbXJu1f4vNEg/BH7/vo6kJFdYqXpjvqXSY8rRVR45AnjKb gHHuexMuqLmKr7hOb7HUDqOVTbworGVBkZjEz8cEW9U2aNuof+5pRScYyqF9t8An+t01 a58O5wpQrxy2cRUwWKZm4yI0bRxp7wBqtK8p5E1w71XOrFKEqxgQuuEuw/BSClLY4w/H To1vwkdtnD+9ki9zsVSphayUuln12WqGM5Ry2aqolVXB/H/SlOtGFgrkZkIvxVhPajiz qoZrc0uB4SLUXX4pxgbPc7jOd+6GvyD9nhYJKGK8Zq4FF1Ut/920QIyk0ASxOOimAag4 uYmQ== 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 u11si344351ejy.598.2020.12.01.23.05.49; Tue, 01 Dec 2020 23:06:13 -0800 (PST) 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 S2387581AbgLBHDW (ORCPT + 99 others); Wed, 2 Dec 2020 02:03:22 -0500 Received: from mga11.intel.com ([192.55.52.93]:44051 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387511AbgLBHDV (ORCPT ); Wed, 2 Dec 2020 02:03:21 -0500 IronPort-SDR: dSh0a4i0un78DEYoXidV93Z6O6tmkdPpw8jrB2LfPFR/tCpgCAmUSHhLjoyXJYWjvOURUQUwuj K789pe6dfeUQ== X-IronPort-AV: E=McAfee;i="6000,8403,9822"; a="169461814" X-IronPort-AV: E=Sophos;i="5.78,386,1599548400"; d="scan'208";a="169461814" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2020 23:02:35 -0800 IronPort-SDR: F5FL9BWhP9/jksfU/Tyf6FI/3KwHtZ08oEhhaeXhVKcp+A4P729DoD7m0DVlEx0gZMRVCDrANs /FieEoC1Jwqg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,386,1599548400"; d="scan'208";a="481429997" Received: from zulkifl3-ilbpg0.png.intel.com ([10.88.229.114]) by orsmga004.jf.intel.com with ESMTP; 01 Dec 2020 23:02:32 -0800 From: muhammad.husaini.zulkifli@intel.com To: ulf.hansson@linaro.org, adrian.hunter@intel.com, michal.simek@xilinx.com, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: andriy.shevchenko@intel.com, lakshmi.bai.raja.subramanian@intel.com, wan.ahmad.zainie.wan.mohamad@intel.com, muhammad.husaini.zulkifli@intel.com, mgross@linux.intel.com Subject: [PATCH v6 0/4] mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC Date: Wed, 2 Dec 2020 23:02:00 +0800 Message-Id: <20201202150205.20150-1-muhammad.husaini.zulkifli@intel.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 rail output. Patch 3 : Defined the DT binding to support the UHS-1 operation. Patch 4 : Gives an overview of how voltage operations happen to support UHS-1 mode for Keem Bay SOC. All of these patches was tested with Keem Bay evaluation module board. Kindly help to review this patch set. Thank you. Changes since v5: - Restructured voltage operation for io bus line in one function and added comments in sdhci-of-arasan.c. - Use gpio regulator modelling for expander pins. - Add DT Bindings for phys, vmmc and vqmmc supplies. - Renamed func name and added comments for firmware header files. - Update commit message for each patchs to describe what goes on. Changes since v4: - Fixed comment by Andy and Sudeep on first patch. - Add Acked-by tag. - Fixed comment by Michal and Andy on the third patch to replace current users of &pdev->dev. Changes since v3: - Add Dt bindings for uhs gpio. - Fixed comment by Michal and Sudeep on header file for the macro and error code. - Fixed comment by Andy and created 1 new patch to separate the struc dev pointer in probe func. - Fixed comment by Michal in arasan controller code. Changes since v2: - Removed Document DT Bindings for Keembay Firmware. - Removed Firmware Driver to handle ATF Service call. - Add header file to handle API function for device driver to communicate with Arm Trusted Firmware. Changes since v1: - Add Document DT Bindings for Keembay Firmware. - Created Firmware Driver to handle ATF Service call. - Provide API for arasan driver for sd card voltage changes. Muhammad Husaini Zulkifli (4): mmc: sdhci-of-arasan: Add structure device pointer in probe func firmware: keembay: Add support for Trusted Firmware Service call dt-bindings: mmc: Add phys, vmmc and vqmmc supplies for Keem Bay SOC mmc: sdhci-of-arasan: Enable UHS-1 support for Keem Bay SOC .../devicetree/bindings/mmc/arasan,sdhci.yaml | 6 +- drivers/mmc/host/sdhci-of-arasan.c | 282 ++++++++++++++++-- include/linux/firmware/intel/keembay.h | 54 ++++ 3 files changed, 322 insertions(+), 20 deletions(-) create mode 100644 include/linux/firmware/intel/keembay.h -- 2.17.1