Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp25245lqe; Fri, 5 Apr 2024 11:21:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXJNrK+AVX7gEwBbx5pp7RYltpoFPjmyL7eaZAHW1ocMSbvF2iza/emWpAiFqnpq+CS65WttW+ZGNJ/PlVbCIuB+2rz4B/OhOslOy9KbA== X-Google-Smtp-Source: AGHT+IH9hbjfsg9XdSmM9pPxJ5r0JRQb4VYCAcjbokWPKQ1CzdGN7JFvzERr6JUgawWBz3QX/UaL X-Received: by 2002:a50:9e84:0:b0:56c:24e6:ca7e with SMTP id a4-20020a509e84000000b0056c24e6ca7emr1594118edf.2.1712341292196; Fri, 05 Apr 2024 11:21:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712341292; cv=pass; d=google.com; s=arc-20160816; b=IWFLja4UzM/mw8BVoZoZDiUZ5h8URA/K5UEQTbtBDefLW3dSmp2hjGrKlyTGfkbzOP 50HcoAWLbxxvF5zoOThoZD2fm68ZY2x7Er5wU1kgpL9IRkI0aAXv3b+vHOBRzF9JgePr WXz/8ggwnWIkzrjG7poVJhnPCR8oBiXeHmHACBO2bOgU+NOl4EyXKX6ChVh7O+eVZTGI DtljcvCkC04En65V7XJSho0+5PjBY8HWqaj3oR86flPYVwUgMP7UPHpu0mchv3U6CdaC mEPASPRcqEcu5Bga7E0YurbEeLGxDbkkQPlXJOsMZfqj7vu7Tdl0a/oJTMp5+I0RUgEQ YxmQ== 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:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=Aoqb0ZvgJjDrARAuD79kB80qdeeEZC580nOfAjj2138=; fh=u9AOaOpctuWQI75qu7W+A1mD4SQNaTL/549uHUozbfc=; b=Y+I8//CeXRKLgqw5InP2HxD1Wr6+euQSIUEAftd6DUenem98bL0L58gBF9+nxNTywI Q4XXffrgZXn5zplpoBxJvWPJpzYpF8FtpyuVgyPJp2wKyITZIswj6+JqDn30Gi0LwnGc j5Zvj80Ebjtu32Lb3PGnDJqKm9rTHxadxWLlXceBTORiw3suPAA5r4/jIuz8ZvftQ4Ix 3GkB0FStHDNOZaOvwYIcISn3dlH5MBhnMKU2o9+LMFGauy5lZuZ/gvi/wm2rVIeJLnqP JE8ReBvw/IoxYsTUyVWxLbxb29Rf9XLzWCddLaZ+hozXwCeTUhYWnMgtuPzP7IL/NHXQ 3MiA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zZxinCEg; 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-133466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133466-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s28-20020a50d49c000000b0056e3fa0fbd1si94912edi.495.2024.04.05.11.21.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Apr 2024 11:21:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-133466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zZxinCEg; 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-133466-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-133466-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 am.mirrors.kernel.org (Postfix) with ESMTPS id B5DD41F244E7 for ; Fri, 5 Apr 2024 18:21:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 29247172769; Fri, 5 Apr 2024 18:21:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zZxinCEg" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.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 6F788171E5B for ; Fri, 5 Apr 2024 18:21:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341284; cv=none; b=lODUWOXl8DmbGGu6a07LBkRAtRpvej1VWC4up/AIbT1tlNAqvxEiV/WdqhT48iWLV/DzAF+nKK7j5a7iimYSEx8YWrIWXlgcjRDHKemMxDkdNAddzLHpLWVaEhd2/3LKpAus7HZQfsUZcAfH6YeZ6U6Deh3g+aa6f+UEPrKJqxE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712341284; c=relaxed/simple; bh=U1bhPfgZUUHhnsTYnxvS3Dlkc1fZX0KD2x/ZnQur3Fw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=fehse2qp8Pxc6CZSY8ecrLvWxzEFTyogVywEqXC0K74BtmM9rrWJF0znwKKJvKpdTMox6Qcqc9m3PhEb6ij0BG60lfLcsYCR7MIJ3kxSv1iqtlGmCxay/txxC9I1KE8E/630YozM8PnM9W4fXicEysAg1wn3aETUg+0u6i+8NrM= 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=zZxinCEg; arc=none smtp.client-ip=209.85.167.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-lf1-f43.google.com with SMTP id 2adb3069b0e04-516d15d72c3so2283578e87.1 for ; Fri, 05 Apr 2024 11:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712341280; x=1712946080; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=Aoqb0ZvgJjDrARAuD79kB80qdeeEZC580nOfAjj2138=; b=zZxinCEgkGh1Qe6zaAQWgtii794JMqCE6OMiFeUUJFInrhOzymqa4HeOwZPBvg+yPt NFeEpj2wQKFvfgxUkBRn3XbQAmbrmsFiaBlqPwjKRCIaFQGA0bhk74Bf0XiDD0BOlIB8 zvCj00eTlwJPnUHMTMbfXQyojua1/sMrQTdKoTywLzRcIVVgvX948m9wQCEXbxxC6ZW1 70V42Ms3P9h7sXxYDwI9J5/oWGiDM6iy151JmOEQ7qBrC1bg/ffSCFaV6BPe2Tn0lq1a VUnhSVQ2hOQAdrIoV9bg2kxfAK8SDOmwbF+LtYlS4zMUwU8L/di02UI4HrfC39zBiYQY mRtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712341280; x=1712946080; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Aoqb0ZvgJjDrARAuD79kB80qdeeEZC580nOfAjj2138=; b=piCpwJyFkEAj+kzqzpgylwCbiHSOLpdgW5LXAKSK1cCvAz1xYFGFTHrPVLXIPqKaV+ fXWhyVJkx3enNYVVddxrTjQpy5RhZRvtm1fXoMSCkkVXF6HAa8b9SRESdIC47yA03VTP BTWclYTq6G6Vbi2yWEpHsBOgckO8HzuG6PUpZW/YKYuw9TB6LZjqpnTHfBifM3Kcg59l a5r3X5vB1ltXtjlJ+Od6to/Xd1yG5MiVbi/htJYF9gcMcDw6CeJ5uxRuADRn1+VHkGdh /qBWAP4qh6u9pf3N7oP4G1YP6qhLVOAoAc/tzBK3DTbsvpxVrGTg6bRlbLcVvyhWJNKP SyRg== X-Forwarded-Encrypted: i=1; AJvYcCU/S0CKPoDRTcoJ91os0+SBiwshsfv98LwjekNcwnsBOJe1jdgRDJissjCzP/6J16B0A5S1pksc3E1zHnvYF4ZAkBsxqRPD0Vn81Fvs X-Gm-Message-State: AOJu0YzObSEXwEg79eNS/Vx9zz959Jaww3j5sbPvezjp/WJnVDAysqBl 3g9QQuGKgdmh8gRrY3P3X52BN1ql6NJEgADzOKeSvIYG8oAlhCJ7qeLofu6Sk7A= X-Received: by 2002:ac2:5f94:0:b0:515:a733:2e0e with SMTP id r20-20020ac25f94000000b00515a7332e0emr1625285lfe.25.1712341280466; Fri, 05 Apr 2024 11:21:20 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id ne6-20020a1709077b8600b00a4e5a6b57a2sm1094189ejc.163.2024.04.05.11.21.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 05 Apr 2024 11:21:19 -0700 (PDT) Message-ID: <938489b1-eb94-4f8a-8881-230951299f6a@linaro.org> Date: Fri, 5 Apr 2024 20:21:18 +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 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 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/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3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Z9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 05/04/2024 16:46, Frank Li wrote: > On Fri, Apr 05, 2024 at 08:41:59AM +0200, Krzysztof Kozlowski wrote: >> 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 can't resolve the problem. It should be common problem for long time > cycle boards. Some chipes will be out life cycle. such as some sensor. So > chips on boards have been replace by some pin to pin compatible sensor. For > example: > old boards: use sensor A with address 0x1a > new bench: use sensor B with address 0x1b. > > You can treat it as two kind boards, RevA or RevB. But most user want to > use one dtb to handle such small differences. For this case, it should be > simple. Just add a super set. > i2c > { > sensorA@1a > { > } > sensorB@1b > { > } > } > > It also depend on whoami check by i2c devices. Only A or B will probe. > > wm8960 and wm8962 are more complex example. wm8960 is out of life. But > wm8962 and wm8960 have the same i2c address. The current i2c frame can't > allow the same i2c address in one i2c bus. > > You are feel to NAK my method, but I hope you also provide constructive > solution to help resolve the problem. Yes, we resolved it long time ago. Your bootloader can (usually easily) detect revision of the board and load appropriate DTS or DTS+DTSO. Best regards, Krzysztof