From patchwork Mon Jul 8 17:33:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 11035505 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9CA414C0 for ; Mon, 8 Jul 2019 17:33:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D39A728658 for ; Mon, 8 Jul 2019 17:33:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C77872866C; Mon, 8 Jul 2019 17:33:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7CED028658 for ; Mon, 8 Jul 2019 17:33:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=vjsFpl6RywOIN0q13s7E2DN4wo0IQpV4KQ6DWakYwQs=; b=gaVjDdRuXS/1VV ISuixfdC6jDXCNGgyIoTgK3tg2rUo6PVjEpR7U5DsinVDemBeW4A5ytPMGdJnp1ZbJakLynoG3vsP +hL4wztnF69kTYLCnUK1mjh8cLLDKRknxPHkHPxnGmLB2P1Qow5EnbCLDkoXvqwG7sbjyqJKllNyV fNciQvs4J2DwIa8ikFUpBhiswY5tWZq+coVwE1csqOWGCmEN26KGXshHWfFGzBkvto2upmvxVCHNB wCGLJAMm9fv8exP8Zg6lVz8MM3TWmypBffRsLX6V8aW0dUdC0anFugVmVma22uALwX/DAqvPf44xr ih0y4rx28ih/KeLjfOGg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hkXWT-0004Mo-HP; Mon, 08 Jul 2019 17:33:53 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hkXWR-0004L8-9x; Mon, 08 Jul 2019 17:33:52 +0000 Received: by mail-wr1-x444.google.com with SMTP id r1so11726551wrl.7; Mon, 08 Jul 2019 10:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Q4VeygN0Abg7eEmu02zPFKG/LiENvzvS9nqQqihkBL4=; b=Ms9u75JBvQ3ZWj+BbPa8CjoX1faSTZB5rIGp8XdgdD+Ph+4ylCuVHXHEpV83vhU0Nl 0g1hzGyVSMzgFBNeszzX20XxoFoIr6vaBzjTKkesBzJXV6zZUxeEAH7kMoRL39cV2U8p hcqgM2xqn1LqHZly3XYgYNyxgoyvGu0dUp04G5jpcB3Icoqf7YT1nghZXcI2H0G+48/S N8U2riQAIlEyNF790SnBjFDHoQ2BQ6ZLL3bjbpefR1jXwbCc9fOnh/UbFiSZFe0IB6OD awZv2tPTY599CabMhLP82xSrw97aV6CgqeJex86/nMA50+nWzu3LLiSYJjxaUXOSrSOG YO6g== 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:mime-version :content-transfer-encoding; bh=Q4VeygN0Abg7eEmu02zPFKG/LiENvzvS9nqQqihkBL4=; b=AeoMf3qbS1XeUIXnVUwv6AucWmf2jv1eo3Km4pspqmfNTR+/t+m+/dlSAPYmk1e6jQ QmXvIhGAJArB0JVo3IeqO59bBMgjFQ24YAF1k3EeaaM1w5Ri04pDIw5Xzu1udiR+eJgT FDa7jtb9HgaJEJW6nFd6VKuIVWtIRY+3pw8lE+lLR4ZfSeWiVHAw8+tHJ9MI7qgNyNFn XmTQLMu/WkaSAPoCSkX3QSN024PpOlliLgRm9WyI9919ew419N0aazwCHSX8O874/Hg2 iBB+bu7haxfHhPDen4TYj6tQW+fC53S/sz9FsT6Mg86XRjuMPqKXCKmkItRgMfymgDUW MBjw== X-Gm-Message-State: APjAAAVji9ZxsjW4/1qFC+UZOGwXmJP3McclnULARmJk5BJqwgJmEpCf UZKQVkxatokfpEss+TZnbI+4ZnFt X-Google-Smtp-Source: APXvYqzfDOsaXbuIlIodiPzCSM9B4fMT2fL+R7nHm6g6q58Rvjk/xi/cA3+25XYz89sPIVOalja1uw== X-Received: by 2002:a5d:46cf:: with SMTP id g15mr1029573wrs.93.1562607225190; Mon, 08 Jul 2019 10:33:45 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133D62000D8A33B20A298F2F2.dip0.t-ipconnect.de. [2003:f1:33d6:2000:d8a3:3b20:a298:f2f2]) by smtp.googlemail.com with ESMTPSA id s3sm222975wmh.27.2019.07.08.10.33.43 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 10:33:44 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org, robh+dt@kernel.org, ulf.hansson@linaro.org, jianxin.pan@amlogic.com Subject: [PATCH RFC v1 0/2] Amlogic 32-bit Meson SDHC MMC controller driver Date: Mon, 8 Jul 2019 19:33:28 +0200 Message-Id: <20190708173330.13217-1-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190708_103351_345753_29518EB1 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, this is RFC v1 of the attempt to upstream the driver for the "SDHC" MMC controller found on Meson6, Meson8, Meson8b and Meson8m2 SoCs. The public S805 (Meson8b) datasheet has some documentation starting on page 74: [0] The goal of this RFC v1 is to: - find out how to set up the MMC clock correctly with Jianxin's help (see the description of patch #2 with questions) - get feedback from the MMC maintainers to see which bits need changing [0] https://dn.odroid.com/S805/Datasheet/S805_Datasheet%20V0.8%2020150126.pdf Martin Blumenstingl (2): dt-bindings: mmc: Document the Amlogic Meson SDHC MMC host controller mmc: host: meson-mx-sdhc: new driver for the Amlogic Meson SDHC host .../bindings/mmc/amlogic,meson-mx-sdhc.txt | 34 + drivers/mmc/host/Kconfig | 14 + drivers/mmc/host/Makefile | 1 + drivers/mmc/host/meson-mx-sdhc.c | 1161 +++++++++++++++++ 4 files changed, 1210 insertions(+) create mode 100644 Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdhc.txt create mode 100644 drivers/mmc/host/meson-mx-sdhc.c