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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E685C77B7F for ; Sat, 13 May 2023 18:12:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbjEMSMU (ORCPT ); Sat, 13 May 2023 14:12:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjEMSMS (ORCPT ); Sat, 13 May 2023 14:12:18 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BC5D359B for ; Sat, 13 May 2023 11:11:53 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-50b9ef67f35so19769197a12.2 for ; Sat, 13 May 2023 11:11:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684001507; x=1686593507; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SdRy69fIEsxIBR9NIDENofSkdxQv1jnZ0R7WuYlxvmg=; b=uRA31wofWeSjIerYwYpJ0R8GceY1Tf6x6XT8YNiu68gmIZJJAvPgDmVIXjRbVB0Hc0 mYq/+ZUC8sftbBqnZiGdXPFxdbENH1Ru15127YuHpCUtqGUypeYgBZkwB//KhZudYvHH Rq2iIDgbqkorgafQvM0ESYHSCtAflM1oF6p2CKgoC3X4TnKfY5x3s79FF3n/bR5CDJQA T2XWiEEcf695PB+xg4wljBgdFZ+ZqMC9zoFsxEf29VUMyBOq0dEJGLYT/NcY28MluaXj /SQNvnTVxMjaX55cLmXl7RaHKds225mp3A9vo0jNvHYPKpRPZLb/kBcFfcJ40sEVHZAT 38Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684001507; x=1686593507; h=content-transfer-encoding:in-reply-to: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=SdRy69fIEsxIBR9NIDENofSkdxQv1jnZ0R7WuYlxvmg=; b=U69Rrc7+FuxH2Ytx4I6Sy7Cd0ov4aBOW2wgY48JTnNyP08JEGTMjTOJge16dln7W+i r+yXoHiAFiQfnXW7CH/XOYdcbm7lkIHjwbs+ZctnJhckJ0rnN3tU8I5Dn0l0LZ4Q6vMg Q2yGPgFsBay2q8EpS7lUypBQmxPNO6ibc2C1qFHXEin0jEi9FvexGs2LXCloqZlnv6ox j0WrH8JCmBhW0iEoRl0wNbJvMviv4mmrLD+YECLshI9z0j5e6R6nuWieS1TyfZa6LAjH n0g6CjdFVGsYmgvopzCc5Pv1H6SeokDJA546VeQjX2jjBIqrL1VeBc1eK7zOmOI0mcrD /Gtw== X-Gm-Message-State: AC+VfDyjKLrKe9ivobR6Kqe8L/8BU8UOHVIYhrVuc/g8Wv/x+o/HfY27 eK4g8718shOVwgJHUriyJelZZ/3G5t5M58JzQ/KQzA== X-Google-Smtp-Source: ACHHUZ4m7lCl8p2Q7EHaoUU/9iQg5m8GgeAPaGDj82d7+DhAw/jzqEtERboZRuZ59/7bEz4RKl+kkg== X-Received: by 2002:a17:907:7f94:b0:969:e9ec:9a0 with SMTP id qk20-20020a1709077f9400b00969e9ec09a0mr20377665ejc.77.1684000807359; Sat, 13 May 2023 11:00:07 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:ba68:e5c9:694e:c6e4? ([2a02:810d:15c0:828:ba68:e5c9:694e:c6e4]) by smtp.gmail.com with ESMTPSA id u24-20020a056402111800b0050bc4eb9846sm5105168edv.1.2023.05.13.11.00.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 May 2023 11:00:06 -0700 (PDT) Message-ID: <633b305e-a311-3334-3d4e-30d5d09ebb6a@linaro.org> Date: Sat, 13 May 2023 20:00:05 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 08/10] pinctrl: cs42l43: Add support for the cs42l43 Content-Language: en-US To: Charles Keepax Cc: broonie@kernel.org, lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, tglx@linutronix.de, maz@kernel.org, linus.walleij@linaro.org, vkoul@kernel.org, lgirdwood@gmail.com, yung-chuan.liao@linux.intel.com, sanyog.r.kale@intel.com, pierre-louis.bossart@linux.intel.com, alsa-devel@alsa-project.org, patches@opensource.cirrus.com, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230512122838.243002-1-ckeepax@opensource.cirrus.com> <20230512122838.243002-9-ckeepax@opensource.cirrus.com> <9591999e-9d7f-2a4a-29df-d9c42dfa736b@linaro.org> <20230512155426.GJ68926@ediswmail.ad.cirrus.com> From: Krzysztof Kozlowski In-Reply-To: <20230512155426.GJ68926@ediswmail.ad.cirrus.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org On 12/05/2023 17:54, Charles Keepax wrote: > On Fri, May 12, 2023 at 05:30:37PM +0200, Krzysztof Kozlowski wrote: >> On 12/05/2023 14:28, Charles Keepax wrote: >>> + priv->gpio_chip.fwnode = dev_fwnode(cs42l43->dev); What's also a bit confusing is that gpio_chip is the parent's node, but pinctrl is not... >>> + >>> + if (is_of_node(dev_fwnode(cs42l43->dev))) { >>> + device_set_node(priv->dev, >>> + fwnode_get_named_child_node(dev_fwnode(cs42l43->dev), >>> + "pinctrl")); >> >> That's something unusual. It seems you want to bind to a DT node because >> you miss compatible in DT node? >> > > Kinda, I don't really want to add multiple compatibles for the > device. This is just a CODEC device, even in device tree it > seems a little weird to have multiple compatibles for a single > I2C device. On ACPI I am pretty sure it would be considered flat > out right wrong. The fact Linux supports the device using multiple > drivers is seemed to be a Linux implementation detail, rather than > describing the hardware. > I think if you do not have compatible, then the device node should be rather the parent (so the main node with compatible), not the child. Child is just a wrapper for pinctrls, but not something representing a device. Best regards, Krzysztof