From patchwork Tue Sep 5 18:58:41 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Loic Poulain X-Patchwork-Id: 9939475 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 58CC0604D3 for ; Tue, 5 Sep 2017 18:59:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 407A4223B3 for ; Tue, 5 Sep 2017 18:59:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 353C62832B; Tue, 5 Sep 2017 18:59:21 +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 AFD8E223B3 for ; Tue, 5 Sep 2017 18:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752251AbdIES6t (ORCPT ); Tue, 5 Sep 2017 14:58:49 -0400 Received: from mail-wr0-f174.google.com ([209.85.128.174]:33046 "EHLO mail-wr0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752186AbdIES6s (ORCPT ); Tue, 5 Sep 2017 14:58:48 -0400 Received: by mail-wr0-f174.google.com with SMTP id a43so10463342wrc.0 for ; Tue, 05 Sep 2017 11:58:47 -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=NFOlEdfmOyPDabtBZgniMvEVMDb+qhYNiWcZAetIdss=; b=M9e+PbqV3n2frcp2T9sgAvZgRVqKDNddj/j7tQQXYDPl7Ke6M5uyI1LSCHokUWYptc GLrQnxU22vdZfud8g6E6aSTTFmC5hW85o51fx3fv+U7GgyDBWpI8bfTFuYoX72YQ9DLn ucMUAPNWPEu6AOzBVYJ+baIvOXiDo4ECT6yyA= 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=NFOlEdfmOyPDabtBZgniMvEVMDb+qhYNiWcZAetIdss=; b=XtW/aY9CSFoPqKNzVlRtVmvrd/bORKJdR8uIMeV/NI+Ub0W+1jHe1ohjrcsazpCQ4M Xt2h5NIwp67s8S8xTuY4OmcQDdE6LEeY6fRf7uFSNQA/MUaF8vV3zaVhWZ43UHBxY0d5 zgjoXSplMJtbJ9XiM7j0qS33h5cGLia51lQdnX+9/DjA7qpCxUHYvrwbWNRs+HV5U6Lb MdTj/+e18FLuySh+Akw68ZWb1WbcDZ6f0F/Zc0MY2y1C64cwQDdeefW9ZC7ZGW2kkjD7 hvSYaxGqzve9LR+1bnUZKtT2gVpclUTI3187E8sItwyB1cPhkrJiV3OWr9WJRfFbeIHk sRHQ== X-Gm-Message-State: AHPjjUh7Mm/uvsb9z5DQtzu8mtzkiByvvjoDuZ7qTJ0uq5Vh31Q2bVGU qX77dVLYEnACFY7N X-Google-Smtp-Source: ADKCNb5Wyc0trftYX/fQZLBG6MIQwCS04SxQcESZ3CACu98LQ3ARQL4OH+HUAunKcPSuSP2Kz+xWzw== X-Received: by 10.223.184.122 with SMTP id u55mr32042wrf.286.1504637927218; Tue, 05 Sep 2017 11:58:47 -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 i15sm1312935wmg.26.2017.09.05.11.58.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 05 Sep 2017 11:58:46 -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, lpoulain Subject: [PATCH v5 1/3] DT: net: document Bluetooth bindings in one place Date: Tue, 5 Sep 2017 20:58:41 +0200 Message-Id: <1504637923-21652-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 From: lpoulain 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: lpoulain Acked-by: Rob Herring --- 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 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).