From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C81A1C433EF for ; Tue, 5 Oct 2021 16:36:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A3FBF60F70 for ; Tue, 5 Oct 2021 16:36:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236550AbhJEQi1 (ORCPT ); Tue, 5 Oct 2021 12:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236537AbhJEQi0 (ORCPT ); Tue, 5 Oct 2021 12:38:26 -0400 X-Greylist: delayed 1686 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 05 Oct 2021 09:36:35 PDT Received: from fudo.makrotopia.org (fudo.makrotopia.org [IPv6:2a07:2ec0:3002::71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D3E5C061749; Tue, 5 Oct 2021 09:36:35 -0700 (PDT) Received: from local by fudo.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.94.2) (envelope-from ) id 1mXmzM-0004zU-Ko; Tue, 05 Oct 2021 18:08:21 +0200 Date: Tue, 5 Oct 2021 17:08:05 +0100 From: Daniel Golle To: Felix Fietkau Cc: linux-mediatek@lists.infradead.org, linux-wireless@vger.kernel.org, devicetree@vger.kernel.org, Ryder Lee , Lorenzo Bianconi , Matthias Brugger Subject: Re: [PATCH 2/2] dt: bindings: net: mt76: add eeprom-data property Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, Sep 24, 2021 at 07:14:47PM +0200, Felix Fietkau wrote: > > On 2021-08-25 03:33, Daniel Golle wrote: > > EEPROM data for mt76 can be embedded into device-tree as an array. > > > > Signed-off-by: Daniel Golle > > --- > > .../devicetree/bindings/net/wireless/mediatek,mt76.yaml | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > index 3e2c2e43175e5..1489d3c1cd6ec 100644 > > --- a/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > +++ b/Documentation/devicetree/bindings/net/wireless/mediatek,mt76.yaml > > @@ -47,6 +47,11 @@ properties: > > > > ieee80211-freq-limit: true > > > > + mediatek,eeprom-data: > > + $ref: /schemas/types.yaml#/definitions/uint32-array > Given that the driver patch simply uses memcpy on the data, shouldn't we > use an uint8-array here? When using the /incbin/('file.bin'); syntax the result is included as what appears to be a uint32-array when decompiling again with dtc.