From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 13AC8C47092 for ; Wed, 2 Jun 2021 10:03:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EF20461396 for ; Wed, 2 Jun 2021 10:03:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231287AbhFBKFh (ORCPT ); Wed, 2 Jun 2021 06:05:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229978AbhFBKFg (ORCPT ); Wed, 2 Jun 2021 06:05:36 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA964C061756 for ; Wed, 2 Jun 2021 03:03:52 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id u5-20020a7bc0450000b02901480e40338bso998262wmc.1 for ; Wed, 02 Jun 2021 03:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=d17wiHgIe/PqHGM+WdLLvT4l48nPr/I6NgWvbRVuc3A=; b=O81t76BtG61kbE2sTAJZj3yHsiZVEcClJqTJgnt+rwp63FR09wlmiOdJHFETPmdyu3 tG9s5pycra00dAaQFdi505gh4FmqhRiDwLjjTGsB0+UCRyj7w34FEwCkqn0p4LB4AT4z wkUuaj3EvdNi58+4vIQBfTxy99nFBzZfAgOJSMMVAYqX01DCEXeBRGtCQ2IjgNKv+RCD JkqRIfgvtEmitstihr2JY/9i261kvDQR+QwA8EuIKVpGcJ+nZXxDPCtl56khKD1yHSWp N9Qy03c1SN/7oL9DMGewiDmxQqczyhRplnhmL3YmlT+9GBGytylzYjA6bu9IdtCi3/a7 tKRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=d17wiHgIe/PqHGM+WdLLvT4l48nPr/I6NgWvbRVuc3A=; b=YPRuo9MDBZDcZC7i8nBqs+tEwMoWn1ThuObdZgRAUe4bSrNicjgY5OfgL81n7Htlg5 qvhc3G8VoWG0o0rBnKr5NFNO38lZ8vpGh/Vg45N/b9F3r4+UfNNZMlKOwycLfnmdOOrI Me3+c+ZdV8eAfQ4IOnSH1CPYHp6E5PBLQKLvgwPgKw6c5NiSlU59W0HskWfMxNf5a6Zt kKU5JTQdZFLws68fka7e2PjYYOraowzZLkd/gQTKx9sldbdGeDI5DTlUhg/Zm5odCheB 9kWG3nZ31VOa7jKaU3wsI6Aphtfhfj9Tgx+W4jlf4JXQUIn+sLAbk8X16dZfy6hs91Tf mbbQ== X-Gm-Message-State: AOAM533D6Vs07au8MMHzMqTLhiqulWujB64v+YvhKW5lzN+fBEU/cDYz 6FWsaJwK/3o1expeyDutWcxiYA== X-Google-Smtp-Source: ABdhPJxrlQkPEbOekwHp0BZFary1w5p0fqEJ/xkktoICg00nU1vy7wHl9B+lFt1dDufs0KpRYvaXtA== X-Received: by 2002:a1c:a484:: with SMTP id n126mr4406798wme.34.1622628231264; Wed, 02 Jun 2021 03:03:51 -0700 (PDT) Received: from dell ([91.110.221.214]) by smtp.gmail.com with ESMTPSA id 30sm6488185wrl.37.2021.06.02.03.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 03:03:50 -0700 (PDT) Date: Wed, 2 Jun 2021 11:03:49 +0100 From: Lee Jones To: Robert Marko Cc: Michael Walle , Rob Herring , Linus Walleij , Bartosz Golaszewski , "open list:GPIO SUBSYSTEM" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Luka Perkov , jmp@epiphyte.org, Paul Menzel , Donald Buczek Subject: Re: [PATCH v2 3/4] dt-bindings: mfd: Add Delta TN48M CPLD drivers bindings Message-ID: <20210602100349.GG2173308@dell> References: <20210524230940.GA1350504@robh.at.kernel.org> <20210525074649.GC4005783@dell> <20210526075255.GG4005783@dell> <20210601081933.GU543307@dell> <50ced58164999f51a8c8b9c8dc01468e@walle.cc> <20210601135816.GG543307@dell> <20210601144826.GI543307@dell> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On Wed, 02 Jun 2021, Robert Marko wrote: > On Tue, Jun 1, 2021 at 4:48 PM Lee Jones wrote: > > > > On Tue, 01 Jun 2021, Lee Jones wrote: > > > > > On Tue, 01 Jun 2021, Michael Walle wrote: > > > > > > > Am 2021-06-01 10:19, schrieb Lee Jones: > > > > > Why do you require one single Regmap anyway? Are they register banks > > > > > not neatly separated on a per-function basis? > > > > > > > > AFAIK you can only have one I2C device driver per device, hence the > > > > simple-mfd-i2c. > > > > > > Sorry, can you provide more detail. > > > > I'd still like further explanation to be sure, but if you mean what I > > think you mean then, no, I don't think that's correct. > > > > The point of simple-mfd-i2c is to provide an I2C device offering > > multiple functions, but does so via a non-separated/linear register- > > set, with an entry point and an opportunity to register its interwoven > > bank of registers via Regmap. > > > > However, if you can get away with not registering your entire register > > set as a single Regmap chunk, then all the better. This will allow > > you to use the OF provided 'simple-mfd' compatible instead. > > > > Now, if you're talking about Regmap not supporting multiple > > registrations with only a single I2C address, this *may* very well be > > the case, but IIRC, I've spoken to Mark about this previously and he > > said the extension to make this possible would be trivial. > > This is my understanding, that you cannot have multiple regmap registrations > with on the same I2C address. > At least that is how it was the last time I tested. > That is why I went the MFD way. I've just clarified with Mark. There does not appear to be such a restriction. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog