From patchwork Fri Sep 8 13:57:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 811606 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="NIz8gez0"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3xpf6L0dPqz9sBd for ; Fri, 8 Sep 2017 23:58:02 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754049AbdIHN6A (ORCPT ); Fri, 8 Sep 2017 09:58:00 -0400 Received: from mail-wr0-f176.google.com ([209.85.128.176]:33026 "EHLO mail-wr0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753616AbdIHN57 (ORCPT ); Fri, 8 Sep 2017 09:57:59 -0400 Received: by mail-wr0-f176.google.com with SMTP id a43so4887262wrc.0 for ; Fri, 08 Sep 2017 06:57:59 -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=wr1nIwtuLNGn2xu/9JKhvo+Zqnk7tBRYHsV8oD0qubw=; b=NIz8gez00gqtqRRlUKjE7WK0qBiWBYc8C+xb4HI/HGlu42Ig8Zf5JSF0y2ykGWxBgv J+8rdqaSxeM8U2Gyrdrh3eMCEj5OVJRcFH0CYJSjTcwESze/FcNTajyVi78LgXmrcSG1 TqZhEepZtbrCf+8qI8Cl72jSetFC0MZdGGxwk= 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=wr1nIwtuLNGn2xu/9JKhvo+Zqnk7tBRYHsV8oD0qubw=; b=JNDAbLIqaYg8e42GRBHnaLNlvdEaik9cZUZ8Gwx2QT5/mDMosIUDPLbpUCV6qao9I2 XinuavoMJzr+EvooAgOVtdto4tZryjTZ+az8IKKlzLP3Jv/i8xOC8bukTyCKANZqjxwZ tWgpCRE4qFpGNSJX/oVAZqaPwoh4CH8MOMBBrWuS3+8UVUodhsOppJAstWcaW4A78zQW 4ipbNeM2aGYuVAAygL2L+Vi4sH3hPsitqGHgCyTSebLlTldO47MgNegpdc76dzlrOOz3 GIirJBcF88OpXkAjmz1HFqs9JrMDHiEexcxTlvvAPy18YunL/ubjQJ6CoqoOQ1ljxORT SDuQ== X-Gm-Message-State: AHPjjUjOShz8fb9rNMlKi5j5RRlTFG9pPXn3cJA9ZV3NSRoyitBaK4Cv QjYDBwoRln4lf6Bf X-Google-Smtp-Source: ADKCNb4BV48/W9gcaYdwkxAb8tmgKseIVxQFlR3kcjYDVF0JCZ35hiZdbSIa+3cTTuzFO4+emt/BcA== X-Received: by 10.223.130.79 with SMTP id 73mr2173942wrb.241.1504879078646; Fri, 08 Sep 2017 06:57:58 -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 v2sm1869638wmf.40.2017.09.08.06.57.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 08 Sep 2017 06:57:58 -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 v7 1/3] dt-bindings: net: document Bluetooth bindings in one place Date: Fri, 8 Sep 2017 15:57:53 +0200 Message-Id: <1504879075-587-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 v7: use dev_info instead of BT_INFO to have dev context 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).