Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1343222lqt; Wed, 20 Mar 2024 00:14:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU5fK6LM6pvc6CmdlVes9vUkZORQyYNs9eromMqIvtT1uy0p6qOjczs+Pe9uuqsOUhM/ylyKd4DnMq89aRP769eECE/Z/rScUeiSZIs8w== X-Google-Smtp-Source: AGHT+IFbb6PheqZq0dvZJ+z/xPU2t8g9Q6dWb0+F10WfnK9AASQAcEA4/mf4ftC4HG9Q/HvZ23Kl X-Received: by 2002:a25:5f46:0:b0:dc2:4f34:c964 with SMTP id h6-20020a255f46000000b00dc24f34c964mr970247ybm.23.1710918866464; Wed, 20 Mar 2024 00:14:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710918866; cv=pass; d=google.com; s=arc-20160816; b=yJkYt/Tp/WBoFrlrgihmEkstRrsCLfQj5OvzfERBZRNsUchu/hQDa5lVnZcQB1maui 5C6xScFd36je/nWjbkfkPgCzH8zu/9O7C0lUNCx1MZlHjilASOY3vyK9UECokM9iscL4 2MyOyWdEJVhuytAKJ5/aaBD/j4bmH/a81WSt0fcrLlLWxPNCkydjhG7fAg9dc0gmTYnP OjUM9EweVAVO3jYm5ZheNr4dqh3/v4FWSy5R6os5MnTzJXHyl1Jx2fOvGUadCvmzwJ2y Z1lQQTMVpYrie7J1ZtgbR7GRmD6RzCQRKCLQdgZOPzTrHagfvN+wL2VVlkSRigHVIxYr SJSw== 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=Wg1FunL6jyj0B4tLM7JyuHaHQjdfFL1e8fU0rSTCcBw=; fh=BjzXAP6GraNxYnWO3wuJdQAr8RPPv6hbJOICTIj0D8A=; b=qBf0/Jurw0kft98qby2ot3yS5UueltjMCser8zZ4ba6QspvzaObsdHe45vREhZFBSw eRYpMsh+7L0OHg5aQb2Z+xI3PVeoUzbBkvN625OdLk5yPtDE+GsJH6MwP/IkGwjPeyXl X2TgwUu+SJBNxKPfzjIuyT7h8jwbYoWZ2CsqBj94d/ebsNWnYezjn8ll/WNcRAt0LybU z0YPCJT0XpPjQ02LLzQ1XP/h64K59gl4vMUldCB59Fvruus3/4buGOz1S7Yqb1TA7DX/ KIZQ4zduEg4ZJREwhxQ7Fc8csvG2t/Ml+HEtEZZs78OjoD/p/GL7jkkqhWlescm/4/xc RSEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yrhWbZkB; 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-108528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108528-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 l15-20020a05622a174f00b00430e61085cfsi3275586qtk.64.2024.03.20.00.14.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 00:14:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-108528-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=yrhWbZkB; 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-108528-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-108528-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 213431C224EE for ; Wed, 20 Mar 2024 07:14:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE45C22064; Wed, 20 Mar 2024 07:14:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yrhWbZkB" Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 C36891EB51 for ; Wed, 20 Mar 2024 07:14:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710918855; cv=none; b=AcWrn8g8mmbdXKaDEcrKmA3xBXVQSBsQBBiGGw+b6ojCRkUujZuo88oLNYE14IRVOimvoJIboMH4CSqv8GdGGGdBkJ1f87pwYVL6DPkoDWiSaRBv783YYtg6n2BjrAyVKBe9kAjghzQhTpK/mq9PDvtzG8tFBelwVkkx72dUTcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710918855; c=relaxed/simple; bh=xEmFnSxCQzrHscs+HCvIbi66aDmD5SivRCMts2FMl/U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G8HSG2TYNqt7WmUDjRAmaG00c/C9UPNGXEli4xp+CnbOS49UoWxAKpht2irviYUxKrtaD+xTFVL+JvPBwpfUl6cyI5Hzg7hG68+KY8QYZBEV4fpBt5qxjxo3LqMF1dlJznxGnAco3L0PSv9lBWN71UjJlfVr665BZWlsw+yYnNU= 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=yrhWbZkB; arc=none smtp.client-ip=209.85.218.48 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-ej1-f48.google.com with SMTP id a640c23a62f3a-a46f670a1a2so25844466b.2 for ; Wed, 20 Mar 2024 00:14:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710918852; x=1711523652; 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=Wg1FunL6jyj0B4tLM7JyuHaHQjdfFL1e8fU0rSTCcBw=; b=yrhWbZkBQqTMaLhJKaa4CFT/TA5v+2bVGpL7urxDUfNifgoOmYCZTADR/t5TAJfTxr YXpbkZlUd12qNWBDOY5fdD0lo9alIp9msixWqPxcM1f7BZBKN7hxySoEu+nMVT0zdinV X1hAdhQq77UiGEuFRpxTN5L0yOq4uLMCNi6GnP8i27uuJwF7Uz3vckrGLRVKI5suec/X gJJG8cqpmPx5d4aukqK1g1OOSP8ZBtTMkTZC0ucgjHrynL3FhvYwvJrN0uebwMGevOig Tq8VV3JxynjVZ5KdT8x+MKxe96NWeNkXBo+deB2gy61qlVU1JsDDzkREvOyWOpkFUPr/ OQ4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710918852; x=1711523652; 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=Wg1FunL6jyj0B4tLM7JyuHaHQjdfFL1e8fU0rSTCcBw=; b=gsl1G7RB2oL7bQwLJvciZT1YJzh3flUHi8enp7Z3eRH3D6xjDokFBl+YsmQgnZNfNP KJmDXgXP8X/kA33WOEmDxjWWdyR8KGvCtfGTs0wHmegZP4ufRZ//43FJDqnWZjgkw6R4 XU6gNSZp9P+eHWh9RICd/nxVba7tffkK9OfMEe1ZWMdlKrPXvsz45cRbiXQ/1bQfftoy ItommtOaY440ny37QB+BSDNsGAoHx3zy7uIUuAe5GK0pB4N3IA6bLDflDBt22pI/DAac oDTjGT03k8xWeazDTqpzcqKXWiWWLwqZtAsbMY02lG70F9GOGspauopfUOk4DMvlJa0G 21qw== X-Forwarded-Encrypted: i=1; AJvYcCVBl2tdhiZb5cRd/2aILe3kf51RcxMI1bhB4KUwP6OxeAD0E1deD6Eylvibdf+VWggjUokPk3YwWG5mkvmxobRlBGMqhYn0V9R45rPF X-Gm-Message-State: AOJu0YwdAlqxDvK38Le4JV/J0uUkTWfopt898spBuP8VJddA7VkvUw0i maC5rGmRxws4pbSM5ZmSOfqUin3mtBK3avtg52y3jUSwOuY0uWKj0I5/5HhjDDM= X-Received: by 2002:a17:906:4a84:b0:a45:27bd:e1ff with SMTP id x4-20020a1709064a8400b00a4527bde1ffmr706874eju.6.1710918852030; Wed, 20 Mar 2024 00:14:12 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id hg25-20020a1709072cd900b00a469be48551sm5228432ejc.45.2024.03.20.00.14.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Mar 2024 00:14:11 -0700 (PDT) Message-ID: <5976952b-d5e8-4333-b769-d494b8195689@linaro.org> Date: Wed, 20 Mar 2024 08:14:08 +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 1/3] dt-bindings: power: reset: add gs101 poweroff bindings To: Alexey Klimov , sre@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, peter.griffin@linaro.org, robh+dt@kernel.org Cc: conor+dt@kernel.org, linux-samsung-soc@vger.kernel.org, semen.protsenko@linaro.org, linux-kernel@vger.kernel.org, klimov.linux@gmail.com, kernel-team@android.com, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, alim.akhtar@samsung.com, linux-arm-kernel@lists.infradead.org, elder@linaro.org References: <20240320020549.71810-1-alexey.klimov@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/G23PcowM1CwPurC8sAVsQb9KmwTGh7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+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240320020549.71810-1-alexey.klimov@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/03/2024 03:05, Alexey Klimov wrote: > Signed-off-by: Alexey Klimov Missing commit msg. A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > --- > .../power/reset/google,gs101-poweroff.yaml | 54 +++++++++++++++++++ > 1 file changed, 54 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml > > diff --git a/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml > new file mode 100644 > index 000000000000..d704bf28294a > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/reset/google,gs101-poweroff.yaml > @@ -0,0 +1,54 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/reset/google,gs101-poweroff.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Google GS101 poweroff driver Bindings are not for drivers, but hardware. > + > +maintainers: > + - Alexey Klimov > + > +description: |+ > + This is a Google Tensor gs101 poweroff driver using custom regmap Bindings are not for drivers, but hardware. > + to map the poweroff register. The poweroff itself is performed with > + a write to the poweroff register from a privileged mode. Since generic > + syscon does not support this, the specific one is required. > + The write to the poweroff register is defined by the register map pointed > + by syscon reference plus the offset with the value and mask defined > + in the poweroff node. > + Default will be little endian mode, 32 bit access only. > + > +properties: > + compatible: > + const: google,gs101-poweroff > + > + mask: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Update only the register bits defined by the mask (32 bit). > + > + offset: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Offset in the register map for the poweroff register (in bytes). > + > + samsung,syscon-phandle: > + $ref: /schemas/types.yaml#/definitions/phandle This does not look right. The poweroff handling is within PMU, not somewhere else. Don't use syscons as a replacement of regular MMIO addresses. Best regards, Krzysztof