From patchwork Wed Apr 6 15:25:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 558323 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:6886:0:0:0:0 with SMTP id m6csp1012627map; Wed, 6 Apr 2022 08:25:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzPDOlJXIR3f9/gWs2hNUriirYACyr6TE3yGmWZach/NkpqvFUwsDytMg/2ziXO5pCgdlZ/ X-Received: by 2002:a05:6402:b3a:b0:41c:dcf9:ca65 with SMTP id bo26-20020a0564020b3a00b0041cdcf9ca65mr9233415edb.208.1649258739728; Wed, 06 Apr 2022 08:25:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649258739; cv=none; d=google.com; s=arc-20160816; b=EKKFrdu2C5vZmQMInLZShwXUNBaoEhchXSrEP4FvsppodLE95Gba5Tsq8dUuTwJjEz 8PBEv4zplTPNwoz3t87MiEoMUfqwpiKna6wzaF6FD/X2E9dPEFvNcxLO/RFkrXeFSm9a IfStYsiscXM1nyYijp5uPncCaWC5Fg7Iq0ss8chKtA7/aRRzSyXlsSLXaTEYivnSdRAh E7nnl583ERx3s01tl9AvMbg0v+Fsr5K1FjLrqi5khn3tLvTDuoz7sYeX7ORtWlF483Xc vdNR8wyDO52csMG8c4GUHrJq4/AQLdcBztKxMe8p8OGop3Y0em70JyHg5mu+IDV8j8g/ IMvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=buklFgMo3io8o1oTm+e0Xy6mGquidMcjQ+rAVmjF0R0=; b=GwiPXagf+Q5DT2btNFAjLK+XKcJpNAkgO92eTUdWgzfnmaQ3A8cms2JhAxadfxqV51 SEzYvhPzQgAwJrvS20ZrwEeC31+qrA3KCoSZ6ytW4+mZn1Ozha+ApVxZQTHZ7op2CGtW TwON9mE7ywz63UgtOqWkxH1+PfYmESm5Rf80WN9NWkkODgv+uXvW+G+5LJddqChFDsaR wlsM/ZkZg2McYsiMu2NFykbTHDAgslNuX+eH/ufHvZkTJPPZr0yZqEsgZxvMwTn89ThI Tjp7iMA8cWSXgJKh4lmHSCeG/YK36kS+Rq91XBTazU5sedQiw++Xl+BQ1zUdWZP+Zbds G9nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=IpUBnNb1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id x12-20020a50d9cc000000b0041904b21a46si10054451edj.281.2022.04.06.08.25.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:25:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=IpUBnNb1; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 955A283DC1; Wed, 6 Apr 2022 17:25:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="IpUBnNb1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 29EA083DC7; Wed, 6 Apr 2022 17:25:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D3EE383DBC for ; Wed, 6 Apr 2022 17:25:23 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=zajec5@gmail.com Received: by mail-lf1-x12b.google.com with SMTP id bu29so4800750lfb.0 for ; Wed, 06 Apr 2022 08:25:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=buklFgMo3io8o1oTm+e0Xy6mGquidMcjQ+rAVmjF0R0=; b=IpUBnNb1wMpq3Z33rLXUmoesOPAyubbH73r3NT6CG2VFE7ISsrjIUEOS4mq1gMPJ0/ y/P3ojZkkt5w1AXkNY2BYWBVLXwhiaiDchr3olLAUF1lLuK/mxEVqh5ainO6buKOAQcW cUQazL0acLThFgQpSb6DFLnF60L9LGJUgO4uNUxz397btFBQeiciuYcoqB1UwvkYTjgM +GYm8SLvp98Oka8FJutNz86JOqwL1MFh3KNAjkKuYRl8NwT6VNsNLWKpihRnTNa/pYmg vT3st63NFAB33DNhWFfKe4Gm/CQd4KYl+hY5lpXmcLaexYpP63+/ZlNXrr/DUxmdlVw5 rGgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=buklFgMo3io8o1oTm+e0Xy6mGquidMcjQ+rAVmjF0R0=; b=KK3J+H3qGvFD+Y48Xz/TGQOSCGGJhdUZpolP8qNpsXbNYs/q+jscCSXNtIXYhLkOB5 gaaKm+6TMZGjveEmJTThPlzryr5TxgK7z5maPhdffn6XWVcBh6QxESUwrB1wxDMo/fD+ WxByCWOkAph8G/qRHUcMwOBzab6VkPIPIO8yu6kR366g/8HZItpfTZl7hLYADhiBb5JI PbkAO3w805P57p9VVx68tHWsm0Tebnlit1KZHlVfPf8rNRZOZgaAq7t8UtQcJnZf4/7q gdho8m6FZYSaZm8XQ9WQVyegrsohU96yqMf7ZvNrhv7gvCFzxt/eKEIcCm+R+KF/MLYV s6Wg== X-Gm-Message-State: AOAM530b/c1Jds0ew81CbIUS521GyK1AkAHTY12vmkVO+6Ark5CIlxFC E82WFcTurju2NpkgdfEjqOM= X-Received: by 2002:a05:6512:3dab:b0:44a:247:2d8 with SMTP id k43-20020a0565123dab00b0044a024702d8mr6374447lfv.628.1649258723148; Wed, 06 Apr 2022 08:25:23 -0700 (PDT) Received: from localhost.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id y5-20020a2e3205000000b0024b045e3b18sm1557359ljy.66.2022.04.06.08.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 08:25:22 -0700 (PDT) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Tom Rini Cc: Florian Fainelli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, u-boot@lists.denx.de, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding Date: Wed, 6 Apr 2022 17:25:15 +0200 Message-Id: <20220406152515.31316-1-zajec5@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Rafał Miłecki Broadcom uses U-Boot for some of their recent platforms like BCM4908. They decided to use modified environment variables variables format though. Their header includes 2 extra 32 b fields at the beginning. The first field meaning is unknown, the second one stores length of env data block. Example (length 0x4000): $ hexdump -n 32 -C -s 0x40000 /dev/mtdblock0 00040000 76 6e 45 75 00 40 00 00 34 89 7a 82 49 4d 41 47 |vnEu.@..4.z.IMAG| 00040010 45 3d 4e 41 4e 44 3a 31 4d 2c 31 30 32 34 4d 00 |E=NAND:1M,1024M.| Add a custom "compatible" value to allow describing Broadcom devices properly. Signed-off-by: Rafał Miłecki --- Documentation/devicetree/bindings/nvmem/u-boot,env.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml index e70b2a60cb9a..6a6b223be4a0 100644 --- a/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml +++ b/Documentation/devicetree/bindings/nvmem/u-boot,env.yaml @@ -36,6 +36,8 @@ properties: const: u-boot,env-redundant-bool - description: Two redundant blocks with active having higher counter const: u-boot,env-redundant-count + - description: Broadcom's variant with custom header + const: brcm,env reg: maxItems: 1