From patchwork Thu Feb 17 15:11:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masami Hiramatsu X-Patchwork-Id: 543385 Delivered-To: patch@linaro.org Received: by 2002:ac0:e142:0:0:0:0:0 with SMTP id r2csp448521imn; Thu, 17 Feb 2022 07:12:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/w3IlMqGVso195UqNy9FS3OPZNADHI/GaWEaUIi0p/MVY7yxuiEOuICnPO1pEtcf8vs4T X-Received: by 2002:a05:6402:254f:b0:410:d2f1:650 with SMTP id l15-20020a056402254f00b00410d2f10650mr3154049edb.456.1645110751731; Thu, 17 Feb 2022 07:12:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645110751; cv=none; d=google.com; s=arc-20160816; b=K26lthdVpm+N6oMhis2q7IlZYqAn2BsPOeBJRu8zcLDSFdx9VN3n1r0C9P8J6BSoqj zkHfil2hiIW+Xoxy2oodG8tyeGDWOyf/MRlZDohbDyIgCZY3Kuv2vWMoRG1JnJGsEGCr fbSuNZEMRUpekyBUvpKpdYEOUQxY8JvJhp9BQfAGC5x2PC2g3CnyhTfSohtndnKDVfjp vH7+zchNLoogUpGoSYsqeU3SzjPxnMx46Npb2gVrEaj5p/ShjE48q0VAd6ckIynjeeqP HY+xStULIlFnwaXmYnG8ITCek2OEq0TpxPxSzJNqtwLOvUihEwI0hogSDtC/NKkH5JQG i4sQ== 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:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=dCIgyObDEsnARQNTLVXgSWdoHqA7aqUA7ZMYC4WVxu8=; b=lnmGtPc397caLsAw3lX8nk12v4ra1p9sxXoKx3oFRMELAbjgkCJRrNdspBjXU/E0/S SNDJQW38FrtiKC2mSTVAnMF1nwA4n816beyLiVeC7ckRgkOGwlLhwdthiKLIBfANt5ab o1MUUhwUHMqehUspDJfDH10NCxgqSX8/B4dhN9aYTaml723yq1xjXNE30Qa4jMeI3fRv wxdc2WWrMCLAhfgRvqto6XnMmNiJii7tSgxfNmOKppeyWBcc4WjheGZwg/hloUyct44P bqz1C6czLn7E97MRENPMpvu+WROp9PARfUdiacDne7xLK5bSJsjYDzb1ywDmN7ogdoxX zJIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KpsWfkgN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id jg3si2481324ejc.163.2022.02.17.07.12.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 07:12:31 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=KpsWfkgN; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C255983BF3; Thu, 17 Feb 2022 16:12:28 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="KpsWfkgN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5F3C083BD4; Thu, 17 Feb 2022 16:12:18 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) (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 3F2C983B7A for ; Thu, 17 Feb 2022 16:12:04 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pj1-x1035.google.com with SMTP id t4-20020a17090a510400b001b8c4a6cd5dso5666240pjh.5 for ; Thu, 17 Feb 2022 07:12:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=dCIgyObDEsnARQNTLVXgSWdoHqA7aqUA7ZMYC4WVxu8=; b=KpsWfkgNT+BhUieB1x+WpNMNaRJ4vcMTv8JANsnI2Nf5M3YxFcwKKfls8FlUT4c4Ph YHobKAK09uhw31HSiFsG6E38H0JtaJQyBplDPCyifdRaF+qIv/ZNyumRkHf6UDWEehPs /MpOB7hk9VFRbGqR+rAm9/Yip+QFfp5e2MTFpMI/kVLWHjKLusp9eR8wxg1JazznRjmv SRJkLMu43K2OpuuXWZDMxy3bCeaAc3o2SXO7i3fn+qMqhht1C19jIZdpiEdU5J58WSST rehwW2UK9VUEcAg46a6oxfM+FN52ICcEyqq4jm8Fz9/931PyFWjHhp78YGerRjsZ3d0k ujSw== 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:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=dCIgyObDEsnARQNTLVXgSWdoHqA7aqUA7ZMYC4WVxu8=; b=pjIFnsVsoXSq6F6fGtRw9iLkreuGWNUFpy/ZMLJVtihhdac8VSF6sq3H6zsgsDmcXh rGZiLBNC5ve8j7bgwZFMkh+8ak7wx2YMJwbg8GltW4qIVDzGhndhwMFlur3vjP2ptFeN FrdlekzlSqNEVQTQyn2c1tD2I3sodrttglDJu4Pg+c2qCCatdw3GM+VzXoLDM6pzFOxe HJaQtj1T9G4z5+i/PxwopaxLBnEOt6+nnq/xEJD5Vegadujfgoh/2MjuA2CWRQLJZcas 7Jvox6AQogR60egka5JtBREV6RJqFYxf5uqSoTaMwAZ8eoxAPWgep4gT8uKDMybzfXdA I5rQ== X-Gm-Message-State: AOAM532o4cg87jv46PQPyMf3qRzCNk09jelwmKV9lLZQ0Coemm4Mcq2g cb5Dl2A+JZsWdaHlP5fAYpNbrRjj+ed4Yw== X-Received: by 2002:a17:902:ec90:b0:14f:686a:7558 with SMTP id x16-20020a170902ec9000b0014f686a7558mr1643796plg.31.1645110721512; Thu, 17 Feb 2022 07:12:01 -0800 (PST) Received: from localhost.localdomain (113x37x226x201.ap113.ftth.ucom.ne.jp. [113.37.226.201]) by smtp.gmail.com with ESMTPSA id lk8sm2147490pjb.47.2022.02.17.07.11.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 07:12:01 -0800 (PST) From: Masami Hiramatsu To: u-boot@lists.denx.de Cc: Masami Hiramatsu , Patrick Delaunay , Patrice Chotard , Heinrich Schuchardt , Alexander Graf , AKASHI Takahiro , Simon Glass , Bin Meng , Ilias Apalodimas , Jose Marinho , Grant Likely , Tom Rini , Etienne Carriere , Sughosh Ganu , Paul Liu Subject: [RFC PATCH v2 4/8] dt/bindings: firmware: Add FWU metadata on SPI flash binding Date: Fri, 18 Feb 2022 00:11:57 +0900 Message-Id: <164511071693.43219.16012389966028151931.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <164511067605.43219.15508992404634142079.stgit@localhost> References: <164511067605.43219.15508992404634142079.stgit@localhost> User-Agent: StGit/0.19 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 Add a devicetree-binding YAML file for the FWU metadata on SPI Flash without GPT. Signed-off-by: Masami Hiramatsu --- .../firmware/fwu-mdata-sf.yaml | 38 ++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml diff --git a/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml b/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml new file mode 100644 index 0000000000..3d8726231f --- /dev/null +++ b/doc/device-tree-bindings/firmware/fwu-mdata-sf.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/u-boot,fwu-mdata-sf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FWU metadata on SPI Flash without GPT + +maintainers: + - Masami Hiramatsu + +properties: + compatible: + items: + - const: u-boot,fwu-mdata-sf + + fwu-mdata-store: + maxItems: 1 + description: Phandle of the SPI NOR flash device which contains the FWU medatata. + + mdata-offsets: + minItems: 2 + description: Offsets of the primary and secondary FWU metadata in the NOR flash. + +required: + - compatible + - fwu-mdata-store + - mdata-offsets + +additionalProperties: false + +examples: + - | + fwu-mdata { + compatible = "u-boot,fwu-mdata-sf"; + fwu-mdata-store = <&spi-flash>; + mdata-offsets = <0x500000 0x530000>; + };