From patchwork Wed Sep 6 12:11:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 9940535 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 2A15C60216 for ; Wed, 6 Sep 2017 12:11:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 09AE228B8B for ; Wed, 6 Sep 2017 12:11:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F29C828BB0; Wed, 6 Sep 2017 12:11:48 +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 A0EA728B8B for ; Wed, 6 Sep 2017 12:11:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297AbdIFMLr (ORCPT ); Wed, 6 Sep 2017 08:11:47 -0400 Received: from mail-wr0-f171.google.com ([209.85.128.171]:37849 "EHLO mail-wr0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753275AbdIFMLo (ORCPT ); Wed, 6 Sep 2017 08:11:44 -0400 Received: by mail-wr0-f171.google.com with SMTP id k20so4626939wre.4 for ; Wed, 06 Sep 2017 05:11:44 -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=kWzv/9x2SbRY2R/QdeqYMdPW5vQAxAqYBSN33kw7+lQ=; b=Yzmr3jU1tv1wiaz18ecxfF/8++RDM1DHYjmUAw4YsGAvzTrYu0CZGKM04RD/9azi1t PY6z1yymv4kzdVtL0d8CpKRyRX5u+rB5+Ve8KF4HpW7x3Owpk3XytsUysA4uQgDg3JLh kcCW5RTEKcg5mW4P0GfjQNtxD2yWFPf2kfIZU= 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=kWzv/9x2SbRY2R/QdeqYMdPW5vQAxAqYBSN33kw7+lQ=; b=r5lvCEIhFOIP+X7dF55ef30AYMdJzBFNLgo/5s+XXRdk7F6mqgQ2S3OJO2qKWBWy/B yKO5pJ7X7yhz+CadWobayf3Mu+Ipnn4q/hDTB2ZQ9KpWnzH7rU2lJBS+k1Of+Rt4zsg2 DY2mTGa4bydUE7vRKjfsGCVb0wyACr3xuf22+Esq0xDsl04zY8BTJs2Exvl9zvDftaTe EQ1GKYWj017oJcWNIPBf0MKJojg8cU7qjfX1ROe6s5hf5HeIa+Z8lMXZwEZfnhhdyoH6 w8pkH3InXlo9NamNKrdiFxFMhwJeq76YUCnWYHtV/MjUBqwfLyVhx1bKyaJ/v7g3Utgv bxBw== X-Gm-Message-State: AHPjjUjbB+jH9B83umOCVKKUKnDmg2Wes7ioLaslypSyfnUf4MPwUaWD YvWYyRYx6cuOUFB3 X-Google-Smtp-Source: ADKCNb4EC0JTWu4MuOG0IwaiEV5OVuz8gHyIpwFf4JlEMqt6hPdYtIyoitqvYW5HDSV92djoBoqdNg== X-Received: by 10.223.177.211 with SMTP id r19mr1481065wra.2.1504699903721; Wed, 06 Sep 2017 05:11:43 -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 w6sm2254477wra.45.2017.09.06.05.11.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Sep 2017 05:11:42 -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 v6 2/3] dt-bindings: soc: qcom: Add local-bd-address property to WCNSS-BT Date: Wed, 6 Sep 2017 14:11:37 +0200 Message-Id: <1504699898-28011-2-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1504699898-28011-1-git-send-email-loic.poulain@linaro.org> References: <1504699898-28011-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 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 {