Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1715305pxf; Fri, 9 Apr 2021 15:54:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVG1tn8zpkYpf1E6t2yhtziWPrxxbIVUSk0aXTAlzAm2zDTaqyRSVbjPefpzi9LCJVOXmZ X-Received: by 2002:a05:6402:3511:: with SMTP id b17mr19463825edd.98.1618008882196; Fri, 09 Apr 2021 15:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618008882; cv=none; d=google.com; s=arc-20160816; b=PCmYsr3A6ncmQtON1CVqbmVWCZj1b4XaroUxyZZ/c7ZUJjCr7kkgD6ZRZI4M3Mlurt lfXP74Q8S6uSud9lj9ZJGSKxHeunwfsd12K/8ODl0TreVf6dE3N3cDcQa/WV8fLRGLzN xTeU0PW8X/zdEcrtHnX9K8NfwmPcrPegqLxCp3vblpbEjsklmz6iXmnrECrEtj0VPk99 Yo2GzhBHKYZpE2hVsvEWps3dCxsRV+ccY4Y+6/LlKpXgzGT+Y609VlY5CdM79710iRUE WekPoIvrqwF6r0sH+ymRTTtuxZ7+smyDRivuckAw/7z8OKlmLXl9+mwxs+jVglhQntWS Jasw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lDbvvzuYPkXjYWDfNwlPp3wzZCqRXrCl3zdDC83IpFA=; b=xOKwfkDmXI6hJfCnPfkgZqV+w1kB1B+kGasn+TSM2xUVW42grYVJJr0OUrTsrFZXpH oyvI3LgluhKinxOrXjX4t5/fnLSlxzBQucFSYzWy02JueukWZBXU34g1pEKanUbQJJPv 7EGd8gZh3JHl+c8AmsQbbgdIQUnaB0ffBt/XK+gd1aSaxE+chNwIAnAplj32UOSd+gOa dMs5ifCq9oGybTUUxypDJF7mSElyYwWY21tWH52kNOEpoZVjMfq7P9MNPjy62lOnZB71 M7wLVTUFLgZmVNz4sfBdIwE9D+mqU8yPmFWOSlYtqK4KVhX3j/aqxzNgDE7KINsUhAej ZMvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QcjluBCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w1si2925285edv.513.2021.04.09.15.54.19; Fri, 09 Apr 2021 15:54:42 -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=pass header.i=@kernel.org header.s=k20201202 header.b=QcjluBCg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235053AbhDIWvP (ORCPT + 99 others); Fri, 9 Apr 2021 18:51:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:42950 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234602AbhDIWvP (ORCPT ); Fri, 9 Apr 2021 18:51:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6D22661165; Fri, 9 Apr 2021 22:51:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618008661; bh=+KgleEtKqIhzP+Cy94v03oFaDcjb76xz/jjO3FAMltc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=QcjluBCgzRnDIQ7rkemmWk8EMF6xpRh+nQQSm54sgu486CG39gfYXCdGJRlr/RNTO bMqr0R6pf79ZOzQEATsFjBVqfAJv+ll66EurT35dhouUaM7TUv0pt37/h25oHuyNsS nRTCEosd4LUOrFCqtfcj8cjjcYLdpNBP5Ts+Fp9zcbX+eWJNiwn2ktY2pIIgK5Xm9h yuxhD/d58M5CBLoltaY/xyn/LoBLYRZ2CAvE0DsQ3Tw9tQKHRRY7SXyL/RV5Uzm7/q 3UIbKbmDKbcz9/9zVbHP5evtkAMLuSnOlZRqAMhi0oQWRElaoRgRZVwnmG+QSLqaw5 RgSyaGOTY/3+g== Date: Sat, 10 Apr 2021 00:50:57 +0200 From: Lorenzo Bianconi To: Rob Herring Cc: nbd@nbd.name, linux-wireless@vger.kernel.org, lorenzo.bianconi@redhat.com, sean.wang@mediatek.com, ryder.lee@mediatek.com, shayne.chen@mediatek.com, devicetree@vger.kernel.org Subject: Re: [PATCH 2/8] dt-bindings:net:wireless:mediatek,mt76: introduce power-limits node Message-ID: References: <20210409152236.GB3662358@robh.at.kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0jLZZTbisDFIV8aG" Content-Disposition: inline In-Reply-To: <20210409152236.GB3662358@robh.at.kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org --0jLZZTbisDFIV8aG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > On Mon, Apr 05, 2021 at 02:40:26PM +0200, Lorenzo Bianconi wrote: > > Introduce power-limits node in mt76 binding in order to specify > > per-rate power limit values for each 802.11n/802.11ac rate > >=20 > > Signed-off-by: Lorenzo Bianconi > > --- > > .../bindings/net/wireless/mediatek,mt76.yaml | 79 +++++++++++++++++++ > > 1 file changed, 79 insertions(+) > >=20 > > diff --git a/Documentation/devicetree/bindings/net/wireless/mediatek,mt= 76.yaml b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > index d6f835d17d66..6ede331e3e52 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > +++ b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > @@ -72,6 +72,62 @@ properties: > > led-sources: > > maxItems: 1 > > =20 > > + power-limits: > > + type: object > > + properties: > > + regdomain: true >=20 > This shouldn't really be in ieee80211.yaml if it belongs under=20 > 'power-limits' node. You may need a 2nd power limits schema if this=20 > something that should/can be common. ack, I will fix it in v2 >=20 > > + > > + patternProperties: > > + "^r[0-9]+": > > + type: object > > + patternProperties: > > + "^txpower-[256]g$": > > + type: object > > + patternProperties: > > + "^b[0-9]+$": > > + type: object > > + properties: > > + channels: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + minItems: 2 > > + maxItems: 2 > > + description: > > + Pairs of first and last channel number of the se= lected > > + band > > + > > + cck: > > + $ref: /schemas/types.yaml#/definitions/uint32-array >=20 > What's the range of values? Could be 8-bit? yes, I will fix it in v2 >=20 > > + minItems: 4 > > + maxItems: 4 > > + description: > > + 4 half-dBm per-rate power limit values > > + > > + mcs: > > + $ref: /schemas/types.yaml#/definitions/uint32-matr= ix > > + description: > > + Sets of per-rate power limit values for 802.11n/= 802.11ac > > + rates for multiple channel bandwidth settings. > > + Each set starts with the number of channel bandw= idth > > + settings for which the rate set applies, followe= d by > > + either 8 or 10 power limit values. The order of = the > > + channel bandwidth settings is 20, 40, 80 and 160= MHz. > > + > > + ru: > > + $ref: /schemas/types.yaml#/definitions/uint32-matr= ix > > + description: > > + Sets of per-rate power limit values for 802.11ax= rates > > + for multiple channel bandwidth or resource unit = settings. > > + Each set starts with the number of channel bandw= idth or > > + resource unit settings for which the rate set ap= plies, > > + followed by 12 power limit values. The order of = the > > + channel resource unit settings is RU26, RU52, RU= 106, > > + RU242/SU20, RU484/SU40, RU996/SU80 and RU2x996/S= U160. >=20 > These short property names bother me because we don't want 2 property=20 > names with different meanings. A 2-3 letter name seems more likely to=20 > collide. Also, the names aren't really self describing either. >=20 > > + > > + txs-delta: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > > + description: > > + Half-dBm power delta for different numbers of an= tennas > > + > > required: > > - compatible > > - reg > > @@ -93,6 +149,29 @@ examples: > > led { > > led-sources =3D <2>; > > }; > > + > > + power-limits { > > + r0 { > > + txpower-5g { > > + regdomain =3D "FCC"; >=20 > Not the right location for what you've defined. ack, I will fix it in v2 Regards, Lorenzo >=20 > > + b0 { > > + channels =3D <36 48>; > > + ofdm =3D <23 23 23 23 23 23 23 23>; > > + mcs =3D <1 23 23 23 23 23 23 23 23 23 23>, > > + <3 22 22 22 22 22 22 22 22 22 22>; > > + ru =3D <3 22 22 22 22 22 22 22 22 22 22 22 22>, > > + <4 20 20 20 20 20 20 20 20 20 20 20 20>; > > + }; > > + b1 { > > + channels =3D <100 181>; > > + ofdm =3D <14 14 14 14 14 14 14 14>; > > + mcs =3D <4 14 14 14 14 14 14 14 14 14 14>; > > + txs-delta =3D <12 9 6>; > > + ru =3D <7 14 14 14 14 14 14 14 14 14 14 14 14>; > > + }; > > + }; > > + }; > > + }; > > }; > > }; > > =20 > > --=20 > > 2.30.2 > >=20 --0jLZZTbisDFIV8aG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQTquNwa3Txd3rGGn7Y6cBh0uS2trAUCYHDaTgAKCRA6cBh0uS2t rOauAP9u0gG3+ELRXfWXmIKzIC2seqc5JKSPFAMqKQ1traCX2gEAnULEAhwzea1R M1ytfw74XUJWb5jjMFtx9yuIheuK9ws= =2vUH -----END PGP SIGNATURE----- --0jLZZTbisDFIV8aG--