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: 11035503 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 067F013BD for ; Mon, 8 Jul 2019 17:33:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E62D1285EA for ; Mon, 8 Jul 2019 17:33:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA7C228658; Mon, 8 Jul 2019 17:33:49 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47212285EA for ; Mon, 8 Jul 2019 17:33:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388751AbfGHRds (ORCPT ); Mon, 8 Jul 2019 13:33:48 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42262 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388422AbfGHRdr (ORCPT ); Mon, 8 Jul 2019 13:33:47 -0400 Received: by mail-wr1-f68.google.com with SMTP id a10so16970388wrp.9; 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=NqH7TOKwlQtuNsADT2K7+HBzb6MR7vJ0pBSs9DjH1R5rkm49ERTuq06ijDwioCdarz l0GegfSEK3kSVi6ZXQtJRQokklx3H9hP1VlHitFDDfs6appQOLjh3YEDfGY2MH3wykxx wXZ2aiP01aWdPD1emC1Yea4iq44qnwsz8gWg3OMd+zgDjar9SSoZUfnG5Np2tmQxf3wg txuHd8875yMsZtyQprlfabrHtrky335UZZ5x0Q1vZW3H09w4jaC7VsA1dTiXFml4N6xE cNhajKQHMeJ4Sj9cnSAmub7OTDnLwYeq9WOy8Na6e7Bx9MaNfI2+NvTZaOVVD2i5m3Sc xBRg== X-Gm-Message-State: APjAAAX/P6DmaS0qxrRwVi0PeBgxFJFa08NdrCYT79eUZr8W3eNGq2Rh W7Au0X3CUPGukqD0nL3ZE4g= 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, Martin Blumenstingl 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 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.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