From patchwork Mon Jun 17 07:11:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700231 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EB26DC27C7B for ; Mon, 17 Jun 2024 07:12:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ykdtNN2eSvV+gaTOhcd4ymFWl78qglOCJ5oqhAO9qoE=; b=ih7VmB4BorOwoM u9ysxz2a2BS5kyuCdvf6nJvpJe8jzj1zQkYWt7+nyek5zZSOILF4pqHS8+DrQiNTSZNf83gIGJZ7E c+/EvC8ME5Xy6XfvsFVN/cTEXtfvSI7lWrA9SPnypC//68+qGdB3lIh8FUscVbeQN2QR64aD3CDzH z8uYoIQ/1Z2aq9A8ms9NxUfWEKVpmUc1nRk/41s51bsfRsoY7AOQQv4T85aMzhx/FZhVAUfoP6iQx 1AGXB1iQyyRiLv4vMWcKpNadJoXD+lzy6skUXDBqZA1zVc00GWtbdiPMvaHb1WLj6HCHIIQnUorfu d4ycJMzC+MN/oOglU8mw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6X2-00000009YVf-1U7k; Mon, 17 Jun 2024 07:12:00 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wn-00000009YN5-0mSL; Mon, 17 Jun 2024 07:11:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L2LIANA/mwHZP7Hdcz4imGlxPRZF8CW0grNC5BURdJcDF7JJ06dPHpNPkh6j9vEGHGG84wkXJNZDgWWy+w9pd/SsDKlsJ4Q8PcdToLBjzFYKVHmchC8yKed8WJNuqzSDZ71xCuhjek8GMLyUZm+xeX655EWRNpMjZNlWfgWNw4142Pm1AuftFwbUMtXteXM1kcZj4Twgm5Z2w7uDFuM04By3UqM8jFIi0hg60AvRHIwkDl+UpBoZNWnFS8F5gQKkcY8oVwbPdZlZ63TWTEyuuqNp0sQ6O7ppGZpYibQd4Dsv2iLLOT6XKxxrmbVJDZoubHXpMQsFutqhxNRBje0Wew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oZ0PjwTt+XVTAG30Lrlbaz2psNI9OBOx0/bFuNlSJpY=; b=krgpVyzvmP9T2dNUFr5X8OUC/B2aBV3kAwjO6C+2y8uTqSw6GBa1k5I7UCztd00P3g0yA1a627/GdF6hSyL7eHSuMWDDRMuoSSnFJmu+cW5FHlxo8rr04uaFNU5FdJcXHaa1Q2cXrciGbcQxZoEBVofKi56HSaewVD8+NRm+ua91Uo9Gv3BsGmYNv2CwL5gK85UHYtemg+U3AvqOH+9MmC98Hda5dDWB0uk0WZ9FbLYakoik59vHKAUf5TZy0PJIjo3OeejmD1kPzUk2BxR6884+fZblzHi6sbfwKDF7l2LWRrXXemv8BWT3gZsbEUYKli8pc5+cWFCEPpFk4Aho0Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:26 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:25 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 1/5] arm64: dts: rockchip: Add USB-C to Khadas Edge 2 Date: Mon, 17 Jun 2024 15:11:08 +0800 Message-Id: <20240617071112.3133101-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: d09ba50a-1ef2-4fa4-c3c5-08dc8e9cb33f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: 1IgbeqXKK6vgBqToJYCDV6zVQ1F2Q+DD59w2UvEv8DG57TP5chM1hEy2MnNmJ0eHRUdDYwxZHIfN3AtVFSPIpV4w8Sef8H7n9TJbh8eRMKNrjfTLqWiWON2XARlvpjKikDVhwJWp2kNn/YPTrUtnsIQLRBUBvcJCyJlBzZlpf4YTY6OAqQKKXXlrr254Qoe8VR0MtyOa+9hUXjtJg0vHoEA0EgzfFETTkbyv6MvkRolsoAUl7VM/jqGs+kH8G4VqH8o/j9r3k9TsapUqsCjAhHaPvl26z4ZayLOxMYsQCtTQKGVkF2r2tpAB9e4waDKqSkNSviqfQOaLJ+QThgUrGpVI5dX+af0iijIsFgd9KqvhTkVMhifpSbBDSnX+1usCDZ1yNPZj2AuUIZcT4q7voSIvWNpFAbMjaWtKPlNfVCGZChhBFuU/X6BX/tp7SVxK3HKjCaHjDHuT24oZ/CsQhbKKN7Qs7VcKhJW4dbqtHXKS+ssIZbVGeYN54rW8I97/NxlYLxtFhOVLwVSQTc9d1Ahv3gsw1CmlTPV5+5VgzGNJjHE/2B+G58O0atwn1/xQBaaD8tppLl7IWBuwf4K6DQIofdebY0lwGbODdRiBTRLR0cpDL9x704Dsvw0xh0tOJ6JXB9nc3YpMSWPTerOyn/16P4UPW9SJFFRkpx/6H/HwYSMjGtTHjJGfAQyGB70AB44srKQysJLZoXaodNjPe9qbwAMbwxOtzf9ke6Uk0RpWjke8GbMvmjy1jUdLLkCOcRxLqdt1Ui+31vGV6BpU2tCQpgKPa3YJvKz7B2gvabarnGGm/WTWn6TtDbX7JIuIoaqhNAWGMlsDtkBw4b2ZCVShP3K5X60YJBi3comDAIcHXoEbwJP9C6mKck27xURq/oZc7PTnTHh919lvlfkWsBv6Ns53MgjNNBgl1mfLt0TJRhUmxnMJ4M1atLmQeb5w4DgHzaLkFz+wtEiQmH/8l1pfUM5esU/qI4kvjFTTmYad7/VPAzRw+yWsu0kyCYWoz4ABDhQcR0SFx77PUuv5UURz7gQA4vlmL0d2TsjDfcF4rFh+nBJLeyGVfdsGoGsUm7++3lSG+SJByomTYfQBVRa855t40osjsAdbDqu0dy9Um9wfwzytto8Si30s1AXIqMUhNjEfy4im/PLNrRcIyZmsNPVfXh1rvw7Zt+mKxhuiapbQ3NtRbsXlp1WfDrFkNpLzr4BjcNPtsLKMi8n77yTf/oU8kvkXP4ksZkzbsHDZ5tPQJb9n2W73BuSP7H3U9G6Lm7UxzcIFj1sybyP/n/vyw6KIk7VNyGX0e1zeKPnEzX97aBkk8J3dMlTLmovMHJ02IU2lWCx+OAl2+CGIeYgYhRADOG9sub03wh5jVmI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: H/xH6VCPmSD0+1HbcOVU7FQA/3msL1Vr165boIJmU51XUB6zPnPSRQVURxauTeTx8mKFAz7GGVcoXRmh6f0ktLtJCrJjzyiwhh2s3B5EgsbJPdTDeDtqH6QEqwVu8F//Ax/kbRqY7U/7+muJZEdkG2L28B9yUeBbQzH0/rHEpJLwAu9y6/EvCiISbnwnNzHmr9+N0rD0Vy55hkE+AWPwpc7uQB4VOWWyEuCfxjk5tjM8ZwiNWO9vR0tHVyA422p11lWn01hoJf8OOkoeoDe3XhESOd8oDp1AFE7NdX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UokcHq9KFIsZjlbCvO5Nx1tFGHbR+SNibhpti7lxIrjJBT+JBw7JuAW4QhwRvf17pZyEoUWXQ0sHWsa8b9AYmr45PxKUE2VZ4+UFolcUrJNJy6H0yUSqxr1uUNdO6kJ3LEdlqwqHUNfIu6YVojtQM1D3SvbIp1uCTWTD7zktskrOHawKvTPE9vFQwCKg+XmCcQipBqduU/nVU466gXRYLX+ZKO26W6gnZWVj2ZGns4LgZpnVhFJUYDZJZram8XXdBrpmp/ekQsjlixA4kyQ== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: d09ba50a-1ef2-4fa4-c3c5-08dc8e9cb33f X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:25.4478 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: CyhubkYcd4JH5D2LzOFI2OoyNqFggKfscppoFO25l/S8k919Qd9hrZ9fF8gi3XHv5eFe2h/sjJgXSvrPwgkF/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001145_267192_44DF5094 X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Khadas Edge 2 has 2x Type-C port. One just supports PD and controlled by MCU. The other one supports PD, DP Alt mode and DRD. This commit adds support for DRD. Signed-off-by: Jacobe Zang --- .../dts/rockchip/rk3588s-khadas-edge2.dts | 118 ++++++++++++++++++ 1 file changed, 118 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index dbddfc3bb4641..8c0bc675690dd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -6,6 +6,7 @@ #include #include #include +#include #include "rk3588s.dtsi" / { @@ -112,6 +113,18 @@ vcc5v0_sys: vcc5v0-sys-regulator { regulator-max-microvolt = <5000000>; }; + vbus5v0_typec: vbus5v0-typec-regulator { + compatible = "regulator-fixed"; + regulator-name = "vbus5v0_typec"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + enable-active-high; + gpio = <&gpio3 RK_PA4 GPIO_ACTIVE_HIGH>; + vin-supply = <&vcc5v0_sys>; + pinctrl-names = "default"; + pinctrl-0 = <&typec5v_pwren>; + }; + vcc_1v1_nldo_s3: vcc-1v1-nldo-s3-regulator { compatible = "regulator-fixed"; regulator-name = "vcc_1v1_nldo_s3"; @@ -224,6 +237,56 @@ regulator-state-mem { &i2c2 { status = "okay"; + usbc0: usb-typec@22 { + compatible = "fcs,fusb302"; + reg = <0x22>; + interrupt-parent = <&gpio1>; + interrupts = ; + pinctrl-names = "default"; + pinctrl-0 = <&usbc0_int>; + vbus-supply = <&vbus5v0_typec>; + status = "okay"; + + usb_con: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + data-role = "dual"; + power-role = "dual"; + try-power-role = "source"; + op-sink-microwatt = <1000000>; + sink-pdos = ; + source-pdos = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + usbc0_orien_sw: endpoint { + remote-endpoint = <&usbdp_phy0_orientation_switch>; + }; + }; + + port@1 { + reg = <1>; + usbc0_role_sw: endpoint { + remote-endpoint = <&dwc3_0_role_switch>; + }; + }; + + port@2 { + reg = <2>; + dp_altmode_mux: endpoint { + remote-endpoint = <&usbdp_phy0_dp_altmode_mux>; + }; + }; + }; + }; + }; + hym8563: rtc@51 { compatible = "haoyu,hym8563"; reg = <0x51>; @@ -256,6 +319,16 @@ vcc5v0_host_en: vcc5v0-host-en { }; }; + usb-typec { + usbc0_int: usbc0-int { + rockchip,pins = <1 RK_PB5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + typec5v_pwren: typec5v-pwren { + rockchip,pins = <3 RK_PA4 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; + ir-receiver { ir_receiver_pin: ir-receiver-pin { rockchip,pins = <1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>; @@ -681,6 +754,14 @@ &uart9 { status = "okay"; }; +&u2phy0 { + status = "okay"; +}; + +&u2phy0_otg { + status = "okay"; +}; + &u2phy2 { status = "okay"; }; @@ -707,6 +788,43 @@ &usb_host0_ohci { status = "okay"; }; +&usbdp_phy0 { + orientation-switch; + mode-switch; + sbu1-dc-gpios = <&gpio4 RK_PA0 GPIO_ACTIVE_HIGH>; + sbu2-dc-gpios = <&gpio4 RK_PA1 GPIO_ACTIVE_HIGH>; + status = "okay"; + + port { + #address-cells = <1>; + #size-cells = <0>; + + usbdp_phy0_orientation_switch: endpoint@0 { + reg = <0>; + remote-endpoint = <&usbc0_orien_sw>; + }; + + usbdp_phy0_dp_altmode_mux: endpoint@1 { + reg = <1>; + remote-endpoint = <&dp_altmode_mux>; + }; + }; +}; + +&usb_host0_xhci { + usb-role-switch; + status = "okay"; + + port { + #address-cells = <1>; + #size-cells = <0>; + dwc3_0_role_switch: endpoint@0 { + reg = <0>; + remote-endpoint = <&usbc0_role_sw>; + }; + }; +}; + &usb_host1_ehci { status = "okay"; }; From patchwork Mon Jun 17 07:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700230 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED63AC27C7B for ; Mon, 17 Jun 2024 07:11:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PXwyUR5gD3QlkBdBTBOJA30pi+GGWuiKgfUR7J7HkTY=; b=ZU39WfvG8TE1tV zUlIgzw5xS10Pk3/hMWEtxTPI9zFsBVulNBFaHuZJzKZiq3+SrTv4oGmDlNulsVUCh93crdfDd/XA m7+3CAnlIEdvQtBxSPpoKjJm98rH9LLS0SEFj8UceKBvKYGqwfWKJvhBvGb1pv01FhNP1PMBMwZwQ hbSv0jrzjUkWMGuikqEXV83KUOoX/smkve29KabAt+nJSyuZ2d/h3SSSRQNicP9+l/OBb8Dw4jf1h 75Ur51VEB44NhCp+iBi3ZEj55JBK37U/bPxz8SyxQe9thmEFtzeY3PEja3BI3zEZqOIst7fvt/h6s MyG6e2vTAPXbR3kVqhJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wv-00000009YRR-1PxM; Mon, 17 Jun 2024 07:11:53 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wl-00000009YN5-0hiE; Mon, 17 Jun 2024 07:11:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SAEUbcVgRdWu4b4cUEPLyDHeaMVHv+STw9l6Ic1p7+zh9tBzC9dS3hxtRzQQaH/ZOOwwgCf5Igjq28wUQwXEmBBjGLUkS/dZ3lSWbhlzrCUdBFciIPFNH6ns8DB2rVrKODphtGmb0eyld+n2HFREuXfw1yoApztEtBEWDSSo+q2eNrEKenCMcBOAgh2nqTLCYw4GtZPShxa7UQaQfekzyz/nOyVsE9cX6f39TMguIkHOrtJFDrVEP18XpSd8hdX5SFmj5qQ+tzRke1iVYbBEPXTpDumPpNWin8Tl7tGiehQ5SYIigpPJytn0Ig2G1vY3R+ytvvhI21SKPDyJbeHhdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=lutJzI8NSE3f7AXzCNg/cZwY862kkt0I4yc7Qb9FrSw=; b=MnzrZfwKKIivsQGMUtElEu7WShgmyu5eVznkkKGS13spzd+8UgFMuYJIssU3bjKqBBuLD1pbYGKMQidBKtcJpPskNui8X8ew10Qyr8dyCTTrwUusMlVT1cpu7KYRjoGH6yZFAyYFs0R0ZE5kcLhXNQQYa0xgwtAe6jG/fSW69toTSLUk00b41ubw6DpRCMFF6T0QhN5XQTIlnsP1C7uP0pxqx4P5QZ/bjwUn3hY1bNVv9ARxBJrM6cxLS0DWGPCal/3607MiwRsw8SdASFIyAZHYTzIcR0iyb0O+pMjwnFa3lXKVDaC8gShVCMZcwQ7ByZPT9YsXPiZKEkGT7Jgyug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:27 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:27 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 2/5] arm64: dts: rockchip: Add bluetooth rfkill to Khadas Edge2 Date: Mon, 17 Jun 2024 15:11:09 +0800 Message-Id: <20240617071112.3133101-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: 3692d415-b0a0-4dbc-3994-08dc8e9cb484 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: 5U7vuW0pklVJFeBiQi37kV4i/ff19DCfoRN61JyR6zeOudflH3jKlvBlOVTqHc48PNR6NvvVEywiLB/GAI/5KYUxkVh8SRnW7kHYPrjyvwnkNWkZii/cEQY039ihoYJwItHKMhVI+n/znxwiFuxhvGuv7DdCDRoG8QKjAqmaDrno5JdqUSVQdsJOsHEQeVLM5G157c9SX6SeYK++xXP3LmX9K+0IQNHvsHQXJP3MXdDbY8F62Bvs0DuRonA+tJp0qxQfNCWYeLuj56bG7tTcwsLY6OEfoG7MISmv1PccZAlJmuvNnjzse1ecuMzl9C9zVoDOmgCxQ4xkwdOGmi2xPiUDZVpawhJloWu9z5Kl0KV35cJqOzXlB1ztbGz9u7LaeMmcA0pE+W36VYaPukGoYAZU2gYDI1HqsVRxmxr1CdrfIgzcYxTelZ5tqUUNvfU8LC/TyTI5/F1TdrohIkddRz4/IgfZazWU0hSRHzvJBY1C0hsQ3OVUKKkFJs1a2dAGOrzHt0LkAKEFT6QeWERZiV8LwGsOLJL/QV/Sre4o1iOXaq0dgT1Ol9/amCauFb11+hGN3ZhSZfC3/Nvjo1RYhhCoWXj3FrzNBq/Ywk5Domx5RzxAJZZnx0ZY5mQVDuZg2ff8FoV8a5fx2HIm25OY1xVY0z7tR9LSkBpG98b+Z2PoAVeum5g1t/2pbi0XLQtZXsx9m/xuf9qluN0tpaEWgBmyR8Frp7xSmO1B8YG+z6OpDvwanH4mm7BW7HdpBE4OJwDsP48bMSOkDccMzAsurfQH/CqQqiwQuO+LqFl8rdmtwCSQxpuxg4s1SRGCqqWbqh6Ux14mRLIbYQjqRPdpxnj49aKKzOQYQH6FewU8DSDmLqrl2lpWElRsNbs4pCmqJ7khKzuW0aj2hJJ+EduBp/w7tApTxqMG8uV87n+EMQx558xngozTtsO7/5rlYl12zZVOVWhot8lsDyCLWPEEzQIUuBswzKE85Wl4+DYhaEThQcL+cMdKscgXeur8FAAhEwqnNiL4qywELWD8Tm4FPVgu55wIOy7a5EQ1iw0ow7gKo8lfRqrE3BDTxeZdNmDfPGlniPx1+qNqfknLjjbMKQRuumJSphj102u+9IHGi6LEHJlv91wf8bfMqgK/zvBZQ9/rxwJR8gPF0dMsDFANCTYGpEdzoByDuboaPgZpKU2RwrzINHCLTwuSwSSPoUAmBhGiXXU0gkP57l7NDsVjXAcL9aw5Ccp/sQ+ZPaLnfHfq9LFhq7tvg2prLQ5ZNvvyE2GxD9Zs8urrVGfQUy5inrtp1VUcfaHjAGlnDIwVGkhNovvQ28SLc/bBzRJuuu2lAEwKuZQmFMnwBB3EXvmRZWfVw4PQ7RGQePOFj58uX84= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: B4VQTqCVPAHM5c6TUE55ly1DZksslwCTEXLgS76/DgzSjHfrqJTd0zJPIEi8n4Wz6/uW8IDOuwes0NUnO0DZJsLyCWSNuuCMPUp8RDQ0hSYGJbjw0vn3sao/t0N1e0EkJQHfjXInjQI88+GVXOkzv/zxlu/tJfa37GNXWiHAgkwAMi5qqlsZMghGziKbeq43lDlh5jobO8xz8a1OUg1ZoJQIhoBisqpwJFzC26W5eomwn6DhmdTSUeHKdZtd+NCs1JMnOzVROYDSxprtJw41mLdfoT7oQOj5ebvEq5CHtD8VMC0f2wsTWd4BtlgRGR24THBobMoV7/mDuGGSXiqEK/8/af5B0noK3ETRZsRksEtB/SlZo68R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WmNRyra3goSlXq3LJVTAv2xU5T6bixy0DF0TWm5CDYtI9K99ZrHjfgefwvdBlT53naWFSbXcvOHsVCscricdpgd8zmmNs5Y/RmFtG35pZ2Gxx2DcsBdy85d2Tp4QylLJyhb1rTds9PxkIpF00ZrTBIwq13FhaUg== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3692d415-b0a0-4dbc-3994-08dc8e9cb484 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:27.5470 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Fy6Dx0kISR7pJ6bydK1L7RmzRZ/T++SgGwYq24uEWNW9oT8jUEDWvtSrTyO/7ypzSOh5OMQ8GSDZNiG1G8Pl2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001143_258144_DA0C6EBE X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add bluetooth node which managed by rfkill, bluetooth and wlan controller on Khadas Edge2 was BCM43438. In uart9 add RTS node in pinctrl. Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 8c0bc675690dd..a82f10312eacd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -77,6 +77,14 @@ blue_led: led-2 { }; }; + bluetooth-rfkill { + compatible = "rfkill-gpio"; + label = "rfkill-bluetooth"; + radio-type = "bluetooth"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_reset_pin>; + }; + vcc3v3_pcie_wl: vcc3v3-pcie-wl-regulator { compatible = "regulator-fixed"; enable-active-high; @@ -750,8 +758,15 @@ &uart2 { &uart9 { pinctrl-names = "default"; - pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn>; + pinctrl-0 = <&uart9m2_xfer &uart9m2_ctsn &uart9m2_rtsn>; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + pinctrl-names = "default"; + pinctrl-0 = <&bt_reset_pin &bt_wake_host_irq &bt_wake_pin>; + shutdown-gpios = <&gpio0 RK_PD4 GPIO_ACTIVE_HIGH>; + }; }; &u2phy0 { From patchwork Mon Jun 17 07:11:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700232 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 694FEC2BA16 for ; Mon, 17 Jun 2024 07:12:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vyh8GvJvIGBjOBnYaplYD+tATW3XWiv1VHmjsZNXaiY=; b=zdzJjtyPCUYIJO hH8obZ5k8P4Vf3wcZYgT/kYuMgCmlPBmZcPkIvvYCfJmISGKsDMwYa+gMRlYIshMEt6H73MvI+hzO DAO/l7eG/eb4b1ii2DXJ83tF+WtrjRTpV/vWPgv2sRJSnHRmV8KtG560OOO73+VuaZHp+unHxahEb PgynSsOo6QIj3y13a1jHH6WJu09mv+hs900fyvAMC3jIxUPmqKWOgh4N2eapjX3DdVKzrVlUgtjsV js0/2IKV6iHQNgmk9uwpLA8MRP4+s5AxW8oBbEg8EKW2TpFSPWpWj98LbvAOjIr0YSRKTcpoc4BSA wEHeNNUO/gJJHccigF4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6XA-00000009YaL-08hP; Mon, 17 Jun 2024 07:12:08 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wp-00000009YN5-1dA5; Mon, 17 Jun 2024 07:11:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UnyEDt7NhwvPkeyUdu5FJWi/sYTExtYvH4qVCm/RWEIzgOG7bOTkQmczuCEHw3YTcnIIv/3JIe9xyVmuYuTRO3NFK9eQoL68+xoCB5J8Mb3C0GUARNwUkjk25uQNV4vgCgLOWx/PsesqbNvwTk0r486CyIs/XHw6gvrtGA8aP9MGEW56Wuyri1hVtcCIYSPZQs1vDWt+sEOB6WSzoV54z46geRtaR1VKgsSIeSys8jc24+XW3sdyWVBzZMUPqgEeWfjXx4slLLC8FTmi2uVb2tMsuGMYaFATp70j4l45yrZgwGWJ2ElMKp92VxxfU2TLALRl9KKZohW6kQ4wU0IdXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=SdohYTFo2KeXcULLPV5gG9Ay2vgv53DUdn2Hd2Y2074=; b=JQKydYGI+cNN/kglTZ1VmRrNqtRbHbtGlBu7coobwYeTwh/Y3u9jYpcKvXUHxF1H+s+f7mxumCET2jDAUzBXUSj7iKdHdoWcM5DT9YEXdbvwkz2CX1x1H5JUQFhv/MO8QIKC8WVfPoV7uDx5xduv20IDGtaRpt1Iw8b3SPnmkJRBtFZ5gy18DkwjGr9SdMposzg3qg+mcoH3HoMQa8iOJdNGygIdQLpOPqHvWWdKnW9+nhy5xBQ6LUza1NBpqsfrzvDM0n5geAZIaarCyBHsezgygfuBxBvN0IxT+jDckjIDk+F2+V2AVa+Z2BHRWX08W/9PEpEfIkh+lIjlI2Rm9w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:29 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:29 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 3/5] arm64: dts: rockchip: Add HDMI & VOP2 to Khadas Edge 2 Date: Mon, 17 Jun 2024 15:11:10 +0800 Message-Id: <20240617071112.3133101-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d9c1b09-bf21-46b6-0572-08dc8e9cb5c3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: 7pb1ClXdj4IiGnt/pl5QUvhHNwIqiY16t5ZC1HPvsX8lkVcEero657lqpC6ThkYG0CCbNKGqIZp9AdHIsQ18NxirSKX2zpruO0moluf2JDnAyhVlB1DmnJQeYrTCTkCXu6D5MrpEEeQpjUpYEudWNCfcahKuQzS/UXXu1Xa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2JhVLVyIhV5+OvpvG7ClHnpcOwp68qjS6lTFKy0NE8K0s4LIVHDfUe7TMtfZDe9gqbHTLd7mY7lFurhyuT3j8ckXG6uGdxWlFzg8xhTwe8gWBYAx7mZ+dRq6GsvqJ31h24XyaLIXSiAtxuQARn+6SaDuNd8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hxyWN63KmJ9KfrIx2yfa3NSgg9G2ncuAmzbxMKy2Fm9Ja+6dDsUC6P/mc1aADkg8TjTp+mt2Od6e7HimHb62SGAxMoUPQL5p2ottn0jjhL0yiUuJVj7l3iyxUxvvM1afAwOxmJ7kQej0EnZFHghh9TtldlPPT1DTBm5N5mxCTBZe7EFTBJSjEGhZcbRvt+9VkMiSDEUVKGa7c9MEByS69rROUSeYAxxy0NLsyqXIZ9wg/kZiuKFGlO+jopm2ezEyfNA54VKwQsVmWPEROPHY3j4XBpxuosuR8giK4rvObmFNXte1DAigMTSnNJVae5K52PkUy8BFt33T9hNVD989GFu0jefjJwWRl9dWWruTTgptka5Up5KraBjjA4llmwUrtdTkUFI4qrZ31xEIgJYIeS/TP8ehoPJfHBE1ESm8WlkotFNzM4hjNJ8N0ZUG0/xyNE4zFOjacM3EM6ZOVH4nwXeFjqpyD5EVMne7rgEk3s755HQlO2ZkV6h8meeNxepke0JuBKG5eYUttfc7DiIwA6VTW3YwYhv8JDxD5LwWq/Pw5zzpiIny1iuQjqSm8qOm4HXYTPRI16WeFK7H0G9Br3FvK8GyBaxnMs9jFPLgDk/w5WOGOiX7yNQVFm3nxP3svztJ1ioekRnmbbmkxC2HPlUr7JqSBzd14SjLr0rDN8WQhuoMDQHtr8pxEEBK+ON/xHlECa3mcWBlRmMDJNU15MmkGOZZtbh1FXWJarKeSRsmcriEXgMohVwlETnTwdAkfN2YRdhr165S4w+RVF6+WBM67czP1qiQnElF0AOgIPxeuLE+s4unFfgG0YpL3XNnrQaZVDc5uTcv0WwMNvPUDfbGVdXebKlfxp7zx9tnO4zUv7n2y7r5rWu/VsgvzdV/+no2GBV31plXC3haGfSt195YY3aG35tJdU0Iu5bucKYCWq4UFkvq4JPajr2YTTJTClGPBHESHhmNGQfmeEYRLVPr9lzmETIkw5n//Hg1JKw/TUs0bEZlN3W+nCwVLrqIixJro74lz4rSYVaKpsTpKeP2+Dkk7wB2e9YNZTi3h5M90TZeSxAEz0awC9qmos6bSL5oK7cpDJkLmfCKsrtVglmcxTQneUMvhSnbBuZeBnXvrwg+xHKW6Ybck1YZqyKIofPLh+9dHQUcI30PYHqFhs3Nw8otbo3YeLwAMN3Oseruwr+nLcezak4I5fJ7GotXwwtDfSKE7TVg/XKjoAStfp96RD28+6ux0MD/zudMojKxk8F82yNaAoBPEcqkIniJKc8eoCPiDydMAgns4ZyhftD6k9a9qIRtRCsXM31A124iDmHLGmojbfNIbr1fU2cadw1J58JYHyIKLCj9iRNEpwJufyt2+t8n4VSRFsQezQ7fhGfygARZoraiMjMyKi7uobdW2zXs1CNrArVvHBoRiei3vP5i0aanaF6FtDquJHCYmCC/yZluh7CVi+eh4kcDO6sY3tjoo2d2UxErR1ZrK2leiNZtQCwpby+RJR4ER9kawUZCNS+y7Z9SLycNE3eOHidLdV4Snv31Pou8S9dEkUDJjwwRsB5MiUjhy/A5l+9RS2wVvmlNRFjj6tMoVgO7HjXKk4IwjK6D9Wy5OHdGgQ== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d9c1b09-bf21-46b6-0572-08dc8e9cb5c3 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:29.6329 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: wa5O1lxJFfVkiDB3tWrISfZt9wN+1BRziGSg4E4GDg4xYNFRsod4YDxSOB+tYi1GmT5BhtMXc55F4hB3akErIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001147_508035_BE16EB03 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add the HDMI, VP, VOP nodes which HDMI function needs. Signed-off-by: Jacobe Zang --- .../dts/rockchip/rk3588s-khadas-edge2.dts | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index a82f10312eacd..233bab17bffd2 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -7,6 +7,7 @@ #include #include #include +#include #include "rk3588s.dtsi" / { @@ -827,6 +828,7 @@ usbdp_phy0_dp_altmode_mux: endpoint@1 { }; &usb_host0_xhci { + dr-mode = "otg"; usb-role-switch; status = "okay"; @@ -851,3 +853,37 @@ &usb_host1_ohci { &usb_host2_xhci { status = "okay"; }; + +&hdmi0 { + status = "okay"; +}; + +&hdptxphy_hdmi0 { + status = "okay"; +}; + +&display_subsystem { + clocks = <&hdptxphy_hdmi0>; + clock-names = "hdmi0_phy_pll"; +}; + +&vop_mmu { + status = "okay"; +}; + +&hdmi0_in { + hdmi0_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi0>; + }; +}; + +&vop { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi0: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi0_in_vp0>; + }; +}; From patchwork Mon Jun 17 07:11:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700233 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6CCDAC27C6E for ; Mon, 17 Jun 2024 07:12:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Q3oVDtNY5tRYIFn4XFFgSiJLygh81+TJkddz0b440T8=; b=G+jFHx7XJYFvAr 4UOp+jzYOhlXx+qMm/qjaE3QTaMWrZ51oXknVtPHo/EN0lpX9pq986f67qVRIsQbM6p+15kAQaGj/ 3HBc8MVlPfNufuFUSp9Mf/lOIqOvdHAuj/yVYM509emt/8pep6ZdQUUZHeLIf6zipEFR3ZxaRXy3U dbyLzJf+eUzA7Vp9lyTeUNBzXK/vrBvk6M7HmMFir7m4CwGrYRkby4P7hKIKnd4r2KpYnrMX3GFOY EgWxwojBewUwZFUT1y+69nDkOr4iKTb4uczRJLTnye72HEt9gkeKX0Q8OAz+vPPcxKzMEERtxc3vr KrBHg5whXCxJViQ/+kbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6XM-00000009Yjp-322s; Mon, 17 Jun 2024 07:12:20 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Wq-00000009YN5-4AQU; Mon, 17 Jun 2024 07:11:50 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YzQbDt2iB25R4c+/mlawCG92HXF3xuL0Tc3nwsaYuEmLbFqwexhhc9G4z/jAk6/h1JkpOihTMMPAbICDAMUNm+5LxboG3nVUPkqKtLUkEtUBWIiz4AViwdkLAFjBw88gH+my4q14/mzczlNDeu+NxVudNrhyAV5gVIwDfjf1YZG5EhD5OzkhbD84x6N49CrJpXpBQSY3lNhHx+VZ3KqEib2gQWKIVb9ryI3My2O8izQ4sMQ1DxfdM3walpZyi4Z83bltRz7W/Btc3r4sz4LTOVkyE5BHw9H+J3AXHeLtK88IqyqmegW0IqbTqpgc+49457NOp7YOzyZ14et4p0+LTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TdzMnZ6hnydbPcbxzcpTAl3xkMClQP31BdtgdcWbrto=; b=hPTqzUCFxtA7bEnl2UCeuVw1jOZSlIaE3HFWGyt5MR6v3MhTkGwPdYp4cSV9b6bqujpg0rCN67olZXV9abz3Ejpg8dTkjqfUHsuDkQ7MONiXzLDeQy+nirJdR50E2PksNZ3tTDBzJ3pFzi71ZzI+L72UCsVDxQRpWLQYosVr64jyNGjAXmO7r72UrNQ2aV+PWSYCSkXMb7PqkJFllZxE1DLMYpLmw58N+fldfZ4rRB5TG43TaTmlVFbrC7CYUoC6Ub1HXJLJZI+0mBdU1dKp9egEQ9j8Pwt4HUqp/W+bQd96t5X9JLKsfbkmiujfpkp6GInhVt9hy/ZV+mdzG4XwHw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:31 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:31 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 4/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 17 Jun 2024 15:11:11 +0800 Message-Id: <20240617071112.3133101-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: 122b36c8-e5ac-4c6f-ae02-08dc8e9cb704 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: O6DTPmyGLKqLyBp3b2AsbM7AA4hasQecLDpW8wnotFzuTz9eSfzCH9bQlI0MdWulnEHLRQhBWx+KxqgjmpO2ll6jjisQaXMn8H0LmOESMbnWGKo7b1V/MzbJpc/bXicFbcOD5YVvR5tXGQAKSyZoNfNSFki1H3JQrY0hevcbC9IZBfIzvFAdLygvaMR3/8m5VtTsIlB6P3yAbJyFxt/KHQPAxwzaL81dCSBVRr6q5V5B+UH9fgACjfVZTIPK9fKxctBv4vsYUN2ElF/0g23ReDLRlYv+B9kBrjgnTcuTe883etCSC+swg7VJrdaOWriRuI39VtYhhj5sBt7tvreOJegNX4kQM6eYPLlWwAsNZU+MdhtcRqC6BQzNR55pp343TRftJP1vxueq0H/2Jnb1FddF1liQKp4a1uY9RC5xcifCmNz4v/nvRYzv0UHp4AldmSpCYzpkoEZpL3Db02D89eAvmAQDDjjGVFQyoQI72ztBzOuh17h/6c6dSYIHm49vDj8onApecLFTcgWZniJ8/EtJhSscRkaqoVMB1B/K+uSB6V4eq+6PAoCU1JdDlvyXP1ceYYR3EZnrJaUQPcZxWvP5cfYcakcuQ/ZL//mFncKpQTiueitDOOAx1a8BKLs9yh3BbZWw++ENgXCk2UpIY3Wt1TI+YjmutUlfc+78teoNFGIp+wKdLkR4lvLf9+0vsm52vuj9x/Uid9h2PaxdjNFT8x0y6g+mTTnNwkM8qT6fvEcpp2iEAdAC56ikapYEIWMXZDcDMc3tiXcgmzsxutuGiBuyhzUV9iFJbVBlkeznroRtKE1h1lBh1xRJFgsYRE/yWLSLbP8lxfK5Crng/87XCXFhUziRfwNUNLfPBAULwurR40jJ1vByAfoQ2XggITuAdnNHjstM7He37k2wzloQ1skXxOpmhv8a1/in8XgmsxtEbg2lPW1uY5LgA9r88BCCrJvNtUrQiwsGTREM/PFv4QHd2IRsUN1QnPs4y0fa5QJltVT60+y7Z0XG1blaauwlwbTQ7JLDSAXQ823glyXtSiELQ6RvGpaNzuUBK6WFrt1z0fV61D4nbTalVHQt/jnUP7icZHE7yktHCTwBPrG8Jmaw7aONdOsieUSE7NtIO3nk8AClnAr/jSPNWF8Rbg67jXSC1KzI17JFxwniZwSZZ8rzTPRF/Kq0B5qpDc74H0f5/9cvYoNmvMihc7FY0V8iahkhglgoG4vpXSP/M2jTG3vmOcv/xnDntwpOfWCxpZ99o3BEiA1+wYiPs/2kmT8R1AcahMeOmaSxpyEiRQz7TLvUNslQKKRMKq665Nl/1tDWQ2kgYrHQP6ZUs1+SzTIGX7EHNkbX/eg0BRF7Fn1bsBPLGLSGP1TlTD66Zlg= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: lhi57PA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0EoYgLdCKhHlX5Fx/d7KYrVVk9Tydv+2oes/ytzqfvGf068UC1caaR0SQUdMQIhhE7aGcWTMvUJu62mgle95hunMLUPUva1QHO822ZMgt9askh7B9zx6Nhf3+RhHvwpvV1hRSYJWLWJ2sRNC09rT7i2LQmXY1t9P0szuZos2dAneE38gY4SxluB0TpW6Lg/r4FwFEMRCTsz8ZELNJWFNltntOkUWoqGINpaQ/Ru7hEa4tPirg0M72nMYq186ZsxmlAMg3HZ85Nz+4hisj6PIfWXbP3hgQ9bIkaF18t9XlXyNOy3maVlG74+JP2HDTpC6QSgD602Rch8AZdK2QmtyvTQRVR9OHKpdVtaLXbEoZjBdWiwpPBKL3C2JWMeGzj3F1lVXIlmRSKnQp9hxJi8tk9V4Y9X2by4ZklWJathrsDJipUh/aOG6bfMVAD/tooXp2PQWR3fnawGaZ57nRHYK6Hdq6u6iw469ipkCXkWlPFaILev0t1eyMSxrtNuL5z4nngizwpYnsrTLqujKJs4yUoO9GwsRLm8zc9Nw== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 122b36c8-e5ac-4c6f-ae02-08dc8e9cb704 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:31.8174 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EdIoMJoh8n4usGsxWe0+VUXG25Pb8maaSxekX2onTwim91EKi+/zBf2Nqozw2Ifcm9FDnVn3kNFR5ygj3ItFkQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001149_082345_AC6B065B X-CRM114-Status: UNSURE ( 7.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. Signed-off-by: Jacobe Zang --- .../boot/dts/rockchip/rk3588s-khadas-edge2.dts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 233bab17bffd2..7d7cc3e76838c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -365,6 +365,23 @@ &pcie2x1l2 { reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>; vpcie3v3-supply = <&vcc3v3_pcie_wl>; status = "okay"; + + pcie@0,0 { + reg = <0x400000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x40 0x4f>; + + wifi: wifi@0,0 { + compatible = "pci14e4,449d"; + reg = <0x410000 0 0 0 0>; + clocks = <&hym8563>; + clock-names = "32k"; + }; + }; + }; &pwm11 { From patchwork Mon Jun 17 07:11:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13700234 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 79F63C27C6E for ; Mon, 17 Jun 2024 07:12:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=N8COEJ23E2brivUg5h7rtg6Sq3p+LRmHDm6EQvNrc34=; b=vMDPGNHZpo5wmk XA6Z2HD6ksgZh/UeXUxT3n7oVeVzr+B9WHwDy77h0gCmi/YhtBmnOzdVosePYI4h26KXrFx8fb54d 4WLdxXWRFJXWcpqkX0Gfg1S5aIWcjsAzVSS3GIDbeAp5f09RDVUSeUhqGGgxhCNBCntlbXVy2UL1H ZwT0UvOQJx8443I42toY89/Kv2oHcrvejMJ4bBVWy/sWpIwyi0wcJdVK1Nc784McQWdX+kt7FUQeP Ocuebn6MT3szKEtdmx4793kCmifPWjXY3MZdmdj0tUeQPXXvIHmB34wNfcwUa3Yo77lHmYcGLTLrX cF2SYA7pXChEM9iEoAjg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6XT-00000009YoQ-3w6B; Mon, 17 Jun 2024 07:12:27 +0000 Received: from mail-tyzapc01on20701.outbound.protection.outlook.com ([2a01:111:f403:2011::701] helo=APC01-TYZ-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ6Ws-00000009YN5-2kCB; Mon, 17 Jun 2024 07:11:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oVcjF88zYewM/N25kisMM6wKYGcHr+/0hH4zopTvMaOdkMnR/rgpIVzeyhGGPUTWse+ZJsxtHj148dWU4iv3qcP6ZVSgg8ndiJ0k4JO2Yp7I3NQzZ6ERYUOUa9/dKJRmfHNvFdoLOTf91y7ovntMTlEUr8C8HsCAG46zC/4bHN7lfN2zlYGDFQAN2veeovuEoe1jagAilOkS+2+3q3nu230Dt/hjccA8iUpD1KpXTbx/VhBDoYEOs4wpXAz/sLwFB5hJm7hKUFDryCM6+2qQRC5r6rq8NARzA1GJ4UUFvFf+x4gE1rC9ok81/SeMh2CzVwSDhy5xzFAIx3sy5TZH3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zpovuagVKrldqpdu9kaWlX4cHVi+n3y77eRANlmMoRc=; b=iOSk3QUYHmJWoqobiSs2Vs2GY6rT7FECugitO9Dh+GiXwT/zmAL1wsmMDA551CwVCH6uiyk3yKwsTB84gcvuzYRoJP7tVNECuVE/ZBLsct1le2hH1Pagn+HbLh5qYPE7O89GoWiZEjLqvvaJBaZweuB1hft8Wjo15KktG2bFZm+tp7kqLXgjFp8o21VrmMNNbqYTx7/c9plzMwk7WmFipVbWDSVjc9H8/uSbCkuSbH8hXAU5ss45IBoH4t4sbp5muiVs79mWu4j3U5v9YD/wxS5RQVsw1TiZAot8zWfEEzbcK7/ni3ffH1ChudaJyCV1YtFN+9QItTyxd8BURhTgAw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wesion.com; dmarc=pass action=none header.from=wesion.com; dkim=pass header.d=wesion.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wesion.com; Received: from TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) by SEYPR03MB7968.apcprd03.prod.outlook.com (2603:1096:101:168::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.30; Mon, 17 Jun 2024 07:11:34 +0000 Received: from TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0]) by TYZPR03MB7001.apcprd03.prod.outlook.com ([fe80::78dd:5e68:1a9c:36c0%6]) with mapi id 15.20.7677.029; Mon, 17 Jun 2024 07:11:34 +0000 From: Jacobe Zang To: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de Cc: nick@khadas.com, efectn@protonmail.com, jagan@edgeble.ai, dsimic@manjaro.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Jacobe Zang Subject: [PATCH v2 5/5] arm64: dts: rockchip: Add cpufreq support to Khadas Edge2 Date: Mon, 17 Jun 2024 15:11:12 +0800 Message-Id: <20240617071112.3133101-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617071112.3133101-1-jacobe.zang@wesion.com> References: <20240617071112.3133101-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SI2PR06CA0017.apcprd06.prod.outlook.com (2603:1096:4:186::15) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|SEYPR03MB7968:EE_ X-MS-Office365-Filtering-Correlation-Id: a1d6ecb6-e983-4ee1-6557-08dc8e9cb856 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|52116011|376011|7416011|366013|38350700011; X-Microsoft-Antispam-Message-Info: lX20fmEiw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5MPAZXyWUxZVAN7DVEnCkbyzCM7vXzkTtCcUgD2tFQullkdqQx7Rem9KcgBQVlZ72Lrng8S0rACDiDKANBXPZxFpDcODT2ulErpc3fD5qxjR3zOu+Nw1NM13lv86wr6PiJ4XXpSCGCpl5MZn/8XpxkxaCdEEQX6z+psYZ4zEPcSy6HHv/xPyshor8S2IHbAv6cb5ry4qpA1+rDdraTKyMMacg7cEGK4XQbiHbnTmNpS6maR/ThspjgxQHf22LFjZoD90/KIVZmx8zUgku+keBzb41B2oFkbAE5KSMWoYHM= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:TYZPR03MB7001.apcprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(52116011)(376011)(7416011)(366013)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: prSfRsiFGbKUqbnZ7UlcQkdJUfcTeF9ELgxw4vWvdi3qkXmIzCeLX2p70OgnIiTI3EobuhEMSRLRHePL5GyzmPCtG9SNpjoMVd8Je+uq17AOVIu551WLCNoolPc19OyMZPitkdLR0sjNyTnS4US07BBgIBdmPdzhsuK6aYtHUfQsGx+fxck/lX/Gi6jgg7taIGdWnkSu7fThqyAYSssTn5KRf/NjBAxqKoaXhHd0Yez35zTi7QyaJthsgMw9pHWOQuwaxxiMZs7iSBsMCfeDx6mWa+bQ9Yu/RwZCXrYIEc051Ddfklsp452ilPI/z6AoaOnsH4d0ljHjm85rB3QJLPFJqKmjsMwU97Bbe8Vis0jblbYibI/zNc/mxa9Nl7JWEjXaEALTf13DCQu0JIR6i01PTg28uKDkcAnueS0gieKmtipjDahxssS/18iFrzN/M6XR75Ja2RCDKFYZqQxq4VpxkLvTlMScwwRt/Jpy5pHWqQ7OxzK7PnlAC9PTVyNzivmRNMsNf7E8RPstPwOT8YV3/Q9bsfiF7Ltsl143CTl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OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: a1d6ecb6-e983-4ee1-6557-08dc8e9cb856 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 07:11:33.9973 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 2dc3bd76-7ac2-4780-a5b7-6c6cc6b5af9b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HC6B839YeWQPLag9doHM26o3sem8uD0FozAmYCSyubJC+xpSm2iVvBLrCTQmOrSmqjSxnRsY2fDQZjNzqXhzvQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR03MB7968 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240617_001150_747535_BC0A01B1 X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org This adjust CPU nodes on Khadas Edge2. Signed-off-by: Jacobe Zang --- .../arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts index 7d7cc3e76838c..5fb15d3dc23e9 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-khadas-edge2.dts @@ -160,34 +160,42 @@ vdd_3v3_sd: vdd-3v3-sd-regulator { &cpu_b0 { cpu-supply = <&vdd_cpu_big0_s0>; + mem-supply = <&vdd_cpu_big0_mem_s0>; }; &cpu_b1 { cpu-supply = <&vdd_cpu_big0_s0>; + mem-supply = <&vdd_cpu_big0_mem_s0>; }; &cpu_b2 { cpu-supply = <&vdd_cpu_big1_s0>; + mem-supply = <&vdd_cpu_big1_mem_s0>; }; &cpu_b3 { cpu-supply = <&vdd_cpu_big1_s0>; + mem-supply = <&vdd_cpu_big1_mem_s0>; }; &cpu_l0 { cpu-supply = <&vdd_cpu_lit_s0>; + mem-supply = <&vdd_cpu_lit_mem_s0>; }; &cpu_l1 { cpu-supply = <&vdd_cpu_lit_s0>; + mem-supply = <&vdd_cpu_lit_mem_s0>; }; &cpu_l2 { cpu-supply = <&vdd_cpu_lit_s0>; + mem-supply = <&vdd_cpu_lit_mem_s0>; }; &cpu_l3 { cpu-supply = <&vdd_cpu_lit_s0>; + mem-supply = <&vdd_cpu_lit_mem_s0>; }; &combphy0_ps { @@ -208,7 +216,7 @@ &i2c0 { pinctrl-0 = <&i2c0m2_xfer>; status = "okay"; - vdd_cpu_big0_s0: regulator@42 { + vdd_cpu_big0_s0: vdd_cpu_big0_mem_s0: regulator@42 { compatible = "rockchip,rk8602"; reg = <0x42>; fcs,suspend-voltage-selector = <1>; @@ -225,7 +233,7 @@ regulator-state-mem { }; }; - vdd_cpu_big1_s0: regulator@43 { + vdd_cpu_big1_s0: vdd_cpu_big1_mem_s0: regulator@43 { compatible = "rockchip,rk8603", "rockchip,rk8602"; reg = <0x43>; fcs,suspend-voltage-selector = <1>;