Received: by 10.213.65.68 with SMTP id h4csp88807imn; Mon, 26 Mar 2018 15:54:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELuaqg5v6gjGSbKZbrZAvjX83NZCm1KBFhGjZMKA+eJv/HO+J3nxRqjEG+R32YEWt7Sey7N7 X-Received: by 10.101.100.9 with SMTP id a9mr11535016pgv.209.1522104841867; Mon, 26 Mar 2018 15:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522104841; cv=none; d=google.com; s=arc-20160816; b=uWpLuNA1Qp3/HlY319f2GjyHLtkKeONWgyfbaZGY6KS7ahlC0MPkeEuCFhE1VI86DP 0kVkuMpXYpnHIwbJaPYdMHbQhdTTjhgktYkJCAUxUCLa7ATHhRyd5GZaCGlWccYXHM2t mgKzM9CHWoDIKR2nt+JnOJ9HkeXoEFWTxWM/7cZbEEzdCGdSis1gu7sMLJAV6lsfvFyL RCryOPmN1cooCER90BF2i/slmtlia7ZCUagVAX4HWkNVSz1KbjVhVT0QT3dPa6au7c43 bJopjjU+4g/MlVvf+m6oJCl0V+BDRkx4mwYJLEZ+aHdCTuPRUo3qbQs8vBE/K83djMK6 ca1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=m/XoPUh/yNOSdrW/nKJ0yIANjguTBRa1TQhX1tus6hs=; b=dsF9TAIZfATCzN/NW7QwmHhVfFvSclYD21rrdv1Cz2dOBdUJ8Few3leneZv4LV4KFn CY1wosmlqR5CgdwcwG+uaGFMyx8s6UljNrx60KbDGa18lgncDX/4DvEFoyUc3SO9iuTB wBRtNXgwdzWDzTSSUB7non2lcHz+K8atGacGm/XWQ/qwunhZd/15P40IWj9vq4UyPZG/ jZ7NhsFgAW9LTSII9bLeFBTh2ncAayaE5AbCllFg7Y+BcrJsx44OSuvrHbcJB9h7hET7 ZZTgkU4jhTNhpMSbeKGNCvtdyq38i368jyAiVz1R0Am2UKBParMF1BzaKCnN7AxyKTHs nVvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TnWBql4B; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s14si2203837pgr.643.2018.03.26.15.53.47; Mon, 26 Mar 2018 15:54:01 -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=@linaro.org header.s=google header.b=TnWBql4B; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752525AbeCZWu7 (ORCPT + 99 others); Mon, 26 Mar 2018 18:50:59 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:34415 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752478AbeCZWuz (ORCPT ); Mon, 26 Mar 2018 18:50:55 -0400 Received: by mail-pl0-f66.google.com with SMTP id u11-v6so12896774plq.1 for ; Mon, 26 Mar 2018 15:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m/XoPUh/yNOSdrW/nKJ0yIANjguTBRa1TQhX1tus6hs=; b=TnWBql4BrHBBguGr0ECvbVsPYBBq6eBOetFvoZLFzMkrS6zjgTELL9h0LeekGi0QKA QplQX4Om6P9XQ2cbKFwwhu50DM6Fq8awe9OoRQA9nWWRb5kKnmQ5pMTKf8e5X7Yt96tp 8b4xBvslQBAJlpp2qWVSGI9oKJJ/GDbJ7ZKYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m/XoPUh/yNOSdrW/nKJ0yIANjguTBRa1TQhX1tus6hs=; b=PnTEYbiz3/vvS/qqpQ14QDq/bR/ZQCcseVRzL5A9aplIMxDBHRP2DfAiqH2ZKs5xYu eO9bq0vJdTWLDyfn167Ew6sYhhIjjJv72ari8Ln2pmfOmSFgFYenWmtqPU8IPZefTzAS KfDD47P3ghVY09CKmQaB9a6CGA+3bMDmgKN45o+S5dORcBCoEuvM1A+ePVebFW2pZXy3 DE6QA0eUZhIgu6HNYMREOaZ5uWZfK5an7F/zMBLjlxtcRNVPzijYhpV/KsX5ekhcAKTC dr9p0rBH8mOul22lNjZsEUQxrD/8DgEFWiyvn7qwwQJHtamUwNs+gaWfAwaH0OQ4rDut sDEg== X-Gm-Message-State: AElRT7GmlvO5mEIlrdH8hrua9Kqvnsiz8btkrO+v/c5q5SVg1e2B540o AozNaMm45kMa9qjzzZhy0R7XgA== X-Received: by 2002:a17:902:6b89:: with SMTP id p9-v6mr17570065plk.265.1522104654464; Mon, 26 Mar 2018 15:50:54 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id 73sm26644777pgg.73.2018.03.26.15.50.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 26 Mar 2018 15:50:53 -0700 (PDT) Date: Tue, 27 Mar 2018 06:51:06 +0800 From: Bjorn Andersson To: Marcel Holtmann Cc: Thierry Escande , Rob Herring , Andy Gross , Johan Hedberg , David Brown , Mark Rutland , Andy Shevchenko , Loic Poulain , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree , linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth Message-ID: <20180326225106.GC1403@tuxbook-pro> References: <20180320032331.29865-1-thierry.escande@linaro.org> <20180320032331.29865-3-thierry.escande@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 20 Mar 23:58 HKT 2018, Marcel Holtmann wrote: > > Signed-off-by: Thierry Escande [..] > > + - clocks: clock phandle for SUSCLK_32KHZ > > if I compare this with broadcom-bluetooth.txt or ti-bluetooth.txt then > besides compatible, everything else is optional. The > nokia-bluetooth.txt has everything required, but that is also a really > specific platform. > > Can we be less restrictive for a QCA general purpose chip? > The way we deal with this in other bindings is that we tie such requirements to the compatible; i.e. we would say that qcom,qca6174-bt requires a clock and we would have something like qcom,qca-bt that makes it optional. The beauty of this is that the driver will tell you if you forgot to specify the clock when it actually is required, which saves you considerable amount of debugging time. NB. The way the bcm driver handles this is insufficient, as it treats any error from clk_get as "there's no clock specified". The driver should accept a clock not being specified, but should fail properly when a clock is specified but can't be acquired (e.g. due to clk_get() returning EPROBE_DEFER). > > + > > +Example: > > + > > +serial@7570000 { > > + pinctrl-names = "default", "sleep"; > > + pinctrl-0 = <&blsp1_uart1_default>; > > + pinctrl-1 = <&blsp1_uart1_sleep>; > > + > > + bluetooth { > > + compatible = "qcom,qca6174-bt"; > > + > > + enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; > > + > > + pinctrl-names = "default"; > > + pinctrl-0 = <&bt_en_pin_a>; > > This one I do not understand and you might want to shed some light > into why this is done that way. > This is completely generic and only relates to getting the electrical properties of the gpio pin set up correctly. So I would recommend that we omit this from the binding and example (including the pinctrl properties for the serial above). Regards, Bjorn