Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp511750lqp; Thu, 4 Apr 2024 23:45:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV46kLIGhi5+jA+P6zGHVT8MVIfzz7r7nPZCICswANEBor13VeyBJQI+A7v56mSW2Dn2mQqHGidXbhrH0G+jiIN13GtzfrT88BVb1a73w== X-Google-Smtp-Source: AGHT+IFHUCLLeyLHlTFGcQVEhIYS6Sb5gwdJdmRpTV9vabFov91YH+Ay6cPK+wco5E/dNMj3ns1x X-Received: by 2002:a54:4884:0:b0:3c3:789c:478f with SMTP id r4-20020a544884000000b003c3789c478fmr552519oic.54.1712299549403; Thu, 04 Apr 2024 23:45:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712299549; cv=pass; d=google.com; s=arc-20160816; b=m8Zw44X89I5Ix2GCQc3TL66l6FZCQcZvxP1/UtGaWochY8t0cPFASz/Es8koiLP9te NMbRjx5XhztjXAupg1IREJ4+wv7uKUhF9v0EB4Ca4bvxbfB9LAe6AmBEzuiH3EF5Ju8l EmtIGPTrpFYanG3cFvGV3OWEPu+Xm114ZNJLOakquMf5yA2SWvKcesQFlgnSd5mPV2x0 rQmuhlAZXbL7YO4yGDDJxcJD2ifNYTg79MAv1vTmWCMlAAA4hnj0G3LZQ34yDA7Quef0 H2DwGH7zqTNQzB3ljsLUXLiMqWbj2NONQ5MrR6Iy1FX7fOSTgWk4nF/z9yBUbOFL4ItY GEpQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=IPnNLYgZW0WX2sa9dn47g+8KSkqH5iQC/NjMxuo4I6o=; fh=3fJ1JS5ZRNsLCpFFV17DLBr6rzQsugXo/ajTg9NpNZU=; b=sV1nZsLP5ir47uODCa2nkhKjj2BcR9nUQg789czE3uE+eFuwwO52EhDPy5+dM0o/nC UuDEDzOES3Sgf8jR5Neq4gLJq5+7ngq3RLgr2RSLego3s5jQJ69AD0OMvji94FrTfL3v CU5zMskI5YJYrIblKxogY17E4pSzrRcvCzBdg/PvWRn3RkhTW2PIpDJh8hIk/Oh9mpXi +Fo/lGRdfPjqNu59SRJT0GDSXqpcwpRpR0mQ3/oFAxxcjbAftkWFBc1NSfCt8LcAubIp vsbbWdBvBX0Wbgi6CGZDfeKlTw/jippGpSBQ0DPybk5zIUlS406Ih3jSpRerY3iLrvGp YO5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqziRq3p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-132483-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132483-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id j7-20020a056a00234700b006eb3c2bbe38si785763pfj.405.2024.04.04.23.45.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 23:45:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132483-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eqziRq3p; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-132483-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132483-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 3DC48B21783 for ; Fri, 5 Apr 2024 06:42:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9976B22F03; Fri, 5 Apr 2024 06:42:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eqziRq3p" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 CC34F18659 for ; Fri, 5 Apr 2024 06:42:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299325; cv=none; b=VWIcZ82xW0G+nnekpK9mdXwoTjPCCSTm0X55yvLv4O0/N/ZzAwRmUrquhBM9g6y+Dthm+RNodxKG498ycHyKozUn5paERitP7NmLV6Yq6JB4nKect44zCQ5Rscr+ysC8e5vTMqPyVVVPbyJZyQ7TVyyCuNbyljCuiSYxfeQKePM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712299325; c=relaxed/simple; bh=27ZDnDYcreKYKVkxxboqJiIR8plnoxwbZp6QI7ua1Tc=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=ppuRAxxJeArRXIvB3Cx8Om3QB0AvRAJ4Oc5bYuunCAQbT1eogqNb31urrZpQA+O10Q2OrT6C6WphsXj3oBb3xfkbzS97QtDwLLCxN7C3mIa7WDQdRkoYvbqKTBotnodWyHtWAkdgktJlMyj8jCUfFdF6o+pjxg8Xw1rkqe0BEaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eqziRq3p; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-56e346224bdso65057a12.1 for ; Thu, 04 Apr 2024 23:42:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712299322; x=1712904122; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=IPnNLYgZW0WX2sa9dn47g+8KSkqH5iQC/NjMxuo4I6o=; b=eqziRq3pdbyg1rQvGHS+HJrnmz/S+Skydj2MyHmkyuXZ3JprBuik2VghBs3OA20Tec CnOeZThvnX/P9pXzNqM7lWUmNJI20Yheo9ekkkCz3wacArP6JJ8orsewSeJSMmOpiKJn 2oiyjKfBlwdNZzwKqLO3erqrlE+gfD2/PL6feOI4iJb/OAA107lcArIlmKq9bjzu/z+n MnQNr7Ilt5Y9JW/0xUgMpiaipaOfZXaPodLvNcC8Iq3q7HFX4zQG6W4612SdeCaVfXWL 1LMSYrKzas7bmabsSMw87MfCupAqZ34aVc1PojKyhaHZ1G8Z6ZqihGNp3c6Da+ILDR1T xdJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712299322; x=1712904122; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IPnNLYgZW0WX2sa9dn47g+8KSkqH5iQC/NjMxuo4I6o=; b=iAMZmlYZ+CT3knE37zEAPn1+g8a8ghysR77SwDACa1mgubiAA1xeVL/BD1gkm2HfGd 580YfM4u56bUMA11eJNoU/rky5TtCdVc1prNSxvTUz9pfSUk4p9UUSe/fxmU/AoZwkxi ukCb1FkTIjOwVdk/tZBfTCE+uXXcCV9SqKXOUq2SeMCP2iOpIvQPwTfNUCN8Ad3cybFJ 4beozSe2E9djNOTaulf71c0+zre37wlhTOT9a0Js1SHWPzxQ8jIWjXFIP9z2wHGymarC DpbJ1Ws+nBhQioJLwx/06LGXCI0OBYdVsdshSRHlOChhPe3+BaXZl4qkitibkHuWMXMz StwQ== X-Forwarded-Encrypted: i=1; AJvYcCWPqriAgomlNURqi+olgN+J2A3QG5D6tjw5R7j9VIUMyB3F61nNKPxOduMDCCC9HyZyS2Kd8zPApCy2E9zcFYX4x82ifugT93VNNdex X-Gm-Message-State: AOJu0YxSDvENTLp3bGRjaat3gF01KN9suBG1yZc7+4AjIbehPhsEjics LcrNba2bfaGztBP0Qw8NZJ7nr1UM0oXZbe5vRm5XK6Ls3MFxCgfauyyBtHrFGaM= X-Received: by 2002:a17:906:459:b0:a45:ad29:725c with SMTP id e25-20020a170906045900b00a45ad29725cmr287471eja.62.1712299322096; Thu, 04 Apr 2024 23:42:02 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id h22-20020a1709067cd600b00a4739efd7cesm482395ejp.60.2024.04.04.23.42.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Apr 2024 23:42:01 -0700 (PDT) Message-ID: Date: Fri, 5 Apr 2024 08:41:59 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] arm64: dts: imx8qxp-mek: add cm40_i2c, wm8960/wm8962 and sai[0,1,4,5] To: Frank Li , 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 References: <20240404161914.1655305-1-Frank.Li@nxp.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0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zsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240404161914.1655305-1-Frank.Li@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/04/2024 18:19, 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. I don't understand it. Either you add real device or not. If one board has two devices, then why do you need to check for failures? Anyway, don't add fake stuff to DTS. NAK. > > 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 > @@ -30,6 +30,13 @@ reg_usdhc2_vmmc: usdhc2-vmmc { > enable-active-high; > }; > > + reg_audio: regulator-wm8962 { > + compatible = "regulator-fixed"; > + regulator-name = "3v3_aud"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > gpio-sbu-mux { > compatible = "nxp,cbdtu02043", "gpio-sbu-mux"; > pinctrl-names = "default"; > @@ -44,6 +51,105 @@ usb3_data_ss: endpoint { > }; > }; > }; > + > + sound-wm8960 { > + compatible = "fsl,imx-audio-wm8960"; > + model = "wm8960-audio"; > + audio-cpu = <&sai1>; > + audio-codec = <&wm8960>; > + hp-det-gpio = <&lsio_gpio1 0 GPIO_ACTIVE_HIGH>; > + audio-routing = > + "Headphone Jack", "HP_L", > + "Headphone Jack", "HP_R", > + "Ext Spk", "SPK_LP", > + "Ext Spk", "SPK_LN", > + "Ext Spk", "SPK_RP", > + "Ext Spk", "SPK_RN", > + "LINPUT1", "Mic Jack", > + "Mic Jack", "MICB"; > + }; > + > + sound-wm8962 { > + compatible = "fsl,imx-audio-wm8962"; > + model = "wm8962-audio"; > + audio-cpu = <&sai1>; > + audio-codec = <&wm8962>; > + hp-det-gpio = <&lsio_gpio1 0 GPIO_ACTIVE_HIGH>; > + audio-routing = > + "Headphone Jack", "HPOUTL", > + "Headphone Jack", "HPOUTR", > + "Ext Spk", "SPKOUTL", > + "Ext Spk", "SPKOUTR", > + "AMIC", "MICBIAS", > + "IN3R", "AMIC", > + "IN1R", "AMIC"; > + }; > + > + /* > + * 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. NAK Best regards, Krzysztof