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: 111653 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp2640371qge; Tue, 5 Sep 2017 03:26:12 -0700 (PDT) X-Received: by 10.98.66.220 with SMTP id h89mr3241161pfd.270.1504607171968; Tue, 05 Sep 2017 03:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504607171; cv=none; d=google.com; s=arc-20160816; b=tNcCuslS1UPhCvonmmpXip66grbzdNHAKBD6DeDmWWouV1zjd+pB/LSWwLEslYJEYr FTYbYs50VCOkp1yY1yHiXNKwkWDP9ht/XBLfzaBeAmvwGWi4iBn01Dcq4Me9iEZbfMnn 4cxDzVbWFF8aSmQJ0nFkNFHhh6WjQkrNIXWKjUML9Rwah312hTOeLmnN3TvXS8xXZuLJ J51eMdO2sk364n37UgMnXJDVFKQxOLe7HFZ5OFCYLTS87p4cSH4m+ca+2W47nXUBp602 /dI7ND3E+faUSBGn5ppZ/D3pLImYZwXFPU+D23gItyigHwyEIN3AZae59hrOk9ccedoi 8maQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=r972ImR6XRsP8NtsQ4vDeIooy3qAgki2+V0fSOE3QX0=; b=aphSFuROt9BRkrd3aFFh3GFceM1vIl6l5HjekkD87mqY0NmWRlvILaSEG3tHYkWG20 /e5PEDjOYa8HAkJQOrMKeT5bSz6wU2E6YLX6DQM4IxYGqLBpZdViNrbuBMzg3S2gVXSb uGJOImAvpHa2DZXTV9hK7zoUXzmBVhXrPc89KSxfNdIiZPl7F+XYumjxFYP3SgvH3WNr syJacae5UlcYuSPbOVp2xSvJP5tfSV/PhzdhAXmWVLdqJCWYOo8RymRr9mfM+7Dx8mLh MCQJOxP3gmnQ7He0P5tTLJj4jvPasKXTPrlxvQxyoaPBcyfczIrQz2wxYXQv1jL5JMiC aHcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V9vVOlrc; 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 m4si41447pgs.319.2017.09.05.03.26.11; Tue, 05 Sep 2017 03:26:11 -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=V9vVOlrc; 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 S1751065AbdIEK0K (ORCPT + 9 others); 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 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(+) -- 2.13.0 -- 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 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: