Received: by 10.213.65.68 with SMTP id h4csp531706imn; Tue, 20 Mar 2018 09:00:01 -0700 (PDT) X-Google-Smtp-Source: AG47ELttld4IQ6bSz/lExJzziiODlDUz+swF4RHbD8OX6jusHlKuG933J/gJgkpb2JSOn0Xrsd3l X-Received: by 2002:a17:902:768b:: with SMTP id m11-v6mr11130812pll.161.1521561601298; Tue, 20 Mar 2018 09:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521561601; cv=none; d=google.com; s=arc-20160816; b=CwUtRhET7WJoVDWmDSMNbYV6W795zVrC5H7vfCJ63H7p+xDXGh1gb9d3O3/Mvgwqpq HBu3f5jKecRALSGvMhM7mEGH9kXcqmNH4hyaigzNsOyiW+DZ/8oFSK1R+ilFgqXh04f1 K2y/rtSZ8cDztDDfBiocn0h0j1CDgkk0hdNLatAm22CvNX2cHeS/VABbYJU0uXl9zGxI Moe+Lr/q9pCU/BhrJUZwT1+rSOHPHJqcRIDWSJQYB4vXqV7KqwsJkRjQjKkdESBRYAft whGOO6pLpc9vbkvm6ip6UsZzhlY6u3ytdXxTsvqa+iHc6ZJ1vvWfE3SlMp5HMFYEPCgK H2mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=OIkzh9Fd+jEPv0c+Tjh1K3tFj8ppDPmHyguKRCxHPQo=; b=pUwetsEEDJg66Y+ys1Dacrl5iJnJpja6Qvy6hM2G/wlUMVVd6SGyktaGZ2kZ8yex4u 1zo8JTYVC1ukjQ0yPuY6MDHg0Ml+873/Rj05s8bAx6b38VaoxaVIvO9G/HbQh3IXiGRO iIweweahGstCe4bLpC7C1hfR4kIAFd/j6DcS0CZUM7GcCcIU2r2UtSbZ9u/ljJtlWEry qCCe75uJc+o13+iq3SZONxJLZZYP0QxTNQXsxZnGFtYzkkJArsPLeUlVwpJPPXs+V5X/ S38Y4T/A0PjxMD9HXyMWL9LfQ18PLQTkNjYfOr+rUabIhHw80o4XXkOxVvOOLRVG0t6j jGTA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 22si1329238pgg.390.2018.03.20.08.59.46; Tue, 20 Mar 2018 09:00: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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751662AbeCTP6a convert rfc822-to-8bit (ORCPT + 99 others); Tue, 20 Mar 2018 11:58:30 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:43341 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751269AbeCTP62 (ORCPT ); Tue, 20 Mar 2018 11:58:28 -0400 Received: from marcel-macpro.fritz.box (p4FF9F617.dip0.t-ipconnect.de [79.249.246.23]) by mail.holtmann.org (Postfix) with ESMTPSA id 74F4ACF2AB; Tue, 20 Mar 2018 17:04:42 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: [PATCH v5 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth From: Marcel Holtmann In-Reply-To: <20180320032331.29865-3-thierry.escande@linaro.org> Date: Tue, 20 Mar 2018 16:58:25 +0100 Cc: Rob Herring , Andy Gross , Johan Hedberg , David Brown , Mark Rutland , Andy Shevchenko , Loic Poulain , Bjorn Andersson , Srinivas Kandagatla , linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree , linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: References: <20180320032331.29865-1-thierry.escande@linaro.org> <20180320032331.29865-3-thierry.escande@linaro.org> To: Thierry Escande X-Mailer: Apple Mail (2.3445.5.20) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thierry, > Add binding document for serial bluetooth chips using Qualcomm protocol. > > Signed-off-by: Thierry Escande > --- > > v5: > - Rename 'bt-disable-n' gpio as 'enable' > > v4: > - Move bt-disable-n-gpios to required properties section > - Add clocks and pinctrl-0 as required properties > > v3: no change > v2: no change > > .../devicetree/bindings/net/qualcomm-bluetooth.txt | 34 ++++++++++++++++++++++ > 1 file changed, 34 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > > diff --git a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > new file mode 100644 > index 000000000000..bbc2973634b2 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > @@ -0,0 +1,34 @@ > +Qualcomm Bluetooth Chips > +--------------------- > + > +This documents the binding structure and common properties for serial > +attached Qualcomm devices. > + > +Serial attached Qualcomm devices shall be a child node of the host UART > +device the slave device is attached to. > + > +Required properties: > + - compatible: should contain one of the following: > + * "qcom,qca6174-bt" > + - enable-gpios: gpio specifier used to enable chip > + - pinctrl-0: pin phandle for bt_en gpio > + - 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? > + > +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. > + > + clocks = <&divclk4>; No clock-names? Regards Marcel