Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp801824lqj; Mon, 3 Jun 2024 00:38:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXHbcrn6vKo8uA/ARQv8l3N0DyBmT1VmyxUudkz+5Uu6rsqLU8Ps/hRbU6x6yyFpuMWdpgEPXWU7amIoDSpFTxbbLa2s4z4HcpoR/Uv0g== X-Google-Smtp-Source: AGHT+IH52ZmrQ9LRjQ4CJVNR8zkS6CJTVihzdgsy8rwf7LwnXWr0YZabfbASbIxDOlq9l/XQcdO4 X-Received: by 2002:ac8:5e54:0:b0:43a:4b1c:6d36 with SMTP id d75a77b69052e-43ff52adf56mr121836531cf.49.1717400303930; Mon, 03 Jun 2024 00:38:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717400303; cv=pass; d=google.com; s=arc-20160816; b=1IHFG1GaYEReHNoN25Gj4PCbZljbKJt1CtPUEYZiTOYnKo9xW+dy7/KSXQU2d/NWJh ALw125UF627zDY0W2GGsN8PwLqcUes45lIFslo1wr1iQLhflDjzuKMTHb6ETqQZPwXA8 N8VniV5SASy/kiotdYEfqTk+7paCCTqafMTheciffelf97ggdrPQR6n+fwLcVfZLNT7o 1zAojxFOQYhmh1c9vCYu4tJ6w+xLpHSH4LGWVzoUw+4OoTSBbKg4PGhGo1pspCV5V2sa smseU2GfaOzmunteHe03sKYbbefIjWqhMG9uRqW7l53VwQScd+FCkNOhd7rW5hJvJP4N QLRw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=JhgX7xWJpWDC/+oEnqUkGapcNi4peDkl6s1NMAczQYo=; fh=G+JQLI5WDS/wecSJ3xDYHMiqT9+TLUxmJfTU1zGttYY=; b=cxVZAwROJqFgWdz0ViiD2roBZ2Y5WZjmLZWI8bwdIS0InlOk3Onpntdau5AF46xvWN y8gbEkdxz9V5OLlS8wHF2zTDPvPHTD3sFF8OVpO+WiQZidR7LNo8Ty+LfRiBgGb4sJfq k/uqU7LYvEMQzRnPOl+ak9CTxJVR6+ruZ7POkv7xpZsoaDqdIRRHFigV/l5oMuFzU3c0 VmWP6cRLnmD3/JvTu2ZATbp78d7mWBulhIZIm8ihTJ33MjczZz9v71O3CIYDavrQ2Bb1 s7h227kD6cwNxecoXSngSvDhmuWoY+k/NfVRe9K+0zRcNBsvTaA7Gt7hi0fDLW5ZWpo3 N5Qw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kxpcVfit; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-198723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43ff2468b68si80208191cf.254.2024.06.03.00.38.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 00:38:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kxpcVfit; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-198723-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198723-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 566F81C22131 for ; Mon, 3 Jun 2024 07:38:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A22E94F60D; Mon, 3 Jun 2024 07:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="kxpcVfit" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AFF0343ADC; Mon, 3 Jun 2024 07:37:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717400268; cv=none; b=fr4t8s+m742g9n0TPff07u1r08ppKEfxh5zh+KwsgCARFni7/Cv5eAfdW196GCFPinjsXPvwKsvLL2mciCm8tZsyTtFCYeXz7E1LlfnA5hbP+8mWyRdDLygTV9GSHcZjUwCMpZAWQFupWyT0fZv/dZS4SV52CI+FcDj4KmNnHDg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717400268; c=relaxed/simple; bh=BxNa9VcY68uplMSTvGDz9b9R4IIn+l6Leko6FTfPklU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=a2DFSr2F35xDjkku5hESoFdINToYENmtWFbRtcwgHMiTzS8vrFGmeQ1umeJvoaTTGuGaHLlQLxguxjm+3WdMF+9z2A5BeysNmlF694ww+0RmENFsd0GKjqErU1Ykh31IPs1epUnH/nASAUqXbu+wTSpZdNZNCAw9Nl0ZEnfZrOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=kxpcVfit; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1717400262; bh=BxNa9VcY68uplMSTvGDz9b9R4IIn+l6Leko6FTfPklU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=kxpcVfitJ/cywzDLGrF2aMskkW8Eqkc7AzU7Kp10V2xnlm8PXU7whCJ27t4GUul4w zkMQWzjUT0DQsXnIXae52C6Tipvq/+IpVwt84n/duByObcXEu8vQt+pemvneiGO05j Hl5L525G5IWb8hItWqWhen7dRptPmc1ocXToCthTTvlm/4Beg+aPx0pKfDr8j0DWQv JfnkMEWOMDSxelZNqR8U2qSxCiJYOaNFyY3kWfVCSu7ZcHatMJJrFuJhL//xiDPOts C86p9RwVLtgK/XdxG6s2pBrFIWBcd/tPW2QC3eOa8zImjUFdu1E67MycOE+2Hr5gfE li/fItRCsU89w== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 5021337813CA; Mon, 3 Jun 2024 07:37:41 +0000 (UTC) Message-ID: Date: Mon, 3 Jun 2024 09:37:41 +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] arm64: dts: mediatek: mt7981: add I2C controller To: =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= References: <20240405125505.11837-1-zajec5@gmail.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240405125505.11837-1-zajec5@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Il 05/04/24 14:55, Rafał Miłecki ha scritto: > From: Rafał Miłecki > > MT7981 has one on-SoC I2C controller that differs from recent Mediatek > blocks by having a different SLAVE_ADDR register offset (thus a custom > binding compatible string). > > Signed-off-by: Rafał Miłecki > --- > arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi > index 8a6263cc569c..2d7f91196e64 100644 > --- a/arch/arm64/boot/dts/mediatek/mt7981b.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt7981b.dtsi > @@ -94,6 +94,23 @@ pwm@10048000 { > #pwm-cells = <2>; > }; > > + i2c@11007000 { > + compatible = "mediatek,mt7981-i2c"; > + reg = <0 0x11007000 0 0x1000>, > + <0 0x10217080 0 0x80>; > + interrupts = ; > + clocks = <&infracfg CLK_INFRA_I2C0_CK>, > + <&infracfg CLK_INFRA_AP_DMA_CK>, > + <&infracfg CLK_INFRA_I2C_MCK_CK>, > + <&infracfg CLK_INFRA_I2C_PCK_CK>; > + clock-names = "main", "dma", "arb", "pmic"; > + clock-div = <1>; > + clock-frequency = <100000>; If you need to specify clock-div and clock-frequency, those are board-specific properties and not soc wide. Please remove those from there and put them in your board specific DT. Cheers, Angelo