From patchwork Tue Nov 1 10:58:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paul Cercueil X-Patchwork-Id: 9407171 X-Patchwork-Delegate: johannes@sipsolutions.net 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 0606360721 for ; Tue, 1 Nov 2016 11:04:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06F2129824 for ; Tue, 1 Nov 2016 11:04:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC6F729827; Tue, 1 Nov 2016 11:04:41 +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 80A8C29824 for ; Tue, 1 Nov 2016 11:04:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1168886AbcKALEZ (ORCPT ); Tue, 1 Nov 2016 07:04:25 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:33856 "EHLO outils.crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1168874AbcKALEX (ORCPT ); Tue, 1 Nov 2016 07:04:23 -0400 From: Paul Cercueil To: Johannes Berg , "David S . Miller" , Rob Herring , Mark Rutland , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Cc: Maarten ter Huurne , Paul Cercueil Subject: [PATCH 1/2] Documentation: devicetree: Add bindings info for rfkill-regulator Date: Tue, 1 Nov 2016 11:58:39 +0100 Message-Id: <20161101105840.24313-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1477997932; bh=n+tRg3aCgApensA5BrZYxrOqrfQLps7zKpGs3mbh+ao=; h=From:To:Cc:Subject:Date:Message-Id; b=puuzZ8h4ZYDNr8LQZem4ICOSXOkn6Fho/1t6gghwoyfns9fjzGUdgyTM9/SE8seamItXaN8fOZk1qqLD7ZkmucqU37Vvu3xUW5tDpSu7xf35/IkOsxidoMJQ/YaIbChvPXPwCfxuFm4H3MRbWBAJ46P7zOSZe9DnOWQwMlt3lvI= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This document gives information about how to write a devicetree node that corresponds to the rfkill-regulator driver. Signed-off-by: Paul Cercueil --- .../devicetree/bindings/net/rfkill-regulator.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/rfkill-regulator.txt diff --git a/Documentation/devicetree/bindings/net/rfkill-regulator.txt b/Documentation/devicetree/bindings/net/rfkill-regulator.txt new file mode 100644 index 0000000..aac2fe1 --- /dev/null +++ b/Documentation/devicetree/bindings/net/rfkill-regulator.txt @@ -0,0 +1,18 @@ +Device tree bindings for the rfkill-regulator driver + +Required properties: + - compatible: should be "rfkill-regulator" + - rfkill-name: the name of this rfkill device + - rfkill-type: the type of this rfkill device; + must correspond to a valid rfkill_type from + - vrfkill-supply: phandle to a regulator + +Example: + + wlan-rfkill { + compatible = "rfkill-regulator"; + rfkill-name = "WLAN power switch"; + rfkill-type = <1>; + + vrfkill-supply = <&wlan_power>; + };