Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1587658rdb; Tue, 20 Feb 2024 00:11:59 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXw/5lHBAblas0T80QXbRZumOdor4+maFX35v0MQ+JdqEXGQ/4aYlYnajf0k/dXsAsrpJEyRXVTFF4T1cOQFqbtJhWY9SAkMfAEEJd2Qg== X-Google-Smtp-Source: AGHT+IGaBWsKgRsAbTzPwZByvlYHrJL69f7FAP5CE0P86UKSf9Pl2JP5OYdE5QLFpWJDur0f5waI X-Received: by 2002:a17:906:ff52:b0:a3e:9c2e:40d5 with SMTP id zo18-20020a170906ff5200b00a3e9c2e40d5mr3032598ejb.5.1708416719369; Tue, 20 Feb 2024 00:11:59 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id by21-20020a170906a2d500b00a3eff360c86si342531ejb.116.2024.02.20.00.11.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 00:11:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72515-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=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=rCVgXgEu; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-72515-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72515-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 E9A9C1F21FEB for ; Tue, 20 Feb 2024 08:11:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 726B65C609; Tue, 20 Feb 2024 08:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rCVgXgEu" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 9F4C25C5EC for ; Tue, 20 Feb 2024 08:11:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416709; cv=none; b=rn6Ze15zxNTsXSEl4zRgdatB5eE2yP5qd2bRNNVLGOw/xwoP9JPcxW4lxGkNyi3rvyXimrWzkqutYzQ73zl/6fl00lpa90Y3ZZK3d8rnZE9DX7g2vyttLHmQwThKScC6KprjlN2R3i9i/JApGbaaBN9xuGixnNlGPebZJuioUjg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708416709; c=relaxed/simple; bh=erIWV0uxVgPjLomdxrnSJukZGJw6surdRjUVPUzsM/8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=o8XLzV0yUOxErSTFBKtTxQs3OrYlu1LT/P0MiFT1va0hF9Mv6GaZOwoPBNypyR01r1lJJ9068yRWYm5zGdhOigxqa/jVej1F0J9uU7KPGXaWo7qMgDDNxZkMidY8AnxJ/XnUkXrFCoze/0/0L46CDzIlbjZOW4AIp4ee+CMcfSY= 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=rCVgXgEu; arc=none smtp.client-ip=209.85.167.47 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-f47.google.com with SMTP id 2adb3069b0e04-512c2e8c6cfso527882e87.1 for ; Tue, 20 Feb 2024 00:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708416706; x=1709021506; 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=YYB1k4O8sSvflbPHK49SeRBVqldixAxJYgn6/wXS50k=; b=rCVgXgEulSC/gQGzcV3zP4FZOwg0VuRxPE7eMjJDcmkWZ3yLLFkP3IrsL/QQKwatRP hCyRIq8jCTROhzRq0XrOU8d7DaG/WTEl4vg0HDeAV84Pxn/UrofRJ1KR4kPZg6VjckYu dF3ai9M+S37y8rK3PZlnVBJDCFBrGS+awCaQtqCe71f3kgV8S4ecRzpMqMf68TJJPV7e WuYWsXbWcU9V4eGByHsmUC72PRkvGgbRghQvNvf8wZug11bVLFnr/i3owtAk7Xw+7hVW DZJG4SkY/vDszwnt4AjfHT3J8LohLcwx7LHepmzk3V6/3al1xep+qiMxDV4J0Zmc8xeC zVyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708416706; x=1709021506; 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=YYB1k4O8sSvflbPHK49SeRBVqldixAxJYgn6/wXS50k=; b=oZ8H1f1g2tUgXRkNP/WKsQfVC8X/u2WVrEraH0eD+K4Pcu7dIzUnZ5CFEWhJ+eFCWm M8ndDMnWP/9GZa0+r42eh32BJg93VSG2Y0Ku0u16EPNEZ/Gs/QI3lONfs8Smkp1KhDCA J18hC4Zin+ZIyPeuAnN3VMPZfAEnncWZP9HEW3bv8Zw8wtWF7WOvurM2LgnOWL45MRU8 VDXN9hnmB2YpTUl0WlWWAUriZUTi2VIIJ32uIFLATFYNWneLJZGzmPSqZJGMUo2OiOBP 2ua1pKdZOOs2BkRCoNrJDzE7gs5p4nHctduNVeX96tVXoLS/Af8GqBO25+FhaijF9OvT NlBQ== X-Forwarded-Encrypted: i=1; AJvYcCXX48U0i004t3Q8rjwr+iaDkdQnx4LglXZs91QFm7F9UE5QffGD5m0aSGSj4KrW2+wEHEIG8V2cHgPZeNwTqc6BWeIb3JI5BTuYTrcd X-Gm-Message-State: AOJu0Yz6HJBColuLuPb9yT46lRwMNBgflle96Vsb7Lt73bcxuMM7QNAy gfJbTkMkx2lRl0MN3cYkPWS6N/agkgsDnMEtoLOHH63BrtMnDkX/Z/WV6wEq98s= X-Received: by 2002:ac2:58ce:0:b0:512:b069:f93a with SMTP id u14-20020ac258ce000000b00512b069f93amr3129960lfo.40.1708416705767; Tue, 20 Feb 2024 00:11:45 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id g1-20020a056000118100b00337d5cd0d8asm12573872wrx.90.2024.02.20.00.11.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Feb 2024 00:11:45 -0800 (PST) Message-ID: <1a11cee2-2ef1-4ce0-8cc1-63c6cc97863f@linaro.org> Date: Tue, 20 Feb 2024 09:11:43 +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: [RFC PATCH v2 1/6] dt-bindings: pinctrl: starfive: Add JH8100 pinctrl Content-Language: en-US To: Alex Soo , Linus Walleij , Bartosz Golaszewski , Hal Feng , Ley Foon Tan , Jianlong Huang , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Drew Fustini Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20240220064246.467216-1-yuklin.soo@starfivetech.com> <20240220064246.467216-2-yuklin.soo@starfivetech.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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vcmc+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qhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240220064246.467216-2-yuklin.soo@starfivetech.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 20/02/2024 07:42, Alex Soo wrote: > Add documentation and header file for JH8100 pinctrl driver. > > Signed-off-by: Alex Soo > --- RFC? Why isn't this patch ready for review? As requested, I will provide only brief review, not full one. .. > + > +properties: > + compatible: > + oneOf: Drop > + - items: > + - const: starfive,jh8100-aon-pinctrl > + - const: syscon > + - const: simple-mfd > + > + reg: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + interrupt-controller: true > + > + gpio-controller: true > + > + '#gpio-cells': > + const: 2 > + > + gpio-ranges: > + maxItems: 1 > + > + wakeup-gpios: > + maxItems: 1 > + description: GPIO pin to be used for waking up the system from sleep mode. > + > + wakeup-source: > + maxItems: 1 > + description: to indicate pinctrl has wakeup capability. > + > +patternProperties: > + '-grp$': > + type: object > + additionalProperties: false > + patternProperties: > + '-pins$': > + type: object > + description: | > + A pinctrl node should contain at least one subnode representing the > + pinctrl groups available in the domain. Each subnode will list the > + pins it needs, and how they should be configured, with regard to > + muxer configuration, bias, input enable/disable, input schmitt > + trigger enable/disable, slew-rate and drive strength. > + allOf: > + - $ref: /schemas/pinctrl/pincfg-node.yaml > + - $ref: /schemas/pinctrl/pinmux-node.yaml > + additionalProperties: false NAK, nothing improved. ... > diff --git a/include/dt-bindings/pinctrl/starfive,jh8100-pinctrl.h b/include/dt-bindings/pinctrl/starfive,jh8100-pinctrl.h > new file mode 100644 > index 000000000000..055bac7eb2a6 > --- /dev/null > +++ b/include/dt-bindings/pinctrl/starfive,jh8100-pinctrl.h > @@ -0,0 +1,103 @@ > +/* SPDX-License-Identifier: GPL-2.0 OR MIT */ > +/* > + * Copyright (C) 2023-2024 StarFive Technology Co., Ltd. > + */ > + > +#ifndef __DT_BINDINGS_PINCTRL_STARFIVE_JH8100_H__ > +#define __DT_BINDINGS_PINCTRL_STARFIVE_JH8100_H__ > + > +/* sys_iomux_west pins */ > +#define PAD_GPIO0_W 0 > +#define PAD_GPIO1_W 1 NAK, read my comments. Best regards, Krzysztof