Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp259729rwj; Thu, 22 Dec 2022 02:25:28 -0800 (PST) X-Google-Smtp-Source: AMrXdXv8wXWBA9I9LvMswYxLOtQ2xD6YQ9i0xoMwuq/+TzllZHLssuqX7iT5h/ouUmz/TIB4h4eM X-Received: by 2002:a05:6402:685:b0:46b:4011:9863 with SMTP id f5-20020a056402068500b0046b40119863mr4427129edy.39.1671704727970; Thu, 22 Dec 2022 02:25:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671704727; cv=none; d=google.com; s=arc-20160816; b=RDEU8XYTKaGU4g/2PKPkpZrMImaghOegtirfdjKEDjhQk7ZjeOvbCEPwvc9y7s9kNu 5ewuCNISI47o+O4b5bt7PBvGSXrfIIY4wlpLVZehXw5KbCJR71GDXsQ8Ev6mYAPbKw3r 6rRxryvIVGKLM8mpRPSxk0y/A3FVZJqmckqfUET7cIyCWS24czwf0eylT6fFaHCgsLSt 1PTRAMWjhhzDmaQDhNNfbXPo7+Wqu4Hd+WypYpxUmgJgdaFW/hj2miEcg4UCnfcy75GK 2i1Dd7c+9nJA4XEhvsf4QkhrmNC5jqciBAUUxJODUFdkZRUy5itE+Cl8fjDmmtbzxdM2 Z8Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=5y+9Ec1Dh7tvxKLKoo2iIbMpmEPC8Z4Ygo9GgiQ0QN4=; b=vEdxr29tnCXyC1blDWKPGza2SfWbA512a+y4wjn6lhB8w6AoFRYFQAiKL35BX5Be5r XGSoUr8EawAQb9Syqal8zaJz/Qm9aGHVgq9R+mjvrzT0S6ICLKcLRxaR6j08CUl1NSmC mdSXzP09qlN70gHfqAGygD2DqKOfqvioX5F/hi57hlRjoo91ne0e3suxFAaL+wh2obzu TTe3kZ6pbiLWdBS//Grga3uyI78fw7k3s4RoksNLMIzObKXGucuKP1sLSz2ThorHHNs2 W4w+ncrSIgD8KzDDeEaXgyDbw9E8n6NkV9geSZPHlWOnABtyElnB9izVkWyF2r+t1alv 73dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jDTiXDKY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s14-20020a056402520e00b0046a2b7d2452si466598edd.255.2022.12.22.02.25.09; Thu, 22 Dec 2022 02:25:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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=@kernel.org header.s=k20201202 header.b=jDTiXDKY; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235237AbiLVKUQ (ORCPT + 66 others); Thu, 22 Dec 2022 05:20:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234961AbiLVKUO (ORCPT ); Thu, 22 Dec 2022 05:20:14 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3CDEB497; Thu, 22 Dec 2022 02:20:13 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 09D2561A33; Thu, 22 Dec 2022 10:20:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C06AEC433EF; Thu, 22 Dec 2022 10:20:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1671704412; bh=glWNTP6znXHeUyUwsytdDg1PRwphKPH3sNGK4sk45qc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=jDTiXDKYKIsXwssxnw9wcyZWbxPNGa/fsIdaBoU08ceMSVzNDzynU8qT8qdJarQyi JmwHa5dcdKHXPjnPQ3E6Cr0IHvJoOz3udKtA48xt7ADmt7nJxaAJi5XrFTD7iPvmUp bex2YQ4/Nn56k7vw+HDT/pvjbnkNWfO0nXdfg1oNcik8xLYvknoPW4m3wKiBMvRiWH W62VTtAKlI69EtACgdf933PRwAIX2vFgyasfs8fqOhE8jmfHO9mZmwN2PMcvLEqi3i AWK2V+RvKdmSLr19NkfL9Tt7Qwd2p6GqEyaWuVtR7C3+SjyiOUuUk0JVTT2X6tVPDZ 9JKbCr/O8kPrQ== Message-ID: Date: Thu, 22 Dec 2022 11:20:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH 1/2] dt-bindings: net: Add rfkill-gpio binding To: Philipp Zabel , Johannes Berg Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, kernel@pengutronix.de References: <20221221104803.1693874-1-p.zabel@pengutronix.de> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <20221221104803.1693874-1-p.zabel@pengutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,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-wireless@vger.kernel.org On 21/12/2022 11:48, Philipp Zabel wrote: > Add a device tree binding document for GPIO controlled rfkill switches. > The name, type, shutdown-gpios and reset-gpios properties are the same > as defined for ACPI. > > Signed-off-by: Philipp Zabel Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. You missed several maintainers. Resend. > --- > .../devicetree/bindings/net/rfkill-gpio.yaml | 60 +++++++++++++++++++ > 1 file changed, 60 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/rfkill-gpio.yaml > > diff --git a/Documentation/devicetree/bindings/net/rfkill-gpio.yaml b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml > new file mode 100644 > index 000000000000..6e62e6c96456 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/rfkill-gpio.yaml > @@ -0,0 +1,60 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/net/rfkill-gpio.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" Drop quotes. > + > +title: GPIO controlled rfkill switch > + > +maintainers: > + - Johannes Berg > + - Philipp Zabel > + > +properties: > + compatible: > + const: rfkill-gpio > + > + name: > + $ref: /schemas/types.yaml#/definitions/string > + description: rfkill switch name, defaults to node name There is a generic label property. > + > + type: > + description: rfkill radio type > + enum: > + - wlan > + - bluetooth > + - ultrawideband > + - wimax > + - wwan > + - gps > + - fm > + - nfc Order the list. > + > + shutdown-gpios: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 Reset of rfkill? It seems entire binding is a workaround of missing reset in your device. I don't think this is suitable for binding. > + > +required: > + - compatible > + - type > + > +oneOf: > + - required: > + - shutdown-gpios > + - required: > + - reset-gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + rfkill-pcie-wlan { Generic node names, so: rfkill > + compatible = "rfkill-gpio"; > + name = "rfkill-pcie-wlan"; > + type = "wlan"; > + shutdown-gpios = <&gpio2 25 GPIO_ACTIVE_HIGH>; > + }; Best regards, Krzysztof