Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5387020rwb; Tue, 1 Aug 2023 01:26:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlHYr/rQZzq305NvOLJbdWi4rEv1sJf05ikRq8m/58HD+VKUkD66/FpCitOPQ04J1Ssc1+eX X-Received: by 2002:a05:620a:3183:b0:76c:8d5f:5954 with SMTP id bi3-20020a05620a318300b0076c8d5f5954mr13781643qkb.70.1690878385495; Tue, 01 Aug 2023 01:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690878385; cv=none; d=google.com; s=arc-20160816; b=OeXBxgqVf6SCHIE9Bs8E2iP+88vaeXBToLeiL4bn3es6GpYkgj+phewiVkl5FqIGvO /JUwFMwG0kSAXvjSa1AMgbT4caJ6zBAEn4A+eLpnkBQZlOy9gyFya9P/9ys3V17yPJk4 K9o+Kx5R8iD/9o5k9wj6Pokxor/tzCQNKhL17yX+gU9HBRRSE10lyKQ6m0XUVAzYCFCL ACGNkx15eZDAQriviuMv7UfMg3JC2XRKQOX/nj5mqn6JaFaD9/o9FDfGgs267DYNbxA+ IxgSUEa/aK4m62r8OkZudNZog+9jLup63bvmfrRagYsoF8oqwwghy0UFMyvgwkyLt+4v k1uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=my0GemI44LTxXtgO6hNse1vYl0rMa6dnpGwJk5pWK3M=; fh=xG6PxYPEjXk6diyfWmrBrDPA2KvzGrHTN0J4I281VqA=; b=nfF10p+Aa6KEKOak3CWRD2pOFoXY8wdG6NqAwJpABJP1/QZ6g6ICtnXvouqjP3+4R3 kbW5lvtTbVVO9w1/LYnUyceRnlCNvQEMJF8KeUUdod7VtwHY2sb3vPKXKzLHDFkVd5AN 2uH8S+9ckzZwceuXb9PD/5YZKONfr3URNQiI1C7ocq8EMWu28fuaLiuF0ExvXgKJdTRx YPh7HQB+cLRND9+a3BeXuoEktZU5W5pGRJmuFdGGzV9jU3eFh5x0Bq3GfucTUsDqrtdK 1gRgaUeukFyuJzmD7rFVqMsJADoGMUtRgthZvlloYlVSTyWPFNh3ReIQnGTRaVIaThIp cBRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XAKmBefz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w3-20020a63f503000000b0056419b1dc13si7009790pgh.511.2023.08.01.01.26.12; Tue, 01 Aug 2023 01:26:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=XAKmBefz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231401AbjHAHXb (ORCPT + 99 others); Tue, 1 Aug 2023 03:23:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjHAHXa (ORCPT ); Tue, 1 Aug 2023 03:23:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F84F1; Tue, 1 Aug 2023 00:23:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 280FC614A5; Tue, 1 Aug 2023 07:23:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBE78C433C7; Tue, 1 Aug 2023 07:23:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690874608; bh=my0GemI44LTxXtgO6hNse1vYl0rMa6dnpGwJk5pWK3M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XAKmBefzRiBaU9azLIvQfXwVYN3M4+4VWZ8D0e06hyy+vkOB1daCRKnFIiOZgD32J xM1WG8lXR/Xq40OF9Yg0fN9/hYo5aGBvZAyLiHmJDnfDxLeVnrMHhiDoF5waDZMEx/ U9Lg19eUALIQD7FF2esG5p7A42ROnBFYartmhnZuw9BIhxO9wvnpClSrBDZU+5AjIz YMaVinulR/WQc+fldcJl0guPA/VUsv6uXl75VHRZD745dysKPK+aFkHQEzDg45/4/A kY8hyjxb3vj5ebgY+lTlm9O6r/wFP62jAxLB5kR1i3yIbctJTmY9s+sWr9MmJpj8kC qnMzaaRFY4WqQ== Date: Tue, 1 Aug 2023 08:23:23 +0100 From: Conor Dooley To: Yinbo Zhu Cc: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jianmin Lv , wanghongliang@loongson.cn, Liu Peibao , loongson-kernel@lists.loongnix.cn Subject: Re: [PATCH v2 1/2] gpio: dt-bindings: add parsing of loongson gpio offset Message-ID: <20230801-whenever-imitation-b2759b212f6b@spud> References: <20230731091059.17323-1-zhuyinbo@loongson.cn> <20230731091059.17323-2-zhuyinbo@loongson.cn> <20230731-setback-such-61815ee3ef51@spud> <041bf8a6-8d91-c2ce-6752-aa7255f946c7@loongson.cn> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="iYDJfgIGL+4ugo0v" Content-Disposition: inline In-Reply-To: <041bf8a6-8d91-c2ce-6752-aa7255f946c7@loongson.cn> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --iYDJfgIGL+4ugo0v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 01, 2023 at 02:39:49PM +0800, Yinbo Zhu wrote: >=20 >=20 > =E5=9C=A8 2023/7/31 =E4=B8=8B=E5=8D=8811:55, Conor Dooley =E5=86=99=E9=81= =93: > > On Mon, Jul 31, 2023 at 05:10:58PM +0800, Yinbo Zhu wrote: > > > Add parsing GPIO configure, input, output, interrupt register offset > > > address and GPIO control mode support. > >=20 > > This reeks of insufficient use of SoC specific compatibles. Do GPIO > > controllers on the same SoC have different register offsets? >=20 >=20 > Yes, >=20 > > Where are the users for this? >=20 >=20 > For example, ls2k500 contains multiple GPIO chips with different > (configure, input, output, interrupt) offset addresses, but all others > are the same. Right. That's admittedly not what I expected to hear! Can you firstly explain this in the commit message, and secondly add a soc-specific compatible for the ls2k500 and only allow these properties on that SoC? Thanks, Conor. --iYDJfgIGL+4ugo0v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZMiy6wAKCRB4tDGHoIJi 0vYgAQDuI7jEA+b9JDDSxFjsDMHi6wYg8nQNezU0dgANbuO6hgEAz0hN9trOiPv5 d00AEqnFcc0GjrDjpqmiiZOz8i27tgk= =Zar6 -----END PGP SIGNATURE----- --iYDJfgIGL+4ugo0v--