Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7033977rdb; Wed, 3 Jan 2024 02:13:34 -0800 (PST) X-Google-Smtp-Source: AGHT+IFCi2jS6m2EJHVR9NFZxIDUO1lbzroOoXrPs5DTDK7R6P4oKsTOSYbkbt4aqmxSaGy3tm47 X-Received: by 2002:a05:622a:1208:b0:427:8776:9619 with SMTP id y8-20020a05622a120800b0042787769619mr31989898qtx.18.1704276814129; Wed, 03 Jan 2024 02:13:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704276814; cv=none; d=google.com; s=arc-20160816; b=FH41PF6+/vicKjdr+KGKDcDRCKcJpzE6KjLuJcqXow86reI47l40dJNOnaW7fdw3t6 F0UOWlbMX5sT4wU1uobUSCY+glFvWqhqo5Pc93WFrRoExrcZsP3fvgbZCSz0GfyKn2HO k4MhcvVlYJPAf+Z0mbKRR6qXUGeX6eu8wLP5KG/f+9PL1d6kiUs3AU6Qd/ZAfPHWgk2m NNGT04FA/iY7yETY0PWfthUglUaq1Hk9Y0QeMnq/T/BJgsbL6JB2kpHPZHSKSlAnCqf6 FK17SaQQf21lGQLD+50+CZEry/Qonj+edQXWSMffyNLaF570GqZsGcLD6JsBp5l5eKiE iF4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=7KwWn0e9ClG8E74BnRqmVdMJPFL6AvuZnVPxKUs6kgU=; fh=bfzlNEJtrqEI9UdykJZvTHnx3c39QnQS+aq6PxxwTu4=; b=PVVpaS8RsTpHW84bpbdi4qhKPCRQ+y4rsUxK4CB7S7Kz/Z5EL4+jiHK8XRetk/aaGR 3XtxLqCNqpAzvvnFj+pmkKdDf8IefRdRjLG+8Idh28R4i72AO0qPgVOg6axEe2ubA3Dz 8EKLi0OYiX+Vmsc+5X/SclwtOPFR//zftsJxdbG1UOJVpdjMk6B445dgLDtpdWnZgJzy hbrMgO6ofADvHmrpeIC/3ZDV/6O9K8EAmVczaUJP/4+y6qZEVq/SPUCla/iNkzEuFoye bH/VYWwRGXdiJ2X+WpSbFo/Pkiex0knvo/APtKL44RhQJCRWNaE6D9lnBJbWo9ZDtGdQ 67gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JyLi6F3H; spf=pass (google.com: domain of linux-kernel+bounces-15376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15376-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. [147.75.199.223]) by mx.google.com with ESMTPS id p15-20020a05622a13cf00b0042830ee0c20si2863914qtk.128.2024.01.03.02.13.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 02:13:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-15376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JyLi6F3H; spf=pass (google.com: domain of linux-kernel+bounces-15376-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-15376-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 BDC321C230C7 for ; Wed, 3 Jan 2024 10:13:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7663318AE6; Wed, 3 Jan 2024 10:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="JyLi6F3H" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 37B2A18650 for ; Wed, 3 Jan 2024 10:13:21 +0000 (UTC) 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-f44.google.com with SMTP id 4fb4d7f45d1cf-556c3f0d6c5so614310a12.2 for ; Wed, 03 Jan 2024 02:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704276800; x=1704881600; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=7KwWn0e9ClG8E74BnRqmVdMJPFL6AvuZnVPxKUs6kgU=; b=JyLi6F3Hmg+NfkHRzQ7/bCpUu8aemjvT73ykD4nt9arRC5D5EIwMViF/AdBCvPhtbs 4lT+WhMuGWtcbk+Kkn8hG1cUwy2k+V74zkQEPj0XDmss98X3S0qku/Qf4LyT99/pCDca kHp5iuvcdwwy9XRtkmV06VqZEGK4o2D0YD9bLSy43fn86Q4qLUllL7VY1mTdGVDGLEam Wyg7NV8xgaStAzc3tpdlbAPeh5MD2jZd6FR0VASGxZ02A3JGATRv8Qf9bBZoakKCFwL4 gDlPi7Kd7wjuzxan5gRNG/0FiL9pOcXdQVjG4qo1vooSpVZXqM8tKgccnZ2cxTTapLM8 FmLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704276800; x=1704881600; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language: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=7KwWn0e9ClG8E74BnRqmVdMJPFL6AvuZnVPxKUs6kgU=; b=Q/kiJxBKhS03V2LoxTVYMc42kCneGsClYNRiRRh37kuI5CzF1AWuRBLYkcFPi7cNvB otzTaiXLjD1zf6JCPwAdwHkknlAxjJG/VNqsODv3SymLVES+tdSsCBuVz0t20+NFNRj3 f9VPuCvHkKDb60Ea5rKsLrC8o0GQTeVv+Gu3CIZVHPd2UTXCHtAhPakf631SxMZGtu7A LFFxbCG9KxhEBl0MjEUo/8Gn344Z6TLmaNWKSyzdWdRgqB4CvMSlCw+w+JyLitqIcaoa CrN0hRQjWIN14Mymix39QA9ownsidD26j7dG/u2JASf8FUhqx2xuLSjBcXIxogiaQADL HHnw== X-Gm-Message-State: AOJu0YwSTS3Ten9JYF/sfR/y+Ha4eCCqN4pl4cnJNWgYvVAWlS3mfdKV YVVhwEh92VSgXIYZxV1foVyxS0l/lQTEnw== X-Received: by 2002:a50:cd01:0:b0:555:5879:ac50 with SMTP id z1-20020a50cd01000000b005555879ac50mr4091072edi.117.1704276800382; Wed, 03 Jan 2024 02:13:20 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id f11-20020a056402004b00b005557bbb81bfsm8431720edu.79.2024.01.03.02.13.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 03 Jan 2024 02:13:19 -0800 (PST) Message-ID: Date: Wed, 3 Jan 2024 11:13:18 +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] arm64: dts: juno: align thermal zone names with bindings To: Rob Herring Cc: Liviu Dudau , Sudeep Holla , Lorenzo Pieralisi , Krzysztof Kozlowski , Conor Dooley , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20231209171612.250868-1-krzysztof.kozlowski@linaro.org> Content-Language: en-US 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+NWWd7dUG5NDfTtBYpsF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EmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 02/01/2024 19:09, Rob Herring wrote: > On Sat, Dec 9, 2023 at 10:16 AM Krzysztof Kozlowski > wrote: >> >> Thermal bindings require thermal zone node names to match >> certain patterns: >> >> juno.dtb: thermal-zones: 'big-cluster', 'gpu0', 'gpu1', 'little-cluster', 'pmic', 'soc' >> do not match any of the regexes: '^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-thermal$', 'pinctrl-[0-9]+' > > You've just traded this warning for these: > > 6 thermal-zones: 'little-cluster-thermal' does not match any of > the regexes: '^[a-zA-Z][a-zA-Z0-9\\-]{1,12}-thermal$', Uh, now I wonder how did I see the warning going away. > 'pinctrl-[0-9]+' > 4 thermal-zones: gpu1-thermal: 'trips' is a required property > 4 thermal-zones: gpu0-thermal: 'trips' is a required property > 4 thermal-zones: big-cluster-thermal: 'trips' is a required property > > Last I checked this, it looked like the length of the child names was > limited because the thermal subsys uses the node names for its naming > which is limited to 20 chars (with null). Though the regex here allows > for 21 chars without nul. Looks like a double off by one error. Yes, that's another issue. > > The thought I had at the time was to make the kernel drop '-thermal' > from its names. Might be an (Linux) ABI issue if userspace cares (I > think it shouldn't). Also, I'm not sure how the kernel handles the > names overflowing. Maybe it is fine and we can just extend the length > in the schema from 12 to 18 (plus the 1 starting char). The name is used in the "/sys/class/thermal/thermal_zone0/type" file, so actually some userspace could depend on it, but it would be affected anyway by my renaming of nodes. Best regards, Krzysztof