Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp78905lqp; Fri, 12 Apr 2024 10:57:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW0z2WwTAiiT69t2jauG8AW9qibYQS0xvXHwQOZFMVAUWGxdBGysv7TMHTwT6z/imYawI+x26Dr7cnLd1nXGbLUK1vG2P8Tx4dtA1bHdg== X-Google-Smtp-Source: AGHT+IH0MqEsQG1ThYHahTGbqn8IMuwieJdVILxPQOcGHTlArRMxXs66KV8CJSykAiymDW05Emif X-Received: by 2002:a05:622a:103:b0:436:8f24:2b11 with SMTP id u3-20020a05622a010300b004368f242b11mr2792445qtw.68.1712944660632; Fri, 12 Apr 2024 10:57:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712944660; cv=pass; d=google.com; s=arc-20160816; b=huoAdOz45cCAxg8+ItyqZl4LFb3locvWPDfsO2d4/91bQEeyIjwh8Q6G3MRyJqMBi0 paLY1I6Pzk1L+u8rcG5p6M6JNeHaIXitNYO63zS1wYQ27wWY0yImkbNlzC67WlV+uOPP KWkZEnaNpvHZWy2iwo6OnNBEQ3eCttMrPAVfLdMvS6fnpDKkUmpxykupKvXGlrtBeH51 r1YN5XnpBoBRIiAK1gvqLIRRVTTo/9PAIyXYtAGCzZtfTZx/7qDr28mC7dcKoKoo2tGm QXHr2jlaage9hFodpIT/pvKIjGtQSZQmGWEoVrRStITLbr3Jen7zNAdrtXM0Aws8YcYV i6iQ== 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=4x6CO2roFzlygK8ZkH3v2xYQJthxJprOn/AYJNBa9HE=; fh=c6pewldxlUiQ2aGWHK7875hZomb5+80JK5OwXpcYorQ=; b=Ae78FHRB4Lrjct+cs3ZxS7JOmyE7lf3zZqgPFpiTYng3j0mV5FY0FloIDZYcs0kBlD 8sgeQRiZOy+3ixQ9aZ/T27sdXjTKXOTJJI/hPpQxtjzoaEIOtdHoQlUOIUe5xh+jU+K0 lD1MUTG7FdTcIYD9GoO00SLJWeCsPTuzZyF64Jm5b9qd0J/wJR8bCJsfpEo0fpR5OZFK txPqDRXwBKqBQl0x0Zdfe0FQ3KOkSf2SNfaLNlJRoZhoLQH8c/EsDmm3P9Et/xUsoEYw xiHGjyNh0ynpLhHbm3CT45S3Uq/MuGpBFVMrofwjSQ5C8QOCBOvlHmluAXkLuL2Ikn6y HH9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Gqa5k66M; 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-143163-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143163-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 l19-20020a05622a051300b004347d030858si4242639qtx.800.2024.04.12.10.57.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 10:57:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143163-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=Gqa5k66M; 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-143163-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143163-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 2EA121C2164E for ; Fri, 12 Apr 2024 17:57:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2863114E2EC; Fri, 12 Apr 2024 17:57:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Gqa5k66M" Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com [209.85.167.50]) (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 168BB14D2B7 for ; Fri, 12 Apr 2024 17:57:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712944651; cv=none; b=TumoU9oNYAI6bfvuetVF5x1rnMdGglr34ZEjmpHnDhNJ9e/b8y6/QXHGqZ743zd43T3LqPeOZ8EWMt5jz6O2JT7IEW43/omeKJjUQd0aL5iCgJdoJByI5KUKSgYqb+TpYqQoNE7HYdqyok+XzWDd2NY51+qBm1bHx68HxNkV4CE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712944651; c=relaxed/simple; bh=gH3r+1vH2vfw0HvrRrCr2BpjgVrc/VeImANNikZnaKU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Lh47cuhRPwcM39ZRy+7yeVwNMeeylbZWkCVNTL0QUPs4vlXOAeJvodqQU0N42n77/T4hPRY4YXo7L/Qdy7GAucWIYJ3w9ltzlMYnDatD7s0pczzX1WkvFBc7xzcwoJkkQWdKq4qjW8f3ZxSkfHWVmM36yHjpnfoR1TuqiEpzwlk= 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=Gqa5k66M; arc=none smtp.client-ip=209.85.167.50 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-lf1-f50.google.com with SMTP id 2adb3069b0e04-516dc51bb72so1250405e87.1 for ; Fri, 12 Apr 2024 10:57:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712944646; x=1713549446; 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=4x6CO2roFzlygK8ZkH3v2xYQJthxJprOn/AYJNBa9HE=; b=Gqa5k66MN6T4GWSSINj+qJ61v8tNLUNR2MHaK66gnfI1hZeOa5ZZ6g3gI9bJ0ST7W8 OYi7Rs6dBJpG57U5DoiqUnNxw3leV2O2W2vTAJB+kthJS7fjCUwnmQQgBhyKV3ZB20Og RoZnDz+zzQzlgqsxiQKBopZE94yPPgCWe0pBz+QoT9orjOH5X09X6XL/5I/+5u32jxfa UL2ercllhCTQvMT9smdor+pYMtfcXv9XvhxU3VccmNQTAY3PtI7A3kJ38hz96UEit+DI ND+tbNENmMmHJ8daCwZXVKE0axC2e3Ke22/GgVY60xTMfqBtP/yhQu5AakVNwVXYD+/F dZqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712944646; x=1713549446; 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=4x6CO2roFzlygK8ZkH3v2xYQJthxJprOn/AYJNBa9HE=; b=uBNlSvmJBxBMGlMXm11KivLsO/RnbsYBJRVLSEQ4gjNTahlaGH5GGFqXtx1oO8Livb R0To5+NSf+zaTj080dwXtRKoJZh0UdAYJgsVKLuuUwsomzfAB2nmTMwX95okHt0s9KPV gqfOHF1zgReVHd71h1DUJHz2rRiaNoeJdg9pn4wcx7EKzAmiYaXfUyBUh/c9yWgSQ4rL d1Ik4rLFtvmRukl+UYohTTY7tZUgsPxpYXt5oFasGRsLr/uVAuH4ujTsqABYCbVVHzgc wbkWGJeCDPPcH8jTWcPj26TClBdW36pfwzDGv89IJk9JabBtz+K5GLAMfxtvwEE+DoWK av2A== X-Forwarded-Encrypted: i=1; AJvYcCUUoz3Vmf70CWpcW2SD2AHll4KW5y6y5BT/p7pAES5y/WlgE9vPRvXXtqnHzcrtB/jLnKZw0ZeAQsJboHqV1p2s4LKFsE/dpqzkJcue X-Gm-Message-State: AOJu0YwfKOiZddWagIo3UjfXPbQU4zZC4lvuKx2ow8kmRDXcqt1T5jMn H50QGYKfLLl36dexQDNua/UY54VJ+TVcPuiyGBHxi8B89Kzbuh7NeBPnbJvh7JQ= X-Received: by 2002:a19:430f:0:b0:518:86a8:5a33 with SMTP id q15-20020a19430f000000b0051886a85a33mr1507643lfa.56.1712944645997; Fri, 12 Apr 2024 10:57:25 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id bq13-20020a170906d0cd00b00a52307b3aa9sm1158361ejb.57.2024.04.12.10.57.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Apr 2024 10:57:25 -0700 (PDT) Message-ID: <579a1569-7bba-491f-ba5e-7cfcb34ccc1f@linaro.org> Date: Fri, 12 Apr 2024 19:57:23 +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@amlogic.com, 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> 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 vK4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vMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <10650c59-96f2-4234-b5fd-aa8efec90e5b@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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. Best regards, Krzysztof