Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2260733rwb; Sat, 29 Jul 2023 03:24:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGL1+z/knZiTqSKHQ9O4D21Qsgc5bfjxc+vWmU2r4H7F/VcCRAqT6xwArQae+ASUShnBjmO X-Received: by 2002:a05:6a20:4409:b0:137:62b6:65c9 with SMTP id ce9-20020a056a20440900b0013762b665c9mr5292515pzb.45.1690626262590; Sat, 29 Jul 2023 03:24:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690626262; cv=none; d=google.com; s=arc-20160816; b=il1czt+tWmBFeBPdMKMdjqb/kCrEK/y7AZOzczSEGWfTigJ79Q+m5wZVOMGrhEqqIG 1YD3TW809iR2cfakhNxyzE5ELnnqUshXpRoblXhEe2A7Cj8o6iED2kl2AAb6H9c4EmMN U/R2oNqq86xfo27Q5Tc/V/8wKqYya1783Hq3S8HTaRmJGLzlbeRk7k7kXF2ZfH3217fk A9ghZiYn8ZYAzekC06ij2N0FSTnJTO4kyeTzL4p/4sbatJSDupUaKVuV2y2eucNAGpoO GVjUINt43wxK0dwjW5wdv1OFuPZuLNxy3wirMnTxWLIVwDMNst4F98VQxGsHKoz4GGfO 9g3A== 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=BzQEXfRpvFAotuqzKmscR6X+uFs6zMNV5A/qGbDlby8=; fh=dOJ0t5sj+M/5ZJF4zDRIvr7dAyx9lawGYjTgtZA5ngs=; b=qUosdm7DjcQpiqiYQPWMEeEvhQjOSdjamfTrvsE4DTQSWlsAe7AKHs+JW2S8+OHXd6 1zhhlCpgOOBTI4Q4T7ntL97xJl4P9t//FmfZr31U0sxoAAdvjcUijgsMh/fTh+IN0BeG QG2i4zOq8hTcWFFyokGkBPrt549PhKbc5m67rw8przMt/2bHK+9kIrPvk9oVhiRx5efu +2eox/ihU1RrItNowJVJVAeyRf4jDIA9awSaLaD9sF8WasFp+1bPSO/42eGj9TLGrhNy aHLPOiejsp9SGSaRyfsF3a398XQfFdgYsT6gj6584bnQOCZxnL5d2c6XoiwuUbu7Sp94 KeFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GFxOR42m; 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 eg20-20020a056a00801400b0066d93ab678asi1836921pfb.16.2023.07.29.03.24.09; Sat, 29 Jul 2023 03:24:22 -0700 (PDT) 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=GFxOR42m; 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 S230205AbjG2KKx (ORCPT + 59 others); Sat, 29 Jul 2023 06:10:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjG2KKw (ORCPT ); Sat, 29 Jul 2023 06:10:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CAD8110C6; Sat, 29 Jul 2023 03:10:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 68F4B60A2B; Sat, 29 Jul 2023 10:10:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B231AC433C7; Sat, 29 Jul 2023 10:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690625450; bh=0mZQVW2vbt1ay2W0qJ+pcf3lu40KCDjItFHk8MIbO1Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GFxOR42mKmw8/dz0qTeBEjZyEDoGmoHVyaVBqoCdYvsA0GhjakaME9lKMPHELRSVX E50rWRHyEhCfwTmsdopACbX7x7kyYYDU9h0eA+rZRlk9yaZLn62/SPZ0GbUFgWTDZh lul1D9qBYqREZMuzs3f3MJFpen3bNMAY8VYFcqlumy2hRHYqPLsQovy0ioOuUmzgLZ sAVxbaS1cK+DtWb0GowYiPSdsfeIhwDU67nOKEcjkYnCz6OrYHteQe2kECgPqfMzGi 9Q4ha0aSN5KHwhXQlpNWY465kXPf1fUuskgvRFVhoC7ispok4497n0MzvA8B0ahPl9 N4itIPqXKigZg== Date: Sat, 29 Jul 2023 11:10:44 +0100 From: Conor Dooley To: Daniel Golle Cc: Felix Fietkau , Lorenzo Bianconi , Ryder Lee , Shayne Chen , Sean Wang , Kalle Valo , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v2 1/2] dt-bindings: mt76: support setting per-band MAC address Message-ID: <20230729-stingy-amiss-74bd459e2c59@spud> References: <6e9cfac5758dd06429fadf6c1c70c569c86f3a95.1690512516.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="OVpYLz7Xm1cZxqHs" Content-Disposition: inline In-Reply-To: <6e9cfac5758dd06429fadf6c1c70c569c86f3a95.1690512516.git.daniel@makrotopia.org> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --OVpYLz7Xm1cZxqHs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 28, 2023 at 03:50:47AM +0100, Daniel Golle wrote: > Introduce support for setting individual per-band MAC addresses using > NVMEM cells by adding a 'bands' object with enumerated child nodes > representing the 2.4 GHz, 5 GHz and 6 GHz bands. >=20 > In case it is defined, call of_get_mac_address for the per-band child > node, otherwise try with of_get_mac_address on the main device node and > fall back to a random address like it used to be. >=20 > While at it, add MAC address related properties also for the main node > and update example to use EEPROM via nvmem-cells instead of deprecated > mediatek,mtd-eeprom property. Could you mark that deprecated then please? > +patternProperties: > + '^band@[0-2]+$': > + type: object > + additionalProperties: false > + properties: > + reg: > + maxItems: 1 > + > + address: true > + local-mac-address: true > + mac-address: true > + > + nvmem-cells: > + description: NVMEM cell with the MAC address > + > + nvmem-cell-names: > + items: > + - const: mac-address You should not need the items list if you only have one item. 0 --OVpYLz7Xm1cZxqHs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZMTlpAAKCRB4tDGHoIJi 0vHeAPsH03gK8BH5fVJvQhH6H6InP+CbgNqslVeXnNjQNdJRJAEA/wonPwNJqvjk KOAfQUkd5f5Yn8fk376EPvQxAbRotgY= =b6/F -----END PGP SIGNATURE----- --OVpYLz7Xm1cZxqHs--