Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp355128lqo; Wed, 8 May 2024 01:37:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVqymclcXhP1B79QUAaRs58D7B5/IkHA0P6UYS0QNKr2YRwjxq1fJU7oTyc1vsI4lowBAOd3IArkwgHW2E3u2FLDtdshgsE4LUn0d8x4Q== X-Google-Smtp-Source: AGHT+IFZx1Fryeit4u7Ci01tqvx6dvVQ8uXUYE6lfGO9vKdefzCrpPF5qhULt3RDoWQAsigDEiRh X-Received: by 2002:a50:a68e:0:b0:56e:c5a:c7a9 with SMTP id 4fb4d7f45d1cf-5731da68ef3mr1416058a12.41.1715157464900; Wed, 08 May 2024 01:37:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715157464; cv=pass; d=google.com; s=arc-20160816; b=uGqvG005KoNTJlrV2BQWZ8T+4qw6XwRs3qqjwoIzh6l6lhiV32T5jm+n6oko1hxNWl 86J4sGWJfwgiVMArjZWT7lgwOVK1hIE84o8x6R2sTciIAvVk+BzYAEjFwNpTHy1sQG2U fBjh7XtfJNhBWwezDynCZkyql6tcQEYPPgP7nhxwyIa5PO6y7F59bAzoIOydff676DI0 7kv20bYvDB32BoJ5mzXDRjV7XNSvv+b2PbVSPsaW0HOVoSsrjxUrJPjf6Hdx7P6i6Blf z1n6ZFV/Sa6Sk6YJKYdZrZCNxE4Ep8k5NWBJnYYWCBTLJiamBgvn7ATDGV1BcaSMikpz xCWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=f+C+a3Lu1ZKQmDWTB2U4WfBYAPRmdEbqpFrqHfIl3hI=; fh=kcI0uIM3cYkCT+iqyuy4LoSqQ2yP3qs6dZMKvgEmTzo=; b=bWbfzpCtTunCmpkypuDn1nfrvN1mnx/s85glofa3YXkmDdhAPwUf+36tPDlXYjA2eB RdjPLRn28Vkzf3L3OTy+C+S4GScC4VczQ+prB91T2363CLU+GcJSuMT0KFJT3U03Bo0T kY6pB+rC0LeytINLvUbeRcqNFoubHafy7EYlGHhd6QhFofLd2KWLuwkbJd6/KXxvZLcn z2IVeAm5P2Lw+qxhkRTzYz2l79bYbw579tXtVrMhc+Iz040LEbs5J5vhDlwSbPeIKEmG eYiN21hB1Q7sm9x9k5zIck7AMdoG5k6P4bsCm4rs8TZdWfIDIfhcf/t5PbH5eUd5GjTS YG8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=X0q3Ht0B; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-172920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r10-20020a056402234a00b0056e090436ddsi6830846eda.90.2024.05.08.01.37.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 01:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-172920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=X0q3Ht0B; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-172920-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-172920-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 7529D1F2103B for ; Wed, 8 May 2024 08:37:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 02DF05465D; Wed, 8 May 2024 08:37:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="X0q3Ht0B" Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9971C2C85F; Wed, 8 May 2024 08:37:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157432; cv=none; b=pgU5zPNxpN/fXzesCw8OaUL4xcwjgZMAKbrlFp/yoR7Vfe4l28HZPmZALbwE4gaaCYYxZuzUWXBVtol1Lq2la8yc9FnQ+uMFHfpuOBi9cqMfRJn2m7RUY1ziI1S1tJCn+3yi0DRDhGSpaaeCKiClFjagR8y7D7LR6+U/4ejtq08= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715157432; c=relaxed/simple; bh=LoVAchb1D0G5ptk3QSV9Mj3rtY1zgdcQVqubBTOsuw8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b5q1BNacxzTjY3n/dqdSa+iy4p2araaX8PMfYpQslc9qWysdkRAECcMN61AKOiy+OA+/ZLmliVtro0UvRo39Lpsdm4kXWrapMSI29kDRQqijkefWFTAwpDQPSmOtcazr4jpgDUbc2Vo+zlzvw6eXtVC9mJwZHtReBBsBXUmaByY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=X0q3Ht0B; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4487FTOk019368; Wed, 8 May 2024 08:36:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=qcppdkim1; bh=f+C+a3L u1ZKQmDWTB2U4WfBYAPRmdEbqpFrqHfIl3hI=; b=X0q3Ht0BWkgy57WWjLZ9lcd Qbvwxh/5Z4sPFeC5Gmvzvp4TzW4ymsF81t5FWSKG3x1smWc1RnPqexH5hJ2GdASb cb/HenoxmBBWihDUrM4sNOY6+OHXaimdmb3WfXwuKv1P9sfgJmEkKk2b2D3qz6IQ uUdl2df58AtAZcLzAXLH04l3ZZ5ye4IV/+EaZElN45l+40NGU7FdJTb3I4JHEI5l CGRJeu817ZhXcOS3OR+nDX6Y9ZdbtZC/vAOGKLgXckjYkSQX3BJvPgKS+7prKeXZ ww4B6y7l3KNeyeGypRN1dIvJpnSzOLLktuwZ/29whYsYF/se6lrt4OhiDX6tc/g= = Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3xysg8scxq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 08:36:45 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 4488afVk001209; Wed, 8 May 2024 08:36:41 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3xwe3kwch8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 08:36:41 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 4488aedg001176; Wed, 8 May 2024 08:36:41 GMT Received: from hu-devc-blr-u22-a.qualcomm.com (hu-mdalam-blr.qualcomm.com [10.131.36.157]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 4488aek3001169 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 08 May 2024 08:36:40 +0000 Received: by hu-devc-blr-u22-a.qualcomm.com (Postfix, from userid 466583) id 0BDA041359; Wed, 8 May 2024 14:06:40 +0530 (+0530) From: Md Sadre Alam To: broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org Cc: quic_srichara@quicinc.com, quic_varada@quicinc.com, quic_mdalam@quicinc.com, Krzysztof Kozlowski , Alexandru Gagniuc Subject: [PATCH v5 1/7] spi: dt-bindings: Introduce qcom,spi-qpic-snand Date: Wed, 8 May 2024 14:06:31 +0530 Message-Id: <20240508083637.3744003-2-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240508083637.3744003-1-quic_mdalam@quicinc.com> References: <20240508083637.3744003-1-quic_mdalam@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: L5ODaaXgOruwlfWXsllZFMR4MvdCYFQ8 X-Proofpoint-ORIG-GUID: L5ODaaXgOruwlfWXsllZFMR4MvdCYFQ8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.650,FMLib:17.11.176.26 definitions=2024-05-08_04,2024-05-08_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 mlxscore=0 suspectscore=0 mlxlogscore=999 lowpriorityscore=0 impostorscore=0 priorityscore=1501 bulkscore=0 spamscore=0 malwarescore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2405010000 definitions=main-2405080060 Document the QPIC-SPI-NAND flash controller present in the IPQ SoCs. It can work both in serial and parallel mode and supports typical SPI-NAND page cache operations. Reviewed-by: Krzysztof Kozlowski Tested-by: Alexandru Gagniuc Signed-off-by: Md Sadre Alam --- Change in [v5] * No change Change in [v4] * Fix spelling mistake in HW description * Added commit message * Removed '|' from description * Removed minItems in clock * Added blank line * Removed co-developed by Change in [v3] * Updated commit message, removed "dt-bindings" from commit message * Updated compatible name as file name * Added hardware description * Documented clock-name * Moved dma-names property to top * Droped unused label "qpic_nand" * Fixed indentation in example dt node Change in [v2] * Added initial support for dt-bindings Change in [v1] * This patch was not included in [v1] .../bindings/spi/qcom,spi-qpic-snand.yaml | 83 +++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml new file mode 100644 index 000000000000..f0d9f7643849 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml @@ -0,0 +1,83 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/qcom,spi-qpic-snand.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm QPIC NAND controller + +maintainers: + - Md sadre Alam + +description: + The QCOM QPIC-SPI-NAND flash controller is an extended version of + the QCOM QPIC NAND flash controller. It can work both in serial + and parallel mode. It supports typical SPI-NAND page cache + operations in single, dual or quad IO mode with pipelined ECC + encoding/decoding using the QPIC ECC HW engine. + +allOf: + - $ref: /schemas/spi/spi-controller.yaml# + +properties: + compatible: + enum: + - qcom,spi-qpic-snand + + reg: + maxItems: 1 + + clocks: + maxItems: 3 + + clock-names: + items: + - const: core + - const: aon + - const: iom + + dmas: + items: + - description: tx DMA channel + - description: rx DMA channel + - description: cmd DMA channel + + dma-names: + items: + - const: tx + - const: rx + - const: cmd + +required: + - compatible + - reg + - clocks + - clock-names + +unevaluatedProperties: false + +examples: + - | + #include + spi@79b0000 { + compatible = "qcom,spi-qpic-snand"; + reg = <0x1ac00000 0x800>; + + clocks = <&gcc GCC_QPIC_CLK>, + <&gcc GCC_QPIC_AHB_CLK>, + <&gcc GCC_QPIC_IO_MACRO_CLK>; + clock-names = "core", "aon", "iom"; + + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + compatible = "spi-nand"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + nand-ecc-engine = <&qpic_nand>; + nand-ecc-strength = <4>; + nand-ecc-step-size = <512>; + }; + }; -- 2.34.1