Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp272327pxp; Fri, 11 Mar 2022 04:09:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+//ZKZ34hceZhCzJ8LAMfFW5NIIgBMm4941MrbCDkxDvj54uCyNzYlI420bGQDuoWueUa X-Received: by 2002:a17:903:240a:b0:14e:dad4:5ce4 with SMTP id e10-20020a170903240a00b0014edad45ce4mr10207771plo.125.1647000549914; Fri, 11 Mar 2022 04:09:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647000549; cv=none; d=google.com; s=arc-20160816; b=I20VqlEH95yNErDVYB7I30tZ17CW0M1VDCMLZGLH0/+x/ko6lXaASYT7676ugiHQIT u5Ri9WhriOymCFxP3TZk7sddYL/Wg/VnCM7QzPnHk7KPcvvecb/2WrVSBXNgazEC6dDC kfN0WCUfjKi6VTZits9VaMC2ePP/uWuyqJDJRvAKRtmXyBsp6LkwDYlJ8+sfsAMnTtws vZhF1tvHLEFRFYlN7npMnlg3Yq0Mql8OfZfhRF6oN0ynGpZkRfDauJCi8LMBY9HqDrLI Ar+nL2OGUO1eu4MrWOlULInLUJnxHvehsoOp1vMei9BylOpfEVDTGxm9B3gD3CWkxOP0 rqhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=CfWTQ9Km/5hHkadU1tbVWmLbyv68E1sgDwmk1Bhavnk=; b=xfQXbG+tMnGTRT/YIr7njVEWcJCN/ZMKz0Aj0uumyYRyTgU8Y9bVX1+OQhSaWqsvvy ZNenhuaJLvZ105J4PsQ5Kl1V/ob0rJ130/Bpb4kOnD49oA/ZJXgRUODxO8ucEfs15C8d 9IlAhu3drzDbMs734G92PC87rFfPwIP1z7SnOlkK3OPhRaiRKKXqkw1t1RJu9axVNf3A Cx3WWqSxELhRz+qZLqw5WyihO+uUuqrITb2Qr5gj7JcoglQFaya8X8s+uKx5rYXXFXyu N7DsKBrS53MNHC2VLYUQYgvHUkjrrZTj9n0AEAaO+SQ2TrJqIwZanPQInZNre2/RZQ7a xOMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=cY023Umq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=40vsb5FF; 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=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z7-20020a170902ccc700b0014ee47cbfdcsi8020863ple.483.2022.03.11.04.08.55; Fri, 11 Mar 2022 04:09:09 -0800 (PST) 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=@suse.de header.s=susede2_rsa header.b=cY023Umq; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=40vsb5FF; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242868AbiCJQoh (ORCPT + 99 others); Thu, 10 Mar 2022 11:44:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240945AbiCJQof (ORCPT ); Thu, 10 Mar 2022 11:44:35 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB7A6159297; Thu, 10 Mar 2022 08:43:34 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 756EC210EA; Thu, 10 Mar 2022 16:43:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646930613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CfWTQ9Km/5hHkadU1tbVWmLbyv68E1sgDwmk1Bhavnk=; b=cY023Umq11EXNUkC5SE5hjXY41RwZkt83+eaqLKqmnXxg0ftLk0J0ZavrurikmrXAomcg7 8wb8oDxdz8RbaraZ2Cl7aZraKysFLZjsyqfg6wkh6Hbmd69n0hu5TRd2U8gLA4GLt2o/lD kq4Rkrr0fsNUxRuSVkYZp+rEv+MeUbE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646930613; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=CfWTQ9Km/5hHkadU1tbVWmLbyv68E1sgDwmk1Bhavnk=; b=40vsb5FFN6mjH+8Tsu0PCDwegncjAafkCJvtI5xvB9fC2NysO8lpVViCRanlqrtyoEc4g1 KFqUAFGZBhifHkDA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 5BDC8A3B88; Thu, 10 Mar 2022 16:43:33 +0000 (UTC) Date: Thu, 10 Mar 2022 17:43:33 +0100 Message-ID: From: Takashi Iwai To: Cc: Liam Girdwood , Mark Brown , Rob Herring , Jaroslav Kysela , Takashi Iwai , , , , , Charles Keepax Subject: Re: [PATCH v3 01/16] sound: cs35l41: Unify hardware configuration In-Reply-To: References: <20220308171730.454587-1-tanureal@opensource.cirrus.com> <20220308171730.454587-2-tanureal@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 On Thu, 10 Mar 2022 17:40:45 +0100, wrote: > > On 3/10/22 1:44 PM, Takashi Iwai wrote: > > On Tue, 08 Mar 2022 18:17:15 +0100, > > Lucas Tanure wrote: > > > +enum cs35l41_gpio_func { > > > + CS35L41_HIZ, > > > + CS35L41_GPIO, > > > + CS35L41_INT_OPEN_DRAIN_GPIO2, > > > + CS35L41_MCLK, > > > + CS35L41_INT_PUSH_PULL_LOW_GPIO2, > > > + CS35L41_INT_PUSH_PULL_HIGH_GPIO2, > > > + CS35L41_PDM_CLK_GPIO2, > > > + CS35L41_PDM_DATA_GPIO2, > > > + CS35L41_MDSYNC_GPIO1 = 2, > > > + CS35L41_PDM_CLK_GPIO1 = 4, > > > + CS35L41_PDM_DATA_GPIO1 = 5, > > > }; > > > > So CS35L41_MDSYNC_GPIO1 is identical with *_DRAIN_GPIO2, i.e. it's an > > alias? > > > > > > thanks, > > > > Takashi > > > > The value 2 sets GPIO1 as MDSYNC pin and GPIO2 as IRQ pin (Open drain). > It could be the same label, like CS35L41_GPIO1_MDSYNC_GPIO2_IRQ, but I think separating them is better for understanding the code and organizing the code. Yes, separating GPIO1 and GPIO2 would be less confusing. thanks, Takashi