Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5919768rwb; Tue, 1 Aug 2023 09:37:30 -0700 (PDT) X-Google-Smtp-Source: APBJJlEJk42XMmZtdV1G/+s850Qrfm3cQ8PE9001xN/KfCCev0L3Pga2DqvXjMnUOQjO2QPQ++bk X-Received: by 2002:a17:902:b605:b0:1b8:b382:f6c6 with SMTP id b5-20020a170902b60500b001b8b382f6c6mr11816034pls.9.1690907849915; Tue, 01 Aug 2023 09:37:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690907849; cv=none; d=google.com; s=arc-20160816; b=ExEZep0/wG+Bor2F5Xgttl7H6ktlW1Aslq9T4iLMvmEIIOPorwSEr2HnrfOUDbzKhe XmB3efvFF+QkveSWIaIpCDjlnvqTrRqe+W7tQTZja89VxsiFhJkjXJYz9MqgetbwT9q8 Mlh08CczT+rfSgqXkR4nmnk+zM92/UfQMXSg7W4uU1EafSO8owcZgMtXxAjyn54dVxZc sihP/7yZ1dZohsTqp/8+2mQee+nPxPv0hr5w0Yp3b8Je4srGuxyM0VSCUofi3dVLqxpB 3ZXTd+OjWOmTNWHYbyuB45BWzCt1XGwPPE8bUSIJZcmw9IDYOlIL4BIDJzSbqEixVlgv Q5GQ== 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=X5OCYPVDJ9ndvQjFboXDj/HaQb15mZXveKVu18NuLBw=; fh=xG6PxYPEjXk6diyfWmrBrDPA2KvzGrHTN0J4I281VqA=; b=a2RaOw3mdEDPmJt8NUB9jdGsZXb3juAkKF3qCikJOa14MNhFfRw5ZU3hkIpSObYG+Y 2AZFUd5R1FlbD/jEp/IVxw/XGtIxmPMU+bsBKrd9iPPNSef/YyE75i9LzjpdV8uQC1LD dXnaOhirSHsjlmcs81AVTmGfFNgdlkfbYbXWi3XH0fyZ4Zv1iExtooPuFqbnKzmVS5Lg i9Lj1x2GMm1bVn477d1vBO4GoAN0zBmEA2/0/Ba9AKlp4QBXDkvuMrIpLZLPVIbZUuTZ CV61EtzvJm0m3A/iL2tNg/DYL6FrQ7XEyOua6xUow3V4BTwGNb26VmEaUcwYjehIRh6z OkWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KBmNRYAA; 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 n6-20020a170902e54600b001ae40e07fb0si9686502plf.216.2023.08.01.09.37.14; Tue, 01 Aug 2023 09:37:29 -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=KBmNRYAA; 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 S232136AbjHAPyb (ORCPT + 99 others); Tue, 1 Aug 2023 11:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36844 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234314AbjHAPy3 (ORCPT ); Tue, 1 Aug 2023 11:54:29 -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 B35FC1B2; Tue, 1 Aug 2023 08:54:27 -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 490A261602; Tue, 1 Aug 2023 15:54:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1709EC433C8; Tue, 1 Aug 2023 15:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690905266; bh=YTzEex3MrsIyDif+LvWblgzD2IiqUMw1PvPWVyIP5XE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KBmNRYAAgpUp0cM58UfU95iiVTOQTs7Xj/HMrsf/cDa0yeS14/nG5xZv2R5sLBr9K UwyZxNK/6t7zYIBcfJBsAr1sHPXGNMCm69BMUj4pRErj4KXJSAeXgIZCeFzz6dq+5x g7543dFXFtsbW9RHas7xwHJFQgngDmeRj28rbd4W9g4q+/7FVR5j1PjEJCJm/uLYXr GZizlotK6PtA8FoH/e7zmGRbEdW8UpPDvyWVrdYzAK2kUl6ziNT8vpA8dWlPxATbrg rk7miwODq+6Z/Tc+SnrljDn91sN3h/VpbMsGm6mbgQC9JG2O717DHF/Q5KmZvjZbnq OW74DewioDhjg== Date: Tue, 1 Aug 2023 16:54:21 +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-varsity-chemo-09cc5e250ded@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> <20230801-whenever-imitation-b2759b212f6b@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0s9XzvurofOEngPf" Content-Disposition: inline In-Reply-To: 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 --0s9XzvurofOEngPf Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 01, 2023 at 04:34:30PM +0800, Yinbo Zhu wrote: >=20 >=20 > =E5=9C=A8 2023/8/1 =E4=B8=8B=E5=8D=883:23, Conor Dooley =E5=86=99=E9=81= =93: > > 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 off= set > > > > > 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. > >=20 > > Right. That's admittedly not what I expected to hear! Can you firstly > > explain this in the commit message, >=20 >=20 > I will add following explain in the commit message. Do you think it's > suitable? >=20 > Loongson GPIO controllers come in multiple variants that are compatible > except for certain register offset values. Add support in yaml file for > device properties allowing to specify them in DT. Sure, that would be helpful.=20 > > and secondly add a soc-specific > > compatible for the ls2k500 and only allow these properties on that SoC? > Sorry, I may not have described it clearly before, the ls2k500 was only > as a example, actually, Loongson GPIO controllers (2k500,2k1000,eg)come > in multiple variants that are compatible except for certain register > offset values. So above all offset device property was used to in all > loongson gpio controller. But it would be good to know why they are different. Do they each support some different features, or was there some other reason for making controllers like this? Thanks, Conor. --0s9XzvurofOEngPf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZMkqrQAKCRB4tDGHoIJi 0rYYAQCmEdeLBYxTd7t+7RjsCTt/+pN/qYxgXaG+jYXcxYXKbwD/XQzcWjqQVCtU +5Isrwhco0IFgjMo79+uFRBfy5RVSQc= =fUqV -----END PGP SIGNATURE----- --0s9XzvurofOEngPf--