From patchwork Fri Jan 12 09:46:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AngeloGioacchino Del Regno X-Patchwork-Id: 187639 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2614:b0:101:6a76:bbe3 with SMTP id mm20csp64953dyc; Fri, 12 Jan 2024 01:49:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGyZRYYcObvh3H8D2f9pV836LrWsAkKsgL3vsrqsiHL6F5cadtBmDeJvWErkgy6hGFTlzUf X-Received: by 2002:a05:6a00:6c85:b0:6d9:ac97:66a4 with SMTP id jc5-20020a056a006c8500b006d9ac9766a4mr682611pfb.18.1705052960095; Fri, 12 Jan 2024 01:49:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705052960; cv=none; d=google.com; s=arc-20160816; b=m3ob6SAnyWW0LnKkPyqNv6AssL5niLCWAMUJhSZSA0wgWriD+ZBxXySBv7MuAwaWXK FWOFD6vvPnraRVnxRzfUZlM+ijn2RlMwU1DmH5rp8gkMcyFqpH6r3M15c7KaAzYXmHg6 RjJQLxQ1BKHi8dHFzJSn2Y43M9RCvQu/tNF+4fKBapUO33rqrpsrxi/nrjUE8oSR5AfA 3/QI6je758uzTFvC9GS6Yw0bwNyn800YeyKxRkuQfhmBhkLe4fN/eO0kEjPPTUmGIPL6 OJ587yHb6o43egeg4RUpf5g8BRJvNhN3PQ9Y/TKWKzIjd1MvYCcddrVQuM6TEjV2dccG 8ZpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hwcrRJnfXGgxScTWwQSdk99kkNZzPTP8Aa+1loXjvSY=; fh=jVP86127nqY6lQ2iFwv7XBo+ATUxJSI3LRZ9chA5Pqo=; b=Ak/5tgePicMriHeJKkXhdluuvBFwd3sBz9nnn0esYVA3zb/SDLaRZdFMU4jnPKob4L opQdedaDFUotL7/4LT4wtZVeNEhR/565EYBb1lqU3vIBohU00OUMll67LFVtAIGaYiRZ 1i4xvFcLKZEpVOuvfqSfra0CRVUJQE5tNWYEOt3n/PIjcLNJWjBCQwpGZ5APxMJW62kN U+3nn5ZhYKP/BnCq2F2yh7Lb3CYcpJnpXMcuw6/UOCyZ2XJ0Hl3nr7ax3hGDs+I+hnUX AsGvNG16i4DDnPVZHUHBGGtryR6PTC/j/Kkql8YnnkpV330qSvlqUpFJYa7DqjNhj97L 0r5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Kbqici4F; spf=pass (google.com: domain of linux-kernel+bounces-24502-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24502-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id ka19-20020a056a00939300b006d999f59a98si2930550pfb.24.2024.01.12.01.49.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 01:49:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24502-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Kbqici4F; spf=pass (google.com: domain of linux-kernel+bounces-24502-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24502-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 2689EB20E53 for ; Fri, 12 Jan 2024 09:47:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E6B9A5DF23; Fri, 12 Jan 2024 09:46:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="Kbqici4F" 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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1787877612344705395 X-GMAIL-MSGID: 1787877612344705395 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/arm64/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 { }; }; +&i2c2 { + clock-frequency = <400000>; + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + status = "okay"; + + /* iTE IT5205FN Type-C 3:2 Alt. mode passive MUX at 0x48 */ +}; + +&i2c4 { + clock-frequency = <400000>; + pinctrl-0 = <&i2c4_pins>; + pinctrl-names = "default"; + status = "okay"; + + /* I2C4 exposed at 39-pins MIPI-LCD connector */ +}; + +&i2c6 { + clock-frequency = <400000>; + pinctrl-0 = <&i2c6_pins>; + pinctrl-names = "default"; + status = "okay"; + + /* MT6360 PMIC at 0x34 */ +}; + &pio { + i2c2_pins: i2c2-pins { + pins-bus { + pinmux = , + ; + bias-pull-up = ; + drive-strength = <6>; + drive-strength-microamp = <1000>; + }; + }; + + i2c4_pins: i2c4-pins { + pins-bus { + pinmux = , + ; + bias-pull-up = ; + drive-strength-microamp = <1000>; + }; + }; + + i2c6_pins: i2c6-pins { + pins { + pinmux = , + ; + bias-pull-up = ; + }; + }; + uart0_pins: uart0-pins { pins-bus { pinmux = ,