Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp335680rdh; Mon, 18 Dec 2023 23:36:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlP8VtqyKTKREBIJGe96MwgV/BzJiXkm6DvN8kd2gd40F/JZPwuG4pjk1xl8VsBGEaF+se X-Received: by 2002:a17:906:5190:b0:a23:718d:2884 with SMTP id y16-20020a170906519000b00a23718d2884mr519077ejk.20.1702971403480; Mon, 18 Dec 2023 23:36:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702971403; cv=none; d=google.com; s=arc-20160816; b=ql/WcXOjUjAllgHebhPunxAuxgtk2pwy0HCu7BtFon5VnQPwYFpCXApC4Ru/oGW0/F lVgtsiUfZKnAPkGyB/H6Gy5+5s1KrY7oiaTnL0sI0YuQa5SbbVzUK4IN4xuGH+xy8fCb CHY4UEvelarnk1zXCqWvMHRa9cxsPkSl5bfeUClfabu60B/BJigC0+0Tu97z8Kt4DyiM Ieh6kTYFCNKv9XCaxWeS3tUASzBFlEca4IpXS/YMJj1quCatJpHzB+a+9sTdC+oYbfmO kxx4SnOOlU39yVeB4OlXOWiClGHC4P6w9nQxB+qp7t//yblBiFyI/1WY3PW7z/kZijdg jMfw== 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=S612VJc/VzazF980cJxPL5Db4rx/FlsOcAzDCo+GAw0=; fh=aK8Xna1QmUjBmmcbSxvAewRaEQfN8MDLp8oH3mmfy3I=; b=Ebaj/UVtGq+QrQFFQs/WSBo5sK3y0kHRx0RBJng/p3aBJPkqXAodaekwulmq9OwXlF 2Oy7pKyBr4LDJkxmaz109qbxG8ZZLbxTs+2+BkG/GTDGYxlNgVlc8S7nTGbQSOP8eQuh m5GSfEQajfJIdT7kCe2whT0VPXOK9V8kRKlJ4f0EjkU72hN8kyttPNJXuvkUAyc9b/Ka L5WzOM6wFDLnM3QbTPjJHAVCpne21MbEb7DXH4BqwfTImUAoIo7KIhD0D5z9XVij2Vsw WthcAJF9PlzBUcsDmh2IFW+xpz6hl6WPVVjKvRBuAVZohDvoma4ChtdrM7N7K8zHqq3M az2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mpcQgBu/"; spf=pass (google.com: domain of linux-kernel+bounces-4813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4813-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. [147.75.80.249]) by mx.google.com with ESMTPS id a21-20020a170906369500b00a1d7d2dc487si10705533ejc.798.2023.12.18.23.36.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 23:36:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="mpcQgBu/"; spf=pass (google.com: domain of linux-kernel+bounces-4813-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4813-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 0F5261F21DE7 for ; Tue, 19 Dec 2023 07:36:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6F28125B5; Tue, 19 Dec 2023 07:36:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mpcQgBu/" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.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 59427125B2 for ; Tue, 19 Dec 2023 07:36:34 +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-f53.google.com with SMTP id 4fb4d7f45d1cf-54ba86ae133so3705073a12.2 for ; Mon, 18 Dec 2023 23:36:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702971392; x=1703576192; 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=S612VJc/VzazF980cJxPL5Db4rx/FlsOcAzDCo+GAw0=; b=mpcQgBu/1JKZX7r+4nMt4QVUz3RrmQ6aRbrfnvlJ0qqkNd46v/fKDoEiN1a8xJ0jRW yPGo7rLzmFe9tmhe0h+CzFJ8SNJsdyKg+7lTx96xcubdRPZCC6RahDBhWEP7/anBJg0u Eu7S2xAl9ZRUkXeGzSqKkVHCTKgsTaYLqUoPFwqosAQEz0767i+f4yWqH5ZIajMXZcW/ xVN9x6U4Jwe4gNt7Xsp0uILBRNhrHblVyIw5oGlJQx8YsvWGYAXvWUUXnxImQh2Ubl8j 5NPElDoxfzIGiLDy8pcIE5+VW3CTroJ855HBocTgL8ESOHhyVN6dVCCE2XKHEidtt+rn MoZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702971392; x=1703576192; 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=S612VJc/VzazF980cJxPL5Db4rx/FlsOcAzDCo+GAw0=; b=Ly/vOF50DD589m7HHYKZJDeHFDfA0xjXQfZMiu1PCTm8JuBYzri/v79A6/HSZ6vzg1 z6isxnPxzj9wyaih1XicGMUwHgRLteUMVe1xs+AMO0OSI2Ti06cGC93gQPZmtS5MAyXS t1D0LHTjJmToyVmZlu5I2K7CLtGLK9cdZnifz8KVLbdWUYHC05/YKh3UINUmjjlmcqBx E+fpcks5MJifObDTPUjb+yk/6MrYsLykGqv/dtZqbuohjXR55lDv3wM95Wb5GdHsldYP +O1kDEhWVAg3iere1tYEDtubVlYZIbk56EkNdjnfwoW1UpCUUqzltGeGA/1AS4bG2yHu Aj+g== X-Gm-Message-State: AOJu0YxZ0IQH4t6LTn1ZVp+w+YAiQonZ9dpHrq1RQW6oZmHjotddC7WE 8rVrWrhMRj82VodjJR1KmjKG4A== X-Received: by 2002:a50:85cb:0:b0:54c:6d09:3e3d with SMTP id q11-20020a5085cb000000b0054c6d093e3dmr9589211edh.26.1702971392617; Mon, 18 Dec 2023 23:36:32 -0800 (PST) Received: from [192.168.1.20] ([178.197.218.27]) by smtp.gmail.com with ESMTPSA id x9-20020aa7cd89000000b0055289f60e3bsm4644445edv.79.2023.12.18.23.36.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Dec 2023 23:36:31 -0800 (PST) Message-ID: <6f9cb381-3ac7-4478-a763-e392180e9f36@linaro.org> Date: Tue, 19 Dec 2023 08:36:30 +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 2/4] pinctrl: eyeq5: add driver Content-Language: en-US To: =?UTF-8?Q?Th=C3=A9o_Lebrun?= , Vladimir Kondratiev , Gregory CLEMENT , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Thomas Petazzoni , Tawfik Bayouk References: <20231218-mbly-pinctrl-v1-0-2f7d366c2051@bootlin.com> <20231218-mbly-pinctrl-v1-2-2f7d366c2051@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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8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O5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20231218-mbly-pinctrl-v1-2-2f7d366c2051@bootlin.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 18/12/2023 18:19, Théo Lebrun wrote: > Add the Mobileye EyeQ5 pinctrl (pinconf & pinmux) controller driver. See > the header comment for more information on how it works. This driver is > specific to this platform; it might grow to add later support of other > platforms from Mobileye. > > Existing pins and their function live statically in the driver code > rather than in the devicetree, see compatible match data. > > Signed-off-by: Théo Lebrun > --- > MAINTAINERS | 1 + > drivers/pinctrl/Kconfig | 15 + > drivers/pinctrl/Makefile | 1 + > drivers/pinctrl/pinctrl-eyeq5.c | 593 ++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 610 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index d8d9583a5a06..5272b61d51d5 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14558,6 +14558,7 @@ 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: drivers/pinctrl/pinctrl-eyeq5.c > F: drivers/reset/reset-eyeq5.c > F: include/dt-bindings/reset/mobileye,eyeq5-reset.h > F: include/dt-bindings/soc/mobileye,eyeq5.h > diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > index 1de4e1edede0..e05c59116215 100644 > --- a/drivers/pinctrl/Kconfig > +++ b/drivers/pinctrl/Kconfig > @@ -195,6 +195,21 @@ config PINCTRL_EQUILIBRIUM > desired pin functions, configure GPIO attributes for LGM SoC pins. > Pin muxing and pin confi ... > + > +struct eq5p_match { > + unsigned int regs[EQ5P_REG_MAX]; > + const struct pinctrl_pin_desc *pins; > + unsigned int npins; > + const struct eq5p_function *funcs; > + unsigned int nfuncs; > +}; Do not declare types in the middle of the unit. This goes to the begining of the file. Best regards, Krzysztof