Received: by 2002:ab2:6d45:0:b0:1fb:d597:ff75 with SMTP id d5csp157329lqr; Wed, 5 Jun 2024 01:56:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJeA2cTtoUomHiXsrUkO0FJJECglJOy7MVnp5oUxebaFdp7MGBqr0TL0/qKEgy9TY0bnvoTrPo8UuHYl6BIvKWC5yeR+uH0kKLodYUSg== X-Google-Smtp-Source: AGHT+IEGCG+9Fb0iwWefUqpwBMQ1D1Jn3D+FMgHh3cb2Tk6tbCwMUJZPT0OCo1T2tM71ROHW9Wsy X-Received: by 2002:a9d:774c:0:b0:6f1:42c4:168d with SMTP id 46e09a7af769-6f9436cf368mr2183476a34.23.1717577816502; Wed, 05 Jun 2024 01:56:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717577816; cv=pass; d=google.com; s=arc-20160816; b=ytAAs9up2yCaD+J8/QhI5V8JHTmXkcFGnL6m6SkScdQhC5Yk2+9w/9VREH1aPY/GH3 pax+drWxQnO8YkUS0dcW89knsjBCzYpezodkbWZCpCfoKui1/1tz5KVfrard5jXek7Sm R4CrhnG6zIhYP0bvt8u7LH6xrBvfVl7T1prr3WiJiyBLgCxwCFZa14O6BBv5BqwP8mwE KCmy21lkPRehcbVFmkDU6bI/jkQ7NsKveLskD9LA431AdNMF1NrmFv/gj/bGtwAyrSPF w5faInvZsso+QohKt1ImrLLwq6eyshzOH258f1agWqnARfnPtDF0Z8x3J6LFORRu+yP9 THVQ== 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=+kpQnqqqSVuejJPJABBKqggJwaHgc93uYPHXdAev6mI=; fh=+mduSonOuH6pj+H4XgyyJQZW2yVJSupiTfaJrTvb7Og=; b=E9fF4vIfhia3KgfkFqeGE1bz8mvw9kkwg/QQ3WzpR0l7eH1xBfzCEk7rFc4O7frire A2kGZiz3H7kaOfQRIjdw56hhSXebNY8JY4oLPYQMEnrrIedAC88H9mdPL82Miu/MChfm goNQ4Tvnv0Y8ob0PPvf065dhzw8AX3A+270BAoAPsN76nklCi3FGMKhy4fA4jTS9sC9F 8uw4jsxtrdU8PbQYrN+Tp3ONlwVJF7Z1inOEPUKfnFUouKFgLVt9FMCCu9rPpSq8pjCy Psu1REHquETLtMkHShuJHs8d2nl7kOTLdckXK4oDophLbrBLHXNl+N7UU2pvNGxzkPxp gzkQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PY5JUB7x; 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-202043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202043-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6c43be43553si443101a12.215.2024.06.05.01.56.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 01:56:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-202043-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=@linaro.org header.s=google header.b=PY5JUB7x; 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-202043-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-202043-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 93D6828391B for ; Wed, 5 Jun 2024 08:56:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4590C1946CF; Wed, 5 Jun 2024 08:56:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="PY5JUB7x" Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com [209.85.167.52]) (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 A6E8018C348 for ; Wed, 5 Jun 2024 08:56:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; cv=none; b=rOw91EfDUdc1E8/Jt6tARryS+rkoiJBprNDLXTi7KCSmh36SxRPlUo/hOb30fWxij7lIVh80a9x27VfW3urzeeaJ06u7LYkc4hrbp9I15sdvLCqeOJ2bGlIUbg7m1BUjF9ssYcSDAhetKprZO+aMuAMSffv71HKlZUxdeJSGYKE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717577767; c=relaxed/simple; bh=+RccpUJwmpU1LzXIIE+Z5WpSTFsSjxa720tthk/FtD0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=U+Sfzp8wIMasx53vXRRZw+gatWtseszlFdGASPCei0oWiGU5eHVYS1EW3ZBj3tdhifCUuRjCDHe9aD2RI7Bx0A7Off/RR75TBcphdYWM5AbYmmyOcZ5802aBI0kYR8qKLlQADMZRG9pOGMIjTP3yeh1jYORClkSgu9W9uYLzmvc= 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=PY5JUB7x; arc=none smtp.client-ip=209.85.167.52 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-f52.google.com with SMTP id 2adb3069b0e04-52b91f655d1so688316e87.1 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=+kpQnqqqSVuejJPJABBKqggJwaHgc93uYPHXdAev6mI=; b=PY5JUB7xejCk8FNt/8+pM3g2fFoceqqnmolQTBbgtHJguBp+ZsJ+fhTBjcBXmNkEq+ gJju2E8RwVqQDOUchkRYUiaJ8Vz7VTsLgrDzEZjtgShuKm46+Hu2BnjMTf0SgGwoJmIf Zg9zN1biZny0m+gxiAO4pUKVd47LMq5jdxpuB7J7PStEtYOdWi3BWCZBAnr7fkAep8Kg U5AxidvWTx9Nyxnzopse/Yn+3otQm/5F+29Z163bEDm1WS44I0qW/pArt3N2WD6gf3gM hjPsnqMzRemI4jxo72t1Or9Q8hTMh+67Khhj5PzENdc7hWOeMjx+pwoVHPphxkKyxCSS dLAg== 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=+kpQnqqqSVuejJPJABBKqggJwaHgc93uYPHXdAev6mI=; b=GJoAbmCkAnaXQhWh55VLyHpO0ZCmgltyNP/hMkCprN+6fDuiT1DbmqM1YfqDx8YJlf LVluj9X3W7n8pphYyC9Gi1AdmTT/lqgOI2jsfYcr5APKNYBDj+WawtQWwfq6G1COp5ZG S7TKJUXbecDagKwBuRxed7D9l0LFYZQJcIJFiDeP7fL7HeTnBO+1ShqlqlgXQFLHkDZm nmRqKPLIM2QWNE5Z/i18HezT+WitvGcrICsJuK69k55VHkoyBD6Tfk8JYx9jsM527G51 wTXI2MybdgcPAoA/dmx7SHux+B2a6ViAah+9hNtKg1aZKTXSFxVeoOiYpralOjsGcd9X pOvw== X-Forwarded-Encrypted: i=1; AJvYcCUAr89qe9ojfGAiog7e7ZxxXeB76fWXTqq4pW8ajdZrgI81VUA3BSWmFdHAB37zy0W7tuoI9cOGu9gL5gAdsIEbwh6KNw30mYrE9FME X-Gm-Message-State: AOJu0YxUhszYiNYSbd9itO042JfCtolJivnj8IU8h0tv9oKB+ZA0KY7G xmNh41RLVeWVaMbONGxjzjJLGgqpPq0AtscY3RmgxGKByDeC6WojtrIcCUi0BBw= X-Received: by 2002:a05:6512:3c9c:b0:52b:94f1:6115 with SMTP id 2adb3069b0e04-52ba229b2dfmr1827078e87.25.1717577763804; Wed, 05 Jun 2024 01:56:03 -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:03 -0700 (PDT) From: Dmitry Baryshkov Date: Wed, 05 Jun 2024 11:55:56 +0300 Subject: [PATCH v2 1/2] arm64: dts: qcom: qrb2210-rb1: 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-1-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=1512; i=dmitry.baryshkov@linaro.org; h=from:subject:message-id; bh=+RccpUJwmpU1LzXIIE+Z5WpSTFsSjxa720tthk/FtD0=; b=owEBbQGS/pANAwAKAYs8ij4CKSjVAcsmYgBmYCgis+/VKxDqB8zWqxyQONbpETW/6Otdc520y t/JSEqJ7kuJATMEAAEKAB0WIQRMcISVXLJjVvC4lX+LPIo+Aiko1QUCZmAoIgAKCRCLPIo+Aiko 1WzvCACxWQwjy6Y1HEw34Nq/jHm0FQPEq7DB5kpZtlaCtNTGX1h+F6lm9acHSt9goc2DzP/vT60 qusJWxBa09VZQWZMdI1GP1x0YZZrfXQmhtKO5WV1FwrgXEiAVHfZPX9UFK0JfsBCRZFSASmqQBc dMPrFeacZrGdrWjwIo53MMFvyIIdTXD9MaxTOX08PIH11UnHl11AKC4bUD4vGS49ztCLUeizOHZ t62hy4JK/I+1PVvdJbGtKojLz2fXTirx6OdSoLfvMD7LrBKbsOUCwGjatfb8UEt4mY/igMCTF9C oDTeci0yTEEv0f7Du8rtyOD3UTEBdeequCUrtjdt4vRaqud9 X-Developer-Key: i=dmitry.baryshkov@linaro.org; a=openpgp; fpr=8F88381DD5C873E4AE487DA5199BF1243632046A On the Qualcomm RB1 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: 616eda24edd4 ("arm64: dts: qcom: qrb2210-rb1: Set up HDMI") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/qrb2210-rb1.dts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts index bb5191422660..8c27d52139a1 100644 --- a/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts +++ b/arch/arm64/boot/dts/qcom/qrb2210-rb1.dts @@ -59,6 +59,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"; @@ -199,7 +210,7 @@ &gpi_dma0 { status = "okay"; }; -&i2c2 { +&i2c2_gpio { clock-frequency = <400000>; status = "okay"; -- 2.39.2