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: 1449 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp204052wru; Thu, 10 Nov 2022 07:13:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM7j9ITm+cZwpSpuF7RANLwx8x2dGXuCYQuILF1LgCM9aRTRm4jgrthhbUIe+9EEbCOtqM6E X-Received: by 2002:a50:aad7:0:b0:461:d726:438f with SMTP id r23-20020a50aad7000000b00461d726438fmr2492137edc.333.1668093230969; Thu, 10 Nov 2022 07:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668093230; cv=none; d=google.com; s=arc-20160816; b=ujctchNnMO+1gV8J3mv85ah6cczT8nWcsif2p1sEQMWj4jgQ+bxZq3RB6EV60dH/QI LFB6sK76w1klbya61YBqzfZl/qiuumS3DwOSlupNBkRqnpemf4N3Bk/RJc6SyAw3V8WZ Fc5ouiHb6YKFOSWxhBfbY1U3Zus0yrN2x1/hpkgbbUACMy200KDVKBTzPXnrwrIpGdsP vBWpFH8Jmd3xxecAfAZCgUhyeibiDnKYIuHxda+EPS7m7JgKuYYf0XOIt81e/B/NPvRX 2TL8/OTUGsgE5ekVnD4W7AbfRXO7qAL5PYsJyGSCmaCKgxOMDAapOV7QXPFXRJq0uHsF 3HHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=OTEcSrKbeEwGEfVJ7rDTBCJPtPYB3owKDL9ENQiVtws=; b=uU7RhR8mbTuucJjz/9sJ7JjtneKIzH5M8QA1VsCRN17P8UtAGcnvhBVfdNu6wERtE0 /Gs4Hw6rna+3JlO4j/vIztRCjSGDBm9bjZKO6JVmQsJGaglQD9PvgxJIiwQy4tX+f+Zf aUJ+MO/TjT+1jESdkN1ndAHOXB0h6RagP8mVOnXhD6qIF9qvG8aniV0M6JuBraildn/Q ftCTQURowY0i9S2iGLjj6wGlFEzN43+PUft+859Gv4ijM5MRnhcDvpW8OIAmhVTo9+To CabldmFVeQriVIq7t7NjdxjYp/l35STYaRSUeVF0XV2AU/zBitoS49hEI3UBGgRZ6H/n pp9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lexina.in header.s=dkim header.b="r/vrCUS6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=lexina.in Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc29-20020a1709071c1d00b007ae0211844dsi19430647ejc.937.2022.11.10.07.13.27; Thu, 10 Nov 2022 07:13:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lexina.in header.s=dkim header.b="r/vrCUS6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=lexina.in Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231157AbiKJPIt (ORCPT + 99 others); Thu, 10 Nov 2022 10:08:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230178AbiKJPIm (ORCPT ); Thu, 10 Nov 2022 10:08:42 -0500 X-Greylist: delayed 450 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 10 Nov 2022 07:08:39 PST Received: from mx.msync.work (mx.msync.work [185.250.0.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F02122B35; Thu, 10 Nov 2022 07:08:38 -0800 (PST) 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749122527600087548?= X-GMAIL-MSGID: =?utf-8?q?1749122527600087548?= 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