Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5495803rwb; Sun, 4 Dec 2022 23:06:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ZdYFup1Z8y1dlEp+/pgnbToeLb4LRMwlsZmB4m+xPAyysFK1fGlD3BURcPZjw4tnZPR37 X-Received: by 2002:a17:907:c60d:b0:7bf:5fa6:b9b8 with SMTP id ud13-20020a170907c60d00b007bf5fa6b9b8mr30369122ejc.383.1670224007334; Sun, 04 Dec 2022 23:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670224007; cv=none; d=google.com; s=arc-20160816; b=aSSQGNdXU6AQqI2mo7PxdBL5I8W4COqzqShntNVpE/zdDfTHiCE5qX1QTSOjxV74k9 PkbSGEfNJ8wpI5v7e9xUWwxEpQUml4UdKDWeSePud/x0L6OrVDXcw9WaOTSQzZXvq7EQ Ps31PO08GQKRHVGd9awkaD0RlccMFknvj4ZRbQedWwGRCUkPcYZ7zDM9HE3tWw2XinxE K8KFMo/o+lrdBQXx5c1mV5TIswI8AQvneLuhyu5AInBzbCRa7G0V8wBUWq9rnCbSyJUz lK0sdp8+5meX3Oe7n65AY3igv1DKan9uL2NTP0AZmQ4RkqqfKPEGtH+WVLLyh9VKclKs hoqQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Rzm8NGnhC/Y3p58483tZdX6IHSByPcsSolFg96uJoLs=; b=BnGKbP8RM/iTiBLJLQ4ryx6dmTz5YAQ0LVrulb3nm+1kMwsp1imP8lAwTZshdZQDRX i4SOEDvvz4rKTa54yPCjSG5c5aurSTlh9xqzHc2By3TteSKT6NI/oWj2MhP/BUMmREef nIO+30mMj+pvweR18jkNS3AghGfC32FfM9XawPlP+vn9hROVbTGdU+gSQ9Yok3PU77Mb pJZQvsvl0SMfnWUT+LzyItmiaxKcyyBp/GOVqPs4lCtafqB3XQQwtHPbPBtey+H2Rqxv y0BbCKPCrkWQIY+QttftCGwuQNOT6UlJuPiiC3kmz089w0ZcnpB2/4SXos3PNJsZHRAW oZoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bRRlXhlH; 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=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cs17-20020a170906dc9100b007becf776d7esi12660601ejc.462.2022.12.04.23.06.26; Sun, 04 Dec 2022 23:06:47 -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=@mediatek.com header.s=dk header.b=bRRlXhlH; 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=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230037AbiLEG6j (ORCPT + 83 others); Mon, 5 Dec 2022 01:58:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231443AbiLEG6V (ORCPT ); Mon, 5 Dec 2022 01:58:21 -0500 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B1EAD646B; Sun, 4 Dec 2022 22:58:19 -0800 (PST) X-UUID: 05e94d46f75b4c538019b4df05fc0601-20221205 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=Rzm8NGnhC/Y3p58483tZdX6IHSByPcsSolFg96uJoLs=; b=bRRlXhlH+69fp41mPgZzEIl2hpkS7ENYBFwDCc4JVSliDZGasouLuZKeMP+/ssxvC/GMHI1JCqwoJATU3iSbKEuts87stRqhAfnuW5sd3cO6rPcUPQaOvx8nVFtX40nCiO8Sg4rh/lUZg/evVN1qO3GhugFPF/q8awamowlauIw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.14,REQID:99061f05-b8d0-4ba6-afa9-87168a139706,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:dcaaed0,CLOUDID:eb3aae30-2938-482e-aafd-98d66723b8a9,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 X-UUID: 05e94d46f75b4c538019b4df05fc0601-20221205 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 2062261961; Mon, 05 Dec 2022 14:58:14 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Mon, 5 Dec 2022 14:58:13 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Mon, 5 Dec 2022 14:58:12 +0800 From: Xiangsheng Hou To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Mark Brown , Chuanhong Guo CC: Xiangsheng Hou , , , , , , , , Subject: [PATCH v2 5/9] dt-bindings: spi: mtk-snfi: Add compatible for MT7986 Date: Mon, 5 Dec 2022 14:57:52 +0800 Message-ID: <20221205065756.26875-6-xiangsheng.hou@mediatek.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221205065756.26875-1-xiangsheng.hou@mediatek.com> References: <20221205065756.26875-1-xiangsheng.hou@mediatek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,UNPARSEABLE_RELAY 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 1. Add dt-bindings documentation of SPI NAND controller for MediaTek MT7986 SoC platform. 2. Add optional nfi_hclk property which needed for MT7986. Signed-off-by: Xiangsheng Hou --- .../bindings/spi/mediatek,spi-mtk-snfi.yaml | 51 +++++++++++++++---- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml index 6e6e02c91780..bab23f1b11fd 100644 --- a/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml +++ b/Documentation/devicetree/bindings/spi/mediatek,spi-mtk-snfi.yaml @@ -18,14 +18,12 @@ description: | using the accompanying ECC engine. There should be only one spi slave device following generic spi bindings. -allOf: - - $ref: /schemas/spi/spi-controller.yaml# - properties: compatible: enum: - mediatek,mt7622-snand - mediatek,mt7629-snand + - mediatek,mt7986-snand reg: items: @@ -36,14 +34,12 @@ properties: - description: NFI interrupt clocks: - items: - - description: clock used for the controller - - description: clock used for the SPI bus + minItems: 2 + maxItems: 3 clock-names: - items: - - const: nfi_clk - - const: pad_clk + minItems: 2 + maxItems: 3 nand-ecc-engine: description: device-tree node of the accompanying ECC engine. @@ -57,6 +53,43 @@ required: - clock-names - nand-ecc-engine +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + - if: + properties: + compatible: + enum: + - mediatek,mt7622-snand + - mediatek,mt7629-snand + then: + properties: + clocks: + items: + - description: clock used for the controller + - description: clock used for the SPI bus + clock-names: + items: + - const: nfi_clk + - const: pad_clk + + - if: + properties: + compatible: + enum: + - mediatek,mt7986-snand + then: + properties: + clocks: + items: + - description: clock used for the controller + - description: clock used for the SPI bus + - description: clock used for the AHB bus + clock-names: + items: + - const: nfi_clk + - const: pad_clk + - const: nfi_hclk + unevaluatedProperties: false examples: -- 2.25.1