Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp1158136ybm; Sat, 30 May 2020 00:09:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwPfgQQY+5+3VQPoNR3wbjyiubgm0mG+0IPMPNmzIeoaJUv8Qy4toNKoKIV+dcjl4FnNTT5 X-Received: by 2002:a17:906:6d44:: with SMTP id a4mr11466005ejt.541.1590822572393; Sat, 30 May 2020 00:09:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590822572; cv=none; d=google.com; s=arc-20160816; b=XidGnpzYlvtcx2hg+yjjpL37JBACnURCo7KprKy71QZfsMyz2M8HlvazKJjTd8Zgf3 0Ccr6YejPbL/rQHDwAgZkQH9zvuGb/wfGBFgS1qP99k8sGxlG/fYGpHT1fsOMuWawvz0 7rYTpIVza8qafwXqikWi26+sKYMcDL45NWK6nlOc8StuLqiTojwXEKXEdbYJcNywki/d 1Zq7E5Zgl6f7Q4oK+U93v3TkfwHkgM+yGuJCZqDrkfX0aLIplFJQ5LISxt5PkTevtQLM YvqphpTI/uAE1ZU1avQkPdg+RUpPzWMUUTI9o/vmFeefmEuRB/UXAt6KVS+4dQL5W+g/ 8IRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject:dkim-signature; bh=2OBufPQoFXMLUJ8IsnqyQTwHGOG7uH3gtIDWCufmzmY=; b=ixM0/S8+Eur43xPSJ4TJMNj3m/aB/cB/DosfKU1OX83hjvJTarva1TogJX3G8W5xlf 6l2S7Ei56fEItoKtuAsjLWWoTb8ixGURhYPD4Fnq9dOJDeEwrdS/iXlBcpPxziZSo9Ni MSwiHNidmKGTcCnfwnVfJWZV4b/jD79DWJjyGHQWI2PIZ0R8urq+qzxTW6UiSWUwryLu z4HkmRe4VY0mT7LLElWVhfVVwAzV2mviCPW3ShDNAtFWSytIENExEjAPwqO4hQ9nfDSS IuBYd58nPSrN3x3lPslSGk+A68POMe4SrH9WYYbGcP4NPOi7yixazLSH0aqbxuYG09k5 X+Dg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=qGi68XKZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si6664260edx.161.2020.05.30.00.08.44; Sat, 30 May 2020 00:09:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=qGi68XKZ; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728657AbgE3HFW (ORCPT + 99 others); Sat, 30 May 2020 03:05:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726843AbgE3HFV (ORCPT ); Sat, 30 May 2020 03:05:21 -0400 X-Greylist: delayed 53148 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 30 May 2020 00:05:21 PDT Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A542EC03E969; Sat, 30 May 2020 00:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2OBufPQoFXMLUJ8IsnqyQTwHGOG7uH3gtIDWCufmzmY=; b=qGi68XKZ8oRRIHbIuSWXW7OaIu EkrRYKgcP74Yb6/MPxXnnG0c2wjrGd1lLb5Zmf3ru8CPv84MOJIZWTGGNeH9h0m5O4Zp5bbsDjow1 2lkffpcrTiv4b/NvKp7UqHLYVXFTnBZKg9wTvX7j1a/Nbd0wEFKlHDJnoK9GI9tRX6f8=; Received: from p4ff13c20.dip0.t-ipconnect.de ([79.241.60.32] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1jevYV-0001kb-UA; Sat, 30 May 2020 09:05:20 +0200 Subject: Re: [PATCH 1/3] dt-bindings: net: wireless: mt76: add power-limits node To: Rob Herring Cc: linux-wireless@vger.kernel.org, devicetree@vger.kernel.org References: <20200529161929.24751-1-nbd@nbd.name> <20200529212637.GA2994957@bogus> From: Felix Fietkau Autocrypt: addr=nbd@nbd.name; prefer-encrypt=mutual; keydata= xsDiBEah5CcRBADIY7pu4LIv3jBlyQ/2u87iIZGe6f0f8pyB4UjzfJNXhJb8JylYYRzIOSxh ExKsdLCnJqsG1PY1mqTtoG8sONpwsHr2oJ4itjcGHfn5NJSUGTbtbbxLro13tHkGFCoCr4Z5 Pv+XRgiANSpYlIigiMbOkide6wbggQK32tC20QxUIwCg4k6dtV/4kwEeiOUfErq00TVqIiEE AKcUi4taOuh/PQWx/Ujjl/P1LfJXqLKRPa8PwD4j2yjoc9l+7LptSxJThL9KSu6gtXQjcoR2 vCK0OeYJhgO4kYMI78h1TSaxmtImEAnjFPYJYVsxrhay92jisYc7z5R/76AaELfF6RCjjGeP wdalulG+erWju710Bif7E1yjYVWeA/9Wd1lsOmx6uwwYgNqoFtcA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IgeRGAAn1ee RjMaxwtSdaCKMw3j33ZbsWS4 Message-ID: <76ea310a-bca3-dd50-0569-be69b975fefa@nbd.name> Date: Sat, 30 May 2020 09:05:07 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200529212637.GA2994957@bogus> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-05-29 23:26, Rob Herring wrote: > On Fri, May 29, 2020 at 06:19:27PM +0200, Felix Fietkau wrote: >> This subnode can be used to set per-rate tx power limits either per >> country code / regdomain or globally. >> These limits are typically provided by the device manufacturers and are >> used to limit sideband emissions and stay within regulatory limits > > How do other WiFi chips handle this? If this is added to DT, then it > should be common for all WiFi h/w. Most devices store this data in EEPROM, and the way it's handled also varies across different chips. QCA has EEPROM data that only provides limits for edge channels (called "conformance test limits") The only other example I could find of a driver that stores it in DT is mwifiex, which uses an opaque short array of bytes that is passed to the firmware directly. So I don't think it makes sense to put this in the common bindings. On the other hand, I did try to keep the format as generic and extensible as possible, so we could always move it over from mt76 to the common binding once we encounter another driver that needs something like this. - Felix