From nobody Thu Nov 14 04:53:28 2024 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 F334457328; Fri, 12 Jan 2024 09:46:42 +0000 (UTC) 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Kbqici4F" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1705052801; bh=zq877pNGDNR9QpP0tnh0GOjiJi6f38kNnwjwlSPV6gE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kbqici4FvY55mGW4HoF+8HYjWOjjAZL1Dj0IvISss/jPXd+lauI9xo3RiMV8AoBGx ybU2U/UB/ADjB2Wo6jZxFrP435np0ECk5fijdNm/4QaPkz9P8k1JF8Jugw2TZLCCeS XOLlbI+pmmSp0DwzBZQ7rgsbnWWL/Ay6ieAFTj1F7SUV2RORF3lUzJCmMhEbxbCyOP ZPCkyNQwej12I59W7rD6rly+MJZLrahmAYCQfk6VGKbsrXqGx+hDj+nBxQOXmw8J1y pBRLTpL8blyn07PzXRuQVhrGxxyY8Ql7MMy3taTWcnnziWYsTudo3cw+xwz00HzmFA nmskGKFke9tFQ== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 B00813782032; Fri, 12 Jan 2024 09:46:40 +0000 (UTC) From: AngeloGioacchino Del Regno To: linux-mediatek@lists.infradead.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, wenst@chromium.org, hsinyi@chromium.org, nfraprado@collabora.com, macpaul.lin@mediatek.com, sean.wang@mediatek.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: [PATCH 03/15] arm64: dts: mediatek: radxa-nio-12l: Enable I2C 2/4/6 busses Date: Fri, 12 Jan 2024 10:46:20 +0100 Message-ID: <20240112094632.66310-4-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> References: <20240112094632.66310-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Properly configure and enable the three i2c controllers that have devices attached and/or have pins exposed on the board connectors. Signed-off-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-radxa-nio-12l.dts | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts b/arch/a= rm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts index 2c4d6805b668..79358e1a3e60 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-radxa-nio-12l.dts @@ -85,7 +85,61 @@ apu_mem: memory@62000000 { }; }; =20 +&i2c2 { + clock-frequency =3D <400000>; + pinctrl-0 =3D <&i2c2_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; + + /* iTE IT5205FN Type-C 3:2 Alt. mode passive MUX at 0x48 */ +}; + +&i2c4 { + clock-frequency =3D <400000>; + pinctrl-0 =3D <&i2c4_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; + + /* I2C4 exposed at 39-pins MIPI-LCD connector */ +}; + +&i2c6 { + clock-frequency =3D <400000>; + pinctrl-0 =3D <&i2c6_pins>; + pinctrl-names =3D "default"; + status =3D "okay"; + + /* MT6360 PMIC at 0x34 */ +}; + &pio { + i2c2_pins: i2c2-pins { + pins-bus { + pinmux =3D , + ; + bias-pull-up =3D ; + drive-strength =3D <6>; + drive-strength-microamp =3D <1000>; + }; + }; + + i2c4_pins: i2c4-pins { + pins-bus { + pinmux =3D , + ; + bias-pull-up =3D ; + drive-strength-microamp =3D <1000>; + }; + }; + + i2c6_pins: i2c6-pins { + pins { + pinmux =3D , + ; + bias-pull-up =3D ; + }; + }; + uart0_pins: uart0-pins { pins-bus { pinmux =3D , --=20 2.43.0