Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp158081ybv; Wed, 19 Feb 2020 18:30:08 -0800 (PST) X-Google-Smtp-Source: APXvYqyICPRbNdNMfJvFiRTSKtRbUHxBCJG5cT++kSPY1pDs6KBDgKsAvXQNB1t0VoM60M1OTqlK X-Received: by 2002:a05:6808:24e:: with SMTP id m14mr539271oie.168.1582165808418; Wed, 19 Feb 2020 18:30:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582165808; cv=none; d=google.com; s=arc-20160816; b=LBCLrjG3iZdLk6vyYV5BtAgrcDFySKhLsM6GxjNn76Htv0UEWE9YpDtVTfgz2CuSPI Rsv0q36tXg35zpCqBCH6oO81832cIbQ3npAiAdauhy6k0HVGGvqf/rme3rMiHEd/QOd3 YwZUKh74oWufnUlixYkD4pdK2+oMiodTbkBBHRj8R9Y/zWqXPnAH/0ZHk2wg52eHUuj6 1uL3kKDBCIlZoDae/IGOOzvJ7avxRtZN4oKUCaM9VdQMrmI1O8Oiic8RtjPIXVw10fLb a3YEpJUyZRw6WVv7QJaTo3Qnwsg8dFvQf3DENs1wDcZC5x2YXrddRO31rnnboAmKl2Ko iBuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=EEVYOjfi5PbSHH+WdgPROxvm0gDkTQzR92KMTQUcWvE=; b=bgwT8sGSd/QuvmkNzLREKkUUQVrTSxmYU/GMSIAWm8GS2f35g/yggH28Xat0d3nW9X bGzmWx44tzNTGH5g5xOQR5+y4ln7hKalUHdQdjkA2/hnEsRoBWwLA7hGnVR3MUV0OVDr xjspDgAG4IDGGt8mt35THOqqHvJdPD2hDkrBwtApReQHqZrJbMo2NerhgxF2y6icXKCj tinoUt9GKs+wHyBFKjj2A9MuTyB7Hk0fSh4RQqkjvMCFUKLVJJMWciWptVgfU2G5NV5n vSuJRYvFqNRbvjWavnmN8u7H23hW39e7Q+Dv8wNAB43cdWT01XuAzNCVw5nG88WLO2GT hB0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HVdjzWqF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si9609154oic.201.2020.02.19.18.29.56; Wed, 19 Feb 2020 18:30:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=HVdjzWqF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727576AbgBTC3n (ORCPT + 99 others); Wed, 19 Feb 2020 21:29:43 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:38513 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbgBTC3n (ORCPT ); Wed, 19 Feb 2020 21:29:43 -0500 Received: by mail-pg1-f194.google.com with SMTP id d6so1131983pgn.5 for ; Wed, 19 Feb 2020 18:29:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=EEVYOjfi5PbSHH+WdgPROxvm0gDkTQzR92KMTQUcWvE=; b=HVdjzWqFiZCI8G1rH0pU2pp39Y7AS6KZZ/rK62HCDFZoE/pVrjKzbD1LJ0cd57Fe2m 4gpf93cOUw7g3ErlADetf3lBMXp3jieq7XE3cW8gn0LeM/x/MgNoSSh3yJ/ZkXuhiQM+ TUKWPSPk8ExLDq7fWpN6yNYwhj7nG+U1NqQY4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=EEVYOjfi5PbSHH+WdgPROxvm0gDkTQzR92KMTQUcWvE=; b=AOaha1Ea7y+czwM+LVAWlA1qu+Q73kK20d2q1+mW0oQH++BJ/vtA/0tF+7hLhuplu6 4BUadNVNq0T48QmTsNLWopJaJaeW3plrOxtYr2qfIN30IgQstO1hqgNHZFWVt7M7fC2N thDX6f5Com3rzOcdf17toZAT+UsduoUXnIaTXlxhWo6/bHZiOn06DbJpx3ptt1uGVZUX 1sJl+hfRjuCUotj/wtSYBW/0cAiADEDgNRTMLR4us3iQ301+UQgxicvoM61YhfqMZuM6 GKcQyYUGVaQqeFxUqCwTvGus2EOMcnZrKY0lUb8EyobmqgjyWkbhr1oyEH3ZytlNbIlv 1B+g== X-Gm-Message-State: APjAAAW2nQ5O3MYe3fdehMXPRRxmqYkp8aPnrx956p1Tm8EbU2E+GdZR aEamf0F+TZv2JUYdE7hGLE9TcA== X-Received: by 2002:a63:1a50:: with SMTP id a16mr30180925pgm.389.1582165782692; Wed, 19 Feb 2020 18:29:42 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 76sm952903pfx.97.2020.02.19.18.29.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Feb 2020 18:29:42 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1581932974-21654-2-git-send-email-akashast@codeaurora.org> References: <1581932974-21654-1-git-send-email-akashast@codeaurora.org> <1581932974-21654-2-git-send-email-akashast@codeaurora.org> Subject: Re: [PATCH 1/2] dt-bindings: spi: Convert QSPI bindings to YAML From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mgautam@codeaurora.org, rojay@codeaurora.org, skakit@codeaurora.org, Akash Asthana To: Akash Asthana , agross@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org Date: Wed, 19 Feb 2020 18:29:41 -0800 Message-ID: <158216578112.184098.9357700822184458798@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Akash Asthana (2020-02-17 01:49:33) > diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yam= l b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml > new file mode 100644 > index 0000000..977070a > --- /dev/null > +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.yaml > @@ -0,0 +1,89 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > + > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/spi/qcom,spi-qcom-qspi.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Qualcomm Quad Serial Peripheral Interface (QSPI) > + > +maintainers: > + - Mukesh Savaliya > + - Akash Asthana > + > +description: | Drop the | because it doesn't look like any formatting needs to be maintained in the text for the description. > + The QSPI controller allows SPI protocol communication in single, dual, = or quad > + wire transmission modes for read/write access to slaves such as NOR fla= sh. > + > +allOf: > + - $ref: /spi/spi-controller.yaml# > + > +properties: > + compatible: > + items: > + - const: qcom,sdm845-qspi > + - const: qcom,qspi-v1 > + > + reg: > + description: Base register location and length. Drop description? It doesn't seem useful. > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clock-names: > + items: > + - const: iface > + - const: core > + > + clocks: > + items: > + - description: AHB clock > + - description: QSPI core clock. Please drop the full-stop on core clock. > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 Aren't these two unnecessary because they're covered by the spi-controller.yaml binding? > + > +required: > + - compatible > + - reg > + - interrupts > + - clock-names > + - clocks > + - "#address-cells" > + - "#size-cells" These last two are also covered by spi-controller binding. > + > + Why two newlines instead of one? > +examples: > + - | > + #include > + #include > + > + soc: soc@0 { Remove this node from example please. > + #address-cells =3D <2>; > + #size-cells =3D <2>; > + > + qspi: spi@88df000 { > + compatible =3D "qcom,sdm845-qspi", "qcom,qspi-v1"; > + reg =3D <0 0x88df000 0 0x600>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + interrupts =3D ; > + clock-names =3D "iface", "core"; > + clocks =3D <&gcc GCC_QSPI_CNOC_PERIPH_AHB_CLK>, > + <&gcc GCC_QSPI_CORE_CLK>; Weird tabbing here. Just use spaces and align it up. > + > + flash@0 { > + compatible =3D "jedec,spi-nor"; > + reg =3D <0>; > + spi-max-frequency =3D <25000000>; > + spi-tx-bus-width =3D <2>; > + spi-rx-bus-width =3D <2>; > + }; Is this flash node necessary for the example? > + }; > + }; > + Nitpick: Why newline here? > +...