Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp668822imm; Sat, 14 Jul 2018 09:28:12 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfWcyAwWIXALVGjLSpwhOVdGGzevPf9SQ+74zU65X3oqVNP1aZ+whN7p9JmYn2apRzo4mmX X-Received: by 2002:a17:902:184:: with SMTP id b4-v6mr10809666plb.340.1531585692793; Sat, 14 Jul 2018 09:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531585692; cv=none; d=google.com; s=arc-20160816; b=e1zRy1vYcXhYqRsUOrL4Azl8WZ+GYJodTXTjeXUWQqbkmLo52qf+/nlWtK16Kraqch kkm8A/ORaX3hPD9jfsdlTSuurvmKx26RomBspizLVCzBdTn+aPIhoNpfGy8IV5tOgcfS rzWzhwn1fMaQ8O1Q1J/Q4C5XKXEAcEJNQTyQqqkrPLfuaFbGTWgS2T5+4bu2ngFV6C3J PNmK5DsV9T96gTZ9wnKYRl85PfKRdFllHgYQCqTnhS8RBNse7P+Y44bynlu7Fi0Hqp5e 16j4cKQVs8ixFzOFZt/M5fViXAk+JgKS1CFF9iqSjjis31kkr0k1xH3xoIzAOuA7LpvV n2Sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:arc-authentication-results; bh=GsPv6vprCDb28NqknTsGyVjGZzqAiSjrsJwyLbFz22s=; b=JY6JN41xDiXmsLICBHXvKhGMH7JxqgAr31TjBxL4RvTANiiuICL39Mefjakvtix/Fh FBr2dyIMgJli/XFzCWayy7tWwVIfUBBttbU3xN2jK07+TONs3rjlM4YqEMkCFv5f84F1 EeiBzpJJbeRIebndlFLW2gA9X5CbR6Kagks8USTq/uv5RUeG/ZRCyA52kQkdNUgj5AH1 kL0Yzwmw37/v7XOcGMQqcfVHtSA+Yz8a27CJHDotA6aoIM6jPg9TNduAf1uwewV7QYW+ rFfnLdZYVXUHQhnSQHDRM/Tbld9HyjtWxymwSmLkGtcj6f0rWJGR2X5jEOteJRJv+qjq x9QA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t71-v6si19579392pgd.271.2018.07.14.09.27.58; Sat, 14 Jul 2018 09:28:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731070AbeGNQqD convert rfc822-to-8bit (ORCPT + 99 others); Sat, 14 Jul 2018 12:46:03 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:39199 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbeGNQqC (ORCPT ); Sat, 14 Jul 2018 12:46:02 -0400 Received: from [192.168.0.117] (188.146.224.185.nat.umts.dynamic.t-mobile.pl [188.146.224.185]) by mail.holtmann.org (Postfix) with ESMTPSA id 2D0ADCF163; Sat, 14 Jul 2018 18:33:19 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.4 \(3445.8.2\)) Subject: Re: [PATCH v5 1/7] dt-bindings: net: bluetooth: Add mediatek-bluetooth From: Marcel Holtmann In-Reply-To: Date: Sat, 14 Jul 2018 18:26:24 +0200 Cc: Rob Herring , Mark Rutland , Johan Hedberg , devicetree , "open list:BLUETOOTH DRIVERS" , linux-arm-kernel , linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8BIT Message-Id: <7E55939D-7F8A-4832-9DD5-EFB3B19ACF0B@holtmann.org> References: To: sean.wang@mediatek.com X-Mailer: Apple Mail (2.3445.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sean, > Add binding document for a SoC built-in device using MediaTek protocol. > Which could be found on MT7622 SoC or other similar MediaTek SoCs. > > Signed-off-by: Sean Wang > Reviewed-by: Rob Herring > --- > .../devicetree/bindings/net/mediatek-bluetooth.txt | 35 ++++++++++++++++++++++ > 1 file changed, 35 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > > diff --git a/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > new file mode 100644 > index 0000000..1335429 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/mediatek-bluetooth.txt > @@ -0,0 +1,35 @@ > +MediaTek SoC built-in Bluetooth Devices > +================================== > + > +This device is a serial attached device to BTIF device and thus it must be a > +child node of the serial node with BTIF. The dt-bindings details for BTIF > +device can be known via Documentation/devicetree/bindings/serial/8250.txt. > + > +Required properties: > + > +- compatible: Must be one of > + "mediatek,mt7622-bluetooth"": for MT7622 SoC this does not match with the example below. And one of, should be normally be a list. > +- clocks: Should be the clock specifiers corresponding to the entry in > + clock-names property. > +- clock-names: Should contain "ref" entries. > +- power-domains: Phandle to the power domain that the device is part of > + > +Example: > + > + btif: serial@1100c000 { > + compatible = "mediatek,mt7622-btif", > + "mediatek,mtk-btif"; > + reg = <0 0x1100c000 0 0x1000>; > + interrupts = ; > + clocks = <&pericfg CLK_PERI_BTIF_PD>; > + clock-names = "main"; > + reg-shift = <2>; > + reg-io-width = <4>; > + > + bluetooth { > + compatible = "mediatek,mt7622-bluetooth"; > + power-domains = <&scpsys MT7622_POWER_DOMAIN_WB>; > + clocks = <&clk25m>; > + clock-names = "ref"; > + }; > + }; Regards Marcel