Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp330315lqi; Wed, 6 Mar 2024 20:19:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUtF1RK2orcYUjl4i8ldGNaiOEYEE0CMzbcH94V39tw5FUvkn+0WlJ8cGllcnO7V1JqEIc6SRq0KUuaWUBbR6LIkq7bwJ2kgz7KFl+SXg== X-Google-Smtp-Source: AGHT+IHUTUOnPcYwgdN3C8c5vMGX6+quN2MjBDqsoNverdsGgybR8YfH7XwhetlDqchvm0fPZNNs X-Received: by 2002:a54:4104:0:b0:3c1:e5dd:aab with SMTP id l4-20020a544104000000b003c1e5dd0aabmr6756312oic.6.1709785139864; Wed, 06 Mar 2024 20:18:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709785139; cv=pass; d=google.com; s=arc-20160816; b=v+38poDHUZwQ8+9HrIVWxRWHjTuOsV6sb+qDmsFws4y5MTQPxegz2tjXMuxojX48K0 yuDW1ebfPhrBHBQ1iMj/joSyzrt1EUuLpMa3Sr+YZ20mtUJQetce0TmkfVZhmBH6gEkQ iEve2ot+jebpY+vU1iiTqqCQ4407Or42Bz2hqlocJkYxD3+x7JrH7oHrRTLUQzJlxNUA uSyFfWklbP4urOyjPCYtYCEaX8qfWsq3vJm1bmCTyJM9kUWjNUF9xJxZ6KoMWF5ffUGo NcHUp86XKCXFDBoiW1ktBvJ9+wUwg35oiqzHx/B+JJWCFZpMDq03qIohWiyKcI5YpdFQ NnXg== 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=KVZkE1BG8P5wqI4Jk00DXKh+MAOHcfrlvMyJWPAzjXY=; fh=OeamWTXpcAcRiuO2ymMnp8fVBjcP2OeuH+pFopkwaGE=; b=LKBSOU6e+MrlqToS/OQqW8eMqJlA1ltioHTsZZFjy9BXxlRJaWORRMAn8wQeWx9pwD SvJRBD8OQsbgBK9kpIsnTAcZiFGlGP7SJjO7V+P5YbNHP/u+Et3GS9WaU7nu0clToyzZ pXvND61bjvjs0SEvAwneNszM/buosSSY5g2jfWSsvi1z+XWqQNvOMgWj2nt9AnrnOe/P kyfv390zA2leAi+LvAEHs990vQbUZUCo1lG95fvV8xgleCQHCWN7YOz+rLZc+6jJU+qn hL8m0hf0rPUsPzYS3L66PspVlXf+bpRpj0ejdDymHiHqgYkLiIvaAECzz2aYxiFiuGpk SdXA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WFW3JDN2; 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-94951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94951-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id lm19-20020a056a003c9300b006e632171224si5276044pfb.24.2024.03.06.20.18.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 20:18:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=WFW3JDN2; 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-94951-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94951-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id F0BA728643E for ; Thu, 7 Mar 2024 04:18:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC3351BF38; Thu, 7 Mar 2024 04:17:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="WFW3JDN2" 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 5CB4E179BF; Thu, 7 Mar 2024 04:17:49 +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=1709785070; cv=none; b=S+QEWeHBo82bK14uCV/NxBzZUtKG9WTtOu4O1xoyHEnSXLjj4XBHi9G1VcOAaKti+kn8wsLgbz0XfbjYCzVCK31bqD2nFV42urOlNUwGjlzgc8Wo1ijSuuHTzndaR15251f5uKpDEvROIdvSAyHs9J5ofwyxNkCu+CgKVsr+l6M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709785070; c=relaxed/simple; bh=loKjuQcanPN4+P7F+77n0N7IPJSVaJdAnnIN6/xkn98=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RYOOU6+NHi6/KJF3aeL/+YQqSy/h9x6LJ7Tkdb3GJSw1ret9VEFLOjyH+ohiXyYk5LcgaenodYBV3YrTtmpg4XFNOnIIXaKqdp4LlDVg+TPHG0VLtoLGTXTIbLi6AY0wYEmfZtZo2h2Q9Xj7jVioy7LqgWBVjs86CqDEsqixKsQ= 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=WFW3JDN2; 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 (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 42745n5p003901; Thu, 7 Mar 2024 04:17:35 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=KVZkE1B G8P5wqI4Jk00DXKh+MAOHcfrlvMyJWPAzjXY=; b=WFW3JDN2dM3dGGU4FAcUWA7 YYoaT3QFg0RK1Udac1DU+cSsoCo25mMAcmsrnRNDDpfqvXUEiY2f3l7llHJZvgyk m9JjFGHTqQN32NdfggQTQfUe70bOH4STVwEPu5kOslC4HlG3broOZiFhKT1Skt/F u3ytDEiTCxvMKCcmhBANExv7f3ee0+Q5fhXR/gyYQL+6W0bvJkn4fqUcryLzMcp+ fsTezudzOkGQyZfdJpWDp8aqX090thvKXglWMfA1EGdUy974T3s3+rziX5eFxG8A vagN/JO5ickDbLy7eRj5oVHpsRaq6FtSe5WT/zbj70+uLCRAHoTV8RMizuzfpzg= = 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 3wpvw613ja-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2024 04:17:35 +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 4274HUAT009260; Thu, 7 Mar 2024 04:17:30 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3wp060d477-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2024 04:17:30 +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 4274HT2j009228; Thu, 7 Mar 2024 04:17:29 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 4274HTd7009223 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 07 Mar 2024 04:17:29 +0000 Received: by hu-devc-blr-u22-a.qualcomm.com (Postfix, from userid 466583) id C83E34118A; Thu, 7 Mar 2024 09:47:28 +0530 (+0530) From: Md Sadre Alam To: andersson@kernel.org, konrad.dybcio@linaro.org, broonie@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.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_mdalam@quicinc.com, quic_varada@quicinc.com, quic_srichara@quicinc.com Subject: [PATCH v3 1/5] spi: dt-bindings: add binding doc for spi-qpic-snand Date: Thu, 7 Mar 2024 09:47:22 +0530 Message-Id: <20240307041726.1648829-2-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240307041726.1648829-1-quic_mdalam@quicinc.com> References: <20240307041726.1648829-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: hsRYgnMyzK9POFNiqwWL2uS9asi5G8Hv X-Proofpoint-ORIG-GUID: hsRYgnMyzK9POFNiqwWL2uS9asi5G8Hv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-06_14,2024-03-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 bulkscore=0 mlxscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 suspectscore=0 adultscore=0 priorityscore=1501 mlxlogscore=999 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403070027 Co-developed-by: Sricharan Ramabadhran Signed-off-by: Sricharan Ramabadhran Co-developed-by: Varadarajan Narayanan Signed-off-by: Varadarajan Narayanan Signed-off-by: Md Sadre Alam --- 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..3d20a4bc567f --- /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 QPI-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: + minItems: 3 + 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