Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2142078lqt; Mon, 22 Apr 2024 02:40:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVKS3wCD76pJKRJIo5wvb/8b0Q+PljHuZ5zl+f/M/qYeWUez136imbrWL1OarQMaY/y8GJQmOg2RdfAx6QLrMj5ZIkw4MQJ5gek0PmQKA== X-Google-Smtp-Source: AGHT+IFZOHgRuyFIIgVBm0S9RRbzSLSWeksnrJmUwepBRM00WTFsOd/8sS9fwodidSmMdtMQZASb X-Received: by 2002:a17:906:3196:b0:a52:6e3b:fcf1 with SMTP id 22-20020a170906319600b00a526e3bfcf1mr5907253ejy.17.1713778813099; Mon, 22 Apr 2024 02:40:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713778813; cv=pass; d=google.com; s=arc-20160816; b=mtncmA988p+rkhexkCh0RZpnCg+PU0feoMXG6UlckTxThRJ5ipWg5NKSqjUVW7db3q 4iLR/MRhMTB+kyhHEP3GMJQXG+S4BRaXwQznhcPZrmFJIjz8/5bmeMqcDPmhpgJNxzLV mAoBA5/CMUecI0CSeYUiemAYayhSmo6TBPTVoaPySF0Rt6bpOCbX627w3pAsp3Cn+2m9 gNeIv8ajC6VZh90PCwSvx8kZSv27t1UZZyoLtQqryDCn7eYJBddDsSW6fpYarrpvcMI0 ElsIy5NcLZcZ2TAkhpfJwXLRN3UETfyaeIw+DFvlc2774i0ZRIZ3pDcd3L79juu2g4n1 QZYw== ARC-Message-Signature: i=2; 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=2dUEnhw5xFiIc+XADgHYaBr/SM4VF5RqnflFunzIbLA=; fh=vzpcrgoZDdhzEgK8tBmpNRdTpnuZzUfm09LalXX9uww=; b=LJzDgkoCiMKllRmfUhSJS8KNgo2duF8nBXwAE0552z2DeEPA+LAbfWiupo9vt1Gv7c 5GiM/GWV+r8tHKNnzvzbCOIces1gOUU35UXd4GObFOl4rYFjorvejsJLch4v6CByFPBH 1xSUpGPosig+/duXhLF0jIPWell7pAmbAbfWFy/lro6DUKdqRHBJcn+BOaCeJpKLoiX1 ongBGGbVq/zGvR+WHPsILFzI8IiaSyx9f5ZF8QYZDTxjlfzSJWoAENZK7SSSFBKOw3aG lTCzszaupOe5B3GxQYfTyGKeHYS5X+nQ37w0DfGdeRf4chAyRtK3U0VnX9JEYbliZTT8 g6Xg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K9ea48KW; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-153099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153099-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bh5-20020a170906a0c500b00a51d6db14cesi5472444ejb.401.2024.04.22.02.40.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 02:40:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=K9ea48KW; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-153099-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153099-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 819FE1F21BF6 for ; Mon, 22 Apr 2024 09:40:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C5BC13C3E4; Mon, 22 Apr 2024 09:39:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="K9ea48KW" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 9F1505644B; Mon, 22 Apr 2024 09:39:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713778789; cv=none; b=WqLDO0wOmeu4w+jhUNWF526r6GEmZrFb3049eiQGfGcF02mK1i9xBDoOkXWPL1bOppJKDn38pD7e+tirFORiyy+6jR68ME98zMrNyK4XCpdiUZflxQXnA1MyCNCFmnf4kKUGDg3kBnqOm981yOhMPoalbxEJ5CFAnzJPT0lqwMM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713778789; c=relaxed/simple; bh=OFmtNyDRWRTJbSwNl7zHtwOGFumsrsvtRsqG2bz4Bn8=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uILUq89KCvgXA8e63QOVYK3CgnMfKZ7ilK7ldgOtdOg79rDfq/vSDCCFJH+Uhg5CxIjMUbjtGXg1CicPfrDKn8M7o/Es6vBcb3UrOSGCArY1hAqY9MeDhS7v32pZLck0daIoFhjdYajEEoevQUJRWJxAui+HsmHHDNh2Vg1+6h0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=K9ea48KW; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: 3dd6783c008c11efb8927bc1f75efef4-20240422 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=2dUEnhw5xFiIc+XADgHYaBr/SM4VF5RqnflFunzIbLA=; b=K9ea48KWisxv7Tj3w51OarNJrbzwi6brHyqUqQxfgjM6EQD/lwHOHkUJgECBdi4vtigERHF5iOPPnFkUg4m2K23xj28LaujySgHy9rwrL9n9Eb5Ckq6kzg4xk6XwY2n0Ls0xBZ+mhHlWLAvxNZjqz+9hC6jNKO33/ykK7W/SCKs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.38,REQID:ad4d17ec-4049-49c7-97a9-da2ccd5a3c43,IP:0,U RL:0,TC:0,Content:0,EDM:-30,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-30 X-CID-META: VersionHash:82c5f88,CLOUDID:b9857786-8d4f-477b-89d2-1e3bdbef96d1,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:2,IP:nil,UR L:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1,S PR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 3dd6783c008c11efb8927bc1f75efef4-20240422 Received: from mtkmbs11n2.mediatek.inc [(172.21.101.187)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 681981777; Mon, 22 Apr 2024 17:39:40 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 22 Apr 2024 17:39:37 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 22 Apr 2024 17:39:37 +0800 From: Macpaul Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , , , , CC: Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , Chunfeng Yun , Yow-shin Liou , Jason-ch Chen , Chris-qj chen , MediaTek Chromebook Upstream , Chen-Yu Tsai Subject: [PATCH 2/3] arm64: dts: mediatek: mt8390-genio-700-evk: add IT5205, RT1715, and USB HUB Date: Mon, 22 Apr 2024 17:39:25 +0800 Message-ID: <20240422093926.15392-2-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240422093926.15392-1-macpaul.lin@mediatek.com> References: <20240422093926.15392-1-macpaul.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10-0.669200-8.000000 X-TMASE-MatchedRID: yvDAzrttxFUohE7hoJbtOAPZZctd3P4Bw8djaG0FrZuY5NBG7YIbV0d0 Rzx07LDVXS+cZR9Lon+vfGA7KBLaSKENdydioT4ACz1WR8KHe4Cy4iyjvVWTog2Y8xyy93kWwl9 GLHytwjokpovHHUzQSoAy6p60ZV62fJ5/bZ6npdiujVRFkkVsmz3yFinLOvkeMs51Y/gNb4oJoc 1HDJTj2iNq14IwfLTSS4I2Vx3pKOAXu6myHc7R+Xdy7yJkALcTcTYnJ0lBa6CTL3doWSD6VG1Rj oup2VCcWve+eVz4Pp5Vk5utmQ1VlGVF3+d9rnox6EMj9/eK3+Y= X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10-0.669200-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 8898A593C8B07133EB9E530053824434C66F07DBC80D11360B5EFBD2DD36794F2000:8 X-MTK: N 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>; 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>; + 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 { -- 2.18.0