Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp836780lqb; Wed, 17 Apr 2024 12:08:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOATrETkgb6sCFIy1J5AO1It/KoVv+wDqNk/FZWUZRIX04kTpsGTcjDVLl0hTdcqydufyWDbeZm2coTI/lduKgIGwPgoLUYW4VyfQOxw== X-Google-Smtp-Source: AGHT+IFy6Kf7uKz55cErjIIs6bMt7ZdATx63zCKEaqhqB7JFzhUCqug6XU/uvtquAIO3YAB8LWLb X-Received: by 2002:a05:6358:d587:b0:183:ea4b:620 with SMTP id ms7-20020a056358d58700b00183ea4b0620mr252464rwb.28.1713380914649; Wed, 17 Apr 2024 12:08:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713380914; cv=pass; d=google.com; s=arc-20160816; b=BfnTN7HYhxnpT4vD3WVJ+bhl6ThGmlmvzel+qlOHxiV+FJJlZpWGWEaUroBM/rT3UZ ZrnHVhos6kibmRPx3CxGY/t+mnSD4RxDr5iiob6EKnTEan7cyCVfGFZjBr9i9xbNBg1Q SQX+PmWN/SYmH3wgb4RvsbXPoL/lehQs6rEesinWgdzVov41Y5oAOHO/E5/1Dg/7dCnL u+hLGM43vPwV+ljUCj9Jra1lBD7I7c2tAxZ8YTIGggbNJMqqVS+VJG8OiamsNgsc1J8k gECKNhqWz5QHnkNaWiBUHrUooyjma3tPRhMhVUvX1P5+LNW0xHLGhPDmlt1+SST+TrH1 a6hA== 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 :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=JOv0r8oGsd8Uwgzx+OALcEdGHkc+iXwkzkwevk9XaMU=; fh=5C2vPCLMVkcg56fY8asHSwSmf8jLS4fTQJ4pIylMvK4=; b=YTZ07Y0OxVSSiEtGH8xpg9rFUW8eqbLMMc9sjf7vCiQPPowY5eZPXWLeWZfe511Tfh AaMn7SjkCj62tAQJdsaZSPccu6ni91A/hwXnrjjWbPims6w+Y1Byeh7WiuDvDs2cXqbO 8F1lttXSPCKZphqubORSIIPc9WG8Ph0h3zW3e5i8XdeAzm/W0XMXxsjTRgHAafnmRRvH RbQiuTYixTzfumIjBwjgBtqSyJ22dsJCEST8ii7f58BF4CVwotRnlMmoePoCAz9zPN9B XWZqPXNiaIBukKrDhPsrM5QKcw1RFYXQfZZB7kGmdpCNprOa8hkx2uFPtqDLnepgMCqa 944g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iIOCJuhw; 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-149102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149102-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 h22-20020ab04716000000b007e7e04de848si2351411uac.145.2024.04.17.12.08.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Apr 2024 12:08:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-149102-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=iIOCJuhw; 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-149102-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-149102-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 4AA8B1C21A89 for ; Wed, 17 Apr 2024 19:08:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 672F322F19; Wed, 17 Apr 2024 19:08:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="iIOCJuhw" Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (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 8808F1CD38 for ; Wed, 17 Apr 2024 19:08:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713380905; cv=none; b=YY+W3I+sTu30lnqPgcHPg51VRH2osHXJsP+POVqvXXtRsn+pIIPmJnYIKjxhMhibIF2AAtiUvOLtFGyc8J4I7ZaKg+9qQBJ9aIkeX6y7MczmQBLcLoyINgZmmLjoJN3ZMWxEPoGlI8rkdaeZhZr3LfcaLDWfPp0ANsarncFpWY4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713380905; c=relaxed/simple; bh=qfHE8m5XLOzNhD/JXt3Tl12sfo+zti3Im7RkhVzBABM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=q0Kjya+mHiBUEzenYduuW3hVb3Ddw/xUlX3TuL1uybr7/Kl5sOwtVMp4P2oJ5DcDIsjxxOfQQY4ELuu7yYDfrVtY4DQSh1a1ls51YuVJBXNk2wlNyhprGqPPN5sqzqEZ/+ImOJphsSzwIyorc0yqmoUcX2nCBzyoFiDXCOVDt2I= 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=iIOCJuhw; arc=none smtp.client-ip=209.85.216.51 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-pj1-f51.google.com with SMTP id 98e67ed59e1d1-2a614b0391dso109285a91.1 for ; Wed, 17 Apr 2024 12:08:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713380903; x=1713985703; 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=JOv0r8oGsd8Uwgzx+OALcEdGHkc+iXwkzkwevk9XaMU=; b=iIOCJuhwl8PDpRQepZftvYFxW3fdD9Pbe5MU1eVtYqLrp3rWSyThJkgl268thntRU0 Wm/txt0RxQ9Fklyo7OSg+OP/FvXIKOqyU3FG+ObgOmkWjbKaTs3vIGvSRh6FkBJ9xXDR rAtUFqodmXfabPzY/sqyG8psz0vZC01nhm5eEBzYbbOdEQ6WgMlrGc05sR5Rnb4D7LSH QLWJnTdim3580aCZEbmsY/dRsqLU4tJAVd8jw5YTA3pcaqohkrZ7Q8Fuv9RA3cGxg2VY pvWGQbl2zRx7rCcQ1w8xBPsb4J7VmI6Pg1s/x1kgeu+wGc6YuqAujNN41M6yMysUj/K0 x8jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713380903; x=1713985703; 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=JOv0r8oGsd8Uwgzx+OALcEdGHkc+iXwkzkwevk9XaMU=; b=tGgs+Aon+bEdh72/khgpjUtG40aLyppTGpsZ0DpxCFq1EVT/KSEX8D9O6QCEupvN+F FnIR0hvd55UelNUbzDDPltl5ESPPQ2mtpWX7gTEWFjlnjfAtDMbwYwxMeFcEeDFnh5y5 AaiJknpjBq+9zlaaFczo21z3N65PLG/gcTpXYWZbKz4wVD5ZUd0Yw2feKYeeJ3G2OhM6 Tccl2wh+f1U1tzWPbqgwplCPG4ExyUvTk48j+wDtkeQOK+mq8JuJRGpbwuIlzS+0Gvgh q2DJXyltNXPD4ihWDV+jSaHB/ncQZujRZga8whKdIGqp/6oj7oI9P2L96W3YNMN+zY+r 18Fw== X-Forwarded-Encrypted: i=1; AJvYcCUuUQOQZ7Y+BIDRuERpuQ1UBOkWWkDtLHJu8jl4FOfy+boka2DCpgVvg422C+YADkX1iuunzkSaFK4TfK8bOL92ftHi+E6b0NAYoKCk X-Gm-Message-State: AOJu0YyaQJvdpYZJc4QVCEfjm6PgUHHhFzDj2gfh68BFwqaX2nr9RP4I pBf9db9tRUfOBT0GF+iQEV7Z8kVevAo8OuF58z6inlaMIkG5EyPViojgilxUr6w= X-Received: by 2002:a17:90b:782:b0:2a4:6c87:7c81 with SMTP id l2-20020a17090b078200b002a46c877c81mr321296pjz.22.1713380902656; Wed, 17 Apr 2024 12:08:22 -0700 (PDT) Received: from [10.36.51.174] ([24.75.208.154]) by smtp.gmail.com with ESMTPSA id c16-20020a17090aa61000b002aac2aaf4c5sm3286pjq.7.2024.04.17.12.08.21 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Apr 2024 12:08:22 -0700 (PDT) Message-ID: Date: Wed, 17 Apr 2024 21:08:19 +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 1/3] dt-bindings: reset: Add Amlogic T7 Reset Controller To: neil.armstrong@linaro.org, Kelvin Zhang , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Zelong Dong References: <20240329-t7-reset-v1-0-4c6e2e68359e@amlogic.com> <20240329-t7-reset-v1-1-4c6e2e68359e@amlogic.com> <927ad2cb-3b41-4eda-b930-856be64ae9ba@linaro.org> <10650c59-96f2-4234-b5fd-aa8efec90e5b@linaro.org> <579a1569-7bba-491f-ba5e-7cfcb34ccc1f@linaro.org> <48005005-54ad-473b-826d-23b0b3f3a52c@amlogic.com> <64c765e4-698f-49d6-8d17-4b512c3dc8ec@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/EXN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uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <64c765e4-698f-49d6-8d17-4b512c3dc8ec@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 16/04/2024 01:30, neil.armstrong@linaro.org wrote: > On 15/04/2024 12:31, Kelvin Zhang wrote: >> >> On 2024/4/13 02:03, Krzysztof Kozlowski wrote: >>> [ EXTERNAL EMAIL ] >>> >>> On 12/04/2024 19:57, Krzysztof Kozlowski wrote: >>>> On 12/04/2024 15:12, Neil Armstrong wrote: >>>>> Hi, >>>>> >>>>> On 29/03/2024 20:39, Krzysztof Kozlowski wrote: >>>>>> On 29/03/2024 10:17, Kelvin Zhang via B4 Relay wrote: >>>>>>> From: Zelong Dong >>>>>>> >>>>>>> Add a new compatible and the related header file >>>>>>> for Amlogic T7 Reset Controller. >>>>>>> >>>>>>> Signed-off-by: Zelong Dong >>>>>>> Signed-off-by: Kelvin Zhang >>>>>>> --- >>>>>>>    .../bindings/reset/amlogic,meson-reset.yaml        |   1 + >>>>>>>    include/dt-bindings/reset/amlogic,t7-reset.h       | 197 +++++++++++++++++++++ >>>>>>>    2 files changed, 198 insertions(+) >>>>>>> >>>>>>> diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml >>>>>>> index f0c6c0df0ce3..fefe343e5afe 100644 >>>>>>> --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml >>>>>>> +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml >>>>>>> @@ -19,6 +19,7 @@ properties: >>>>>>>          - amlogic,meson-a1-reset # Reset Controller on A1 and compatible SoCs >>>>>>>          - amlogic,meson-s4-reset # Reset Controller on S4 and compatible SoCs >>>>>>>          - amlogic,c3-reset # Reset Controller on C3 and compatible SoCs >>>>>>> +      - amlogic,t7-reset # Reset Controller on T7 and compatible SoCs >>>>>>> >>>>>> >>>>>> If there is going to be any resend, please drop the comment. It's not >>>>>> really helpful and makes it trickier to read. >>>>>> >>>>>>>      reg: >>>>>>>        maxItems: 1 >>>>>>> diff --git a/include/dt-bindings/reset/amlogic,t7-reset.h b/include/dt-bindings/reset/amlogic,t7-reset.h >>>>>>> new file mode 100644 >>>>>>> index 000000000000..ca4a832eeeec >>>>>>> --- /dev/null >>>>>>> +++ b/include/dt-bindings/reset/amlogic,t7-reset.h >>>>>>> @@ -0,0 +1,197 @@ >>>>>>> +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ >>>>>>> +/* >>>>>>> + * Copyright (c) 2024 Amlogic, Inc. All rights reserved. >>>>>>> + */ >>>>>>> + >>>>>>> +#ifndef _DT_BINDINGS_AMLOGIC_T7_RESET_H >>>>>>> +#define _DT_BINDINGS_AMLOGIC_T7_RESET_H >>>>>>> + >>>>>>> +/* RESET0 */ >>>>>>> +/*                                        0-3     */ >>>>>> >>>>>> I assume this matches existing drivers which do not use IDs but map the >>>>>> binding to hardware value? I remember we talked about changing it, so if >>>>>> something happened about this and it could be changed: please change. >>>>> >>>>> I'm not aware of such discussion, and I don't really see the issue... >>>>> thoses are IDs, and yes they match the Hardware offsets, and ? >>>> >>>> Bindings are not for hardware offsets/values/addresses. It's just not a >>>> binding. >>>> >>>> I quickly looked at your driver patch and it confirms: not a binding. >>>> Binding constant is used by the driver and DTS consumer. >>>> >>>> I am really sure we had this talk in the past, but could be I think >>>> about different platform. Since this is not a binding, I do not think >>>> claiming there is any ABI here is reasonable. Feel free to store them >>>> with other hardware values, like in DTS headers etc. We already moved to >>>> DTS headers several such "non-binding" constants. >>> >>> Un-acked. >>> >>> I looked at my archives and we did talk about it and you were CCed: >>> >>> https://lore.kernel.org/linux-devicetree/c088e01c-0714-82be-8347-6140daf56640@linaro.org/ >>> simple-reset is an exception. >>> >>> So to recap: >>> That's not a binding. Don't add some real values to binding headers >>> because it is not a binding then. > > So what's exactly a binding then? Binding headers is interface needed (necessary) between implementation (like Linux drivers) and DTS. > random linear numbers that means nothing can be a binding > but registers numbers can't be ? why ? I still don't understand, why this suddenly gets problematic ? There is no interface here. Drivers don't use them. It's not "suddenly" problematic, I commented on this year or two years ago and we also started moving such header-abusers out of bindings. > >>> >>> https://lore.kernel.org/linux-devicetree/CAK8P3a1APzs74YTcZ=m43G3zrmwJZKcYSTvV5eDDQX-37UY7Tw@mail.gmail.com/ >>> https://lore.kernel.org/linux-devicetree/CAK8P3a0fDJQvGLEtG0fxLkG08Fh9V7LEMPsx4AaS+2Ldo_xWxw@mail.gmail.com/ >>> https://lore.kernel.org/linux-devicetree/b60f5fd2-dc48-9375-da1c-ffcfe8292683@linaro.org/ >>> https://lore.kernel.org/linux-devicetree/418c5f0c-5279-41f5-3705-345ec9a97ea2@linaro.org/ >>> https://lore.kernel.org/all/201401111415.29395.arnd@arndb.de/ >>> >> Got it. Will delete amlogic,t7-reset.h and use the hardware numbers >> directly in the DT. > >> Hi Neil, >> As you know, Amlogic reset controller is divided into several groups: reset0, reset1, ..., resetN. I'd like to discuss the rationality of splitting the one device node of reset controller into device nodes according to the groups. Then we can use the bit number within the 'resets' property. >> reset0: reset-controller@2000 { >> ... >> }; >> >> reset1: reset-controller@2004 { >> ... >> }; >> ... >> >> What do you think? > > No since you'll basically add a node per register, you need to add a node for the while reset HW function, another > solution would be to split the phandle arguments in 2, the first first would be the reset bank, and the second one > the reset line for the bank. > > But still it's a regression in readability to drop the macros, until gpios or pins the reset number doesn't mean anything per se. What stops you from putting the header in the DTS? Just like others are doing? Best regards, Krzysztof