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: 112078 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp356083qgf; Fri, 8 Sep 2017 06:58:04 -0700 (PDT) X-Received: by 10.84.238.131 with SMTP id v3mr3622088plk.342.1504879084774; Fri, 08 Sep 2017 06:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504879084; cv=none; d=google.com; s=arc-20160816; b=zctoCL2yz6IzdFIkGxn/muIdjWpii8G1+LltxkSdoUMqiSyTlqFyUdUk4c27kS/lrb jfkEf+MK3LGzUT3a6eVqxkOF0ZkH/HjbEB36JbpPuu93FU+c8wY6xA77DXcF/UTTJ/0/ +PQeO5CnPLa8bcbRchohkJ6BD4qPVQemIF1PH61g02JwXmfFXlKpo6Oc1mal7w4wBH4A BqSVVXZA1wzjcBiSSXTzfJN4SCbBB3RGIpSHsxaW73HxlR+bzAj/z2WC4pLWMTd5t3w1 khlo2Yk4vi+ETcLIqQ/GtSsmGA2mOp+biRuyQYNdx1EFGJWv+2vrp6jdtxUsT6VgtTKS PlDg== 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=UYek7q6Q/aqIakhQlM5Tcs5ohjL28Slnu8yHyt1CibE=; b=RPNF7mFMb3niau3APqgsWJAgIvQXy3amqy7GrJN0O13LekmOggZDdWFkALx+l8gL5p yUsqZu2i0SrecNOP0e5PdpxrcBlvPog5oll35EhW+qagxU16CCI6XVhqoWez4Wv3aOPd S564I8aY8RI4n4SxghioR7OYCJlUGxfncXLZFUtOblk8r0rD+gbyFP3HdV0etcJntXi8 9nmeB4dgMfuJqmKOWmut2qaofwI9lViLywmZfht8+q5vP262LDWrImW8gzCEMOu8Ljej F2Dt2O8LgzPE5wn1HtzeKbgcslZ6owJCbvBob4cSXNbrOvm3s6Bs7Zh6PWYlNE7rcP7X ThyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NIz8gez0; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 x24si1567942pge.709.2017.09.08.06.58.01; Fri, 08 Sep 2017 06:58:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=NIz8gez0; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1754046AbdIHN6A (ORCPT + 9 others); 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 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 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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).