From patchwork Thu Nov 10 15:00:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viacheslav X-Patchwork-Id: 13038871 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CF305C433FE for ; Thu, 10 Nov 2022 15:02:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fDO/QfFTyUkWxGNPSXWbdacfJt9hvDMLg/Hl42s3Yxw=; b=GTxihCCOP6FfSd yFCK7YDVzMHv80x9jRU2g70R8IqKgSOfRmv4azo1p8uDdikejG9CdzLWouPfcOGDH1dQRiRCr2RNd BjpXBDb9O+3R5yrhOIZgNgxjc470rtTBn+MDgx4VIZ7nESIh2nRKpgDKW9gUk6XQ+Jtiqmv3F4AzW Y+erSIU53IORuXH5sTYsUtPc3fSZClwPEhVFIVt2z+Opm8WB770KkZ9GlIdyh9Uw7UMpfzXaHxdBb g5jCHaCviM69+wP9Pj/tg42dvh6u7d4zi5QKSKhI8ihDtbDZqp4furhzNEowpxKb3KyD3bhvQw+gW g55LbxpCS5PvRf3zMnFg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot93b-006Z2p-4X; Thu, 10 Nov 2022 15:01:31 +0000 Received: from mx.msync.work ([185.250.0.168]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ot93O-006YvN-Uu; Thu, 10 Nov 2022 15:01:20 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 990931231BE; Thu, 10 Nov 2022 15:01:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lexina.in; s=dkim; t=1668092467; h=from:subject:date:message-id:to:mime-version: content-transfer-encoding; bh=OTEcSrKbeEwGEfVJ7rDTBCJPtPYB3owKDL9ENQiVtws=; b=r/vrCUS6kd2GZejTmbFjVRuqxeY+xmENmIllYtzTlrrpwlYS+FSTKH4+ZDcETN4KgJdwg5 pX47Cb4mQ4XvzAd8lmVJWw9xHd/sFGRZ/OBmS5aTUxPPpbIp3/JryjxXB5dEcKTLeyRseG rqL/FX0NUI6ZGxSoezA17RxFnHI5AoYMqtr+5s8/w/FpVdb9ECdFP63lwBn6VbhKFPQoX5 iMBLrmPJLpr/L1S0ZnEHaLF/fcpHfHGpn3HlVf203H4rv8O/BEIQzDoIWjlcB3XWi30EgP 34m027fzMNaEIyZVWDROYiUS9ZvfJZEEzwIZHCkke6EIB/MPxzOD9dhKabUmeA== From: Vyacheslav Bocharov To: linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] arm64: amlogic: mmc: meson-gx: Add core, tx, rx Date: Thu, 10 Nov 2022 18:00:31 +0300 Message-Id: <20221110150035.2824580-1-adeep@lexina.in> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221110_070119_170312_EDDBE4E0 X-CRM114-Status: UNSURE ( 7.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The mmc driver use the same phase values (core - 180, tx/rx - 0) for all meson64 platforms. However, some platforms (and even some boards) require different values (axg for example use 270 degree for core clock). This patch transfers the values from the code to the variables in the device-tree files. If not set in dts, use old default values. Vyacheslav Bocharov (4): arm64: amlogic: mmc: meson-gx: Add core, tx, rx eMMC/SD/SDIO phase clock settings from devicetree data arm64: amlogic: mmc: meson-gx: Add dts binding include for core, tx, rx eMMC/SD/SDIO phase clock settings from devicetree data arm64: amlogic: dts: meson: update meson-axg device-tree for new core, tx, rx phase clock settings. arm64: dts: docs: Update mmc meson-gx documentation for new config option amlogic,mmc-phase .../bindings/mmc/amlogic,meson-gx.txt | 7 ++++ arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 3 ++ drivers/mmc/host/meson-gx-mmc.c | 18 +++++++--- include/dt-bindings/mmc/meson-gx-mmc.h | 35 +++++++++++++++++++ 4 files changed, 58 insertions(+), 5 deletions(-) create mode 100644 include/dt-bindings/mmc/meson-gx-mmc.h