Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp83498imm; Fri, 21 Sep 2018 10:41:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV615faxD12N011+JHON9MuUpmAHlsevOCuLa8Hq1nNr08o0vL+DcttLPziAGUwFCTGv8Cn2f X-Received: by 2002:a63:ec4b:: with SMTP id r11-v6mr429751pgj.295.1537551710182; Fri, 21 Sep 2018 10:41:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537551710; cv=none; d=google.com; s=arc-20160816; b=IZpJnkHBWud6LFaLYBJQGKl8kDa38xdBVhRs5lmxxsS8YKU7BkI4bBZ9qprlVM+sMF ntyfseEJzhnyhAqV7/tNPq7O+o7g4Fu2JSe5TF7iOj821+mAOQ2pWiU8k5q1/8/zB/Xp RBaxtBLVKlziHzliN5yZSGoiadTSPy2Ln2lAJeMSm/f/SFa82AGe1gZsUhpXVQdi5raG brTpdT2EsDaxouZiEzEGlE/M+v49Zbirh1uEGKiAfKJi9Qtu9uV2aBqAp9j5dWLyJx+3 Of/TGlLJ37YcwwWqocRD/6OlNT8NEM+DOsr7Rc2TkpRDJ/6D3IB8DZ5XDo3u1nAvUieW H6+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=DMq2LjXCYVs8OMEP76EiqATN+P77az8zBB+g9RZHhqg=; b=yoMrP0QKUd59+My0fcyv8oX+f408PW0fREVUzW030k9JLNBgDl4vIt/Htv/L7Az1E+ KYzaAxZjL6BQZ57/MWheQZcrDwks6xkzMrft5uL+i+J5n1Y48P+2zM5IHrbPRzb1s3Zu Xhd4dNCMQC6IN8zJ/Ume5Zdbm0Bo+x90TTrx7ascEia15okyxx7n/wPGUvLSTQk6MBZL u16s6dgdOYKjPY4bnFGaXqfPP9nqzmNO2Si/DP9Eo5E/Xa7flsbHjvcZaFxLsoKAjjxi Tt1LX0gGr1tV8QklRdlJF5u07s67ly/8Sv3LP1XJ6tmdfBo3WqzCbjSLFULkCMg8m+t2 cK7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WLUMkU73; 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 m28-v6si25611627pgd.358.2018.09.21.10.41.34; Fri, 21 Sep 2018 10:41:50 -0700 (PDT) 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=WLUMkU73; 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 S2391132AbeIUXaX (ORCPT + 99 others); Fri, 21 Sep 2018 19:30:23 -0400 Received: from mail-vs1-f65.google.com ([209.85.217.65]:40430 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390726AbeIUXaX (ORCPT ); Fri, 21 Sep 2018 19:30:23 -0400 Received: by mail-vs1-f65.google.com with SMTP id w138-v6so397122vsw.7 for ; Fri, 21 Sep 2018 10:40:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=DMq2LjXCYVs8OMEP76EiqATN+P77az8zBB+g9RZHhqg=; b=WLUMkU73Q6hFS5bPSNPVirMZrjR2GMWZebanhMlpsuOpuYQQMZtxroCuUmxZS12+mt Ncj/cWjF01xSd9DFw4LYeyrGnzspSBtH0SeCbV4g5TEsfsDj7/MEhciTdgNlcsNEdc8Z r6iVhjMd56tyK28XT1CTX4sAnkNoDgsWZBR04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=DMq2LjXCYVs8OMEP76EiqATN+P77az8zBB+g9RZHhqg=; b=dRSp6gblRnZLKCvOWm35GCCwvXMv0VeFFVODImed5yM1u9weeGBVfk2WG2ufx/Ex4Y 5iQ9+3ragFbRYfE1t7BJhvfQxAaOkMDs5TcXfSQWNTdnbOII/zXcu9ch4tayYEZwkdx7 148Si/bpmN3VY9bXQnE2ifOLObcKqNgaBHO03joef75OJj0FkfnorqvERZeQQOCOkVqy 5OPgR6v1NPkge1aQDQ3sjW/UiLq9nBLX09ww+Jvg946OTqoRmSy2gHia0Ud4Nwgba+vm /BrBfhyigehRnvMyazF+NHj8++z2FMrUlQLcuIG++y8P8Q6UWk0J5qSJzSRqlG0pL9nT kdBA== X-Gm-Message-State: APzg51D5pQYiDCpX633VejnSB+ik8rZwe+VLGjx9jzd0CWrz2gLXCNnU Bto28G2IkI+VheFgAyMrTFTy8Nh7c2Q= X-Received: by 2002:a67:6844:: with SMTP id d65-v6mr13579403vsc.17.1537551626987; Fri, 21 Sep 2018 10:40:26 -0700 (PDT) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id 29-v6sm805171vkd.42.2018.09.21.10.40.25 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 10:40:26 -0700 (PDT) Received: by mail-ua1-f45.google.com with SMTP id q7-v6so6102012uam.12 for ; Fri, 21 Sep 2018 10:40:25 -0700 (PDT) X-Received: by 2002:ab0:1601:: with SMTP id k1-v6mr13782085uae.83.1537551625587; Fri, 21 Sep 2018 10:40:25 -0700 (PDT) MIME-Version: 1.0 References: <20180920224055.164856-1-ryandcase@chromium.org> <153755105782.119890.8484594239463905156@swboyd.mtv.corp.google.com> In-Reply-To: <153755105782.119890.8484594239463905156@swboyd.mtv.corp.google.com> From: Doug Anderson Date: Fri, 21 Sep 2018 10:40:14 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: spi: Qualcomm Quad SPI(QSPI) documentation To: Stephen Boyd Cc: Mark Brown , ryandcase@chromium.org, boris.brezillon@bootlin.com, linux-arm-msm , Girish Mahadevan , devicetree@vger.kernel.org, LKML , linux-spi , Rob Herring , Mark Rutland Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, Sep 21, 2018 at 10:31 AM Stephen Boyd wrote: > > Quoting Ryan Case (2018-09-20 15:40:54) > > diff --git a/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt > > new file mode 100644 > > index 000000000000..ecfb1e2bd520 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/spi/qcom,spi-qcom-qspi.txt > > @@ -0,0 +1,36 @@ > > +Qualcomm Quad Serial Peripheral Interface (QSPI) > > + > > +The QSPI controller allows SPI protocol communication in single, dual, or quad > > +wire transmission modes for read/write access to slaves such as NOR flash. > > + > > +Required properties: > > +- compatible: Should contain: > > + "qcom,sdm845-qspi" > > Does someone have a more generic compatible string that can be added > here to indicate the type of quad SPI controller this is? I really doubt > this is a one-off hardware block for the specific SDM845 SoC. The compatible string used to be "qcom,qspi-v1". ...but Rob Herring requested [1] "an SoC specific compatible string". While we could do a compatible string like: "qcom,sdm845-qspi", "qcom,qspi-v1". I'm curious if that buys us anything. From all my previous experience with device tree it is fine to name a compatible string for a component based on the first SoC that used it. If we later find that this is also used in an "msm1234" we could always later do the compatible string for that device as: "qcom, msm1234-qspi", "qcom,sdm845-qspi" ...and we don't need to try to come up with a generic name. Obviously, though, I'll cede to whatever Rob says here though. -Doug [1] http://lkml.kernel.org/r/20180716222721.GA12854@rob-hp-laptop > > > +- reg: Should contain the base register location and length. > > +- interrupts: Interrupt number used by the controller. > > +- clocks: Should contain the core and AHB clock. > > +- clock-names: Should be "core" for core clock and "iface" for AHB clock. > > +