From patchwork Wed Oct 23 08:09:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Macpaul Lin X-Patchwork-Id: 13846660 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) (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 30EDC155352; Wed, 23 Oct 2024 08:09:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.61.82.184 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729670965; cv=none; b=BtmLjlgy/+U6mo19k2UEwbcLzVH0v8WSkhzbhBMAw676OPFV/xcqPsV02ldbvJNUophShNA3q+Q98VXUkHs8kZfSVQXH2mvv1CvBDvhf5hhF4I5sCkC96uPGqbrT8QevtZJTvrPEqfkX1JuLomEwOU7bNdfEMLKzHmfrl3oqqKA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729670965; c=relaxed/simple; bh=cVJTtuqNvBoo2c/v8o3Z57VU6P7zWn4UcE9ORaAp2XM=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jWPTPOoaHSnMHJaN9BFjYtdWAL9smKJ7NPpu90KgIQ5u7i0HUhDHgXfOlGpvHm71Mb0ZuzeTb3zvTHyRtFqJsW5sPlJTKYgNq9Kv2oAAYN/mcHTvMsu9ZOwMTEmEZ7nFQqeRP8SD4BKGgBEJTzkwBOEILQDdc2piU9iI0GL3cA4= 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=G0X/1fwU; arc=none smtp.client-ip=210.61.82.184 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="G0X/1fwU" X-UUID: 193c3654911611efbd192953cf12861f-20241023 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=w24Qkpigsf6HUVrzGiv2wyzaHNFlzCPVSWhYfhqIJgk=; b=G0X/1fwUoXV0zJmJ7Q6MKueWGMuCZuJcaRAzm+CNV6mwMQLCW+mbQ+/AlaBtCTBIq6NchjrUPCkuH6UTXB0EN1ksgApd5E8ZeGvF9AgWt5P3Rpr8h9p2fhQ9SJSrhXGxizO5gzr1u/6TF8ZPIuk4vXbuF7yZ0sZbmy/4xDppByM=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.42,REQID:5c72c31f-12af-484c-9385-c45cd8b4d5b6,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:b0fcdc3,CLOUDID:e7d1fa2d-a7a0-4b06-8464-80be82133975,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 193c3654911611efbd192953cf12861f-20241023 Received: from mtkmbs09n2.mediatek.inc [(172.21.101.94)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1156656146; Wed, 23 Oct 2024 16:09:17 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by MTKMBS09N1.mediatek.inc (172.21.101.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 23 Oct 2024 16:09:15 +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; Wed, 23 Oct 2024 16:09:15 +0800 From: Macpaul Lin To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , , , , , Alexandre Mergnat CC: Bear Wang , Pablo Sun , Macpaul Lin , Macpaul Lin , , , Chris-qj chen , Fabien Parent , Simon Sun Subject: [PATCH v3 2/2] arm64: dts: mediatek: mt8395-genio-1200-evk: add support for MUX IT5205 Date: Wed, 23 Oct 2024 16:09:12 +0800 Message-ID: <20241023080912.15349-2-macpaul.lin@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20241023080912.15349-1-macpaul.lin@mediatek.com> References: <20241023080912.15349-1-macpaul.lin@mediatek.com> Precedence: bulk X-Mailing-List: linux-usb@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MTK: N Add ITE IT5205FN (TYPEC MUX) under I2C2 bus and configure its properties; also add references to it5205fn from MT6360 TYPE-C connector for TYPEC configuration. Signed-off-by: Fabien Parent Signed-off-by: Simon Sun Signed-off-by: Macpaul Lin Reviewed-by: AngeloGioacchino Del Regno --- .../dts/mediatek/mt8395-genio-1200-evk.dts | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) Changes for v2: - This is a new patch in the v2 patch. Changes for v3: - No change. diff --git a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts b/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts index 83d520226302..4c11c100e7b6 100644 --- a/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8395-genio-1200-evk.dts @@ -229,6 +229,21 @@ &i2c2 { pinctrl-0 = <&i2c2_pins>; pinctrl-names = "default"; status = "okay"; + + it5205fn: typec-mux@48 { + compatible = "ite,it5205"; + reg = <0x48>; + vcc-supply = <&mt6359_vibr_ldo_reg>; + mode-switch; + orientation-switch; + status = "okay"; + + port { + it5205_sbu_ep: endpoint { + remote-endpoint = <&mt6360_ssusb_sbu_ep>; + }; + }; + }; }; &i2c6 { @@ -369,6 +384,13 @@ mt6360_ssusb_ep: endpoint { remote-endpoint = <&ssusb_ep>; }; }; + + port@2 { + reg = <2>; + mt6360_ssusb_sbu_ep: endpoint { + remote-endpoint = <&it5205_sbu_ep>; + }; + }; }; }; };