From patchwork Mon May 27 16:03:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 13675554 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 3A7F6C25B74 for ; Mon, 27 May 2024 16:04:35 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Xtn3k7HDBqZlhr0WSnEDEc7UoLHsZyX++HgC2Qgpxm0=; b=tJzGR/QBVqeIY0 ewP/5kxJRNrzeg0+kZC4ak6XyQg1jPzS3VUO8lqJGF001aZUU0E9Vl9SX6s/PQedyeR6uXxSkeq1S 8Ox283Ctg0C0TAjEMGEt7VvEWFvPXBoC/JCSlJbnHf/IW697MdDf7VXiqHuSqqAu+Sg63XbK4fChB VFNdBOPlfxC6BIVtiPjBko64UH8uXs/nIo4JL2yZ0VUxii5r2FSWOnoduGPTS4Xgw2N9nHb0zhyFg uomKqzpTbgrZnKHSbJJ/4cGucoZWrLrVz11921JY9v0/y/aYWHefRz6hnPMazrFpdarCfhrhKeHG1 EeZkQJxTdJMAJnYnjFdQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBcpl-0000000Fjgw-2nXq; Mon, 27 May 2024 16:04:25 +0000 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBcpe-0000000FjeP-3IRq for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2024 16:04:20 +0000 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-354f51ac110so5242426f8f.0 for ; Mon, 27 May 2024 09:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716825856; x=1717430656; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=beAo2V97IysZU2zPgVb+0hz2tpF1/iEIksP9hejwZuk=; b=WcJAxD1DnLXAH2WSveYHvO9zFt91YQmKC+NCTslqRGKx+Q/TH2BSQMpZqu8mvnoaSR t01zo9g7j9T3W33pEhX8oPRIQ3dYbuu895y3Xx7TMdv7g+XOfnhw+0a3vjeGVmwoLYz9 HNUjwxlvQzjTWvBMFD9QS8fjNALbGJpzbafqvOt5HWP0PDGqFW88uin4S2qiOL7HCP5+ C7tr7El/R+vve3UXIGRm6i0PILh8zXf2jeJGsoEm6weRHZuoTFMSQlOthi1YRWMUgXcC m8qX7ro6DpM+wFKE4I47gPYyIw1Wv/TriRqSgAIFRPIRpjoIGNo+KLolzYhPHbDbLllz t7EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716825856; x=1717430656; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=beAo2V97IysZU2zPgVb+0hz2tpF1/iEIksP9hejwZuk=; b=NQZN97o2PagsVPlOkYiWJalp4Wrd23qaN+2A82KPtj88OtrT9o4+wIR6kp6uuaFaNm OjVSHuhCKmvSE9WQ3o1Ctk+gFvLzyatL1+TSX2T3V87WJQVXSHZ3nNxN1/6HyW9o92Pd S/1GPI9LOpIPfM8hHX85vdYn+qYKWHQncPqU8nz6NHcM0Por66hJ8VRR+qcXNR9EZmzJ LIF1EsJzy/+mpcI8zULzta6XlatOXBh7aL8sf2coNkyhH4wUtUF1NbZtsZEQayofVa4D 1njk6C4u5JHKnvOPJB0Q4a9MpT8e1724LG6HcSjA88qjSmLJhoROvHWScRZjX0ojoypF IhMw== X-Forwarded-Encrypted: i=1; AJvYcCVtx8gyS2oYaHpcpLLgjZ4oMexv2HuOmwkQeA36h3cfg0Ttff9OXczY0z0Bh0ZrPLnnFbFsR1JmhQYi/AF71oS46Jc7aWMmnyjKrVpsf/74rsx+fi4= X-Gm-Message-State: AOJu0YyFpQml5igha//G8bdcGnD1U8+wPQty/D/JD8Ft2PUZSk66CFAr pvYbbgl2la3kJb3H0rGoCJWX7pmHlESQ/OnOojw6loZtW6IptQrb X-Google-Smtp-Source: AGHT+IHV+7uj3oNwhQkFI8e8byFtEGjCoG+5dXKJN7KLcse27lqAdteZi9rMrKfCv6MfKNFAZTeWNw== X-Received: by 2002:a5d:6109:0:b0:354:c2c3:a319 with SMTP id ffacd0b85a97d-3552fe17d7fmr8085671f8f.61.1716825855678; Mon, 27 May 2024 09:04:15 -0700 (PDT) Received: from toolbox.int.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35579f96519sm9349394f8f.26.2024.05.27.09.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:04:15 -0700 (PDT) From: max.oss.09@gmail.com To: Max Krummenacher Cc: Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: freescale: imx8mm-verdin: don't limit i2c2 max. clock Date: Mon, 27 May 2024 18:03:45 +0200 Message-ID: <20240527160359.1965512-2-max.oss.09@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240527160359.1965512-1-max.oss.09@gmail.com> References: <20240527160359.1965512-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_090418_869140_B2D232D3 X-CRM114-Status: GOOD ( 13.57 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Max Krummenacher Verdin I2C2 may be used to access other I2C devices apart from serving as an HDMI DDC channel. Thus do not limit the used I2C clock frequency to 10kHz in the module specific device tree part. If an overlay configures i2c2 as DDC the overlay is also responsible to cope with an appropriate I2C clock. Signed-off-by: Max Krummenacher --- arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi index 4768b05fd765..82bbcec525d7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi @@ -547,7 +547,7 @@ eeprom@50 { /* Verdin I2C_2_DSI */ &i2c2 { - clock-frequency = <10000>; + clock-frequency = <400000>; pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; pinctrl-1 = <&pinctrl_i2c2_gpio>; From patchwork Mon May 27 16:03:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Krummenacher X-Patchwork-Id: 13675555 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 115F8C25B74 for ; Mon, 27 May 2024 16:04:38 +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:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JHr4SICQFgwuAMIMALRW924KBbiLkOaxWJoeuhI44Fw=; b=le1HKZdsIIP/sg a74ibG5Hurk4kSB29DPkErerdqHr77/+QxSI3pJaxtY/bXO4FklXWnv2yLOnDpKz64e41ytIgVYk/ 439xSYE46xFzHJuSO9+epUraDkcbDyb0ioAxim83R9HtdOxbennKSj3MKvbbRtjC6FEeZAOOUVzTP LIbIkHpEbBlGogse3hKKWUJvUodZmz/05cL4jeRMCNZw7ouricx3+ODO6RvTgpmAaegX+9O+rGUVn oncnj0MFGn16cn4MKuaRKFMcxttAd5+Fo9/H2V6tvDnQ5ngfZc6zNrEaPv1km0HX9JK7nnu4BAFf+ hS2r6Wk+FUEiPW+Y3AgA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBcpm-0000000FjhL-1EMB; Mon, 27 May 2024 16:04:26 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sBcpg-0000000Fjec-1z5e for linux-arm-kernel@lists.infradead.org; Mon, 27 May 2024 16:04:21 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-354be94c874so4222630f8f.3 for ; Mon, 27 May 2024 09:04:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716825857; x=1717430657; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=GX7MWRomctyKxwYidxaCMCj15SrJj2c1nUuhZiJGE4Y=; b=KVn+FFk8KNvUV+Hq/uaiQQc3BeTqPmsYWFSXZXgWgoH3snAldXkfxn9BqmIdJYqrct gZq1LPIrzD1HimS/yWJqIZ76/u3cCp+CNKTP+3P7pKlPAQ5O4vul+rhLE7XW7BEHxmkW dVcYnt57qLWCC6R423IwOyu7kwhNqIJHa8pyTnXWwWo8T9bpoicK16FVfRXb0d/fHorW 5QVFdzNZ2LtzXId06L6qXHyP8kMhE0Yznd4SwNo4b9K8WZOoGLIn6PIgE0pqJbSA635R HmoFrrLR9JsxMk8mtZcZjrJtOtE+w52FCIBJpFHAuaTU47h92Iu0G/Ods5tepPn4ttVt ZjDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716825857; x=1717430657; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GX7MWRomctyKxwYidxaCMCj15SrJj2c1nUuhZiJGE4Y=; b=LFyNTVpA7MgNLtlQy6Hyed/h3nzYNPvYNjP+G26OQjFglBU6Mxe7u3ejUZjycKOeEW iQJNSeppUcuAOSbtcECsxg5ZD9kya8HowIxri2eWrMOS9F963v/nl0Sev+dtlt5TE4/h hsCRnI2IDl+hv+vhOjCYHQMTS0pM5Bvb8zpNkfKb8B9OQDPN62pPO86qgCCQjghVjh3I 2Ph1NNU6w6DM65IyvG/vXQbZNQPOdgwJwmiLLcCKukKfhOh7OClq9n0e697tNUyVqv2u cmrJ70C0LXMo5GiT6sVSTVbJYIcJaSIL/HOvvRJ3NA6EDYO+x+fv+YtE6+Ke6obOMkg7 B0Cg== X-Forwarded-Encrypted: i=1; AJvYcCXMCZO29ajaeZG0TD7BvpNuo2WXEhCvky0caEIxX6Aldplh7tcX2ohFafdox0/kHGuHwyg5V6uuxAUy9tMOzz94JO7wwy59zNamg7lUlwdvZTpwnQ4= X-Gm-Message-State: AOJu0YzmMSyBw4fK1S/jw9nGSljmq9jPN9FSeJWID5iV7eB8+JtzChWW /nsycXSGNdg97SVEdb/hI5g1v0H2m0OAIuJDwaqW1xY8ODB7VkIJ X-Google-Smtp-Source: AGHT+IGIGygC2UpwgSkACZB8IxM9lQz/dCKFi424OCk/HsYCzOxG44VH9Zf55MjJBWI44kLuK6cLzA== X-Received: by 2002:adf:e444:0:b0:356:4cfa:b4a2 with SMTP id ffacd0b85a97d-3564cfaebb7mr8173765f8f.3.1716825856453; Mon, 27 May 2024 09:04:16 -0700 (PDT) Received: from toolbox.int.toradex.com (31-10-206-125.static.upc.ch. [31.10.206.125]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35579f96519sm9349394f8f.26.2024.05.27.09.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 09:04:16 -0700 (PDT) From: max.oss.09@gmail.com To: Max Krummenacher Cc: Conor Dooley , Fabio Estevam , Krzysztof Kozlowski , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: freescale: imx8mp-verdin: don't limit i2c2 max. clock Date: Mon, 27 May 2024 18:03:46 +0200 Message-ID: <20240527160359.1965512-3-max.oss.09@gmail.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20240527160359.1965512-1-max.oss.09@gmail.com> References: <20240527160359.1965512-1-max.oss.09@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240527_090420_589228_31A52D05 X-CRM114-Status: GOOD ( 12.92 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Max Krummenacher Verdin I2C2 may be used to access other I2C devices apart from serving as an HDMI DDC channel. Thus do not limit the used I2C clock frequency to 10kHz in the module specific device tree part. If an overlay configures i2c2 as DDC the overlay is also responsible to cope with an appropriate I2C clock. Signed-off-by: Max Krummenacher --- arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi index aef4bef4bccd..3c6b47edd4c1 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp-verdin.dtsi @@ -650,8 +650,7 @@ eeprom@50 { /* Verdin I2C_2_DSI */ &i2c2 { - /* Lower frequency to avoid DDC/EDID issues with certain displays/screens. */ - clock-frequency = <10000>; + clock-frequency = <400000>; pinctrl-names = "default", "gpio"; pinctrl-0 = <&pinctrl_i2c2>; pinctrl-1 = <&pinctrl_i2c2_gpio>;