Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp46670pxy; Wed, 21 Apr 2021 18:04:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLzLMFvCdg0iQyfXXFHyUzx9fqJEMrlmDuGjbuhpzvexAsa0h+gimiCNMs87W0RkCoM6Fe X-Received: by 2002:a17:90b:19cc:: with SMTP id nm12mr984120pjb.169.1619053463598; Wed, 21 Apr 2021 18:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619053463; cv=none; d=google.com; s=arc-20160816; b=wGxa4aYB9jKn/8bG4a7u/Nm+3PAAJNn38ji9pK3NQc/pO+BP8nSqgKyTz+14cOIL27 GnwcfwvIHel0cq9RL8Z9nVB9UeKBbvjR0QgTOmJ5Yh2RKHlbCbeEOUgJMQ5eYci71L6k 99TchvR23lRZtNHaI6HkUWCj7j6kCA5IXUEN8Zui5NXTmvFsjyEwtQzM5+fsvJkn2H0m Y1vc+XcmYmO9DZu95Mf8xEWSISOBJpHy3apNbdjzQmiwmqwkV29mI0eM+ashVdvEqY4B spuM8vNlKeJBpTOjoSQ7qYZqom5Epas/j1nCj2NKNdV37Fh+OwYraUuPp5/jT0cWwkrG auaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=7VCmwU3Z0G8gtBRqBZ0QmXHLoUtJnHDKmIJay+MuhNk=; b=BPhqYUF4B/eDrvPzox/lPrh27r5QyxtZcKQ8OdBp8jsmNOoo/nSCfnqFtPFzAJY54I jb/u3eDkWzdAOkWAzXlsZ+cdiW8BavmCocQYat+aqjRx94oPZcVsGu5hZDVYPoYZ1RvU 0O+wi65H2yyadrHcnbloPz7egRorb2VfPKJ6dSBo89ji9HZwvPHFzfhLMJyGCX0wm9ZV Zr6MXFb+VlanDOsWwq+fdyirbbjTZmFaAuLn0OUX0Y0PZs7ym5URFxe1F2xLeXnnA9bd 08qOfNS2aqzddBeNF2N05bBCk34KeDyOb7smFokS1kW+dv+wGkzjm46K9w4RRuIn0SMO nikA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s19si1379414pfu.44.2021.04.21.18.04.10; Wed, 21 Apr 2021 18:04:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242815AbhDURLf (ORCPT + 99 others); Wed, 21 Apr 2021 13:11:35 -0400 Received: from mail-ot1-f45.google.com ([209.85.210.45]:33427 "EHLO mail-ot1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242747AbhDURL2 (ORCPT ); Wed, 21 Apr 2021 13:11:28 -0400 Received: by mail-ot1-f45.google.com with SMTP id 92-20020a9d02e50000b029028fcc3d2c9eso17092994otl.0; Wed, 21 Apr 2021 10:10:55 -0700 (PDT) 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; bh=7VCmwU3Z0G8gtBRqBZ0QmXHLoUtJnHDKmIJay+MuhNk=; b=P0/U731DgMgAR6KkcplMBwVFSP6Y5PbWLedkfBpcyvPAY2+T6lGBhBoflLYL628pEu RlZ6H4CjOS1N2hv1rySQU5YxlKS2BVigpwBD4ZlvNbqm4/Ks8vAXt6Ui2xjLqwt1lfGY QMAu3AOz+HVbfqwJMB41mQvK7PNu9RpXBXXXRP7dSWLwm+4r+SR/6SOzre8sTBqCkCzg dLWzRLjYC3TJn5IAXq3ueGcM+/3LJj32gUHWaxJbZccMWWceEXeiXs9btJqQt58oEzQx RzP9gBF2U8NJcsHh9Ox3TTvq1VmXHDpa51rjhegGlYloyWbdKN31ul6dXIKZPudDqoMC 6vKA== X-Gm-Message-State: AOAM531ZjpBuJxcmfB5KNhm5i9Xnij6lRkAfQ+2lL/fTim2QpYZtzg7Y AwJ7DbhrLAe5k+bh8RygoA== X-Received: by 2002:a05:6830:4110:: with SMTP id w16mr24502392ott.348.1619025054795; Wed, 21 Apr 2021 10:10:54 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w24sm2493otj.33.2021.04.21.10.10.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Apr 2021 10:10:53 -0700 (PDT) Received: (nullmailer pid 1307176 invoked by uid 1000); Wed, 21 Apr 2021 17:10:52 -0000 Date: Wed, 21 Apr 2021 12:10:52 -0500 From: Rob Herring To: Venkata Lakshmi Narayana Gubba Cc: marcel@holtmann.org, johan.hedberg@gmail.com, devicetree@vger.kernel.org, mka@chromium.org, linux-kernel@vger.kernel.org, linux-bluetooth@vger.kernel.org, hemantg@codeaurora.org, linux-arm-msm@vger.kernel.org, bgodavar@codeaurora.org, rjliao@codeaurora.org, hbandi@codeaurora.org, abhishekpandit@chromium.org Subject: Re: [PATCH v2 2/3] dt-bindings: net: bluetooth: Convert to DT schema Message-ID: <20210421171052.GB1300559@robh.at.kernel.org> References: <1618936010-16579-1-git-send-email-gubbaven@codeaurora.org> <1618936010-16579-3-git-send-email-gubbaven@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1618936010-16579-3-git-send-email-gubbaven@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 20, 2021 at 09:56:49PM +0530, Venkata Lakshmi Narayana Gubba wrote: > Converted Qualcomm Bluetooth binidings to DT schema. > > Signed-off-by: Venkata Lakshmi Narayana Gubba > --- > .../devicetree/bindings/net/qualcomm-bluetooth.txt | 69 ----------------- > .../bindings/net/qualcomm-bluetooth.yaml | 87 ++++++++++++++++++++++ > 2 files changed, 87 insertions(+), 69 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > create mode 100644 Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml > > diff --git a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > deleted file mode 100644 > index 709ca6d..0000000 > --- a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.txt > +++ /dev/null > @@ -1,69 +0,0 @@ > -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" > - * "qcom,qca9377-bt" > - * "qcom,wcn3990-bt" > - * "qcom,wcn3991-bt" > - * "qcom,wcn3998-bt" > - * "qcom,qca6390-bt" > - > -Optional properties for compatible string qcom,qca6174-bt: > - > - - enable-gpios: gpio specifier used to enable chip > - - clocks: clock provided to the controller (SUSCLK_32KHZ) > - - firmware-name: specify the name of nvm firmware to load > - > -Optional properties for compatible string qcom,qca9377-bt: > - > - - max-speed: see Documentation/devicetree/bindings/serial/serial.yaml > - > -Required properties for compatible string qcom,wcn399x-bt: > - > - - vddio-supply: VDD_IO supply regulator handle. > - - vddxo-supply: VDD_XO supply regulator handle. > - - vddrf-supply: VDD_RF supply regulator handle. > - - vddch0-supply: VDD_CH0 supply regulator handle. > - > -Optional properties for compatible string qcom,wcn399x-bt: > - > - - max-speed: see Documentation/devicetree/bindings/serial/serial.yaml > - - firmware-name: specify the name of nvm firmware to load > - - clocks: clock provided to the controller > - > -Examples: > - > -serial@7570000 { > - label = "BT-UART"; > - status = "okay"; > - > - bluetooth { > - compatible = "qcom,qca6174-bt"; > - > - enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; > - clocks = <&divclk4>; > - firmware-name = "nvm_00440302.bin"; > - }; > -}; > - > -serial@898000 { > - bluetooth { > - compatible = "qcom,wcn3990-bt"; > - > - vddio-supply = <&vreg_s4a_1p8>; > - vddxo-supply = <&vreg_l7a_1p8>; > - vddrf-supply = <&vreg_l17a_1p3>; > - vddch0-supply = <&vreg_l25a_3p3>; > - max-speed = <3200000>; > - firmware-name = "crnv21.bin"; > - clocks = <&rpmhcc RPMH_RF_CLK2>; > - }; > -}; > diff --git a/Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml > new file mode 100644 > index 0000000..55cd995 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/qualcomm-bluetooth.yaml > @@ -0,0 +1,87 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/qualcomm-bluetooth.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm Bluetooth Chips > + > +maintainers: > + - Rob Herring > + - Marcel Holtmann > + > +description: > + This binding describes Qualcomm UART-attached bluetooth chips. > + > +properties: > + compatible: > + enum: > + - qcom,qca6174-bt > + - qcom,qca9377-bt > + - qcom,wcn3990-bt > + - qcom,wcn3991-bt > + - qcom,wcn3998-bt > + - qcom,qca6390-bt > + > + enable-gpios: > + maxItems: 1 > + description: gpio specifier used to enable chip > + > + clocks: > + maxItems: 1 > + description: clock provided to the controller (SUSCLK_32KHZ) > + > + vddio-supply: > + description: VDD_IO supply regulator handle > + > + vddxo-supply: > + description: VDD_XO supply regulator handle > + > + vddrf-supply: > + description: VDD_RF supply regulator handle > + > + vddch0-supply: > + description: VDD_CH0 supply regulator handle > + > + max-speed: > + description: see Documentation/devicetree/bindings/serial/serial.yaml > + > + firmware-name: > + description: specify the name of nvm firmware to load > + > + local-bd-address: > + description: see Documentation/devicetree/bindings/net/bluetooth.txt > + > + > +required: > + - compatible > + > +additionalProperties: false > + > +examples: > + - | > + #include > + uart { Also, 'serial' is the proper node name. > + label = "BT-UART"; > + status = "okay"; > + > + bluetooth { > + compatible = "qcom,qca6174-bt"; > + enable-gpios = <&pm8994_gpios 19 GPIO_ACTIVE_HIGH>; > + clocks = <&divclk4>; > + firmware-name = "nvm_00440302.bin"; > + }; > + }; > + - | > + uart { > + > + bluetooth { > + compatible = "qcom,wcn3990-bt"; > + vddio-supply = <&vreg_s4a_1p8>; > + vddxo-supply = <&vreg_l7a_1p8>; > + vddrf-supply = <&vreg_l17a_1p3>; > + vddch0-supply = <&vreg_l25a_3p3>; > + max-speed = <3200000>; > + firmware-name = "crnv21.bin"; > + }; > + }; > -- > QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member > of Code Aurora Forum, hosted by The Linux Foundation >