Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp954443iob; Fri, 13 May 2022 17:35:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh3XG32gCtUSGecFaqRFpAtREbTrqUsF/ZIcdQfx3ckxClm3VHj/SugTr9dIzLQ3FzZ8AE X-Received: by 2002:a05:6000:2a6:b0:20c:687b:1f96 with SMTP id l6-20020a05600002a600b0020c687b1f96mr5940099wry.716.1652488539442; Fri, 13 May 2022 17:35:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488539; cv=none; d=google.com; s=arc-20160816; b=wVzFfPYAyq0DtXgIt8AQoqVzgsnnCnDk309SrU+0pYj4uhynhCTnK1MmiO/YIaMBLK BmuXesFVHrfzBAycJq3OEzC9krWrzAPM0tRuBVMYctGWx4VE7xxr7dj880uFXuV59kTg X4CC6haczdJVC4+/DEdLvnQMhV0Roim9Pf5ZezkVN6j77bRyD+kVqO5dkclqysl1j222 j/NN6/Z9/ZNestkuRUnu223FDYxF9rKnx+HCm2EshkHDzYZXq3//m1YaTzmgThoS2PJO 3bo2HBzHeI/RgGwhWjJv16sKF6PaOdKdXJ1UYto3D3iHnPP1OAvp2XANOZL2oErV9Avr Av3Q== 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:cc:to:from; bh=ZDlcx3n1Lxo/gZwsvSxxPwMyEuJPnF3ORNmbj4uh9NY=; b=ZObod2aCeBbVgNkP9OJKkSa7Eb9Ub6TDFY5LBTX1UpsRMKciKoC+/Cd/1WAHGSE0oi Vo9/PQys6GKMaq6YyGjBsWD0VqkhR2JfTOpzSrJx7xA8j17ijFbZ8zp06ypSu73xyTIk UCP+NPCSKmPKJnOJPoR7MURLjzP6Eo6PemPBAx2ChwzuikJPMjs8W9H4AfAK2kIQ03Kw +pCgjXchfNwlV9sf4cq1hDdoVAw5fqh1BKQjFgHATYVcANJkAWqSmx06t3TNvp4ZLdbu VqrRHrMMPrzHbs7lnOOUGDoqYUA27ztfweyLumhaRYzfZy6s7LYbVWfJ4phtjvP+RbEQ QcoA== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id m5-20020a5d56c5000000b0020c64fdf9a6si3144076wrw.782.2022.05.13.17.35.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:35:39 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8D5F4339285; Fri, 13 May 2022 16:27:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380364AbiEMMed (ORCPT + 99 others); Fri, 13 May 2022 08:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380317AbiEMMe2 (ORCPT ); Fri, 13 May 2022 08:34:28 -0400 Received: from mail-sz.amlogic.com (mail-sz.amlogic.com [211.162.65.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F325A66FB0; Fri, 13 May 2022 05:34:16 -0700 (PDT) Received: from droid11-sz.amlogic.com (10.28.8.21) by mail-sz.amlogic.com (10.28.11.5) with Microsoft SMTP Server id 15.1.2176.2; Fri, 13 May 2022 20:32:42 +0800 From: Liang Yang To: Miquel Raynal , CC: Liang Yang , Rob Herring , Richard Weinberger , Vignesh Raghavendra , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , Kevin Hilman , Jianxin Pan , Victor Wan , XianWei Zhao , Kelvin Zhang , BiChao Zheng , YongHui Yu , , , , Subject: [PATCH v5 0/4] fix the meson NFC clock Date: Fri, 13 May 2022 20:34:00 +0800 Message-ID: <20220513123404.48513-1-liang.yang@amlogic.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.28.8.21] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 EMMC and NAND have the same clock control register named 'SD_EMMC_CLOCK' which is defined in EMMC port internally. bit0~5 of 'SD_EMMC_CLOCK' is the divider and bit6~7 is the mux for fix pll and xtal. At the beginning, a common MMC and NAND sub-clock was discussed and planed to be implemented as NFC clock provider, but now this series of patches of a common MMC and NAND sub-clock are never being accepted and the current binding was never valid. the reasons are: 1. EMMC and NAND, which are mutually exclusive anyway 2. coupling the EMMC and NAND. 3. it seems that a common MMC and NAND sub-clock is over engineered. and let us see the link for more information: https://lore.kernel.org/all/20220121074508.42168-5-liang.yang@amlogic.com so The meson nfc can't work now, let us rework the clock. Changes since v4 [5] - split the dt binding patch into two patches, one for fixing, clock, the other for coverting to yaml - split the nfc driver patch into two patches, one for fixing clock, the other for refining the get nfc resource. Changes since v3 [4] - use devm_platform_ioremap_resource_byname - dt_binding_check for mtd/amlogic,meson-nand.yaml Changes since v2 [3] - use fw_name from dts, instead the wrong way using __clk_get_name - reg resource size change to 0x800 - use reg-names Changes since v1 [2] - use clk_parent_data instead of parent_names - define a reg resource instead of sd_emmc_c_clkc [1] https://lore.kernel.org/r/20220106033130.37623-1-liang.yang@amlogic.com https://lore.kernel.org/r/20220106032504.23310-1-liang.yang@amlogic.com [2] https://lore.kernel.org/all/20220217063346.21691-1-liang.yang@amlogic.com [3] https://lore.kernel.org/all/20220318124121.26117-1-liang.yang@amlogic.com [4] https://lore.kernel.org/all/20220402074921.13316-1-liang.yang@amlogic.com/ Liang Yang (4): dt-bindings: nand: meson: fix meson nfc clock mtd: rawnand: meson: fix the clock mtd: rawnand: meson: refine resource getting in probe dt-bindings: nand: meson: convert txt to yaml .../bindings/mtd/amlogic,meson-nand.txt | 60 ------------- .../bindings/mtd/amlogic,meson-nand.yaml | 88 +++++++++++++++++++ drivers/mtd/nand/raw/meson_nand.c | 86 +++++++++--------- 3 files changed, 130 insertions(+), 104 deletions(-) delete mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.txt create mode 100644 Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml -- 2.34.1