Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp752553rdb; Fri, 2 Feb 2024 03:03:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGs8IHa2V8RgBepOIMlKftTlzET6Z3MOnEu8zhAZbSRZow1ePGEA0Q4Qz2iFOAjojrCcdmJ X-Received: by 2002:a17:902:ea03:b0:1d7:7396:b736 with SMTP id s3-20020a170902ea0300b001d77396b736mr5900584plg.58.1706871826476; Fri, 02 Feb 2024 03:03:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706871826; cv=pass; d=google.com; s=arc-20160816; b=BLyU87i9yCb2v0HomkyQtNgNDQC6a83UDzyBuHQRYzvtgFVhdu74/HbpRc5bopQdl1 y2Ql25yZcARdM5K+n0X8bKDisbdc2lUHLF/UDdvaLeSERzG1rvWRcjLPtIB60zB6aBpG aAlIPZXsVpF2wD5ssRbbK0ssDHG7n4qjV8n0MVVZj4ufxtoe+dAByU5Pm1DxGtVvrp27 XCeUKSPFPw9jUULVLncQTkV6hI7j2YZL0sD0G51SParlZi+1vv3+Y25+uFNQx27dKXnW oTy7X03uWt1B9+AVYsZPvZMGMP6M9RL2e0+Fxaom5hZxSGVIPCA0GGIr1xoQ54QbtZV1 crQQ== 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=3mZJtsuUhpLgRm6K29/sbH1fz9ZV/gafRus3vx/CI0U=; fh=C6rH27KrpAQ9DigJZ6b2CFkJ9CykX3rGFIsQJ2JEaoY=; b=lLHWHYWcAKumsnCyvjVpg3qOuXmVYn+4eSJYz6D5wqYWSTOVhdogCyunICZO8d+kN6 /Pt6gwb4HBWBZtAfGDIT4g6ssoBt6z1gtadBJBHzxwymCC7XMS2DGCJbC4u4mUyZi9mQ R67rUgCQCKRUOlUYL1/UlzgxU0owfakRtD/5UCkB6EVY+LVRAUTPJa019TVZCzi52mrp OUPSBtlcSWNYMtf+Oo/XEleLJqhh6rJ98VBbZ8b2uieefA1iDLDA13dF0QIwyclZHCPQ kLPEUQS/DaSBYhhsvLEp2Qh965cXLgQk+/o6J1dqjYcIejO4CkerF9DAfhyvGb7w1PuL XGpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWP0PyfI; 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-49717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49717-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCWEsp5jH79XcWerkMPWxqv8LavmuZphnjbAXvwoTzERbnrA5/MSSOnq7xTxM8VbbZGtrxv7JlEfvIbSpg2WYVi4gS5TTljYXXZM/0Vqqg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u3-20020a17090341c300b001d90376dd49si1581628ple.526.2024.02.02.03.03.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 03:03:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BWP0PyfI; 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-49717-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49717-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 C4B3D296A20 for ; Fri, 2 Feb 2024 10:59:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9891013DB80; Fri, 2 Feb 2024 10:58:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="BWP0PyfI" Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 D61657A732 for ; Fri, 2 Feb 2024 10:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706871535; cv=none; b=i6p+1JOSLfS3EbPdVFtRPK5iuLkikvpXJt80LtW9cG4Kdl8rlrqgkw39Rqe//Yh8Cvb1/t9IrNZ7YTBRiEjMTK2qc88DN87dNH8eAWYiCLgA5hm7jL1HhVr8CPN1h1HMy0CVKihLyGBTAM0nP0J3apaoTpHUlnSOex+9yGFVU28= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706871535; c=relaxed/simple; bh=KKLOo2UMVr4G+/v1i5f0jDik+0v3nO4WaF3+RQvnxgk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=W4pvAXKiL/4Jn0k1OaW7lfjE1QvJq0g7DnKDQxuejWp+xd8sq/+ngeCXAxbZ88gSyHJh1kE4VK7fby6jK+nxITAvzp4H/cSKUgoZZWQYbPdCDh9IhR9v0ujx9cQ+hsnY9MlAdSbKQHw3qP4koqtY1aWIqtX1VxH2yHUDu0fizKM= 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=BWP0PyfI; arc=none smtp.client-ip=209.85.208.42 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-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-55fc9a581f8so1752242a12.2 for ; Fri, 02 Feb 2024 02:58:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706871532; x=1707476332; 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=3mZJtsuUhpLgRm6K29/sbH1fz9ZV/gafRus3vx/CI0U=; b=BWP0PyfIMlupmMUxIQkE83AV5euIbKhmplZOt/PLH21iiDWDg6gjE+KXxpO9ZPEVip DrRZFpUChYPFCLSe+3/fLgMv+LjWgBlrVOtcSZ/9Hua0n+CueSxtCqR40w0lmHOgyEOl r/4kTUE76fiTFwcuW/NaD7BJIIfbUDwCCed6F3WBEdUIGYHAAbXqdKWcEHnpm2j2TdZD cXDn4NJ+XfmByPz7WFnzgdT+FYvksL9MD2jkytfL2kS+sLa4GUIzj/Q/aNm6XE05oiDT KGdU26nKJoMSUIT5Lnkw+3ITHI8fkKcS/7WlAiCDUImANVupvY0uRztfGSyoNMdwSrbK ekGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706871532; x=1707476332; 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=3mZJtsuUhpLgRm6K29/sbH1fz9ZV/gafRus3vx/CI0U=; b=oIxxeh9u2+MHO3hBZO+5lKdLmZD4vhu47yALjnhrS07m8/GeUBJqEmMAHKC4Lw58RY iaITSY2V7/i6ahE9bkepOtQFFkN7dUyeRIOmD5rW0n35H/Q5elPvig9Rv5vLgI8GLZpW oxnNPInmsTJ75nYjEVVpyVi8MfVk16nhSWPypCw60hhFXOqugXEWt752Pd7JKuqZvRJx CFBMQM6bBhwZt5Jjbk89AqQ52sRDAivxKdiedVvuM4JlSAYMX4u0k2jo72TcLCPEl3g0 0Kqi2PQswp4RE7aRkhqf91Zx7o6P4fHfoqCPrM5MdeZ0YZwdaK9BoeKeI724eE/T//SB jSow== X-Gm-Message-State: AOJu0YxwUe5g2j7exkZKip69wDc50F8pxs6+mgDAAVo5j0osqVl1ho0Z ahZODfe0KjW2PDjuQbr9pqJ46HRFPkH0NvMZ1dishyxxfe8yng5ULsdhucpxbtg= X-Received: by 2002:a17:906:13d0:b0:a36:7c26:b6f with SMTP id g16-20020a17090613d000b00a367c260b6fmr1207765ejc.52.1706871532058; Fri, 02 Feb 2024 02:58:52 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVt2KyYQUcxu5hGuL8mAgnHpyBZ4Ykp6sd9qwUmLz+wUZLMMlAQbdCzsDqdz1ATkmTx1IEEr4ogDnUneUc0BGq4RyhSWyrgqQWz7id4dzDkmUcLf3A5nSvMNa3W7GMDdJFb0ouuoTa+Ib59CesR6S85idpzru6SJooTTqTicY9E Received: from [192.168.1.20] ([178.197.222.62]) by smtp.gmail.com with ESMTPSA id vo3-20020a170907a80300b00a36fee1350dsm610865ejc.130.2024.02.02.02.58.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 02 Feb 2024 02:58:51 -0800 (PST) Message-ID: Date: Fri, 2 Feb 2024 11:58:50 +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 RESEND] arm: topology: Fix missing clock-frequency property warning Content-Language: en-US To: Stefan Wiehler , Russell King Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20240201123605.3037829-2-stefan.wiehler@nokia.com> <9da01fb1-9bab-436b-af49-783e44821b26@nokia.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/BIfXXfC68nMp9BZoy3So4Zs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ybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <9da01fb1-9bab-436b-af49-783e44821b26@nokia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 01/02/2024 16:03, Stefan Wiehler wrote: >> Does this mean the /cpus property is like a default for when a CPU node >> doesn't specify the clock frequency, or does it mean that the /cpus >> property should only exist when all the values for each CPU are >> identical and thus the individual CPU node clock frequency should >> not be specified. > > Good question, the device tree specification in Section 3.7 [1] says: > > > The /cpus node may contain properties that are common across cpu > nodes. See Section 3.8 for details. > > And in Section 3.8 [2]: > > > Properties that have identical values across cpu nodes may be placed > > in the /cpus node instead. A client program must first examine a > > specific cpu node, but if an expected property is not found then it > > should look at the parent /cpus node. This results in a less verbose > > representation of properties which are identical across all CPUs. > > So I think it is pretty clear that it should only be used for > common/identical values. > >> Aren't you adding new property? Is it already documented in the >> bindings? After a quick look I think this is not documented. > > You are right, clock-frequency is not mentioned neither in arm/cpus.yaml > nor in any other /cpus.yaml binding, but the DT spec has it as a > required property [3]. Should I add clock-frequency to all > /cpus.yaml bindings? Only the ARM one explicitly mentions > following the DT spec. It should go to dtschema. dtschema cpu.yaml has it, so you need to propose such to cpus.yaml, probably you could experiment with: not: - required: - clock-frequency - patternProperties: cpu@.... - required: - clock-frequency Anyway, you cannot just keep adding some OF properties to the code without documenting them. Best regards, Krzysztof