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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C1355CD11C2 for ; Fri, 5 Apr 2024 06:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=u8x4H9E0jVqBs/LnmqeWQ0ztbg7tuDpViUwN5tjBCOs=; b=Kb1rx5bqMQZN5o u7Euisrckl+bd8M0HbkgZmCDi/GUG2JRQ5/iCDRt00bUZm2C08hL5OwBU8a46/85iWo0g7wknvKWm OQCC/UVT4A4F2carC1tB/LPFbrcfGgVgTJfFWxMGDw7aVbd7BsufXOxJNhvBZNz/ygHvd0mGlseSj 5sFmg3et4k9kzl9JhyuZgTKSCOCkw8d6WkySpmmYf9iHGn8DRdXMp17tifjcks5MC0r7xTISQNeAs VWoUf9Xe3OaUz5jMiTyObJm0Xrn03NifmtfcD0SLsRxJnq94gWqFp89LynXU9tzwa5R9vIuSdCFSV 2cJWtiGEW9x105Wvt86A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsdCB-00000005UKt-32ga; Fri, 05 Apr 2024 06:37:03 +0000 Received: from mail11.truemail.it ([2001:4b7e:0:8::81]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rsdC7-00000005UHW-2N3l for linux-arm-kernel@lists.infradead.org; Fri, 05 Apr 2024 06:37:02 +0000 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> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240404161914.1655305-1-Frank.Li@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240404_233700_606372_D55E1E73 X-CRM114-Status: GOOD ( 14.99 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel