Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2985619lqo; Tue, 21 May 2024 03:29:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUmM2QrvXXdcEUPZPLcdrb/qilNX3FM1ICCrSVbxfcLMWI34o/cJxJ1GEIXK4kXtqzKMXb214DQRTV/QDJlrBjuMV9/pQf4FfmiMksLAA== X-Google-Smtp-Source: AGHT+IEqBG5pNvE2MEkkKh27U8Ei8oKeheXr9fz54iIMOja1S2WJq+4qdO0OrkInI47MCDkDkyjv X-Received: by 2002:a05:6e02:1383:b0:371:578a:de2e with SMTP id e9e14a558f8ab-371578ae0a2mr1692675ab.0.1716287366685; Tue, 21 May 2024 03:29:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716287366; cv=pass; d=google.com; s=arc-20160816; b=LkHOhx9430sz+VWjkvUmLs2VIbU8Gcbqgf9tDxzkvOQHRYnApldVMc1bW5iGB7A6Th ylZ2YnVy2Js/7V0MpoQKmW4QMDVA4Ma4pY2lTRIDj8iXf5so2OJaSDY9XDCI9FnODKZu waiTv6g42sdNnAsSsXawf6NPmfNej+TDKUOcTcXcIx6qKQsZuesiptdPeXIA9nMN69Bc iSyJ1HCR+i3XX4LGqxEy0TdrckkCEX0JngOeDiTGC8X83JCEBa3K2zwmuYVzStDV3zCp 4wwdnVn4Ut3YmRT7hEt4Idt828u/RlwGmlX3PHRLBUXy95X9PkBNyupvhakvBQaebaXp NydA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=qi6lBdkdn1x7hzz8lAKSNRz9HZ/NDtP8vPjtnc51KQU=; fh=70vHrF47wwRcn5lDBXcSbGscLvAwMJSklBoZr1SLCcY=; b=ur97WaRIbfTvP2ayDHFLpsg720vhUnkQHpQsxe79hX4QXDhz4nnp6sTV2QVCfue73F xM6wsgB5u2T7iRGG70oYEM27EgOd8SyP6ucBU+u7khZ1L7g+Rhcg9iou4aRLXMhrq65A GJ0+pKbaD3waFinLFK9wbJXpKmHdXpRwTE+Q6AMo6j6g902BE4VafEPeb8SgdwqoJVGh C4VGOkcaa2Lstuwz7jXGmii1Zonye09UAXGt9glbrvI2G99CgBnR+Br/3eSAGDv+TajH bQpD37wlKuUHSKT+b1zkiZ0tjxMBszE4RlDVuog1IcDLUq/ihjgNBNEt6biwMNaWrjft weLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JQ8y2gNe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-184804-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b1e711si4058532b3a.277.2024.05.21.03.29.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 03:29:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184804-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JQ8y2gNe; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-184804-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184804-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2B3FD280FDD for ; Tue, 21 May 2024 10:29:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4DB6CDAD; Tue, 21 May 2024 10:29:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JQ8y2gNe" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7707521A02 for ; Tue, 21 May 2024 10:29:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716287360; cv=none; b=Isbg79jtO11yhjrm5UBelIFV5hhSuzyAdcspUnZbPQHLJBkwohg7VG9iSxurWBpt7tTDQIpmaJhnTqfXga5h92PAFLP+Ki2MA7NHRKwDUjU8eXazcP0hVC3rJDhYvK2HSzwIPKh/iU8J6KAi2Apbb2sThp9IPNkCfPwS09rk8Ro= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716287360; c=relaxed/simple; bh=6cDP9PqZbX5zVmeH3VVzeesNNCjgqRnuAIRWdnpMu8A=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=g78nCQXyRITA9GTP2TbUQNZnw+LTVqiRq7K5TFThjQrhuDkzEU8QaL5c6NI4hvE4AL1HMq6zxbiYVR8SlGM9VtH9ODUcjJusnthL+3WeI9eiycBUnUZ0b7bI1KbglkrcDCFiz2BTm1uFe/SWgJMGQpCuRciIJXibmxzg465zeUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=JQ8y2gNe; arc=none smtp.client-ip=209.85.128.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-42011507a54so19197335e9.0 for ; Tue, 21 May 2024 03:29:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716287356; x=1716892156; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=qi6lBdkdn1x7hzz8lAKSNRz9HZ/NDtP8vPjtnc51KQU=; b=JQ8y2gNeHfBqxaEu8uaz7of466wbHwAmHmVI+rm7+vk0WHz4TCc4uX1CkgCmqzQlK9 jynt/HKsVYcRXHPBRtGuT4SP2uB+ryEgS2jn2pYjC7ni3LndSMRhwb01A2Dva/S+0bSQ Kc0NcOiswQKWEaX/m5cEhcXZvjNZPSnw2vuIi9FU3lz8wOmMB6ug6Q926dGA+Zgt8WmC o3tNNsAjJf20CW9tmneQtbo/bvqs+SRxNNjdRUlhYHeozi82fqlElCGkDzRmq5QAim/n J0A+FNGuaov+5AWf119h70tIsSGH4RBxCFwXY12UJvGLzSMm09QU/6/VPMOkLcRAHnRV kRbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716287356; x=1716892156; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qi6lBdkdn1x7hzz8lAKSNRz9HZ/NDtP8vPjtnc51KQU=; b=s6d/c/r0SaHPpmn5Po7SJroRow+Sxjiy6Lg+0XP13faUnC/eRZTWs1pvHDKx+UmYst arOVNOayDX7krICSnY8FGDekMns5xlTVRiqone54VD1Hy9N2Yrzf9sEZc/caM3sTvXIA kkw0rJjyRYJGLV8dCWW3yWYoWKHJHiXAMmaumFEmJkbYdqCxqCi8CNozfbX+eeXeWQIw 0HP6nZOQIeqggGbxZXI//4EyAC4M+MjutqpKRfqjdPV37CJwvksUypDG2opq5oGep6/d viPoQ2i+nteayd/NpxUq8c+oM8D9e3S5BeGwGLtNl5WlPHV6rQWIC+ekRX3u+n7+55ca NJ5A== X-Forwarded-Encrypted: i=1; AJvYcCUzutGQI5L1PcoL05wxn6Fav2y1AKgS3VsbZDF78YrQP67TYtS861VJC5LVrP4mRMgjvgBCjfFsyPg9+udKIEkTJ5DHbUyQL0Bt7/n4 X-Gm-Message-State: AOJu0YwevXkrNO3YkPKBdUONyvOHo4Akvh9X7IpN80/NOD0C9twG2zSF 0gPmkv1bsgp8pX352xeO9eCq18RBz8gkBfmDRb4r8CCM/6qZHXzBPy+a9PJzXyM= X-Received: by 2002:a05:600c:470d:b0:41b:4506:9fd with SMTP id 5b1f17b1804b1-420e19d569bmr71549105e9.6.1716287355795; Tue, 21 May 2024 03:29:15 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-420152a2a8asm358758905e9.45.2024.05.21.03.29.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 May 2024 03:29:15 -0700 (PDT) Message-ID: <70863d5c-65f8-4baa-99ce-8739ce47fac3@linaro.org> Date: Tue, 21 May 2024 12:29:13 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 2/5] dt-bindings: spi: cadence: Add MRVL overlay bindings documentation for Cadence XSPI To: Witold Sadowski , linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Cc: broonie@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, pthombar@cadence.com References: <20240509010523.3152264-1-wsadowski@marvell.com> <20240509010523.3152264-3-wsadowski@marvell.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8Kf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nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240509010523.3152264-3-wsadowski@marvell.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 09/05/2024 03:05, Witold Sadowski wrote: > Add new bindings for v2 Marvell xSPI overlay: > mrvl,xspi-nor compatible string Where? Why double space? subject prefix: spi goes first Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. For bindings, the preferred subjects are explained here: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters > New compatible string to distinguish between orginal and modified xSPI > block > > PHY configuration registers > Allow to change orginal xSPI PHY configuration values. If not set, and > Marvell overlay is enabled, safe defaults will be written into xSPI PHY > > Optional base for xfer register set > Additional reg field to allocate xSPI Marvell overlay XFER block I have troubles reading this. Is this some sort of one long sentence or a list? > > Signed-off-by: Witold Sadowski > --- > .../devicetree/bindings/spi/cdns,xspi.yaml | 78 +++++++++++++++---- > 1 file changed, 65 insertions(+), 13 deletions(-) > > diff --git a/Documentation/devicetree/bindings/spi/cdns,xspi.yaml b/Documentation/devicetree/bindings/spi/cdns,xspi.yaml > index eb0f92468185..094f8b7ffc49 100644 > --- a/Documentation/devicetree/bindings/spi/cdns,xspi.yaml > +++ b/Documentation/devicetree/bindings/spi/cdns,xspi.yaml > @@ -17,22 +17,43 @@ description: | > > allOf: > - $ref: spi-controller.yaml# > + - if: Move the allOf after required block. > + properties: > + compatible: > + contains: > + const: marvell,cn10-xspi-nor > + then: > + properties: > + reg-names: > + items: > + - const: io > + - const: sdma > + - const: aux > + - const: xferbase > + reg: > + items: > + - description: address and length of the controller register set > + - description: address and length of the Slave DMA data port > + - description: address and length of the auxiliary registers > + - description: address and length of the xfer registers > + else: > + properties: > + reg-names: > + items: > + - const: io > + - const: sdma > + - const: aux > + reg: > + items: > + - description: address and length of the controller register set > + - description: address and length of the Slave DMA data port > + - description: address and length of the auxiliary registers > > properties: > compatible: > - const: cdns,xspi-nor > - > - reg: > - items: > - - description: address and length of the controller register set > - - description: address and length of the Slave DMA data port > - - description: address and length of the auxiliary registers Widest constraints stay here. > - > - reg-names: > - items: > - - const: io > - - const: sdma > - - const: aux Widest constraints stay here. > + enum: > + - cdns,xspi-nor > + - marvell,cn10-xspi-nor > > interrupts: > maxItems: 1 > @@ -68,6 +89,37 @@ examples: > reg = <0>; > }; > > + flash@1 { > + compatible = "jedec,spi-nor"; > + spi-max-frequency = <75000000>; > + reg = <1>; > + }; > + }; > + }; > + - | > + #include > + bus { > + #address-cells = <2>; > + #size-cells = <2>; > + > + spi@d0010000 { > + #address-cells = <1>; > + #size-cells = <0>; > + compatible = "marvell,cn10-xspi-nor"; > + reg = <0x0 0xa0010000 0x0 0x1040>, > + <0x0 0xb0000000 0x0 0x1000>, > + <0x0 0xa0020000 0x0 0x100>, > + <0x0 0xa0090000 0x0 0x100>; No need for new example for difference in one property. Best regards, Krzysztof