From patchwork Fri Sep 8 13:57:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 9944327 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2C819604D4 for ; Fri, 8 Sep 2017 13:58:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C3A42873A for ; Fri, 8 Sep 2017 13:58:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 111A028744; Fri, 8 Sep 2017 13:58:09 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9BD7E2873A for ; Fri, 8 Sep 2017 13:58:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753545AbdIHN6E (ORCPT ); Fri, 8 Sep 2017 09:58:04 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:34227 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753740AbdIHN6B (ORCPT ); Fri, 8 Sep 2017 09:58:01 -0400 Received: by mail-wr0-f171.google.com with SMTP id v109so4881848wrc.1 for ; Fri, 08 Sep 2017 06:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=u2NfjXbE56dyIgrFBHKSNu5NHg9doo17AMig7rf4nmc=; b=GWxnZNqMpMuMfgLIMlCUG02V7J2+j4NaVNE8zbAjkVUuVroU+bM0JFVAQxrWoJFswn 5U0b/fY67LQrq3Mm8scs9o3m/gG1hvX2m12vD6fjyRICu2hkZXMaeGRZLqP/XfnqFug9 f6WyVKeDHBVkBFK7j0t+YNudk7CrhIKiio17A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=u2NfjXbE56dyIgrFBHKSNu5NHg9doo17AMig7rf4nmc=; b=LAXNYQMNEum8S9G070Sis8r9qShtjCdNaStvEDerE7OHml1T4vLHGAP5MGccaTgjC0 CR25iYPLwUomDRgJr39pMMEvjz4YW1JCTzD//Y7tFzIlxQNFc2uGNxP2KtKht+PJi+WI D9eTBxXOTfGNARZIBfr8y/GccoekqUg6stPHAedrsiB884JdsazAIs0fDKlXhlcnBthG RVsKnnyHNmxOojhOfc0JoPzDXP93TAEpuQRqLqyUcPnK/Y6oD4ZoL8FKn9BpL3/WecT1 bC9XvdiF0liQ5yVYzK6IMRtnZ2YvcYnjh7RWr/bXNd1FWofWyAaCqLrCXY5NSiRFmP2e KvBw== X-Gm-Message-State: AHPjjUg0KqZWS4Ji0ikuJW+/QKF5LR4ulU1BTq26KOBPdRrlO/nwJFVV 8C7FfmZJQ6Ui8xK+ X-Google-Smtp-Source: ADKCNb4eN6NlUbXDQ3DUWd/UJYWXbjotljPE9/YEeQmN9L2tKTTpHBh5DjKHbpjGbvQ5fYGjpqLJBg== X-Received: by 10.223.169.83 with SMTP id u77mr2036969wrc.268.1504879080440; Fri, 08 Sep 2017 06:58:00 -0700 (PDT) Received: from loic-XPS-12.home (LFbn-1-2083-208.w90-76.abo.wanadoo.fr. [90.76.148.208]) by smtp.gmail.com with ESMTPSA id v2sm1869638wmf.40.2017.09.08.06.57.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 06:57:59 -0700 (PDT) From: Loic Poulain To: marcel@holtmann.org, robh+dt@kernel.org, johan.hedberg@gmail.com Cc: linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, bjorn.andersson@linaro.org, Loic Poulain Subject: [PATCH v7 2/3] dt-bindings: soc: qcom: Add local-bd-address property to WCNSS-BT Date: Fri, 8 Sep 2017 15:57:54 +0200 Message-Id: <1504879075-587-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504879075-587-1-git-send-email-loic.poulain@linaro.org> References: <1504879075-587-1-git-send-email-loic.poulain@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add optional local-bd-address property which is a 6-byte array storing the assigned BD address. Since having a unique BD address is critical, a per-device property value should be allocated. This property is usually added by the boot loader which has access to the provisioned data. Signed-off-by: Loic Poulain --- v2: Set device as unconfigured if default address detected Add warning if BD addr retrieved from DT v3: if no addr retrieved from DT, unconditionally set the invalid BD addr flag. swap and set bdaddr in the platform probe v4: Add dt-bindings documentation split patch in two parts (setup, dt prop) use local-bd-address name instead of local-mac-address v5: remove 2/3 merged in bluetooth-next tree Add bluetooth.txt for common BT bindings expect local-bd-address in little-endian format v6: use of_property_read_u8_array instead of of_get_property v7: use dev_info instead of BT_INFO to have dev context Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt index 4ea39e9..042a2e4 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt @@ -37,6 +37,11 @@ The following properties are defined to the bluetooth node: Definition: must be: "qcom,wcnss-bt" +- local-bd-address: + Usage: optional + Value type: + Definition: see Documentation/devicetree/bindings/net/bluetooth.txt + == WiFi The following properties are defined to the WiFi node: @@ -91,6 +96,9 @@ smd { bt { compatible = "qcom,wcnss-bt"; + + /* BD address 00:11:22:33:44:55 */ + local-bd-address = [ 55 44 33 22 11 00 ]; }; wlan {