From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="TtnR33N+" Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 617C2CF for ; Wed, 13 Dec 2023 23:49:58 -0800 (PST) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-40c580ba223so23152625e9.3 for ; Wed, 13 Dec 2023 23:49:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702540197; x=1703144997; 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=YKNWcJEz17bkojAUnmWBfEyQIf28MiYRgC9zuaDdhTM=; b=TtnR33N+I84VjIClroTOYYaQtUPbslE7+RZt+/p1SLQs5fVz9h+n3fFz5hX1LWHlC6 vYYWFFfpPzciBEDH16FqiNlz1kvZzZUGc2VstFGqAWgYDd51yxYIhmuVNWCSCRuVkzvH t9mfg7EB1zBiXgEcmqnST1omybzwiBd4iDkmP7GyA9p9DXmlKrVxt7m6EhDqY8rBwOnQ tMwf9H4Xz976BuTBbHQsUXdTz7UV9d84Kkj1t7fuhHGwS3+vK4QBEJBwEbQe0lgs/20l Ad5162lOImUpyd99FuupKV64OD79ZA1CnHwpdZDTJmdRr0aqmSBYDi7pPLJPDE+Qrs+i F43g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702540197; x=1703144997; 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=YKNWcJEz17bkojAUnmWBfEyQIf28MiYRgC9zuaDdhTM=; b=u/xSM5c1IeRBknsDqkSq3bpz5EQqPGAjUE5Nl9X5R6xgpvnXxYdhbY2YXa9ZL+epI9 0qcuNqq0Y6aCYtF855R9wJyYjAGCBncbGPLtvZmvqXpmRFwOVrFX90QKLb0zSHTA0wvP CN7IqtOH6mVqoC1f3TkrnsXf/bkxONDH2IuxzYOd3PAU1kSlHYj4O7Ty2ancD8UBgIgP 8X/2eT/rSbH3pQbVE5NDD8yHdiRFSJ7lO44zSCe7lJMdl2l8PRljp69k7ZFfludilbf8 nKoHY72IANwwA4GlvqtRsP3geP8Wg6KNx+uJPkyspZuXpUlWfvKHxSqgKiWjSbuHcZZp zgeg== X-Gm-Message-State: AOJu0Yyl0jxgBRbiiizDgu++x6E/CUb6LSYDMEiZCo5fQaSmIZYFFvW3 u5CA4CXkzDB6gzPjbv697mSO+g== X-Google-Smtp-Source: AGHT+IGgS4dq6V2+n0N3Cok+K3yf2gYNL25dIcgjY2U6IiTn5CUSGZpUwUcKRPdivR5m1Ppve3zeAQ== X-Received: by 2002:a05:600c:4591:b0:40b:5e1d:83a6 with SMTP id r17-20020a05600c459100b0040b5e1d83a6mr5215944wmo.58.1702540196842; Wed, 13 Dec 2023 23:49:56 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id l15-20020a05600c1d0f00b003feae747ff2sm26059344wms.35.2023.12.13.23.49.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 13 Dec 2023 23:49:56 -0800 (PST) Message-ID: <66f82e2c-0c42-4ead-93f5-2136ad478df2@linaro.org> Date: Thu, 14 Dec 2023 08:49:54 +0100 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: DT Query on "New Compatible vs New Property" Content-Language: en-US To: Manivannan Sadhasivam , Nikunj Kela Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, devicetree@vger.kernel.org, "Prasad Sodagudi (QUIC)" , srinivas.kandagatla@linaro.org, vincent.guittot@linaro.org, ulf.hansson@linaro.org References: <82115165-6089-4214-b47b-2c2c0dfb8c66@linaro.org> <1935cb82-648c-f079-8852-d461dc9f8609@quicinc.com> <20231214061742.GG2938@thinkpad> 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 S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+wsGUBBMBCgA+FiEE m9B+DgxR+NWWd7dUG5NDfTtBYpsFAmI+BxMCGwMFCRRfreEFCwk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VZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231214061742.GG2938@thinkpad> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 14/12/2023 07:17, Manivannan Sadhasivam wrote: > On Tue, Dec 12, 2023 at 11:06:42AM -0800, Nikunj Kela wrote: >> + Linaro team >> >> On 12/12/2023 11:01 AM, Krzysztof Kozlowski wrote: >>> On 12/12/2023 18:45, Nikunj Kela wrote: >>>> We are abstracting some resources(ex. clocks) under new firmware on an >>>> existing platform therefore need to make changes in certain drivers to >>>> work with that firmware. We need to make a distinction between two >>>> different variants of the FW. In one case, some resources will be >>>> abstracted while in other case, they won't be abstracted. My query is - >>>> "should we define a new compatible string for the variant with >>>> abstracted resources(in FW) or we should add a new DT property keeping >>>> the compatible same?" >>> Hi, >>> >>> Usually change in the interface or behavior warrants new compatible. >>> Property would be suitable if the same device, e.g. same SoC component >>> with same FW, was configured differently on different boards. >>> > > Here, the hardware is going to be the same, but the resources (clocks, > regulators, etc...) will be controlled by the firmware instead of OS. Yeah, that's the problem with generic questions, instead of specific... "Talk is cheap." OK, so the hardware is exactly the same? Does FW bring any incompatibilities in the interface or is it just about the clocks? I guess I should not have included "with same FW" in my last statement. It's true, but way too narrow. Therefore let me rephrase it: "Property would be suitable if the same device, e.g. same SoC component with same interface towards OS, was configured differently on different boards." > > Should we still use a different compatible? For the similar usecase, we already > have properties like 'qcom,controlled-remotely' to let the OS know that it > should not configure the hardware and just consume it. Yeah, also similar qcom,gsi-loader. Best regards, Krzysztof