Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp655610rdb; Thu, 15 Feb 2024 11:02:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXIeKm6tDcIQT+uwOQQ4z8YpqmLR8skJ34Oy+YHXaE59ExAmcDusZeotRys5NKdUM/T7lAU9usyfTsc/j67v9EFndbwWRwAfq7YX7w3CQ== X-Google-Smtp-Source: AGHT+IE8DEFk1DDdwq26/egW//ZzvT73ZzCBxoUdriLiMgelJRnXG6Ov1Sh9GPPdklbS9mbjev4O X-Received: by 2002:ac8:5c92:0:b0:42d:d6ae:6191 with SMTP id r18-20020ac85c92000000b0042dd6ae6191mr1592601qta.15.1708023766224; Thu, 15 Feb 2024 11:02:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708023766; cv=pass; d=google.com; s=arc-20160816; b=KfK7d7OXqG40WSEp2R1th/Sz3XfxXyMlrImw8k1nISxv9zibUaR0mx1zZGbqoleNTn JUv/v5/SL2xoRJbtPHQa8wtPu1OTMQgZC67aa4IL/m2p+VL29gupwlob7U1FI184A582 jsEdOmgU/PbmpbkTSnTe+LUyBFd334rxx27YCzuV/YhZxub1chJA5qVhgX308wOpqppM cc8XIQgA4btPLkpGMySRHg18/300Fe/JIcuvuzsqda2OxDpCEGZVg5ygieKELd3UaaBW Uopvy4QLsnY6EbYYsOYpbsH1WMtRlWMo2IovK+xXFJ5V16cXV7e/aAxWgnfnlkLBCSe5 VdVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=WINM1CAiAfhoXZ192uGwEElhM4Prco8Dh6+uC1Zs1Sk=; fh=dJ3Cz1H4yR789fCBLtSScXd05cSphsp/z8yEo6gtBZ0=; b=elugV0RHeE5QRJJcp5C3tVwYf0ZhntHu7q6NN+XH8yRPqCwbOIwvWlunxW3aGITCd2 dJw1EfmbgxiS2VFjbPphUQbb7HcGD20vd2v4aFu5wKr4FmtQHupuOx0whvDaTvuAHQ2U OkIXPGGv79XNjaTNmYaFY4o5cEXpzjFcjvW6qDnHuJitPKZBaoBJC7gyi96RM8qgpK/o MsvWyB52sQwPDy+ZsCndgwzOGjA407SAP4fef+DVKODztZaLWdoVi0pdQLc6dwRShG5i +gZn2pHMs0FMuftcbWFW6dLr4wRl0b6vGUDsVkDb9DJFM/3oouN2C891lx4Ncg2fka+s JF8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dQsaz+hA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-67545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f14-20020ac87f0e000000b0042db0582ee9si2110594qtk.242.2024.02.15.11.02.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:02:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dQsaz+hA; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-67545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E6D3F1C2271D for ; Thu, 15 Feb 2024 19:02:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 56FC0139567; Thu, 15 Feb 2024 19:02:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="dQsaz+hA" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 44FA01386B8 for ; Thu, 15 Feb 2024 19:02:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708023756; cv=none; b=cfAbRFGbC/F1kE6ROR77j+CrEGIRiGBO/Dq5CE2gkx3dvsOQhU6fADGg5j9tzy441J6YU7dDqprL7Rp/sdWutOVcE58PM79CuqDdNb6b14GfPJsUIt/5Cp3ieVcX8zB6kdmWupqyv8p7/TO2e8aVjH5+gzA6gHVrjumbcAln++0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708023756; c=relaxed/simple; bh=uRv/RoHUmRyyAx309YjPjU51VhE+9Mv+j5Ha4YmG7WA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=D1y6g9x6WeIfggs7z7ccar8BL7JnWPqJiDmIoZpqNaodOyL3EFPE8OF4xjn4WXeLNnZ5Eq/MnMd2FCU/4hiI1QJCsApe9O/8Imtr5qF/YUt8pOr0JxEi2sL0SWcYp8FueIOspy0bApWVmXYa/ODaupQiYPnGjkWE8DeqVd9OvFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=dQsaz+hA; arc=none smtp.client-ip=209.85.167.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f50.google.com with SMTP id 2adb3069b0e04-51197ca63f5so1606982e87.1 for ; Thu, 15 Feb 2024 11:02:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708023752; x=1708628552; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=WINM1CAiAfhoXZ192uGwEElhM4Prco8Dh6+uC1Zs1Sk=; b=dQsaz+hACRpUOhGRDaF0YSkZ7dnJPWHSVgttbr1cZP6o7TAEmDb8yJ+XcxeFI5q4hQ 5lvCLZLeIS4mgv4I2GVPT2ZSB3lpBaP4mxoe6ScantM007aCoPOjkaM8G72ezNjAZTDk zAxHHNaSgrq+dxZCZLd0rvllYoXiWwl6yYBE0zg51gp3hYN96UBXWJz0zdljACQKKX+j WkvhCp41z0BA7R6rzLy3BY0/UvtyVCIm5dtqENo8np8OzVMRlq8kOQVpXw5cr5Kp3Md4 QKjNyFX+MPu5LJXu+8DL7K8fIEgEty1iWUSdYU2KcNWC7ZOFnMyB/aTk6DfyG4hl4iZ7 q3WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708023752; x=1708628552; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WINM1CAiAfhoXZ192uGwEElhM4Prco8Dh6+uC1Zs1Sk=; b=RGsZ36RA9+4gz0PRLfDQdyTW44JJWTyctsr98fI1l/ysPYWqPvX+2lmZyxJt90s3cN g6Z2iabBgN/ub0PvrxUI92In7fv37P0GiMF0sjaFjQR7k5iQkqHVKXRF2rJkNZLxjUeG LRsrwAJqMXh3OCmleDZPqI/RRnB8V8FfgQrlXarTTRRkaWdUdRUqX+qxKnhpOQU76HLj YIwj9aDZG+4uLbmh54PEiFJfPCXF7C8w4INKC2zkq71ewifJni8XbWSBVemo5bClIm65 SQr+s34jXZy+3D/7zbaG73XyTRciqmVCi0ydg78EmarBAccU86d6qPMDIiqvYYvThd29 pJxQ== X-Forwarded-Encrypted: i=1; AJvYcCUiUoKXBixh+Iewnu+GHEqbhErZ9unvTs4TwaA5fm1IS8tl3S2l8qUFZymuo0/KZuGVVZhs2iOrvYWUWE67G9r/L2Th4HtFWR2qVGbr X-Gm-Message-State: AOJu0YwbFx8QX6u+yQNIT2jFPelbq6+Se04kqIsZCcI6qg+gi9GkU4NP 2bHfRwev5msWGDdDMok+DbNlewyvA8tpmN5uum2w2ijbByrMYxPcvTzpd6rrTF0= X-Received: by 2002:a19:ca42:0:b0:511:66f0:8287 with SMTP id h2-20020a19ca42000000b0051166f08287mr2120743lfj.28.1708023752222; Thu, 15 Feb 2024 11:02:32 -0800 (PST) Received: from [192.168.0.22] ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id au2-20020a170907092200b00a3cf5450b28sm820024ejc.189.2024.02.15.11.02.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 15 Feb 2024 11:02:31 -0800 (PST) Message-ID: <8c3d8fc3-2c1e-4ece-abb1-b427a909ad39@linaro.org> Date: Thu, 15 Feb 2024 20:02:29 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/5] spi: dt-bindings: add binding doc for spi-qpic-snand Content-Language: en-US To: Md Sadre Alam , 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_srichara@quicinc.com, quic_varada@quicinc.com References: <20240215134856.1313239-1-quic_mdalam@quicinc.com> <20240215134856.1313239-2-quic_mdalam@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPur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Llqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240215134856.1313239-2-quic_mdalam@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/02/2024 14:48, Md Sadre Alam wrote: > Add device-tree binding documentation for QCOM QPIC-SNAND-NAND Flash > Interface. > A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > 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 > --- > .../bindings/spi/qcom,spi-qpic-snand.yaml | 82 +++++++++++++++++++ > 1 file changed, 82 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..fa7484ce1319 > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qpic-snand.yaml Filename like compatible. > @@ -0,0 +1,82 @@ > +# 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 > + Provide description which will describe hardware. > +properties: > + compatible: > + enum: > + - qcom,ipq9574-snand > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 2 > + maxItems: 3 You must document the items (could be sufficient in clock-names if the names are obvious). Why the clocks are flexible? This given IPQ9574 has variable clock inputs? Please explain. > + > + clock-names: > + minItems: 2 > + maxItems: 3 > + required goes here. > +allOf: > + - $ref: /schemas/spi/spi-controller.yaml# > + - if: > + properties: > + compatible: > + contains: > + enum: > + - qcom,ipq9574-snand > + > + then: > + properties: > + dmas: > + items: > + - description: tx DMA channel > + - description: rx DMA channel > + - description: cmd DMA channel > + > + dma-names: > + items: > + - const: tx > + - const: rx > + - const: cmd No clue why it is here, move it to top level. > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + > +unevaluatedProperties: false > + > +examples: > + - | > + #include > + qpic_nand: spi@79b0000 { Drop unused label > + compatible = "qcom,ipq9574-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>; > + }; Fix indentation. > + }; Best regards, Krzysztof