Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp509305lqp; Thu, 4 Apr 2024 23:37:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWwB1ZYIer4a+LAfZ9ZhHgPLtE9NaYued8Q57T+n1flrEzSA3GpmVDW1W+lzGqR+CngMJtugJQA+2WHcvmoMcwTAWueqvlLoXTfi2+i7A== X-Google-Smtp-Source: AGHT+IGbgIAVSlRdqJ+E1IP2y0NER70Hu8TbkwVEk3BwRpoePeHUQqPYYr7Ex0gVCXNXhg27qipu X-Received: by 2002:a05:6358:170d:b0:17e:53f9:6985 with SMTP id d13-20020a056358170d00b0017e53f96985mr756297rwj.14.1712299041402; Thu, 04 Apr 2024 23:37:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712299041; cv=pass; d=google.com; s=arc-20160816; b=lTl5j7XF7lg0ReZ/gf+vLIKC3AsdZw8m8m+ozdNvVlfgzN3PrVnPCMYQq5bVNiCQiV WGV4kDkDxEfCk7qu7RSAMaj4h6NdpZ6FMuStULY+DsA9XMsuoAsMWsCPeGL46qRYpa1H iu2ysTnacZqnfbm09sdt+WXYHWSpu09yBeRfQavjM2QLagjjgJxlgxXnP/wtP/kqF09y UnFa8UtquIDR0TFvGeEbNl0JKTmiG7IsZBVsXsJxt1Zt9o+3mG982ZK1mUdZNQKYGXYZ pKYRkm92bhKoCOGFYbfI4o2X+8B6c7PC6DzRYprP4Qbcln2eppjZ2ETXj4Opz4gcpOoK b8Rw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=UC3T4Qz0UwYKpOOwA7clFwRt2M9KxDI2AekTfv3g9ns=; fh=HaFg9lt+r+9HYSmwhr8mbSaFLhuE+GtA1/pVKfpe3J0=; b=qwAASbU+VItjZDBr/xnVAjmGj8EGzbEsNLDldMlgzV2hlph7vrNDA5k6pbQYmeF2vP eOGl5LiRdIZfkawE0HWy+EfNT5ZAMhEhlt7FmxvpR2gPmkcdDmqOmC0t/vjbL2nBN7jT /+jHR+NhGxn18hrdc7bU4vXSyauI9LzpCOsrt1lDG+jIysuSw5Xp9ThFtWhDClS3OyWK GEgUrEBhw8d0ET/U1IBg6GyoF5J50/V/uXKtBIO96T6iXJkgMPppE//me2wHAvIUzYte sT6iKzhp+s+unZNr+70q9a5Ao5Nxwxbm+qmQXTUixQJM7vogyftSWmWdH9j6ekkmfDl8 SvSg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=BlHXSaqW; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-132478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id u3-20020a631403000000b005f069faad54si810406pgl.615.2024.04.04.23.37.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:37:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=BlHXSaqW; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-132478-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132478-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0F84B285861 for ; Fri, 5 Apr 2024 06:37:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7B5582421A; Fri, 5 Apr 2024 06:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="BlHXSaqW" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 61204219FC; Fri, 5 Apr 2024 06:36:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299018; cv=none; b=l7Uv6qbWpN5R7zfxMDtpyfidao6DGNHp0wZM8BqeL+4VfwRydbD/CSz6eZm9a3u0pknr04yPHnXjr1NsbanRPvzYkui4zPDtXmHRJhDdgo61j0Ict0IbL14cHSealWiYhLbtl++pLCXT9/9AkFLVq0tEtnnvTbJ9oDM1mQFy4So= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299018; c=relaxed/simple; bh=MF9x0u+ja/f5NG5xBWtjLFDFjBEi4bSDETo9bvduU0o=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JzWTrPzxyOFreOj31gP9rxGeyqUQzAcbthNwsgNtTjhNiQbTv1s9lXrJKqf3+c8Lrzi/F0xGR2Z74hsgUQh2rdZThh5kc4cHQV7T/ZEzL8QKE1GArht0cUrcZmFHU/z8fQk5k2WqyB4oc6J3RrutLLYdvFd01HzFtSPGm0+pWSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=BlHXSaqW; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (93-49-2-63.ip317.fastwebnet.it [93.49.2.63]) by mail11.truemail.it (Postfix) with ESMTPA id 941101F930; Fri, 5 Apr 2024 08:36:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1712299013; bh=UC3T4Qz0UwYKpOOwA7clFwRt2M9KxDI2AekTfv3g9ns=; h=From:To:Subject; b=BlHXSaqWBfs60fQTTc+F47Eq2cXsItS6heieelM4AyiV1KlXwpzlS83Sk5Snl/rDZ 8QC2D93r4m01aixdZKcjUoR3mDHhMJtuBdwvt9mhkk2D0UCUZzAlVkkZkrqWGxQhOq uRhupWPIOjE5SUoDFPK+hg3MZaWPfYV709gjmGojrfjPrkDZRj4AvXofOHQ6/HgMjd f1v/2RiUHzoBQB24KudG4hmUNOM3+HS9AxaGwQKOYP7IGESXzuVK3+GwRh7klpnvmL DYmhv00V17Atlh2LNAjgvEuU68j8RMOHfNhYcFCuodm7DpVk8lKjiKtzWF4dmC1uK1 G6M47heIyNU4Q== Date: Fri, 5 Apr 2024 08:36:48 +0200 From: Francesco Dolcini To: Frank Li Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list Subject: Re: [PATCH 1/1] arm64: dts: imx8qxp-mek: add cm40_i2c, wm8960/wm8962 and sai[0,1,4,5] Message-ID: <20240405063648.GA4562@francesco-nb> References: <20240404161914.1655305-1-Frank.Li@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240404161914.1655305-1-Frank.Li@nxp.com> Hello Frank, On Thu, Apr 04, 2024 at 12:19:13PM -0400, Frank Li wrote: > imx8qxp-mek use two kind audio codec, wm8960 and wm8962. Using dummy gpio > i2c bus mux to connect both i2c devices. One will probe failure and other > will probe success when devices driver check whoami. So one dtb can cover > both board configuration. > > Signed-off-by: Frank Li > --- > arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 210 ++++++++++++++++++ > 1 file changed, 210 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > index 8360bb851ac03..adff87c7cf305 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > @@ -44,6 +51,105 @@ usb3_data_ss: endpoint { [...] > + /* > + * This dummy i2c mux. GPIO actually will not impact selection. At actual boards, only 1 > + * device connectted. I2C client driver will check ID when probe. Only matched ID's driver > + * probe successfully. > + */ > + i2cvmux: i2cmux { > + compatible = "i2c-mux-gpio"; > + #address-cells = <1>; > + #size-cells = <0>; > + mux-gpios = <&lsio_gpio5 0 GPIO_ACTIVE_HIGH>; /* use an unused gpio */ There is for sure people that have more experience and competency that me and it would be interesting to hear their feedback, but this looks like a bad hack, and you are just playing with the driver behavior to ensure that you get what you need. Francesco