From patchwork Sat Nov 30 20:23:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hugo Grostabussiat X-Patchwork-Id: 1202748 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) 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; dmarc=pass (p=reject dis=none) header.from=bonstra.fr.eu.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bonstra.fr.eu.org header.i=@bonstra.fr.eu.org header.b="l6wNRbZb"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 47QNB66LdTz9sRM for ; Sun, 1 Dec 2019 07:23:42 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727025AbfK3UXj (ORCPT ); Sat, 30 Nov 2019 15:23:39 -0500 Received: from vault.bonstra.fr.eu.org ([51.158.68.104]:41452 "EHLO vault.bonstra.fr.eu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727269AbfK3UXj (ORCPT ); Sat, 30 Nov 2019 15:23:39 -0500 Received: from val.bonstra.fr.eu.org (unknown [192.168.128.2]) by vault.bonstra.fr.eu.org (Postfix) with ESMTP id 5AE05BFB8E; Sat, 30 Nov 2019 20:23:37 +0000 (UTC) Received: from localhost.localdomain (vlad.gr1 [IPv6:fd7b:45cc:aa3d::3]) by val.bonstra.fr.eu.org (Postfix) with ESMTPSA id CA0AB64C19; Sat, 30 Nov 2019 21:23:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bonstra.fr.eu.org; s=dkim1; t=1575145415; x=1576355015; bh=fqwZp4emGYLlyQ0o+53kk6KDHW9jOpE2pSUA1m6BOFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=l6wNRbZbeYS9xY4v0AGgWdEjy0W34sEuN/6S+MA1gGyPF3ywOcRfjL55NCnyfe4BE iEMjsF8gRttcUcKUezRy1qWQlAB6Q2h+mk/1q7MJYRKRR8fRyYBuuLeYhNIl8DZBua KwKetKi0UAWj//WjpFfDJ2WtKqKIk/jqlyFFW9Fs2WTQJ+9tR25eaMViHECvWtsah6 lvGeGvJ8tlCTuFc7INasKaQVCVVuxrc04Qicrf6GX7u/Q9NNEzT5XoRdY94A+utHmb xnXXVArVryuQ7FX9iwv2St+Hx4Sf2/Kd1v5cALaKOvN+RB7d7BCqbVDzflYO7Erd2x 7BhGKbdvvc3xA== From: Hugo Grostabussiat To: Marcel Holtmann , Johan Hedberg , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: Hugo Grostabussiat , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-bluetooth@vger.kernel.org Subject: [PATCH v4 1/3] dt-bindings: net: bluetooth: add DT bindings for Realtek controllers Date: Sat, 30 Nov 2019 21:23:12 +0100 Message-Id: <20191130202314.142096-2-bonstra@bonstra.fr.eu.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191130202314.142096-1-bonstra@bonstra.fr.eu.org> References: <20191130202314.142096-1-bonstra@bonstra.fr.eu.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The rtl_bt driver already supports some Realtek controllers on ACPI platforms. This commit adds bindings for DT-only platforms. Signed-off-by: Hugo Grostabussiat --- .../bindings/net/realtek-bluetooth.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/realtek-bluetooth.yaml diff --git a/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml new file mode 100644 index 000000000000..6b62e5132c90 --- /dev/null +++ b/Documentation/devicetree/bindings/net/realtek-bluetooth.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/realtek-bluetooth.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek Bluetooth controllers device tree bindings + +description: | + Device tree bindings for serial attached Realtek Bluetooth controllers. + +maintainers: + - Marcel Holtmann + - Johan Hedberg + +properties: + compatible: + items: + - const: realtek,rt8723bs-bt + + powerdown-gpios: + description: GPIO line controlling the power down (BT_DIS#) signal + maxItems: 1 + + device-wake-gpios: + description: GPIO line controlling the device wakeup (BT_WAKE) signal + maxItems: 1 + + host-wake-gpios: + description: GPIO line sampling the host wakeup (BT_HOST_WAKE) signal + maxItems: 1 + + firmware-name: + description: | + Name of the configuration file to load in addition to firmware + $ref: http://devicetree.org/schemas/types.yaml#/definitions/string + +required: + - compatible + +examples: + - | + #include + uart1 { + bluetooth { + compatible = "realtek,rtl8723bs-bt"; + powerdown-gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>; + host-wake-gpios = <&r_pio 0 5 GPIO_ACTIVE_HIGH>; + device-wake-gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; + firmware-name = "rtl8723bs_config-teres_a64_i.bin"; + }; + };