From patchwork Wed Sep 6 12:11:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 111762 Delivered-To: patch@linaro.org Received: by 10.140.94.166 with SMTP id g35csp763549qge; Wed, 6 Sep 2017 05:11:45 -0700 (PDT) X-Received: by 10.99.98.68 with SMTP id w65mr7427447pgb.234.1504699905308; Wed, 06 Sep 2017 05:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504699905; cv=none; d=google.com; s=arc-20160816; b=TIdyj4VOxJnbUSrii+AD2oFAyARgVb4LR/GMmBJ6hR3NjKtDrgTGy9QZJeVNdH3upi sJb0uFlVy+Ugp5+T89QT9hTAwg3rFnQUD6exEPkK1EzzdS1o2fzfLg08ZOoNcvF9gkag E1I1EU0C5PCksrTjuOHfzk3xPaQnaYovB9wqopVY19gX4zKNGuy1sS4IGM6KctakuVeq V7xMaqF5sW3jaIfEJex125Qabl3AscMwUakYiMBw9jEG8ygCBAZNOZKu9jD1PmmytWYF BQPibTKzgQ8260/3T7TXruq9wMxJoeCisAmSjIsw3XRMl/zpDV3zbCMe1vXdj1z8rR1L 6/Hg== 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=hoWfwQLgTbgjIOP+iM0pjU0Sq30Sh1TUhU3mUD08Pas=; b=xtOUh7aV3Ty2j7maiGtECM3AjFLCPJjz/zqtwuD/VQcOAG39pIpeay8MCY8uxfZaZx gBHeLRHj3QrZB34E35SPgs2/h5nxofFjdvtFqL6Qiz9WT8nQdX0u358cBEgkvRtVyXc+ /qEMbjweBSw6ZiZ29Iw6rTIG25SJE/ixaJ2tFJiBgtes+mgOzs6WFAasvTiwC1DVdKl4 csxTQS2e6DZ0Ncdo/nioDdJfz1jkLzB0Xq1dq8yd45GQ0YosLUezguFSj0MMdrfbJB0Q CosWaXMstFqJkEqUDESOdQHpqRetxBxFOKGY0LixMQuLpcw5mrN5u2kCaPAmVQW5DMXg qu9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Fc2alN5u; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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.45; Wed, 06 Sep 2017 05:11:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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=Fc2alN5u; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1753235AbdIFMLn (ORCPT + 6 others); Wed, 6 Sep 2017 08:11:43 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:33586 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753216AbdIFMLm (ORCPT ); Wed, 6 Sep 2017 08:11:42 -0400 Received: by mail-wr0-f173.google.com with SMTP id a43so13518090wrc.0 for ; Wed, 06 Sep 2017 05:11:42 -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=EaTz+2AnnZthrQQhN1S/tilY8RzsRlUwBNSi0f2g310=; b=Fc2alN5uECGvPM/fbqIKkbPMlOrkdGq5SIanVcxzVUnWN4KTEvl5AUW436upjjOQ0Q Z+9/v/QBkk+EiYsjhVokioeHu/dGf00EpY1DlaaeLlKRhGISiSgo5+Kg05QYWRM3op9+ P7yhFVpgLow4La6CmyGQszmPTvLE1vQjZ4iWY= 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=EaTz+2AnnZthrQQhN1S/tilY8RzsRlUwBNSi0f2g310=; b=V5ZLooKTKYwoWyNXz8m+nkOYY8grwbBuhMB4IvF6J0Jv74nI1Rrvadk4eJAXpYVOrb QQVCMtSpR/XL3GpU/4Rmd4ED3BWFVEE7CiWvIcYG4mcfa4TKAcltDp0sx04negz48oGA sVZ2uMjv69j/U7tki39Dx9vbMVwnJrdxS4wWQsK9uzXkSpEwwF0U1Tix7cQPyiprHC3z w4OZxQ6goab8iwjSYb1MWCQE+pzvTk5ykzvJtL9kGwk9rmA1pjxtvZ5x7KQjLCGDQLxh Enh/hKd42efMIIUoQTGR9s4zPCi1frUj1dbnj4vH3vGUFwlmZH5Ud6wGBQqRnIyy2l1E c5dw== X-Gm-Message-State: AHPjjUgrpL2CNO0Q1Af7/VfPYYjIQ5oQndoQj119wZUPj7P2yicXtkfU OJpxu4f0S1th96/BaxI2Pw== X-Google-Smtp-Source: ADKCNb7k2z1y2ZMalg8p+peCO5GfvmMbBsAYlc1emO+B7iXvi1ss5NxBu2v/N3zD0S/DCTSV2v37fg== X-Received: by 10.223.171.15 with SMTP id q15mr1737825wrc.23.1504699901373; Wed, 06 Sep 2017 05:11:41 -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.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Sep 2017 05:11:40 -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 1/3] dt-bindings: net: document Bluetooth bindings in one place Date: Wed, 6 Sep 2017 14:11:36 +0200 Message-Id: <1504699898-28011-1-git-send-email-loic.poulain@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org In the same way as Ethernet, gather the Bluetooth related bindings in one file. Introduce the bluetooth-bd-address property which can be used to store the assigned BD address. 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/net/bluetooth.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/bluetooth.txt -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" 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/net/bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth.txt new file mode 100644 index 0000000..94797df --- /dev/null +++ b/Documentation/devicetree/bindings/net/bluetooth.txt @@ -0,0 +1,5 @@ +The following properties are common to the Bluetooth controllers: + +- local-bd-address: array of 6 bytes, specifies the BD address that was + uniquely assigned to the Bluetooth device, formatted with least significant + byte first (little-endian).