Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp198477lqj; Wed, 10 Apr 2024 08:03:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXg/ScxwbdBZpeOt0fBs2SNkc3m99IaeiI/EmtNvMTSk13+8wXVHBSLJWC7wuh6o3HHEpfhC9WARHvVtjf1bSwYQPfGKVrBZ9z8BkbxNQ== X-Google-Smtp-Source: AGHT+IHK0LH4Z5VOy8Kudamz3pd8sk9C9qIIGPOtvVew7q2d3e2YTvO92GmtqyZKuQw+F4OL1wSG X-Received: by 2002:a05:620a:1a1e:b0:78d:62c4:297e with SMTP id bk30-20020a05620a1a1e00b0078d62c4297emr3893288qkb.57.1712761391985; Wed, 10 Apr 2024 08:03:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712761391; cv=pass; d=google.com; s=arc-20160816; b=LfyXKD8siNd88T7ap1jTM9AOufsd5LkOHbFlMUqf0qfU3qvy8tFE1b/6JaA1iK4Xez 5mfHt30tNovgbApsWZFM1BhZRhXG+jZYLrAWzj9cLcJr0IAU+0u4ENktq/XIXZomurfe gkbXT4Ok9yPtpqS0Pg082Q9CY8XKVxT/nqeZyqtQITqrYuEFKHSxbhkya5iI6wQJtPLU jKYBB+YTnMCHL7A7+rRr1q46+zS5rYy7UTKM4tvxglOn24SQJvfycmPra4MSMyn+cXjZ l+1W4QLsVVVSVlMWU7uY+ZVmjdDK1AFmxXC1mY2nTjS4x7KAMUFLANtTw0hpna0gk601 y0bA== 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=q1gcIhloFFL/kbDvWiIUFlnWRSNETi2Q1q4ICf8bZ6U=; fh=d21rU0t5ldv8qmdUTthuKC1WHykG2KPeb/08d9+CuU8=; b=AnEr0wc4/NAklMCveg3ii8hat7KTceju3pn6ecmopYsNszVmxqU2TyhFhIxsZvlOUZ 8+Rh7c2gwdblLzO0Nhbs0drE9a17I/EbUcOSSje7E1bsoaiKknkL0QVhZtIY8GUXDp9q bCiGFFTin07EbDNEYH2BaiahuqN75v2937oixsQan4x4sqMEnK3AhgdU92Om360XTal5 HGX2gygQIDegsC/5zFz3OfGOT+je1XXrAv8dUejNq0LY807MHoSSHHNOWOTea2aTb6Ih OgOuaZlq5htlmYKLR7MRrrVevkJSwJxQT4dMUl4m0vDC9CA//oI8nGsgkRiO88BmsRSh ZtCg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ZH0ALDkG; 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-138836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w23-20020ae9e517000000b0078d66af9e2esi6479549qkf.733.2024.04.10.08.03.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 08:03:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=ZH0ALDkG; 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-138836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138836-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 459CF1C21FCA for ; Wed, 10 Apr 2024 15:02:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 460F716E878; Wed, 10 Apr 2024 15:01:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="ZH0ALDkG" Received: from mx1.sberdevices.ru (mx2.sberdevices.ru [45.89.224.132]) (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 B2C992AF16; Wed, 10 Apr 2024 15:01:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.89.224.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712761307; cv=none; b=IPzKfzjwkpO/hKn0HydGATBznBxe6JW2lY+JimfsK4crWf6+9H/fRw4jUZZwpBiqt1FGCYx2yLuxGfcnEZILpr/x+nrosOKBBFdMPXL1RAxGcoW7okfRQ4z/+L1sTeM+vt69F5UQqLnrspYC21cy92dvs5kdzohAFY23t1RnEic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712761307; c=relaxed/simple; bh=kkXbdZNH9h55ww3tWrdUPk17fd5BeR//NtkGf/l8KO0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=nAOcFfe6DCgacQ+IITCCWfP2SElByZbBriaRLCGS556e4dsFmJlMkLqrrBHlYUB6TeXv2HwpBtuj6An11B0L/sYI6UN5ZSVU0eFQRSaFFss3ES8SmOg+pRq9fYjM94ym7Y7B6sJ6jxoIL0jfD9mXzfjznJA0DePR+8VnbL4SFG4= 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=ZH0ALDkG; arc=none smtp.client-ip=45.89.224.132 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-msk02 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id B4C4E12005F; Wed, 10 Apr 2024 18:01:42 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru B4C4E12005F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1712761302; bh=q1gcIhloFFL/kbDvWiIUFlnWRSNETi2Q1q4ICf8bZ6U=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=ZH0ALDkGOFqCk6vAz3G8gC5+qvvZ2daY3q3VrOwr+zrqqGSGa07E84C9GlJDBT58g koMTQTOIv1J0nS663xzaY8Hld8Kq0yA6yu2lMLIrTzdKnnG9+rVXy4KttYznHyKy6E mRSM+KL5H38VTy3Wi9YNjGCmax06SqZ5m9vbNN6G1wBz+r92CwlDhrnS7IfqMxxEa5 2+iPeI6dnMXqGnRNqt8Iy/pnF2vWaowH6VPsS4IDwSSYGy7qZP/H2hOBZwCJv9V8gf 1GZ/hsQFjDTN4H9z/uCGwDYzkCnnO8WibNenQmM2eVgWayLolSqKqqYkNCmvcqkwZa G8jph7IqvgDqw== 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; Wed, 10 Apr 2024 18:01:42 +0300 (MSK) Received: from [172.28.64.75] (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; Wed, 10 Apr 2024 18:01:42 +0300 Message-ID: Date: Wed, 10 Apr 2024 17:51:03 +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 v3 1/2] dt-bindings: mtd: amlogic,meson-nand: support fields for boot ROM code Content-Language: en-US To: Miquel Raynal CC: Richard Weinberger , Vignesh Raghavendra , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , , , , , , , References: <20240409181025.55504-1-avkrasnov@salutedevices.com> <20240409181025.55504-2-avkrasnov@salutedevices.com> <20240410122356.30852b3c@xps-13> <588551c9-3426-e623-e2aa-70b040c9324a@salutedevices.com> <20240410170040.37a59ff6@xps-13> From: Arseniy Krasnov In-Reply-To: <20240410170040.37a59ff6@xps-13> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) 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: 184655 [Apr 10 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: 16 0.3.16 6e64c33514fcbd07e515710c86ba61de7f56194e, {Tracking_from_domain_doesnt_match_to}, salutedevices.com:7.1.1;127.0.0.199:7.1.2;100.64.160.123:7.1.2;smtp.sberdevices.ru:5.0.1,7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1, 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/10 11:03:00 #24738255 X-KSMG-AntiVirus-Status: Clean, skipped On 10.04.2024 18:00, Miquel Raynal wrote: > Hi Arseniy, > > avkrasnov@salutedevices.com wrote on Wed, 10 Apr 2024 17:48:02 +0300: > >> Hi, >> >> On 10.04.2024 13:23, Miquel Raynal wrote: >>> Hi Arseniy, >>> >>> avkrasnov@salutedevices.com wrote on Tue, 9 Apr 2024 21:10:24 +0300: >>> >>>> 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..b86a1953056b 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. >>> >>> Shall we have a length rather than the last page? >> >> You mean rename it to "amlogic,boot-pages-length" or something like that ? But I think >> length in bytes is useless here: >> 1) boot rom needs that only some single pages are written in special mode (and as I see in >> vendor's driver it also works in pages). >> 2) NAND driver operates in pages during write/read such pages. >> >> So length in bytes will be converted to pages anyway. >> >> What do You think ? > > I didn't talk about units :-) > > Maybe: amlogic,boot-pages would make sense? But pointing at the last > page seems weird. Ah ok I see. Got it! Thanks, Arseniy > > Miquèl