Received: by 10.213.65.68 with SMTP id h4csp1554142imn; Mon, 26 Mar 2018 09:46:35 -0700 (PDT) X-Google-Smtp-Source: AG47ELsb0vEcn0bFKzRiil+QOMMjLmY+4rpZ8HiChgEVln1lg0o0setYxFi8sjOplzIbr8S411zA X-Received: by 2002:a17:902:28e3:: with SMTP id f90-v6mr33098679plb.250.1522082794968; Mon, 26 Mar 2018 09:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522082794; cv=none; d=google.com; s=arc-20160816; b=wdtiowb37xWVENdyn34AmpnBqNaFYjvoBHUBcXL+Wiv4AaOqGoydiTkshy1cV4Nzqz lwaBZZmckzl7n86z/sArHCZ3CGGuUFO6JPAJSCZM444J96/A/FZIF9wjlMic7ZPM8n/o 9AwwIGc3iaoVYy6KCbid5myYTPH1JhQ6WStOszFQ6FhR1itNeWqeSeogSwpUnRCiIYIw lo5dqi94BS3d1v3v2T5p/EasGLUGKhSALkyZY09dlcFAB3m4I4XXMbLTPXzv+g83xSm8 gzJl0I2FK2j3Fpi6ByaMZTEwfCgNIVanHtFPPvpugX4hHE66cAiStFC5vJ/DYPcF0d7G MJYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=ICbPMGi5S8C25PRw7/winXDJNnUrrvRIETchieMzrjE=; b=eNk4w9CY2D44aHFzHCJxiTdgCWBWCZ/Fi4swoJYnquKAiyqiUg+K0x0+k1JKGdLgql 4yy6L/xKH2I6VkKCpegUNcDjMPvuaScLRrveh+zps82EpeaMUCYxFlb0F4oaQVDlyU5C qxpHNdwb2WmiYoAwSzj81Tx3JFy4oJ3l5uJJmAoaXUCJ0udxkgZN4R3KqBDcyxNCHAMA GSmsnv/Jpt1xKQlmfwdxFHw1MnoToS9EdX2afZFpu1K6DAobsrRNT08hyrQ7Qdh0+5Tr LPlx/N6iMwUfwjeHJbJRO7WzHERlBXYRgbtmuOAsbYuk7pAJHr3pT/DAyW0ewLLGootS 9HpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S1/plzvM; 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 w128si10387976pgb.460.2018.03.26.09.46.19; Mon, 26 Mar 2018 09:46:34 -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=S1/plzvM; 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 S1752459AbeCZQpR (ORCPT + 99 others); Mon, 26 Mar 2018 12:45:17 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:51725 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752306AbeCZQpP (ORCPT ); Mon, 26 Mar 2018 12:45:15 -0400 Received: by mail-wm0-f68.google.com with SMTP id v21so16714239wmc.1 for ; Mon, 26 Mar 2018 09:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=ICbPMGi5S8C25PRw7/winXDJNnUrrvRIETchieMzrjE=; b=S1/plzvM8x83v6YUsr16svzBJouHjvlQ9wwIl075nLxLSJw5l7Wp6OmmrVuSdtDFpE z9/D1UxkukBZKCRZzHbwJ4G74gR7oaFSl/lzP1x8ZHXZaNFyPzmd9oS2HWYbjtNSB51y ETUJVY0rg/7IdCsRuW1BvG936B7/MddGr+xU0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=ICbPMGi5S8C25PRw7/winXDJNnUrrvRIETchieMzrjE=; b=apyL7pVyH07/DHp+7C0ToPUHWb5Do6VsriWRHE3x6MHqPtFqEDbjZinNeWxARymnzj x2udosl0cgFx+w0IdRl/Xc4qPobHGpGtvfZTuj1CscNxkE8Sb7L0BQmEYFYhZYuTmT7f 4H4xJWZFtcN4reIGrOLzfNKLrG/R3gy1cPkQFXrT6kbHz5pQ9m9JCR8EYzl3QTz1fF8C pK7VRj1La7dM4zzsxAKev472N3o57JCMqRwJfanOaYjxwq5CYY99ISQ4b2gnZcXcQLQr j0yC4KBUBao64jMysDz12kC6r0mwWq6dbI01KN4/is6WRU3zSsT6K/AGyle0tTdb6Jd2 UZGw== X-Gm-Message-State: AElRT7GjghKNywt63Ab5c3otlTc8CwCqfFJfR/Oic1s1Lw9Adai3ndrI qoNx/Ci8gHcOhVbQLtQhwp53DtRmnlo= X-Received: by 10.28.148.206 with SMTP id w197mr6446031wmd.60.1522082713547; Mon, 26 Mar 2018 09:45:13 -0700 (PDT) Received: from [192.168.1.100] (aig34-1-88-167-228-121.fbx.proxad.net. [88.167.228.121]) by smtp.gmail.com with ESMTPSA id r19sm20705719wmd.48.2018.03.26.09.45.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 09:45:13 -0700 (PDT) Subject: Re: [PATCH v5 2/3] dt-bindings: net: bluetooth: Add qualcomm-bluetooth To: Marcel Holtmann 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 References: <20180320032331.29865-1-thierry.escande@linaro.org> <20180320032331.29865-3-thierry.escande@linaro.org> From: Thierry Escande Message-ID: Date: Mon, 26 Mar 2018 18:45:10 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marcel, On 20/03/2018 16:58, Marcel Holtmann wrote: > 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? Ok. To me, at least the enable gpio seems required. > >> + >> +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. Sure. It reclaims this gpio pin for this device. Will add it to the documentation. > >> + >> + clocks = <&divclk4>; > > No clock-names? No need for a name as there is only one clk obtained by passing a NULL id to devm_gpiod_get(). Regards, Thierry > > Regards > > Marcel >