Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2167283lqt; Mon, 22 Apr 2024 03:36:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNArqZMtsXRL/KssLliXgFIiUdEs2aezg4/Nqm64cQRIyk2Xg1WSJBKmJyeahTYCjyxQkLPgmh4KFOSBRuv21fRg1Rta4SWcn5Zsgf2A== X-Google-Smtp-Source: AGHT+IHeMVVd4wuNhU9U1I9qyz7lPp7TZAOCvs7xzJNefltXvxVZoeERnlwC7U/3IxxPTL3E5eC9 X-Received: by 2002:a05:620a:22ab:b0:78e:cb92:9010 with SMTP id p11-20020a05620a22ab00b0078ecb929010mr9436732qkh.30.1713782160058; Mon, 22 Apr 2024 03:36:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713782160; cv=pass; d=google.com; s=arc-20160816; b=cAkpAU7i4SCk9aWtT4gv6j/O4RKLxdQe+ahDzqxk/RKeQg6tjL/9GyuRdPhHHouqsA shGGR7SM1lXQa60IC3mVKuGDHTppy2qd9N5K+uCvgJOrju69aVrMfJlz+CB9FtsAnDvA F7KAIsK5sX2pywVbwK/S5fi95+JKEmXauhnPoSyQW101Wc+duGS3ODVujV6RSCHkhq+x LkdeKOficTqFZlli1Rwb0D/DkL0z9zIgSLbNLROzaEdmifi5OFFzWrkDwKgohmbfMd7X CH56GePOpDuqqu7IxegNzG/Q0dxwBjOykVkLHfPKj3e7NAZe1T5vrp+5xUYLxe8AFTAU pXFg== 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=krb2SVO3gfXOodaufaJtdvnoJHoNUvrwBiJmFaNXv1w=; fh=2pgTxEpPbiHQVNWrrZ8cDw7Z4ODGrl4WPE26hTR49GY=; b=vZLDopB/Rt5i2FfI3v+tMzkF+VbkMPA4sMYvpOFaYoOAwQM0hJ7odYDc2sjlCMRDWJ RwuGwfxwuackMpDH9HTf++QvCS+hbHgwSUizZZSedeQlS9Y7gn8IPoaiitIRhT105Jf0 ovIREjZAeLNxYrExHlRdQbF8W/yA3mzWBJ4BlGBFkwNATOcbXuVAbE7MBlvHVTwGaMEi dAfJwlS0zlsnb+uYatDSo/wJF0IMPQHMpH6dTGZJbJel8wcs3Iakhwx6kTjPUl6tynAF Dp+eJyQzf7T/kNtM3KuUnFVC61YljSazvGj7v8SDelAG/JIRJkdlFk2qvq08BlPVK6Jl zR8Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XEheiXAx; 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-153194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153194-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 a26-20020a05620a125a00b0078d68c57f16si9564837qkl.540.2024.04.22.03.35.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 03:36:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153194-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=XEheiXAx; 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-153194-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153194-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 45B9D1C2145B for ; Mon, 22 Apr 2024 10:35:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3BAB145B10; Mon, 22 Apr 2024 10:35:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="XEheiXAx" 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 A44661448C6; Mon, 22 Apr 2024 10:35:04 +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=1713782106; cv=none; b=Mtdmrr7vaeGbyfC2waqS0xRC3RYInSouCzSyZxecbIV1SP3t5tez2rf0t34PLzo/IX57ayDzyERLt/ScALOm1vwvC2svbizp2YWhy+xULwIWNfsW4qkXgun4KJ3NtEv/pZAE3Y8QVr3kg095tJYJ2nRskzV5ag9MYZzui6qxOeE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713782106; c=relaxed/simple; bh=6VcMeN98QlnjmYjl5LAaaeAJBovNEk8r15IuzTAVT7w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dI3fBNOFRZOCvPr94M/t9nuqMadhNnkybo9dt2WFUhw8oQAIXkyBRjoTwGJYXkCV5lk3IrqzmX7LEd/qnf0r+oNWqZzHPt2Ng9PTWueFm9xnt4YQUhM/EFEahzS8XN6mQe2S6RIYMKP6B9kVBg6os0bBUwgJz6jtkwUxWGmuvmQ= 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=XEheiXAx; 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=1713782102; bh=6VcMeN98QlnjmYjl5LAaaeAJBovNEk8r15IuzTAVT7w=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=XEheiXAxg4rrNh05+r4z2KPZmrW2kLq6LTOVx6n3K/ApM2kzkzlqQhUUJyEMRovcy oBgHzhe5zPUwTkLbiyl3ipVgLNy0j8FCg1jLjz81It32x5+9aOQ0eacsJEq5hXlAk4 afwlanaf2+9EJnxaUFuQakMQPiM9yX1Kd4WGfGKPZcqnDMT8/t71d2wrZ+Co5JOrFA YkkkiLYCHbe+Z+EQsMrAVDAQY11i95u1TN2O7CSDkSPcRHT2nJTwwe2vEnwHcENdH0 B86eMxJ7Lcq9plye6Q/3jU3Xo626I3wJ1NKAVZAabxlqNjyzVao8rMKKKZxYogStUp SpNAhTU5VsdUA== 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 D4DC23780C22; Mon, 22 Apr 2024 10:35:01 +0000 (UTC) Message-ID: <8a0cfdd0-ffb5-429f-8f86-30013c47e64a@collabora.com> Date: Mon, 22 Apr 2024 12:35:01 +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 2/3] arm64: dts: mediatek: mt8390-genio-700-evk: add IT5205, RT1715, and USB HUB To: Macpaul Lin , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Cc: Bear Wang , Pablo Sun , Macpaul Lin , Chunfeng Yun , Yow-shin Liou , Jason-ch Chen , Chris-qj chen , MediaTek Chromebook Upstream , Chen-Yu Tsai References: <20240422093926.15392-1-macpaul.lin@mediatek.com> <20240422093926.15392-2-macpaul.lin@mediatek.com> From: AngeloGioacchino Del Regno Content-Language: en-US In-Reply-To: <20240422093926.15392-2-macpaul.lin@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 22/04/24 11:39, Macpaul Lin ha scritto: > 1. Add i2c to aliases. > 2. Add MUX IT5205 support to i2c1. > 3. Add TYPEC RT1715 support to i2c4. > 4. Add PMIC_KEY setting. > 5. Add USB HUB TUSB8020 to xhci1. > > Signed-off-by: Macpaul Lin > --- > .../dts/mediatek/mt8390-genio-700-evk.dts | 56 ++++++++++++++++++- > 1 file changed, 55 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > index 9b7ad046f193..17f22b1836bf 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > +++ b/arch/arm64/boot/dts/mediatek/mt8390-genio-700-evk.dts > @@ -23,6 +23,15 @@ > "mediatek,mt8188"; > > aliases { > + i2c0 = &i2c0; > + i2c1 = &i2c1; > + i2c2 = &i2c2; > + i2c3 = &i2c3; > + i2c4 = &i2c4; > + i2c5 = &i2c5; > + i2c6 = &i2c6; > + mmc0 = &mmc0; > + mmc1 = &mmc1; > serial0 = &uart0; > }; > > @@ -225,6 +234,16 @@ > pinctrl-0 = <&i2c1_pins>; > clock-frequency = <400000>; > status = "okay"; > + > + typec-mux@48 { > + compatible = "ite,it5205"; > + reg = <0x48>; > + > + mode-switch; > + orientation-switch; > + > + vcc-supply = <&mt6359_vcn33_1_bt_ldo_reg>; > + }; > }; > > &i2c2 { > @@ -242,11 +261,19 @@ > }; > > &i2c4 { > - pinctrl-names = "default"; > + pinctrl-names = "default", "default"; > pinctrl-0 = <&i2c4_pins>; > pinctrl-1 = <&rt1715_int_pins>; This should be pinctrl-names = "default"; pinctrl-0 = <&i2c4_pins>; > clock-frequency = <1000000>; > status = "okay"; > + > + rt1715@4e { > + compatible = "richtek,rt1715"; > + reg = <0x4e>; > + interrupts-extended = <&pio 12 IRQ_TYPE_LEVEL_LOW>; > + vbus-supply = <&usb_p1_vbus>; pinctrl-names = "default"; pinctrl-0 = <&rt1715_int_pins>; Cheers, Angelo > + status = "okay"; > + }; > }; > > &i2c5 { > @@ -836,6 +863,17 @@ > &pmic { > interrupt-parent = <&pio>; > interrupts = <222 IRQ_TYPE_LEVEL_HIGH>; > + > + mt6359keys: keys { > + compatible = "mediatek,mt6359-keys"; > + mediatek,long-press-mode = <1>; > + power-off-time-sec = <0>; > + > + power-key { > + linux,keycodes = ; > + wakeup-source; > + }; > + }; > }; > > &scp { > @@ -890,6 +928,22 @@ > &xhci1 { > status = "okay"; > vusb33-supply = <&mt6359_vusb_ldo_reg>; > + > + hub_2_0: hub@1 { > + compatible = "usb451,8025"; > + reg = <1>; > + peer-hub = <&hub_3_0>; > + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; > + vdd-supply = <&usb_hub_fixed_3v3>; > + }; > + > + hub_3_0: hub@2 { > + compatible = "usb451,8027"; > + reg = <2>; > + peer-hub = <&hub_2_0>; > + reset-gpios = <&pio 7 GPIO_ACTIVE_HIGH>; > + vdd-supply = <&usb_hub_fixed_3v3>; > + }; > }; > > &xhci2 {