Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp157190lqr; Wed, 5 Jun 2024 01:56:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ+1HYvKhDqCmW7FybqPUsVfYiYLopeWtNfWdm/Hvuxxl/BeL7rtGgJhzPTt9F7ziToLZHO0LeX1KiBaK7upC28tl8nF0dW6olY4psQg== X-Google-Smtp-Source: AGHT+IHzMZu8jrhib0jbM1BDg5jQ1vT+VjZLDGD3/Ysq3PbXsTJZ0Rh7GgMoTs02Ge95Q4WqjuIP X-Received: by 2002:a05:6214:3205:b0:6af:bf43:fc2f with SMTP id 6a1803df08f44-6b02bf0d2d9mr19791836d6.11.1717577796864; Wed, 05 Jun 2024 01:56:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717577796; cv=pass; d=google.com; s=arc-20160816; b=ypgx96kvyatf1WMpEBWb9R0dicB2B5exSY+78YJLBr4k/ZkTduEY4mUmoz2b+35XPJ HwOFetTmqB1zR/L8N6FsAgPgZxc0jPvAKIU3kuCjYz725i7cpcvmCQxRbtgLdCAEjsla P4O4rw1kLiR/XvQhy8iwh33SJLhKlkilYvzpIrsoVueAaYvHtYHS731v2VDqYIM8aYAQ szYV+YfzFWMKhP8bp/+TmrQT9gSdvRZMVh4G1VUtN23Nzp38rCHi6DLXtFJByGtUDQ/K FGzWWaAe8re+G1JHtbj4pJMMqBNvRBWHHA1yuB21BR1fLIjp7paHA9hfGvhRE2+K7fm7 ADGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=xqEUikhtDVFjEcI485X9HiAEizf3mzMtkmWG+aaEE8A=; fh=91Frv4CDarF9Uleg1hWwIHMSXQ7RYIxparWWOTKPWow=; b=SQQ7BcILzb/kS+zQpJOBZpX8+/ECaNKP7bol2Xxqptm1Uw53vYmqjvieNOFVhXyJmc G6uotTHYGpn4+7L2N73IEKxvlEw66VL0iJl6SwOS2akZOqRTTrJ776ElrqvCIYs1LhOj tjhU+3ablynm+nGTbufnM78rZn1mVrEkfXMWIiCLvLWbSVFhS8jUGOmcs1kAxsjOXBGv v4OFCx+OqL8Wh8oF+CVIS3ZVx0I+xmPAPiHmdEEEKpfhLlFusqYmMItNT6TcgL/tNsCg iA396Nt9e0zKCCZZeGkXzC67EskIeyDt02IV9XW+xmVgUC2J48njs4UkALSNXQULvlp6 b6Qg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KFOgKVgL; 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-202045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202045-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ae4b42b621si129105816d6.447.2024.06.05.01.56.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:56:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KFOgKVgL; 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-202045-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202045-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 81A071C22010 for ; Wed, 5 Jun 2024 08:56:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D3D318FC84; Wed, 5 Jun 2024 08:56:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="KFOgKVgL" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 2C94E18F2C9 for ; Wed, 5 Jun 2024 08:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577768; cv=none; b=hGdvOKtISoWzdg1uHUc7xWVOCb/W8OA8DvScNbDrOwjJjNFUWKV8rr3ZlRtgDN91WvxB5Fp0a0Gz6+T/91uyEdWBFdwm1+9N8q7LScQ0laYVZfRQ+Qx7RBSs4xUVV49taE+M6ZObYgAnmFtv/H1v3aQ19ZJuy8d/S24g0gPMWiY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577768; c=relaxed/simple; bh=JimJ2WKWJoWSbde6de8NxEi7A9lLOi4dbNpKH7X4d1A=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=HDm+ByurRZD4RpOmDXmuKHmcaTrTFCjcRmwmE0iMPYriR9enuU8jlKgmILpAM1D4z/XyBMcGmR8Us24DAIVoCnGfUanYs9z6kTWNQ8RT3rxFe0zSKmdnwy+UVS5T1zckYcghwgU3X8Lopoj0zPRJJNLviMS2GFQi0D98S1JiGE8= 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=KFOgKVgL; arc=none smtp.client-ip=209.85.167.47 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-f47.google.com with SMTP id 2adb3069b0e04-52b93370ad0so5730183e87.2 for ; Wed, 05 Jun 2024 01:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1717577764; x=1718182564; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=xqEUikhtDVFjEcI485X9HiAEizf3mzMtkmWG+aaEE8A=; b=KFOgKVgLz8XG8akFwVHkk4id0JNVd/zwtbbHwVk5qjf1DzGzmGYGbCICkfxfmTbXfH 9pJR7IqaXWLu6Pu6V8QoOcFzF91oTrxMsCP+PZXMTXoi+WsLKzZijOE1BzEwpo+nWP0l F9gnrFopdsLXaTFb/vJxevR7EhaBbJb1d5fHBXDccxp+olRb3PxtZ1PYysocXpvi6FPX tLUkS0bqjYm3ZFXECpTJdPItcHIaw/gkA6IcBMyXnG1z3ouZv+uVzFFg0zomqbwfIpWc FRt3H4kIz0mmgXgihB9TSREAWTuiuzwnkzaXgzEm8/wd9ZzOp2FgJwNTyuELKyliDfLz jL0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717577764; x=1718182564; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xqEUikhtDVFjEcI485X9HiAEizf3mzMtkmWG+aaEE8A=; b=VKiLSPhl3tXJpjWOOEGoRghPbU2aBOb2mhfhIPuTuNm+su+MyAZA6zqksxZL+mBkz3 oL3Irp8aU9nxLYX+dysFlUKE6VWAQEczFJDXVjtuhlixInI95P5kZFYXBlMy7W3sa2ge SMuftElyZvAv/hLTjk3DqkzISmj+f6a5Df0FDWuvpSPeghYhJrD9DwlzQEqQ/GNOsBbX eBX0trWuyItb6q97snQ7IGtTA/9bvbR1yjgb/9T9ypVMuehNDxGyng38Wpmov4QSjRiF VnD0i2DGMmCVPGLquKDZKLVR+n5c4N1urdAW7/uWm53ANGxZFPeb1SCPzpWwlIn5/Oyu Ly3A== X-Forwarded-Encrypted: i=1; AJvYcCV3HaqZ/YZg2dtgMFZSox2u8Z2n1qbRi+zDwb8HtZW9TFskXa7xSyBxl7qcWo/yDt1Hn8WGG9cYq/m8FNI+nzAEG8WXyvEDh7bXEcFD X-Gm-Message-State: AOJu0Yw85reNtxPUHgXSXt7j+YXhIuQ5gwFC23klGhjaVSsFZD5gN4w6 ZM+JG/orSPE4fTtfDjRFqRQjkvO4z3i9LGWTrUx644pXUQYY75ZTrJ+TF14HQgk= X-Received: by 2002:ac2:4949:0:b0:52b:8417:fa94 with SMTP id 2adb3069b0e04-52bab4e6994mr1326729e87.33.1717577764439; Wed, 05 Jun 2024 01:56:04 -0700 (PDT) Received: from umbar.lan ([192.130.178.91]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52b84d3f55dsm1715321e87.72.2024.06.05.01.56.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:56:04 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 05 Jun 2024 11:55:57 +0300 Subject: [PATCH v2 2/2] arm64: dts: qcom: qrb4210-rb2: switch I2C2 to i2c-gpio 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="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240605-rb12-i2c2g-pio-v2-2-946f5d6b6948@linaro.org> References: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> In-Reply-To: <20240605-rb12-i2c2g-pio-v2-0-946f5d6b6948@linaro.org> To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Caleb Connolly , Alexey Klimov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov , stable@vger.kernel.org X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1506; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=JimJ2WKWJoWSbde6de8NxEi7A9lLOi4dbNpKH7X4d1A=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmYCgiA4lLxMV6lFXqvgHShtbOIvKMDyXjoGGKT dduqSktUCWJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmAoIgAKCRCLPIo+Aiko 1YT+B/9ki4zwj3Q/i+HkXQc0zyA+go7ug0uz/NQ5xfTM628lK3uJTwcFg1IZXlnD4kdjhCm3L/U vEChhdUnJXgXMSw93qVuKIYOT7FbuVId3qOCWZtvwrqoAq4obRePXicpWjyor3w+EtB0w8QO2B3 S2bj1amDG7DFHps3Pvm5nq4LZEYv7BlffOwPqNceSmLufG3j6d3XXst0jARPcQNlj9+26Sx4hZ1 FaKywQBdxmjHX8BXQiAyTgDP8tR9rlk8mhPTCweccTXnQJDuwY/nqsr9h7JosyP9ll18pcke6aE SV8mWxH6pSrUxXqpMQhnUvkm89Od05UcKpWqThtcCfGKQsLD X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On the Qualcomm RB2 platform the I2C bus connected to the LT9611UXC bridge under some circumstances can go into a state when all transfers timeout. This causes both issues with fetching of EDID and with updating of the bridge's firmware. While we are debugging the issue, switch corresponding I2C bus to use i2c-gpio driver. While using i2c-gpio no communication issues are observed. This patch is asusmed to be a temporary fix, so it is implemented in a non-intrusive manner to simply reverting it later. Fixes: f7b01e07e89c ("arm64: dts: qcom: qrb4210-rb2: Enable display out") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb4210-rb2.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts index 2c39bb1b97db..cb8a62714a30 100644 --- a/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts +++ b/arch/arm64/boot/dts/qcom/qrb4210-rb2.dts @@ -60,6 +60,17 @@ hdmi_con: endpoint { }; }; + i2c2_gpio: i2c { + compatible = "i2c-gpio"; + + sda-gpios = <&tlmm 6 GPIO_ACTIVE_HIGH>; + scl-gpios = <&tlmm 7 GPIO_ACTIVE_HIGH>; + #address-cells = <1>; + #size-cells = <0>; + + status = "disabled"; + }; + leds { compatible = "gpio-leds"; @@ -190,7 +201,7 @@ zap-shader { }; }; -&i2c2 { +&i2c2_gpio { clock-frequency = <400000>; status = "okay"; -- 2.39.2