Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp333268rdb; Wed, 17 Jan 2024 03:35:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IGgx0WOAHoMknyNsW3anW9BBomRjiT57tzFEITn89GktaKEL4klQPrtLTl/5ViQAlcNXsL3 X-Received: by 2002:a05:622a:104:b0:429:c8b0:e4fd with SMTP id u4-20020a05622a010400b00429c8b0e4fdmr662547qtw.64.1705491330833; Wed, 17 Jan 2024 03:35:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705491330; cv=pass; d=google.com; s=arc-20160816; b=e5AryXt7VbwnZtKgi+LbwvDond6TbWdCekkyeXLdbjZmLm1G3GnBKqt9PcsGS+xnnR 5jrawxHIt9t6X0WLG/qaf+DBvjAbMI31+sIDMPLJSVV6KkEEE5yHIOe2d+suygSYPH3D fDOevx+HHyDulRIAyihfln5oqVnoEZwBIxzQ90pTH8zRo8JFnrbue1ykS7wFoTY1RMIE YKc8yv6jaCkay2ZNQMhfDxt8Gup3ixIQBKKLXVQdxZxBNw8GhPIMSZujyuJH49xr887s Sy5SGa29HQjCLy/ac3wOOq7zU+/OyGPz1l5oY9QkLU66H7CGHuXNSH449DWedSLEEaop pZQg== 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:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=wbIBjFiFH5yDh0HhLK3UGcy7VFKvaKpcUGjHaOiByR0=; fh=mCZdUzSqo6P6LbFnhNuV6O54foZqYE2bhj5QALUq7mo=; b=B81n2NxQeydLA/ZJ2KbTZEPfDD0IRKS8bW2fVp+QbwH87l+E0GOgROBIFdXxKqP6KC rR5OxuWFuwl4Rvf7boyUiyQdSzim2qHC6LYXeynfdIoIHAwux5XScyxxzbg7w0QmIJzZ AG8AuyQVw3sUn6abVRyfYOtXLIGn/VelXaSSfhFxYrLhDr5aQAqvoB/zq1/KtquzvUui BArk5myVDUMUz3/oHjdMjrN6mFAEWOlwB+6aZzoE6cUD7BJ/R5fiEl+l9/TV5Cm4vKys t/I4d+TiGPw8NJoBhSyFd4kO7v+0H0NxkvnKgF0tbGB6/MlQ1T82bHXYwpHg+yAsp+oq 88iA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XO9zSIJB; 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-28916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28916-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h10-20020ac87d4a000000b0042a13465b53si186215qtb.393.2024.01.17.03.35.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 03:35:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28916-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=@linaro.org header.s=google header.b=XO9zSIJB; 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-28916-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28916-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 87A811C2173B for ; Wed, 17 Jan 2024 11:35:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 861D91DFC9; Wed, 17 Jan 2024 11:35:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="XO9zSIJB" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 F30431DDE7 for ; Wed, 17 Jan 2024 11:35:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705491319; cv=none; b=RQANzFAC/pTQW35q2jlLnfcyKeV79oPbVmKK2+z5Avd+rAO8emiDbiBoRztdjlUfBuhBf8RiIBlLYh9JV89Ti/xhvejmlEEECZWqktTT8J4i+MCBvp108RagImQkskbg3oErfpIRLcptSqn4RTu4lenTNPzzoycjxU1nhY6Z/hY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705491319; c=relaxed/simple; bh=YvnE0tgu3tnWmlLfR8V0knLnnT3s+OFdNtIP8Nl7BSQ=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:Subject:Content-Language: To:Cc:References:From:Autocrypt:In-Reply-To:Content-Type: Content-Transfer-Encoding; b=k0ICsiVukeuZm3+hUQ+qLjSHmUyyQ+jHGJ4E6QRfLK2UDwLAcU4fxj2+wll31zSURxROt/BUwjcnQplMMyA3MveT/Ggrmvcbn0WgYpq0tjibW2EVl4lC4VSw97QqiRKSXBQI9MgOPghnrAGlxZj0ulw+yFRF8/jPqzQ5la2/378= 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=XO9zSIJB; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a26f73732c5so1260140066b.3 for ; Wed, 17 Jan 2024 03:35:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705491316; x=1706096116; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wbIBjFiFH5yDh0HhLK3UGcy7VFKvaKpcUGjHaOiByR0=; b=XO9zSIJBSDL9Z5pmg9lhvBeB3H4ZJrQDAhP7ih5JSdxW7Ug9EVrF2hyiApb7Z4OBLb 7DWMRG8pMkdrChLaJytshjBg8M5LkZxz7OfKtg89WwkNcVnWfl9xQbp36IiQ597Y9xVo 5KdECtWq+hwINziUs8gYSksxIjQ2ttA5tTq+x7ZelEx/ecKpMy3Sb1fPs+wzLgHpK3cV 6Xd4OVKnH0C3fC1iOIuoNRqasKUVsgmHkEIgC8/4BPcewB1gLHm86oLUdwnKq1gUgQl4 mR2PXqzEa8p9hp1uQfeaDYfP8R8h5Yk7RPO+haBbK/vfbVII8FynHZiFuhqp5QGJVENL TKyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705491316; x=1706096116; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=wbIBjFiFH5yDh0HhLK3UGcy7VFKvaKpcUGjHaOiByR0=; b=uUkRgBQ8WYEm9awNAe4CCOb2BV71vubKFEbPdqeQHTsRckqgbhtHpaYcxNnFVGcM4J 7/P2AAwE4RMQqug7+rarUgqyRO3qlpgfK11NnGX8fagCkrAXaLhQkovuK/gPuJA6gJod pCu0P4aNxJPe1cdjIv/4rm+oI4dGzryuL2MWNZX221J2e0WIJWHuw06EizYlvqNesv24 dIbetS/5+3RrCMf1MT+UdAooMVh2pGad3MkhYICwACMbzFCf13nfAZRwy2Y+7VAIlJsK Qec/04QLroK4bMzcBLtPGeGTef0bUBSkUe7sgrYYqQxCXjBziuX3uKZO7ILNqEf9J4Rj CtRw== X-Gm-Message-State: AOJu0YzfAJ/SyA3hfhTko2JhLnGmRybtI5d8y/b8xH22S2H8/zbN1B3E givlmnVoBgV5DZXFYn1scsDOmOQCgqSTIQ== X-Received: by 2002:a17:906:f914:b0:a2e:884a:4124 with SMTP id lc20-20020a170906f91400b00a2e884a4124mr1228699ejb.24.1705491315674; Wed, 17 Jan 2024 03:35:15 -0800 (PST) Received: from [192.168.1.20] ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id m23-20020a17090607d700b00a233efe6aa7sm7672931ejc.51.2024.01.17.03.35.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Jan 2024 03:35:15 -0800 (PST) Message-ID: <6119a057-0ed9-46f0-9232-3839d7d4b2e6@linaro.org> Date: Wed, 17 Jan 2024 12:35:14 +0100 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 3/3] dt-bindings: PCI: ti,j721e-pci-host: Add support for J722S SoC Content-Language: en-US To: Siddharth Vadapalli Cc: bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, afd@ti.com, srk@ti.com References: <20240117102526.557006-1-s-vadapalli@ti.com> <20240117102526.557006-4-s-vadapalli@ti.com> From: Krzysztof Kozlowski 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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG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eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/01/2024 12:24, Siddharth Vadapalli wrote: > > > On 17/01/24 16:06, Krzysztof Kozlowski wrote: >> On 17/01/2024 11:25, Siddharth Vadapalli wrote: >>> TI's J722S SoC has one instance of a Gen3 Single Lane PCIe controller. >>> The controller on J722S SoC is similar to the one present on TI's AM64 >>> SoC, with the difference being that the controller on AM64 SoC supports >>> up to Gen2 link speed while the one on J722S SoC supports Gen3 link speed. >>> >>> Update the bindings with a new compatible for J722S SoC and enforce checks >>> for "num-lanes" and "max-link-speed". >>> >>> Technical Reference Manual of J722S SoC: https://www.ti.com/lit/zip/sprujb3 >>> >>> Signed-off-by: Siddharth Vadapalli >>> --- >>> .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 13 +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml >>> index 005546dc8bd4..b7648f7e73c9 100644 >>> --- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml >>> +++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml >>> @@ -14,6 +14,7 @@ properties: >>> compatible: >>> oneOf: >>> - const: ti,j721e-pcie-host >>> + - const: ti,j722s-pcie-host >>> - const: ti,j784s4-pcie-host >>> - description: PCIe controller in AM64 >>> items: >>> @@ -134,6 +135,18 @@ allOf: >>> minimum: 1 >>> maximum: 4 >>> >>> + - if: >>> + properties: >>> + compatible: >>> + items: >> >> enum >> >>> + - const: ti,j722s-pcie-host >>> + then: >>> + properties: >>> + max-link-speed: >>> + const: 3 >>> + num-lanes: >>> + const: 1 >> >> Similarly to previous patch: What is the point of all this? You have >> direct mapping compatible-property, so encode these in the drivers. > > Ok. I will drop patches 1 and 2 of this series and only post v2 of this patch > for adding a new compatible for J722S SoC without any checks for > "max-link-speed" or "num-lanes" for the new compatible. Without driver change? So how does it solve my comment. I want to move all these unnecessary properties to the driver. Best regards, Krzysztof