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: 9944325 X-Patchwork-Delegate: agross@codeaurora.org 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 B66B0604D4 for ; Fri, 8 Sep 2017 13:58:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A5BD12873A for ; Fri, 8 Sep 2017 13:58:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9A4A928744; Fri, 8 Sep 2017 13:58:02 +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 256552873A for ; Fri, 8 Sep 2017 13:58:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754046AbdIHN6A (ORCPT ); Fri, 8 Sep 2017 09:58:00 -0400 Received: from mail-wr0-f177.google.com ([209.85.128.177]:36488 "EHLO mail-wr0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753545AbdIHN57 (ORCPT ); Fri, 8 Sep 2017 09:57:59 -0400 Received: by mail-wr0-f177.google.com with SMTP id o42so4839964wrb.3 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=FISMu4ApOfcVm8ga5j9oWZckWWG3wc8r+2qO5q+2c7wQ9fRRO18OUXnyOZ9gBQtnV4 HE25yUNiS5s9jwW/UkHQImcOYI3K5rDlElA0JtcSunKPeez3NRSC6fG8ISegzpIBTLBL EIySCCsaVGKAIHktdzgSs3PvUWHjAiBDnXLAiXKKZibpE8lCXhUfOGE3S/SFVKwQB6Q2 X0a+e4ed76+Ue8p/AXlF4Zhgof3j3Hzwp+PYjymHSB5e0Zd1nVec2IjvYfID12npCRdr TmNmSZ6anYIe6IdSH9xisEosPxcGuo4UQt7vuGCejByQ8PS5A2kFX60oRc+a7ucIcGaQ zbUw== X-Gm-Message-State: AHPjjUh7j95bhiQgfVobdi2DwQFZ3HJp6BqMJyvRZ/q8EgavCVFPw4Bh P9oGMCMlHL5Zk6vr8eGTvw== 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: 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 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).