From patchwork Tue Sep 5 10:26:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 9938377 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 5EE70600CB for ; Tue, 5 Sep 2017 10:26:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EA5028920 for ; Tue, 5 Sep 2017 10:26:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 41C492891F; Tue, 5 Sep 2017 10:26:12 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 C1FD72891F for ; Tue, 5 Sep 2017 10:26:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751065AbdIEK0K (ORCPT ); Tue, 5 Sep 2017 06:26:10 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:37177 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750933AbdIEK0J (ORCPT ); Tue, 5 Sep 2017 06:26:09 -0400 Received: by mail-wm0-f41.google.com with SMTP id u26so16957548wma.0 for ; Tue, 05 Sep 2017 03:26:08 -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; bh=CuJZk+E9dCsEVghlJfjUldHUzA/NfHM9l4I2u/+U5tw=; b=V9vVOlrcJEGCdVtxLKPJtk7l4l7XM47ZHv2+BtVkjiuGQqYt9WJsufxhf69tKbJ+ZC piWkBshWibB7iZ5w4uYDxRRX19kHDAd6WESX6uRliD0ZpD+8c+rZff1YR69EvCok5wBO 3baawB4KG7cIoOstDnGNzd6yW3CRlF8OaaS9s= 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; bh=CuJZk+E9dCsEVghlJfjUldHUzA/NfHM9l4I2u/+U5tw=; b=s2Ob9PVzezTiXnRZ2EK9ZkNcw61YW3JrTPFeGslky+8xMRZyotJotqt/bI0urbbsnZ JKG2GxtSjCKcdVebnh6YWIyO/6Gwty/DanB552XvekN9e9RshQddx4XgARbmfQoGVYtI ljlrZdCNaOeB1HRFbwRu6fbGhF6H2VNUHAlv7iCpuqzU07BPrqUNEGcArN+FBukT04Ro iq0dUGnP6ci65nf8JI2B/r7bBDTbf/NRvbFe8FvDXdO7kaUFcL8q0cGyRaTe4ENbqzp9 bEJWAnh4fiqO+YJ5smG5bACSj7Tm6bMrDOFjJKBfDVY6YzldDBS1l05xVZTifmyh61jv s8uw== X-Gm-Message-State: AHPjjUgSb+lbjVGkCA1Mo5Ibri5Nxalr4rgrYKLrAXF+dCO3aF5X00OL 9SEElDwM9wsS+nzv X-Google-Smtp-Source: ADKCNb4WluhXscO9AGqNKLfy+jwBhc2N597p+zNscWtDjuP04yVdlN+aC+2V1r+2B0lpQ6Xh3iWJJA== X-Received: by 10.28.105.156 with SMTP id z28mr1918863wmh.73.1504607168007; Tue, 05 Sep 2017 03:26:08 -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 v82sm214584wmd.44.2017.09.05.03.26.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Sep 2017 03:26:07 -0700 (PDT) From: Loic Poulain To: marcel@holtmann.org, johan.hedberg@gmail.com, robh+dt@kernel.org Cc: linux-bluetooth@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, bjorn.andersson@linaro.org, Loic Poulain Subject: [PATCH v4 1/3] dt-bindings: soc: qcom: Add local-bd-address property to WCNSS-BT Date: Tue, 5 Sep 2017 12:26:02 +0200 Message-Id: <1504607164-12645-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 1.9.1 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 Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt index 4ea39e9186a7..1edfcdc6e267 100644 --- a/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt +++ b/Documentation/devicetree/bindings/soc/qcom/qcom,wcnss.txt @@ -37,6 +37,12 @@ The following properties are defined to the bluetooth node: Definition: must be: "qcom,wcnss-bt" +- local-bd-address: + Usage: optional + Value type: + Definition: should specify the unique 6-byte BD address assigned to the + BT controller. Usually added at runtime by the boot loader. + == WiFi The following properties are defined to the WiFi node: