Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp336901rdh; Mon, 18 Dec 2023 23:40:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IEyvY6Phk7gSAB87qALFGsEWl85wPoyTHFw0dCEtaYo4ePbtgJqZpmlpB4BGEVn3SDD0r0b X-Received: by 2002:a17:906:282:b0:a23:5530:f340 with SMTP id 2-20020a170906028200b00a235530f340mr605283ejf.52.1702971638195; Mon, 18 Dec 2023 23:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702971638; cv=none; d=google.com; s=arc-20160816; b=zGbmqHCrkwldS2I+cHpOZxcm290qjmo3kOc4Uhwnfw4DC3AoWXQyBEWsuyAaVj8fqY sNH7Mt6jgnVbvpXiiUTI18YweIImpAdau0p/d9JJycHuJdbV62UY8LS/xc9J89rrf5N8 ppcJYcdlt5a9Gt3MbGq3lMReZxmhhF7hxTvQzPK2Pg72i0XDiF/aKIOz/j7UuQv5jB02 6blCEYVUR6sju/x6jYaPlLRD+VmMM7WeShrp1Jg0Sb76D8BfIBVhSOwU9AhI9ly1Up0U zWrczlR06Z3Pyl1tgLbJ5zewDhrj9MvrkcW2RSZsclxUP87V2wLaz4P9gsZRn9Yct+k8 F0XA== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=UlFPWwZAspV5NaIaNj4ycQ59oICMhP/Gq68b8xEeGAc=; fh=Tx0wxufx7AE+Qb5Z0K8bS2ejO/XkVzOuRLsiMkjxI8s=; b=QpZTMqyE+p8Jp8MUAHj/ymP2WarOjw1QeUB+JtaA2RxqfZ8GLVkuHwUdi7PEpzC+m0 MMVyCuBJOUe7e2Pn0+AfbJhqvlf36eraSsnPtvrJWn+YPgMw2XJOIASXsBcbE3G0TVn6 rtaEpwNsgWWU0NoYZhhBOOX7NNw+11wdxZvZHROciE70AoRgYTD5EGQJJn/+PrznKmf0 nldSXv3KZI999kQtxP1oZgPFY2pbu/mOkVnKadM4BWHs2cXcEgBnxa+gjh8pt5ZMRC57 ANC4PDJhWgarEKSjLl2CYaPJEYvpN00gArrH3Soi7UQ1fFlT8euB/JWqYyRdy/bv2/1X hUdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8eaZDKi; spf=pass (google.com: domain of linux-kernel+bounces-4816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4816-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id gu2-20020a170906f28200b00a193d8f5147si10248259ejb.67.2023.12.18.23.40.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 23:40:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g8eaZDKi; spf=pass (google.com: domain of linux-kernel+bounces-4816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4816-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 am.mirrors.kernel.org (Postfix) with ESMTPS id C0A2A1F2238F for ; Tue, 19 Dec 2023 07:40:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B2AFBC2C2; Tue, 19 Dec 2023 07:40:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="g8eaZDKi" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (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 2C30CC158 for ; Tue, 19 Dec 2023 07:40:27 +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-ej1-f53.google.com with SMTP id a640c23a62f3a-a2358a75b69so406490666b.1 for ; Mon, 18 Dec 2023 23:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702971626; x=1703576426; 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=UlFPWwZAspV5NaIaNj4ycQ59oICMhP/Gq68b8xEeGAc=; b=g8eaZDKiTS43N0nXpRKcCpIdgqhvKo/kDPj7VUTUEfxYg2b2hYVv0wWEZ4xV9CTLjc 4r49JqzjAM+SFqWXi+7YOOhuNq+0oXhooZ1QmmnU9Gf4vocKma2ZwPRB+t4uF8xhVDjl pe+5AjbmGCZ3HcWahEQ7HlrnKIaRE4Poeo7D0lMvucZ7RiPCYpJPI79st91lpDvH8o3M iOCju4J/e6Wwu6kzItZwr8k2iXeLeMwVIj+WGmAZOQ0mY2DJzsBKDMs2HDZ/p83rN+yT 88bxbg2GHqMJgdac4dNiu23Ebd/eFIGr3d6Mjl7OGaC4jiIKDQQaYV6VhW3LiilRXXJx nXXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702971626; x=1703576426; 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=UlFPWwZAspV5NaIaNj4ycQ59oICMhP/Gq68b8xEeGAc=; b=oBwdWQwL5zcRVYn9HenxRUs0cHopBvn+/osNF97WOn4YfN3bmP7PK5KS3GmbTF9OrZ a7EUHtBwctmUZpqpeF9RvI49kyuIktaGyWPeBd7lDZQijWmhKH/8a3Q/68OdC3yr8+lP 6qZauqxeWjj4f3UkaXBvt0/th74OZE0BHzLzc0eGuybQLtDXDcMbqfKdLTK7YEBoMD1z 8dRv/j9US6ohrSK0/aQSU0f4fFvWGj7RFIWi9qhhMsXOzHLiVq/uwplfRZgXKV5YrZWk aoljxoDpq/KPeVzv212jvMXjFbNdfU2+4d5sGEBbqBEfCtwOnxtDQP92zAWN4gIajqRn yHvg== X-Gm-Message-State: AOJu0YwT4S2JGokS8txm4mO9EpgrljF78GEZwWkegGqrzmtKqLuhfRr9 fU6vljiMXdrf8MMO2r/ta1ZT4Q== X-Received: by 2002:a17:906:2087:b0:a23:6249:ee99 with SMTP id 7-20020a170906208700b00a236249ee99mr575088ejq.11.1702971626310; Mon, 18 Dec 2023 23:40:26 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id vi7-20020a170907d40700b00a1dc7e789fbsm14935769ejc.21.2023.12.18.23.40.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 23:40:25 -0800 (PST) Message-ID: Date: Tue, 19 Dec 2023 08:40:23 +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/4] dt-bindings: reset: mobileye,eyeq5-reset: add bindings Content-Language: en-US To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Vladimir Kondratiev , Gregory CLEMENT , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk References: <20231218-mbly-reset-v1-0-b4688b916213@bootlin.com> <20231218-mbly-reset-v1-1-b4688b916213@bootlin.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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY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AO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231218-mbly-reset-v1-1-b4688b916213@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 18/12/2023 18:16, Théo Lebrun wrote: > Add DT-Schema bindings for the EyeQ5 reset controller. > > Signed-off-by: Théo Lebrun > --- > .../bindings/reset/mobileye,eyeq5-reset.yaml | 69 +++++++++++++++++++ > MAINTAINERS | 2 + > include/dt-bindings/reset/mobileye,eyeq5-reset.h | 80 ++++++++++++++++++++++ > 3 files changed, 151 insertions(+) > > diff --git a/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml b/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml > new file mode 100644 > index 000000000000..cab6a75ba59d > --- /dev/null > +++ b/Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml > @@ -0,0 +1,69 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/reset/mobileye,eyeq5-reset.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mobileye EyeQ5 reset controller > + > +description: > + The EyeQ5 reset driver handles three reset domains. It is custom to this > + platform, its registers live in a shared region called OLB. > + > +maintainers: > + - Grégory Clement > + - Théo Lebrun > + - Vladimir Kondratiev > + > +properties: > + $nodename: > + pattern: "^reset-controller$" > + description: > + We have no unique address, we rely on OLB. NAK, third time. > + > + compatible: > + const: mobileye,eyeq5-reset > + > + "#reset-cells": > + const: 2 > + description: > + The first cell is the domain (0 to 2 inclusive) and the second one is the > + reset index inside that domain. > + > + mobileye,olb: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + A phandle to the OLB syscon. This is a fallback to using the parent as > + syscon node. No, the same rationale as before. > + > +required: > + - compatible > + - "#reset-cells" > + > +additionalProperties: false > + > +examples: > + - | > + olb@e00000 { > + compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; No, the same rationale as before. > + reg = <0xe00000 0x400>; > + reg-io-width = <4>; > + > + reset-controller { > + compatible = "mobileye,eyeq5-reset"; > + #reset-cells = <2>; > + }; > + }; > + > + - | > + olb: olb@e00000 { > + compatible = "mobileye,eyeq5-olb", "syscon", "simple-mfd"; No, the same rationale as before. The hardware is either A or B, not both. > + reg = <0xe00000 0x400>; > + reg-io-width = <4>; > + }; > + > + reset-controller { > + compatible = "mobileye,eyeq5-reset"; > + #reset-cells = <2>; > + mobileye,olb = <&olb>; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 4a7bd6b40d74..9096a940b425 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14553,9 +14553,11 @@ M: Théo Lebrun > L: linux-mips@vger.kernel.org > S: Maintained > F: Documentation/devicetree/bindings/mips/mobileye.yaml > +F: Documentation/devicetree/bindings/reset/mobileye,eyeq5-reset.yaml > F: arch/mips/boot/dts/mobileye/ > F: arch/mips/configs/generic/board-eyeq5.config > F: arch/mips/generic/board-epm5.its.S > +F: include/dt-bindings/reset/mobileye,eyeq5-reset.h > F: include/dt-bindings/soc/mobileye,eyeq5.h > > MODULE SUPPORT > diff --git a/include/dt-bindings/reset/mobileye,eyeq5-reset.h b/include/dt-bindings/reset/mobileye,eyeq5-reset.h > new file mode 100644 > index 000000000000..ce59fe5409ac > --- /dev/null > +++ b/include/dt-bindings/reset/mobileye,eyeq5-reset.h > @@ -0,0 +1,80 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > +/* > + * Copyright (C) 2023 Mobileye Vision Technologies Ltd. > + */ > + > +#ifndef _DT_BINDINGS_RESET_MOBILEYE_EYEQ5_RESET_H > +#define _DT_BINDINGS_RESET_MOBILEYE_EYEQ5_RESET_H > + > +/* Domain 0 */ > + > +/* 0..2 are reserved */ No, they are not. IDs cannot be reserved. IDs start from 0 and are incremented by 1. Reserving an ID contradicts to entire point of that ID, so either drop entire file or make this proper IDs. > +#define EQ5R_D0_CAN0 3 > +#define EQ5R_D0_CAN1 4 > +#define EQ5R_D0_CAN2 5 > +#define EQ5R_D0_SPI0 6 > +#define EQ5R_D0_SPI1 7 > +#define EQ5R_D0_SPI2 8 > +#define EQ5R_D0_SPI3 9 ... > + > +#define EQ5R_D2_MULTIPHY_SWRST_DIS 12 > +#define EQ5R_D2_MULTIPHY_APB_RST_DIS 13 > +/* 14 is refclk select, ie not a reset */ > +#define EQ5R_D2_PCIE0_LINK_MGMT_RST 15 > +#define EQ5R_D2_PCIE1_LINK_MGMT_RST 16 > +#define EQ5R_D2_PCIE0_LINK_PM_RST 17 > +#define EQ5R_D2_PCIE1_LINK_PM_RST 18 > +/* 19..31 are unknown */ No, they are not unknown. They are explicitly implemented by driver or these are not IDs. Best regards, Krzysztof