From patchwork Mon Sep 16 15:45:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manivannan Sadhasivam X-Patchwork-Id: 173856 Delivered-To: patch@linaro.org Received: by 2002:ac9:19ad:0:0:0:0:0 with SMTP id d45csp4056257oce; Mon, 16 Sep 2019 08:46:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTTjyBQQtosELbMTqYBmwCeVH9yT/JpC6IWo5PsgSFBIxgjcBj6oFRkB1zXUbcH/PX/Kk7 X-Received: by 2002:aa7:c759:: with SMTP id c25mr2919392eds.15.1568648779144; Mon, 16 Sep 2019 08:46:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568648779; cv=none; d=google.com; s=arc-20160816; b=fiJiPs4q/zG5DBKfnkHt79SYWTbETK/IFdVJvQwk9+QjFqSQ2MD/1W5w7FYYltrHjb wYOfYOcjCVU/mgrwsdPNuPMA5GpygQ9wUayUgf/8zAO5F2rPtnKiiEonMd1Ti8Vi9LTk JtSeH6w8v5T6N/HHc1sEC80ZsbWnQBTcvnHapVdNZaZuL3CuvQn/KzKpHNqKQL/bYMgi nZ5Zxl2SGS38ujmzQCHCHUspAMaLUbSx2uEfujHp2XeNQrXCt/VLQXwK3kjra7yh3tYZ tR90XRBFNVQJZ6AtlU9jd4tCaHp2A2HHBuofiIlLQESgPWyzI95/tSqbfNZ+iSuWPbT7 sCEQ== 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 :dkim-signature; bh=A4sU7UOqqLDDD2RT3o3Y/vMwQW6JnCqfyCA4YeqCaoI=; b=LgCQLzIBqchyryIYwgRNzP5s3fUM8dPE05TKfB5ztM8rihBH4slwHT4ntkTLzXtxsx a1rQNo7uaq0ER8lFXFsDGJgl0HkFd11JQHGAkgQZz5CbJ/RFDc/o24KXjZVyG+Ja3T5X 7Ta4DChG4TrGhNi9113Wk15da1ZRCm4MKxRxxl5xlVFY8f6I64JP4Xr8bGKkBxLnKxDX xDgxjwGSfKhGUDCKVnLfMmLU60q4AljlgDQk6ce1gkI6QZm0FM6sNKrmyPZXCc73M3Tu kPjZMknUgK58YPLvwcB9bOtQW87GLeF+ZC2AchXvKo5XforQCzrcKBGdAGtC6cIVdzRC wWrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IKvxlx+n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y54si24504764edb.217.2019.09.16.08.46.18; Mon, 16 Sep 2019 08:46:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IKvxlx+n; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389342AbfIPPqS (ORCPT + 8 others); Mon, 16 Sep 2019 11:46:18 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:45275 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731014AbfIPPqS (ORCPT ); Mon, 16 Sep 2019 11:46:18 -0400 Received: by mail-pl1-f194.google.com with SMTP id x3so45330plr.12 for ; Mon, 16 Sep 2019 08:46:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=A4sU7UOqqLDDD2RT3o3Y/vMwQW6JnCqfyCA4YeqCaoI=; b=IKvxlx+nu16eSsm9sL3A0k2aBI/C2r1rf9Yqhm/YfngGL8GNi2G8ltF+JPoKuYITmp vi8iMMiBXxItKSE3SjVowtWhTsQPzemF1+I4gAkg+yXKiaMymxzivYM1Ydm0esiqOMKo 16loTJNenDz//rlIfBkCLd/BMUUdQcuJ4R8sCFuZ5y/mdNH1qSFoGXdgjh2CJcjoApXA DR88nhw1vYmi4+AICxXge47mAfJ0gYakuefwxcwhZfCF4duNZB6pJ7tNTnSHcsB7fmzL JoO0qvrD3wcL03dRDDNPUtmBr3J+MWWavDyPENpFGjWtjdaSDI53JzErfSAFzKlMBVEF aQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=A4sU7UOqqLDDD2RT3o3Y/vMwQW6JnCqfyCA4YeqCaoI=; b=YobFkbhZ/RDSdIKlymiE+0IXhZGQ1jVASlGeaWEAhrfsg8Cy3uMJeoctRfg2ABCKXm yEukNEceV0YfE7UKGpGHjc/Y9HTfQKiVAN/zVfW4PRND42Jp8LxNeh8i9vJRlzMOSWDN 4/cUwOfsZt4nZscFQFKSFBXYY7ZokH4TZDRuw2TPFJnFpSoKXx5g159StuHRpgzrik2r 22qER7I+W5GKUFeiCoMJtidj3FMtxUA++4GLS7ZdKpmUJpgvakiZS/ynk0G1UlAOdalt Szp51tnBo1SnvYKQwNow+syTrpyPi8Kxz+OsTnd658HAvweZxAe3p+MBGaLZNhmlc+lE NNrw== X-Gm-Message-State: APjAAAUHvOQK7rqLGuh1yHJquBICe/3cd14Oj2RHpQnxmWY0/30c1hwf egYcnXQxkBewbqH5+H0ZJAQs/rqJWg== X-Received: by 2002:a17:902:8e84:: with SMTP id bg4mr445925plb.43.1568648777356; Mon, 16 Sep 2019 08:46:17 -0700 (PDT) Received: from localhost.localdomain ([2409:4072:90b:91ce:94c2:ef93:5bd:cfe8]) by smtp.gmail.com with ESMTPSA id s5sm36227670pfe.52.2019.09.16.08.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Sep 2019 08:46:16 -0700 (PDT) From: Manivannan Sadhasivam To: ulf.hansson@linaro.org, afaerber@suse.de, robh+dt@kernel.org, sboyd@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.liau@actions-semi.com, linux-actions@lists.infradead.org, linus.walleij@linaro.org, linux-clk@vger.kernel.org, Manivannan Sadhasivam Subject: [PATCH v4 0/7] Add SD/MMC driver for Actions Semi S900 SoC Date: Mon, 16 Sep 2019 21:15:39 +0530 Message-Id: <20190916154546.24982-1-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, This patchset adds SD/MMC driver for Actions Semi S900 SoC from Owl family SoCs. There are 4 SD/MMC controller present in this SoC but only 2 are enabled currently for Bubblegum96 board to access uSD and onboard eMMC. SDIO support for this driver is not currently implemented. Note: Currently, driver uses 2 completion mechanisms for maintaining the coherency between SDC and DMA interrupts and I know that it is not efficient. Hence, I'd like to hear any suggestions for reimplementing the logic if anyone has. With this driver, this patchset also fixes one clk driver issue and enables the Actions Semi platform in ARM64 defconfig. Thanks, Mani Changes in v4: * Incorporated review comments from Rob on dt binding Changes in v3: * Incorporated a review comment from Andreas on board dts patch * Modified the MAINTAINERS entry for devicetree YAML binding Changes in v2: * Converted the devicetree bindings to YAML * Misc changes to bubblegum devicetree as per the review from Andreas * Dropped the read/write wrappers and renamed all functions to use owl- prefix as per the review from Ulf * Renamed clk_val_best to owl_clk_val_best and added Reviewed-by tag from Stephen Manivannan Sadhasivam (7): clk: actions: Fix factor clk struct member access dt-bindings: mmc: Add Actions Semi SD/MMC/SDIO controller binding arm64: dts: actions: Add MMC controller support for S900 arm64: dts: actions: Add uSD and eMMC support for Bubblegum96 mmc: Add Actions Semi Owl SoCs SD/MMC driver MAINTAINERS: Add entry for Actions Semi SD/MMC driver and binding arm64: configs: Enable Actions Semi platform in defconfig .../devicetree/bindings/mmc/owl-mmc.yaml | 59 ++ MAINTAINERS | 2 + .../boot/dts/actions/s900-bubblegum-96.dts | 62 ++ arch/arm64/boot/dts/actions/s900.dtsi | 45 ++ arch/arm64/configs/defconfig | 1 + drivers/clk/actions/owl-factor.c | 7 +- drivers/mmc/host/Kconfig | 8 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/owl-mmc.c | 696 ++++++++++++++++++ 9 files changed, 877 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/mmc/owl-mmc.yaml create mode 100644 drivers/mmc/host/owl-mmc.c -- 2.17.1