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: 9940533 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 4783360216 for ; Wed, 6 Sep 2017 12:11:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 14A2728B8B for ; Wed, 6 Sep 2017 12:11:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0977C28BB0; 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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 893B928B8B for ; Wed, 6 Sep 2017 12:11:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251AbdIFMLn (ORCPT ); Wed, 6 Sep 2017 08:11:43 -0400 Received: from mail-wr0-f170.google.com ([209.85.128.170]:34448 "EHLO mail-wr0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753228AbdIFMLm (ORCPT ); Wed, 6 Sep 2017 08:11:42 -0400 Received: by mail-wr0-f170.google.com with SMTP id a47so11728865wra.1 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=pRpq7Wh9NoERz0Ls2H7lv0eVOc9aamWUhsyx4Z0vuxhXuoKMwvnHvGmK6O/Qhjknt9 dntaC5Lq8fmOyYtO+z7VD675Mzk6EXl8pmqiot6Mzt0140U3zVS3gfAPpZNr7/ckUAFe tUy8vwzsX5/XNOlXfX8xdbZdSS0sUOmkc92NnnPNWgaITczIQPP8XyXRssxktoa8zEpn vytiR870CLvuq7PhOTz5ZG48KTz/dkOpIUAGn7qLwNE+OT9xrcXq/QjqI9mSXEz9vuP6 3WGhcmSyaM7hDrdHIjPcAnvk4O31ENqsb4Vcu/AEa2G1WYFSDP+BczKroFwUnGy35hRl FfIw== X-Gm-Message-State: AHPjjUjLbTICRyMOtWmIVaycW3WTjtOFr2ArnHx2GbnGwD4phvh6U5Si o+8VkXoh1b3I1NfQ 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: 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 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 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).