Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp2014857lqe; Tue, 9 Apr 2024 07:21:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViwSXb5QPI019THJihpubSH9ng+XH1Ng0dyBAHJz1COHwICF+a4RDsktLnHzW78bMTsWsFvEwxVfqTd8qqunCOxBUyXvsu5dIjip8vTQ== X-Google-Smtp-Source: AGHT+IHmj7+Xb+z3DYvyIYTZhRSCitXd6BAt8noy+ogenIh2MHO9LMmRNj5vDWN5Jw1xsUd/ouv9 X-Received: by 2002:a50:c04c:0:b0:56d:c40d:b921 with SMTP id u12-20020a50c04c000000b0056dc40db921mr7961908edd.20.1712672483979; Tue, 09 Apr 2024 07:21:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712672483; cv=pass; d=google.com; s=arc-20160816; b=f26E14GC9K/UdQZN9OqYxYKP7wo4bNXIUAY59zXYuy5tKlwV9qmvcuPYjaGEV9kk9Z 8lg21Uhxy04NRlXU9FMr/abJZ01bPxE8ahyoPSif09D6cZFwLQY71acGn1PUTRsJ6lie dbFwJM4SHW5ZPMysVE8RhvTwhmR74SeVN9dCmAnum+5cYA9sz1qELtugHsz8fYw1DXgV XR8SXPCCIpkOHMtMYE4uLaSUhXwTFGxAFXzXqXl70BtUJq9Mj/U7/ElJnvsI6Rr22Av4 sJpAv+99IQpOViqr8ckTedRurDHkijUD2Jym+tzrIfqShHLyYlHnjFbl6v5aJpEhp5W8 YfqA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=PqqwNRBmzHK+DLV9MrZ64lR7K93sMpyqnXfDyXtgkGQ=; fh=jE6vbA+xrXAx4IsA71WHryNZ8udC84bH5w2TsXt+kcQ=; b=xtI+Ify4G7gFk1oWOWFP0PW9xtXgN4PWWMx9QPdqUNSiTOhbBl2rZLfMhtWOYZveid iRXSowxX5STVpkw31b3+lIlxLhQSHwTI2sVzlXxfxgEk8mDWa89xejJNSh1eVxnavZLW CNcfk5wZHanoQm2v6YkU7yzwumU76Kk2YaDfAelL9B6OcqRIfGxQl6DzqOWTqATt5wp6 JuDGB3aFTZJ7e7Rtrhq8pvz2h3SasEZLbzdu7Ci2DWV8nNSmjQfREZQffLoE3QU1c06B ZAfsWLJapo4jxSbBOxW1VEN73T+8g08NmKl7N0u8+e6cG9nWnN0/or52h7MIeUYUpDPO 7q/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=AXB8s412; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-137079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id r14-20020a056402234e00b0056e344f54e7si4689038eda.351.2024.04.09.07.21.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Apr 2024 07:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-137079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=AXB8s412; arc=pass (i=1 spf=pass spfdomain=salutedevices.com dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-137079-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-137079-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 8D7061F23E9C for ; Tue, 9 Apr 2024 14:21:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6F81F12FF67; Tue, 9 Apr 2024 14:21:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="AXB8s412" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 722E712F5BD; Tue, 9 Apr 2024 14:21:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672474; cv=none; b=Ou7CEtoKskesx+vzMDVt6PUlcCbQy9xZukCrzrJnh57Rjj6RrRSiIUJaaN1Cz7WqSXUMcw5WShay7d77iT1m9niKV2FDJA4jlurQabtCyk59sbRQXK9hA+0YXAD6hQgztAQXjVx4r0cX8wkRiVK4hXE6vNSOR0EGW/FLqwR75AE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712672474; c=relaxed/simple; bh=sdTINZRe6/HjOBVJ9C9IQxqKUVQS44ToJ7dO5OXxeaE=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=QMT365Ni7yPmtOJbQB48QScY3nXMomrb81/eXEEdgNOKrRcPEiLdYlSjYalW5FgxZoPLRGvhFYg5Jb1pY3K9wpkqpYMsWMqVIXBNJag8YDrqkPN3auvGUnR5xS5AVjAO4/wFUxL8E8R7Z34bUFtRbf6AeNJkWsoMTbk8JqL0M40= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=salutedevices.com; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=AXB8s412; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=salutedevices.com Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id 9067610004E; Tue, 9 Apr 2024 17:21:02 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru 9067610004E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1712672462; bh=PqqwNRBmzHK+DLV9MrZ64lR7K93sMpyqnXfDyXtgkGQ=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=AXB8s412EtfApS8JBXRYpNcDBCIAk+Bj60Eme6Ex5OHAdTHuR7Q2Tb50sbPVdLVnX q7AX0kE+CynjDrR6AsNocwr+RtVRL1+TFDId4nFNNeHzfioyvtg7j/wysx4lP33V+A 5cImDkLmY0ar3yfgCWzEZTg1qxG2EosPttgDd4z3dX8Q3AaaDu7ZXWc7rE/besRp1d 49GAC5BsCSWwLo9G3qv+0AxP2ymNMS57KMbZV7O4rrrl2Pxn5NsFOoZ9ahgPgUdg8G jSkDjp8cLEWo0oXTo3mrLpqJPfbx5hdFXuFMgAscb6GQWC+5p+qvQjCWxlAHuKPkxn NKZ899P8uJOTA== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Tue, 9 Apr 2024 17:21:02 +0300 (MSK) Received: from [172.28.160.201] (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Tue, 9 Apr 2024 17:21:01 +0300 Message-ID: Date: Tue, 9 Apr 2024 17:10:25 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH v2 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code Content-Language: en-US To: Rob Herring CC: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , , , , , , , References: <20240408085931.456337-1-avkrasnov@salutedevices.com> <20240408085931.456337-2-avkrasnov@salutedevices.com> <20240409134718.GA1050037-robh@kernel.org> From: Arseniy Krasnov In-Reply-To: <20240409134718.GA1050037-robh@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 184638 [Apr 09 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: avkrasnov@salutedevices.com X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 15 0.3.15 adb41f89e2951eb37b279104a7abb8e79494a5e7, {Tracking_from_domain_doesnt_match_to}, smtp.sberdevices.ru:7.1.1,5.0.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;salutedevices.com:7.1.1;127.0.0.199:7.1.2;100.64.160.123:7.1.2, FromAlignment: s, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/04/09 12:42:00 #24719205 X-KSMG-AntiVirus-Status: Clean, skipped On 09.04.2024 16:47, Rob Herring wrote: > On Mon, Apr 08, 2024 at 11:59:30AM +0300, Arseniy Krasnov wrote: >> Boot ROM code on Meson requires that some pages on NAND must be written >> in special mode: "short" ECC mode where each block is 384 bytes and >> scrambling mode is on. Such pages located with the specified interval >> within specified offset. Both interval and offset are located in the >> device tree and used by driver if 'nand-is-boot-medium' is set for >> NAND chip. >> >> Signed-off-by: Arseniy Krasnov >> --- >> .../bindings/mtd/amlogic,meson-nand.yaml | 14 ++++++++++++++ >> 1 file changed, 14 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> index 57b6957c8415..80ba5003ca70 100644 >> --- a/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> +++ b/Documentation/devicetree/bindings/mtd/amlogic,meson-nand.yaml >> @@ -64,11 +64,25 @@ patternProperties: >> items: >> maximum: 0 >> >> + amlogic,boot-page-last: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + The NFC driver needs this information to select ECC >> + algorithms supported by the boot ROM. >> + >> + amlogic,boot-page-step: >> + $ref: /schemas/types.yaml#/definitions/uint32 >> + description: >> + The NFC driver needs this information to select ECC >> + algorithms supported by the boot ROM (in pages). >> + >> unevaluatedProperties: false >> >> dependencies: >> nand-ecc-strength: [nand-ecc-step-size] >> nand-ecc-step-size: [nand-ecc-strength] >> + amlogic,boot-page-last: [nand-is-boot-medium, amlogic,boot-page-step] >> + amlogic,boot-page-step: [nand-is-boot-medium, amlogic,boot-page-last] > > You need quotes if using the inline syntax. IIUC it must look like this: amlogic,boot-page-last: [nand-is-boot-medium, "amlogic,boot-page-step"] etc. > > Rob