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: 111763 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp763629qge; Wed, 6 Sep 2017 05:11:49 -0700 (PDT) X-Received: by 10.99.146.81 with SMTP id s17mr7271432pgn.361.1504699908960; Wed, 06 Sep 2017 05:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504699908; cv=none; d=google.com; s=arc-20160816; b=gbXrZ98PEqRzBydrmjMoGR1ANxEYdjzd8rhMQjfW+LkrZwUFuaQwSgMkxMvZGODdMy LmhUiY7OQ/xG7Ioh25ylmPjdLFNj+XKcW3pT3fzNEgF5sRctKJBBjHO6uKCzJwXoYi9s uQJhEDrik06KhdVIfVfe9Wizi+0xwFQknQ8Ilz3sF62R0F171ufuej/UgcZ++QpmfiaC KzFY4/H1jnkJ735clsZJVKPRxxl7zU4OtWxAPN6v2VRv+qlljViAVta0Bl/9q3zPNyNW wcgNsFacqezm7Z7/M/NLz44uoEY+zmTAPKkr0B2TL0rx5hOTA2m7ZTXppr5V7mlpkZlZ jvKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=lnlp34pug6nwDehNnijD7vmCy2V/OYAOJ0aA4mnsRfA=; b=S453V2S5punYYpKQVgK5LR46ZyFq3pilEuDkGdjFO6Phbh1O1ftJ7cWyEdG82v3wt5 xCLS0bg4Ez4HO5sqpTjALbJi0go81p3KiDObQD8Ds2DX4JI3p/E7OyF1TXifI2U8f+FH fx4zqpVHE+w6mnzlpDIUDihTlmfVMHwMvbrXUb9crvMey5N6N+zczUYT57ch6AgltcRC Go1JXGnNW/vSO+/9o36Lnxoi/jgBlqrMVn4eqU2jJ2zAm5/Nm8rgTBapQeaIloOHK/r5 JDHnpHCMoxJWhPCEJzJGVg8am23Pm5Aky9IlrFdnRlii24VEYrNfd1qzfsA41TZ88Dq4 8hog== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yzmr3jU1; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (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 o9si1052280pgn.829.2017.09.06.05.11.48; Wed, 06 Sep 2017 05:11:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Yzmr3jU1; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753297AbdIFMLr (ORCPT + 9 others); 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 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(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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 {