Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1880187imn; Mon, 1 Aug 2022 03:44:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tpUEuzGHWPwIRbBORlgX0mkXoL+8VJ3V8b/AZENwqUPZqF9z3f+PNB35aBs2pq+M1DSESc X-Received: by 2002:a63:d94a:0:b0:412:6e04:dc26 with SMTP id e10-20020a63d94a000000b004126e04dc26mr12908042pgj.539.1659350686594; Mon, 01 Aug 2022 03:44:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659350686; cv=none; d=google.com; s=arc-20160816; b=jvp3w/Rvydz2tFVdGQdQ8+zdVA+iEqcrMdtqY1U14togYEr3PbvuiNQrHE8DkRgUzr gs7FDJfXRGcPjw1F88EytjSvnZcsYCG0cBtw6/EFjTWqFI0RiijckoENHzHhjMa+lizs 4XeHAqD/n7hX870fgS8MTJVcjnbyoihNSEAblrdrUGINED0mBdUjvSz8DSaYvk79uQjH r6ADAkZv2j6ZCx77ZHo2RRrZmEmTu7+UKKVgEgVk2Me9eAWWmrDZ7GGnrNpDQef6+3Ft 1hKkwN6B8vNFbDij9RlPqF1TVRu2Icqo6jDWA+9mqmCo7hxQKCIL69TrInTp7WvgCyTc iAag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :feedback-id:dkim-signature:dkim-signature; bh=Mz9Hzk+GHQX7q0f9ddatAPxHZ+IajsSZiJsLrFoGOJI=; b=PqziCbHcqmWK7hexxgc39dQ2yoVPZaoFfMot2bUGAHlV43c8+gleYfCLz2J0/Gy27z rBDg7/okSjeddpwI64okxiOYWTidqV/DJsVjdVg2PIS6PoqfxU8sVe07WiPE2tEorlfw ECnGaiQjE9mg7HZxO36/XFkdV8M5f8p5Mda05Qu0PytXGgvVbUsBHjWuzPqMWx0JdxCk HyXLrhVgUDZHRmoabJE0zplXvsAzF8VDwwKyrexkUQ65Ofki0aZc+kHjzJ7FHht1qPXA tef6LOqplhrQK1sW/h5imKg80G9H28tGd7JY2o0ANjsdIKf4vhorH3WxNSYQaoBnwVkn Rdnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=0yakLLBA; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yswEJ+9s; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p37-20020a056a000a2500b0051f2b9f9b3bsi12527856pfh.243.2022.08.01.03.44.30; Mon, 01 Aug 2022 03:44:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@svenpeter.dev header.s=fm3 header.b=0yakLLBA; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=yswEJ+9s; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=svenpeter.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231129AbiHAKjw (ORCPT + 99 others); Mon, 1 Aug 2022 06:39:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiHAKju (ORCPT ); Mon, 1 Aug 2022 06:39:50 -0400 Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94B92371B6; Mon, 1 Aug 2022 03:39:49 -0700 (PDT) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 060EA5C00B2; Mon, 1 Aug 2022 06:39:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Mon, 01 Aug 2022 06:39:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svenpeter.dev; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1659350389; x= 1659436789; bh=Mz9Hzk+GHQX7q0f9ddatAPxHZ+IajsSZiJsLrFoGOJI=; b=0 yakLLBAXpJayxZNWjomeExFykMZCiEy1qsKEZCcZi0fzNCokuiy+L4IinD1UH7tB fk0Mr4vUhrc/a3Ju/Qe+BuuowaxpVCm93pY3aDzuvYDEgdR7n7UbVAbu8SRPrCQm 8vWJypRdrMU+dcU7wBDs1wtLX4PW1nnCd+c3Qa8hFKGbAbL+AS4I3Gs0PBNedm98 axE0AvwLC4ptoiu8v8/qk2C1mgwLIPlqDwI45hkZeXYNY4W3ufx+OHq/cjcjIzRK qFZurqGsctsIcT/O91ld//RHfZLD3bhPCNb4nmD/eliMQEjZ2RSHYiSOqCzjpohQ 8KSIEDCfnDin3FmKa6sFw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1659350389; x=1659436789; bh=Mz9Hzk+GHQX7q 0f9ddatAPxHZ+IajsSZiJsLrFoGOJI=; b=yswEJ+9sn1O9Ns2Ji1d7o2DcnSpxw 1+Sh7CpIHDtVw+WImGZgiIuLlc06svJPrS79UXDFjRW41BZNL/KDxlZy8BM0DIxr /2YyDJCNU8uiUYbSUEHk0mmd2+RWAlFo8JshoYWL4hqBTl/MwdEaVBDBfW4mUH+f B4QHGEB4XJOcxBE1Jgmd89IlsN+wBWNyR9tRnCUKC9nYW2FTFEQoyfUrQc5UmDHF G92jfe21Dbo0gYBTNFWckF7CWC6HhgknIGENSXtwSwJ76Oq2aeGvwsMY8crNVkiR LSUlJeEY422z2A3OZbsxc+qA+ZwXflatJTCWwBI4vmD8UnJ1j9hpTRh1g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrvddvfedgfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufhvvghn ucfrvghtvghruceoshhvvghnsehsvhgvnhhpvghtvghrrdguvghvqeenucggtffrrghtth gvrhhnpefhueffgfffgedtfefhfeeujeefgffhleekteduvdffieegffeuvdejgeduleei leenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepshhvvghnsehsvhgvnhhpvghtvghr rdguvghv X-ME-Proxy: Feedback-ID: i51094778:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 1 Aug 2022 06:39:46 -0400 (EDT) From: Sven Peter To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Rob Herring , Krzysztof Kozlowski Cc: Sven Peter , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hector Martin , Alyssa Rosenzweig , asahi@lists.linux.dev, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dt-bindings: net: Add generic Bluetooth controller Date: Mon, 1 Aug 2022 12:36:29 +0200 Message-Id: <20220801103633.27772-2-sven@svenpeter.dev> X-Mailer: git-send-email 2.30.1 (Apple Git-130) In-Reply-To: <20220801103633.27772-1-sven@svenpeter.dev> References: <20220801103633.27772-1-sven@svenpeter.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Bluetooth controllers share the common local-bd-address property. Add a generic YAML schema to replace bluetooth.txt for those. Signed-off-by: Sven Peter --- I hope it's fine to list the current Bluetooth maintainers in here as well. .../bindings/net/bluetooth-controller.yaml | 30 +++++++++++++++++++ .../devicetree/bindings/net/bluetooth.txt | 6 +--- 2 files changed, 31 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/bluetooth-controller.yaml diff --git a/Documentation/devicetree/bindings/net/bluetooth-controller.yaml b/Documentation/devicetree/bindings/net/bluetooth-controller.yaml new file mode 100644 index 000000000000..0ea8a20e30f9 --- /dev/null +++ b/Documentation/devicetree/bindings/net/bluetooth-controller.yaml @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/bluetooth-controller.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bluetooth Controller Generic Binding + +maintainers: + - Marcel Holtmann + - Johan Hedberg + - Luiz Augusto von Dentz + +properties: + $nodename: + pattern: "^bluetooth(@.*)?$" + + local-bd-address: + $ref: /schemas/types.yaml#/definitions/uint8-array + minItems: 6 + maxItems: 6 + description: + Specifies the BD address that was uniquely assigned to the Bluetooth + device. Formatted with least significant byte first (little-endian), e.g. + in order to assign the address 00:11:22:33:44:55 this property must have + the value [55 44 33 22 11 00]. + +additionalProperties: true + +... diff --git a/Documentation/devicetree/bindings/net/bluetooth.txt b/Documentation/devicetree/bindings/net/bluetooth.txt index 94797df751b8..3cb5a7b8e5ad 100644 --- a/Documentation/devicetree/bindings/net/bluetooth.txt +++ b/Documentation/devicetree/bindings/net/bluetooth.txt @@ -1,5 +1 @@ -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). +This file has been moved to bluetooth-controller.yaml. -- 2.25.1