From patchwork Mon Jun 17 03:05:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699923 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 CBA52C27C53 for ; Mon, 17 Jun 2024 03:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=4yiCrwYIMLTop9ycb1PwgryiANIVb67Q//bAgDliMYU=; b=ic0lwAuM25WFvBsVXPsrxtJJsn UMLVqM6Bn6QUm1guRCC5txOGwG4bDlgdBmPt8EpWmB0/L0M3RsRuUhHdUNkNXpzsUeW5kkb8ipDLD YbhE53LpbdMOdkqrkJVMWFGTetYTDYZ2OUM7xxys/G0oBg5lnsFwscEAOaAVeAgRQrieleRDQiExZ 5aF8S2Xxt5lkWr6fQ7YdX89s7Ckz/niQDZQIpKAyB6d9vf3kZ7W/9tAnHOi8Zgbk1WVwWGz1ucU2p yL0EK1d8IVDdX1D1f7IoILCfmhkD/jp6hu9ZwRSgTo4Td4zLhuFRlSMK0FVctfIwEn6ocAv/hlXER +SdQtVSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hR-00000008xMI-1Bka; Mon, 17 Jun 2024 03:06:29 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hO-00000008xKg-3KvO; Mon, 17 Jun 2024 03:06:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AhDrpHhjAu/fW8GCBAqAd06EhID3P99bxlaxYkXK1DlEx+qKv2WDMpsa5Cw0jHNE2D6CHM/emySuajgc18nrNKDA2Hg+CgDKUrkUnhXdRWe0SUyIBPJJQ+l0ICduwkEU/JkYP6QFD82nxPcAu/6/RqJDpjGz8FTGNGotfyTCR09xR8RbhusUjyAwx4OdYnRPX55d4L9CJ6JU07X8v9wuKNF5sifTM0ZzwWUv/xAeL5ulR3Pw5bLtO2pkSvq2T/vash86/Zsf1B/+6eCtnTN9ZUw2H4LhZBQFjFCnLRBtx4sAWJgfTyt2RDfEmcDA0sRMYdKqameVxOTmy10nImVKbw== 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=4yiCrwYIMLTop9ycb1PwgryiANIVb67Q//bAgDliMYU=; b=Wj1gT5KYsBTfsNg/ThkTv90TxtGxNMZCO753QLfw1aPf2dd0v7tzWF3B7QtGib67asnFggE0Hkp2aQMMz57IkWFyObh08gDmwz3cnAPvX+gWb7Ki+FY758p5QoahbtdEEXA8Cz59DWwiNOOA3Q0uuXl7VZOMDDzD4G5Ln69BKlb8QC/LrtPH6DoWxdUM5nijogF0WpXo7WNZXYCPPKKVeelTauxp1Uv/BLrEjFMijtiqzMrqc7M8TELGXRZ1oc4MFIy+jdzh2EatNaGMG0U6Or9QB6sFiy387xbm6fRnS7X32OUeNi7HntIFg931BKUUAPLPUqOa5+I/aYdBx8+gig== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06:20 +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 03:06:19 +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 v1 1/5] arm64: dts: rockchip: Add USB-C to Khadas Edge 2 Date: Mon, 17 Jun 2024 11:05:33 +0800 Message-Id: <20240617030537.3112356-2-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: 5c2c6bf2-0793-4461-b5b5-08dc8e7a760d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: PfH1s6Lbd+EEufZYsXj7J3GaEVIRcpV5PeRYuYaOaRscJj52W0T+QiuDWdvUTTonQcMof1dIGfy4iyKGAbPnSBycZoxdm96BKeD0Rhvk2L8qqZq9touDGl/zS48L1U+fstkzy+UEsm+PNl/flIZ2+jWNfllo0aIbUl2p8x5gq5ULgeEChtHgmrQqGOpEQRKwud+4acLn4POui461XXtPxxBbs74APMPewedz8Go3Kbzo+7ZKrAh+utfqsU5VacI400myj4XqSb3c1OfyFkNKJiWcpkc9K/7z88LkPPmqITl3WkHdVl9nokdI4rJ6Xzj5+np91wMqwpPVN4BiSB/0TszaRk3EGjhAqaAjPqpOQefO17gjtdlhJbzcxxPRi3RWqEsVS6NEeaBwBWLyjVRWb4YTKREPVO8LBcK+T7S0FLWztoWS8W2DP2Nh67dVCtzFggHuUt6dSlP6uS8COXaPM+wLiXWCOdwiEA7jsjayfkqNzKCgu+cbmRrSr8whtWrkFxO7a1r1F9sBHRmYQGO2KKQUgVGSITeV+bUqjpX+UxtTO5S9VMN/3QbQ8TLXKrcfsWr0vesFYH3rzW9DFj/HZE159ZZhe+pIyXRPKZP5GJPjPrgaONmc7UA+c1l8+6QBpMIJkfSzZ8GRQBX4eUt9xgPWBw80ObafcvKpkjVEHwP2lPxYG5Xmik7+H7FXOnB4G8barqtQORoLS1MjVJXr1wnRrk+cgQDEh9TfSBfvuku8PAMoNafDK8HBJbGHulB8Ty2PG5uNdCkU95UolGhWELZx6lhoZIdeEuSCrcOt7uApyUN+FnRcpzgEQFf5+TIs0/dmKjvddnQ+NuRJwD7y+JBNUenph4SvQUq86M7uVFbHUwxZ7Se8pfCZME2kMH1w/m0RV07vr66xuNClHwCORaFYwl6F0OkfVovs36+85AAFS/Pc1KuXs/3uFAczgLwuXG2M3vU83jRcW1Si9HaCmNvwIQv+eRGQ/YfX3KoHCDDbMAoPsz4tRXIJ8/W2LAHhsVZe69NCXKnnRHjVj0jQJK3JyUMrGIddTWGEbOwhClIJUnAG4Em+Z+C2u1KLWpWLHoQEqMcADUOrc7Bc2EPicZb+rK7hUWkR/6AT+HX58T5Vw4NKGdVtHBW9S3eoFcgRvBs/fFIwbF2nfottmzlVoG99MfyEps+1/asEJ0AlfziNAfetYdel/dOYHpSgzTRf60757VBXmZGKxQt4PjZN0ApeEuh2Lctl/dMG6lkPIf3kV5DhOjPkQSZKXKSSIjTS2Yc64MD6WsORzeww1vZuuZDDjI/7Y3rMgdcOrtBc/BJZOM77YXnd/FUSP5eEfftub298XaDv1WNhT1fhf4qDef7qELnX8S/vox7Ib0gV5e0= 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /XlONDDOYrwFRtZSw+SVVc4ruvo4c+nTnbvJkfDU2yLbYp155OFzlr4XuoLSdS6jLnwVEr6zjj/E/Ia7vm6cJ/g++bE/1u/UOi0nzD8h+5tXu2E7Tdut/M24yh/0kM9cEvbRQde+BTyX3UVeiVRyKRb7Um8mBnge6TD/wMFJw/qPGW2okq+pD5hWUlq2SOPe8eZl7Ykc6K1rersG7HFq1YKivXxZ/xIiK/BguBAtSMDb9ymmY/128oLRuelz16xLeYHGS9jxAsze+JPGaSfwE87LVZ8Lxl6yBw74Ttku92+0l4d+AVMZlg22T/eRlMSG1q+V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M/ulhqm14pUXfTLS8S9ssIvtDff9iK3v1+O7kFmt2h0jUCRRzLrijiHnW2NtrZj4FMXJB43RvF1PrmhsgLOsItKzjnp3dE5YnhUaXfoDqW7pDHOhRO310v1wbuD5/r2sU8An2VpDIjbP2G11SrMh2mZHZl/f9oZiHLgu2LG3E/dyKXai9kIF42muEWArG/Y/5cQuueCQDfNB4mP5685JUA== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5c2c6bf2-0793-4461-b5b5-08dc8e7a760d X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:19.8615 (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: SGo6Fvijti6KTj4Y7um1s3vhHD0IOwrhlYBIYzEZD9a0JZjRaNji1M/2ZXLdOVJX5CCs8aNGCfrKLKO00a1U0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200626_867839_B02229C1 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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..9c2678905d236 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 03:05:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699924 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 63749C27C53 for ; Mon, 17 Jun 2024 03:06:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=FVw2NgDohpQBFahPboLSS8bU10mCoNlgnT9lJAK7tWY=; b=hqtVoJUv+pnDsvV6MASCnMBc+b qNvvKQdiJsoU6L6Hzq4ZnoUG4SG2ZYQ3IOkISKmIyWcrjgnXuKt0z0su9aTtjtNgY9haw4wsVus8M jdboIqM+nD8RvDk8J3RCjuNfA7l1RWg6X1UnxWtnzLpWoqG4X3ezxDxu434sVs9SP0PjvRB30nW4Z Wj1R73rdklpQjdZbfdqq2VLqA41x/EZKS+DhzVO65Rru3X1nig+wO8v9OuFmPfMAOUn4U0q2YMnUI Twu+dAWdL3lMj1UrD47NQXkfQiO3lF2LneUit5MhloA5ewo9scF4lTpOlxPeO9X6zoM9/h6r1Gied muU6ErJg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hW-00000008xPi-3rnz; Mon, 17 Jun 2024 03:06:34 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hQ-00000008xKg-1jjl; Mon, 17 Jun 2024 03:06:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R54olXRGhaZqgAwrT/yWkcKb5M+wGrEV8p7sKJy4S95/8CPobqjYsRvOIp4+VeDN2moXBPoj0EI67hgPFWGd6AfTQvP1VG2E7vGHTvGpKV6zZxXqK4QI3gC7YzDFsbPXqe3rGHvC4YmQbJ7J58D92r5dgHGPc9fSNNl+FDLHEzaUy1tSKPWwy11ezaLWlyb42aG9nCdhLNlp9sJSDO8HQcCVUGqf623VoPhwotLj0fbdIO3yO++KFYIg/eu/1oC0IXGwMa9dfzXpNM6mJPSukVtusYNbKyGx0A/7AvqTNNJHS5Ye1pjpEpJSqSBYdBigNmWWmgKl6qwkDvVJgxgv3A== 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=FVw2NgDohpQBFahPboLSS8bU10mCoNlgnT9lJAK7tWY=; b=VArHqbBYhvQiIhZ1vhyRIovnjETZ96RghlwbruYhmFeSI71L8bKPi2QTar1q2ZBsrReMs5ZaxXRf1ovvghqRQpOdx40qCRIMY71TIAsqFoCK43np9/Afee6leLVwjhl/z9QqvQEmL1ZNaObgJPaHTmxjtpaPT3GvJRDftwS/z7+v+HZDEVCuc9C3nGveD44uz1FFQjpHNjzu/aw2NgUhU9dcdIIaBO2tWDWetHOUVBY7CCawezCcg+R8Y81h1541ccoAWB2ntGHjXVCMIb9m2/4LPP6e51KZU6QfplUEKByRcWYJOCZ44s0u3FKOaZQWd2N1QmCPafrxCk8+A8o7Rg== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06:24 +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 03:06:24 +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 v1 2/5] arm64: dts: rockchip: Add bluetooth rfkill to Khadas Edge2 Date: Mon, 17 Jun 2024 11:05:34 +0800 Message-Id: <20240617030537.3112356-3-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: 5ccf8aac-084b-452b-73b1-08dc8e7a789a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: Lngn91gb+gCKWtrnI5bNf2rIXoGZDizm4EVEa8PI/UvPShbZHFuenbTjki11xtkVry5d/0ZlVr+JyV1EbmxDNoGs7E8gp59j8/GC5XPkH70iA2uTC4nj7CDEeVsB/bX3BMT71iZzKImnWn3fsGm6OqtEFqHm4Ruih9iruSsLzYr9+Z/3TI7lNXnfE+fR0Ze6UiVhiUnzQYUtVB1gKyelOI9uuINaxMggS5PbglwiNJlpwVv+Ml0uL6Uc4zQyJx4AV+ZP9xJOxcbOQK1QRQ74f0ag0t9bRE2T37j8olygngV5+047rIluVd2AlZ78Banm7ccoehkDNFTjnZXBGZo9wPwovENX+SvxzuINxqz8MNgg9quUzhjiGiEdGfR7Ef6nkm/oh7vSWXfvPEF4Yl82Dtvg4X0yeXgWVkSOCixfXRkcVuqs45QyX82gaaxCYWxnSzLTEcxzCFbM9XKK6WWN/97n9wMMF1icuvfhHkvfBeBRcSkwv7XlABJjPKq2puExEbzXnaC6n+mwJPQM5ZWtt1Ut4fSpG5eiWiJt+B3iPXIsH5ZwPhwll5ZdkXdkB1O1ndtQyF14s0cRiTU8NELCLKiA/0nacUEFxGEdXbvQTpLjHl1yyL5ulygzUviuAi7lt3kSIwbaTBMJjwgIa9yW4PaYFe0OqmSFXEaT/BmGwqEvf0HV4HtsDSzJsdRqPPCanEldExTYkfrhpyFwzPmUW+SQBlzWrZ2n0zgw0ht20obQJP9R+eIMRQBXqo7pab92zqCAOVsmvY355o8SOWB3Ii7fj6Ux2K5hx0VkM/fsLjwvRp6plDglKP86t3WXDqb8C3LUn7r5IP4gCpAzOwS3Gx5Vh5nfLwHhIadPbCIrbLsflcsAlWm6FswR3iLB8ur2bVNr3pHSKO3Lu5efTkJ3ao9y6avznKLWYgCYByoKDICSOajvTaG4a9hqvP8nsM2xWdOruQE3/ze2kF1f2wKeaGhLlFXQj22tJVHkaF6OdH8tputKOyBF1RBhu6uPPbbcjYt6SjWvbVuXzTWI11uBkipcTWbJamx53ZWzEugJkL9XJVcQsex+2vPjUUw2TkcCtfwItIiyp394fdhkHavQIE8fb0g/WxaCCqlbQb6WsxkXBQpylcif73AIhmL6xUd6nMNA/sCDhvG1vTXmSRGN+8rGF50H857AY5Fwg7j/ZJU1Ap5nEyKk37fvqe838QrXz2IBacjIDms0OdqVM6nLWRIb7YGQgF1B8lZy3TdHHy8U4S0TivmnmMOHHs/vm4b5c7KnY3WKof4PuzVIkzy0weJebmGbiQBQVYohPczHsGgkq3x5lxOjDvVUv5yLLYRit79Yc7HH4QHBAzH4GTgi5799Rf1D0dwnZ64pR080tF4= 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OI+VyJJzAJ007z4rgn1u2qTYFXxDbLadVszGl4XnRBxdyJUhbe8LPRACIl4q1Eyf7UmG1LAZYbclUsvAgA8apk+RjYpAZB5XnHvEV2x/ZRAzH2uLiOMmsdwy0YMvLIDl8r0qFevQ/h6fZXAe6Dvvb90R6ohr9tvQ9r+fdSDeIYtQZfHhvTub92RIlf/XJNldUagTuZ7ZnSq4Sr01X7/HApbiiusP4WC72I5S3AtyuNjnLQoiG6DOsCt+I8TFogvYA+SHnqT80dy9/ibj/OmGT0KLCEb+3McRYOuLhiNyPPIIl7++W694It9DWo9c5RqLwMh+YKaAr0lOA+E3/gsim0aWHKWXpmblbWrxJ+6qdbbetO/Q7wx4Ymm0d00ac/Pj3h0OBs25AYrhyQ9W62KJRXMQH7MkQQGqBEyJEgBECeWUQ4shswoPvcdFJn6PWUDU7+Av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ZAc8pm2yyPwgkk7348t3TAKM9bha/Q992lVHFcEL250zyU7jwD9KVBr4EsImqXlgnbOiGAnGUM7IdJ5A== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ccf8aac-084b-452b-73b1-08dc8e7a789a X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:24.1376 (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: yr3pIglHmd/gEC5VokNWpsyCJqqlnwr+7bjbWCs1/q+L6f559pYRwCWb0GFom9C01Lg3RVu1qHHiDX0igSDsaw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200628_478925_2CC9F1B0 X-CRM114-Status: UNSURE ( 8.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 9c2678905d236..3570578d225b9 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 03:05:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699925 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 300D4C27C77 for ; Mon, 17 Jun 2024 03:06:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=yFwsyf1hkdKdaz4QTwfikc0ykmFvd1jglofoX+YanY8=; b=JLy9AyGqUqwUBdZrokACRRt1TZ ukvjVHVTYPSgkqIFPyQSSz3NDlxLKXCtjbymShpHK72SQBOlCdyBCgtBEEGyIlhOdoNkUYWnM6iUl F0+QvztbDenL+K0XwPQHm+rewNNQ+X5HE7d/IUPGEFKlw8749qE4ZblWV2Eddx7bXLfVEDcaG9zst 8+W/g252JIsWw3zlqVIXxUF2TlBwc0P9v3+DPsPw+/Jk2IpWWAuQpf8tmCaI/GCaZJ6wOEeGpxyKM 9ZYtdNdpLHGWuCtkGYfVLyoglrHTxFl/aAf61tl5ocBbclc3yjiEAt88Y12iDdXyKa6ZHCd1s27hz bvjY/62g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hg-00000008xWb-32eZ; Mon, 17 Jun 2024 03:06:44 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hS-00000008xKg-1lZ7; Mon, 17 Jun 2024 03:06:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lzY6kM8jBePuFEuP1nFaM4fM5YhrvYeJ+fQUEKXt5RjT/rL1BFBnnafvwTM+S1eslqvVZB1wX9QiffFA8NMJCy/vOqrbTD1PVJ01OtZ5w/AzAGbx3Pso6nyqzdn11icURyxTTGPTowOkv+OWy7CxHfDYkpGm9egoIVXopV7lSZsWAg9fMnZcPpx+G4ngP2zc4QIL+kRr1hxaLX474ATI5Qihb0w1v0L/+/s0oQ2bY9NC5Jnf4E8T5cZjRXojZEFWsWHPueVntnKwXfxSl4iixBSwjPVUXBBHW6fs69xK8ocdq+XiS7pe7vL1SFBXu8hGuFiMRWCE5uZp4+ZZ0cRXjg== 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=yFwsyf1hkdKdaz4QTwfikc0ykmFvd1jglofoX+YanY8=; b=OStR+R3V+UH/nEbAP/dZK3QGKC6Byb+PThkArjj7VHZj9tP7U7dd3zC6cFSilHP7/m2NHSjVA2Sr8ZZYn+Qs5bwTSP+g+lEZqoVii3L16gIAl9vU5+Jn1aYMf7Fn2UXX0PeLDgBKMuUxOduRYjp5SuEEwY9tRwdNFqZeodDocJfrN7NWiHL4tFemaxhqTGCSAakC7mxVFeftGd4TwG+7Muf0Apa6Qnk3TvUkfnOG0uvKcUNahehoGfu5sBy28KfGN3wRuBN+gGeYBRIp6RssbvC6l+MQYfhe7ebCf78RFvKRUCsajl/ubk9xB2hN0itk4lMQsY7ykuJD/YoWjXrEyA== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06: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 03:06: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 v1 3/5] arm64: dts: rockchip: Add HDMI & VOP2 to Khadas Edge 2 Date: Mon, 17 Jun 2024 11:05:35 +0800 Message-Id: <20240617030537.3112356-4-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: 562502ed-8a45-4f8f-81be-08dc8e7a7a57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: 2ixMqbSdlV0ashFyjtm2j5mWzBvYRqJBz2lANZ7+V1HPF9ZzMKw6tnkfmslfquHEUhB5UWtCB5znXgFqrrg8iSlNeS2hiXBpavKF0YnQbOwpvfntCopc4ZxuMdue/Qcy6cSxOrROf+NzTlIfldfdn9q+IH5aAAugrGDoXSysIj3L1U9Yvf1Y0wFMMVY09/dDA2eQmav02z2jho6LuQHE/BC05Itph/ybtsv1J5miGrFpozmMwkOvMLd8hJIXUF7zZzpETYcucce47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30YG1earH0AJrrThhrE2B29bOg0YsVBdoWX8BFINXjCQR8= 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: v4OE4p9p0Zsd9N+2Nt9D7vyJz4SavJ46caW2IuKONrg+XNpNRwh8Xr3WLafDvGenu1AlsS0KKpjKKoL7lt8vdGtRV0L0OIT4f32qhzBfn3icJOu3MB1YuV5J6200Hi6dxBs1EIQQ/XX4CZeYiQ2aw5ayGNiOKTeqgsFqISdnu7+JP4VC3F08SYY/YYuv793596ISeNK2dkFp44DdyRayaZpfC+6lBLT0TFfO/wnHElFmPJX7XRYOozxgbJftpbatbANGvM29wW0x2UE2CQrzTybB5PxiBPb8Xq0mlUHSBF/B6PtLP4gN9ee7pTNIlHXJu2Uo4BGFm/YWz4a0yal4mb76NKdOONnRs/kjFu4CmIbq8GsQrPR+CJDDFpaEPuu3xNxBgeE9MX//IYvYP3C3Y+SY0Ylq0cEtL0W9SxSwp498VsZcfRhIizjoDaB3a1Ur6QHdhIPHQpGQCq02mJBAOhACx3br+ovudcnSt4GkMC9n3ONPcBgxWLVm65LC5Pf6s0ukax6ZV4XQP8tWr6uYWggOZVTaH22waz+OYQo1/G4dC02vINMRT9Un8FNkphS2ta2lYSh69MRwSotnRQWCYDAMngs7go+zQ6O7DAcmw3E3A2tuvUh3sSCKCKp1vJe8fg4C3nfTs9B9Yq/rJcfSe+Aym0mG9HsoXng9sZo3hRct7y1nuSLSF4pcjBwv7Duu2ffPJUl3vXZVuQ5wxuln5SpfqMEy86jPYJ2DL48P+uBqANjzV8X7QqqRs3asAAghlAS+2iCQ11j61T8CUwCjp2XaX53z4bUXC8A5k5+a9myFSD/wusIHvTCANWPZ+389w4kEMnpv+JJ11mXeMDvaVA0KQHX/SOG8LDtfgwQTib0jeRShtw54MkF00VZZdQfM3OeDuSWb1Gf1aHfyP4CfC02PjPOmoxfVvO0dN5CjQC1TcKNOZ2k0dj9I/giat5mqKBIcH6ftufMNkSdoB17AquqFB+Og0+biheWR6LrZclxsBTPsifc3qlG2HbiTd/PmjMUJq93L2AB5vHqs4j4ZiwiMnk42ObtOlBeqg0E9SUfEQlYwAUxhqSt/GtZdQIGi19ZySNheGIRNc0UlZ8s/5sLFuG1FR2jtGU+8jwJArWUAaegj/f0e44M6jMQ8Ynd2M9hWuhYKq5tCCXfzgTK98deGNWT83TV0kH12AER0FqUsKC8EA/KZkv+X0JKaYcrRzC/GenXgIY8NjiKFXwODRTRur9C5Xh7vW1a+UiIennRujxe0u54R9ouLR0snj5zHkElGmkO2H+E1/cQccj7qjgFoc29fons3thfIiGMj21Nrx4J5HHNfd2LYMwtgrWrRYhPLb57u27QVN3ELh6EZ/O5jn3gNNjKM7kaUnDwxeXgoN3+OGU1cDgmR7ymoV8f+xXf3ShaT/zQvzTnLbLRjq4jxd510aRD4wRWfATutKvXbrGfFAp7reivQiT979By7+oWA0MRMZ4RNX7/mEJViJRH0p6VSbep0sVWGyjLCyzeUn6vFero5MEgXyr7YTvsYtyv3+G5EuT1dqJ7zv+/DPnREfh6CJOYXSGsszmByw1S+JsKvDt1XRr5YtFvr9kankevY1EoA10IJpssZex179w== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: 562502ed-8a45-4f8f-81be-08dc8e7a7a57 X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:27.0719 (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: C8k4Mv+LT5IIlUvVSpy8s5xdfoYNdEQ/NA+DGj1Vw8jvX0r+OtEOQWoT2BUDn2IjiJdCmxfUNIRxBV1EtEe/tA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200630_557928_F24E0A02 X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 3570578d225b9..f8bedc5e05fbf 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 03:05:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699927 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 4D16EC27C79 for ; Mon, 17 Jun 2024 03:07:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=wCnVNL27q1EwocllmDblvXml4yVAuAodLoxC4QLj/oQ=; b=M2zXG/biaREfCza0zPJZk+0a+L iVJQcV+2y5jJGOc42mZ4NF4KZQDphlwO27FLVGoOCrRMuMvY9W3RzRR5s8lUfY09emtYz3Muc4ZL2 hH0w0PeIPLsin6A36aON5ucpLw3paynWiWxCXpROimGsdX8BNxZNspmU9am2Pw/vAmAkmZ1r8Ro2Y /nVAejcnG4Fq4A9N0nFB90RXBVkIBVn0YPaONv2YX5i5SL1LEMBVS+jHKXgddM1N2tAIVXrBB8YsP LTy+wDyIOqVdrCEM8W1acVzPnNyWm43oS4+ZtqNy5cb1o1xkA0eAEaxs8SEYGBwBwb+lx3if2nuYn wSBVKv9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hi-00000008xXl-0f9h; Mon, 17 Jun 2024 03:06:46 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hU-00000008xKg-0dbR; Mon, 17 Jun 2024 03:06:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zqfxlq+D5kYTUXmafj4iW3kHeId9UygGZBk1baHeV1m7RK7lm2US8Vi2s0j5gn2PzKdc1nnmKTx+1S1g83b2EIt2UMcb1ET69WaGnVDvVonawA5RR5Bbpf+70nIMBlcDXYjz0HH5VZ1SKn53dtcstpuwZ5G7dbIBko5oYXFH7okDNoxol3vIq/zmctP8mNXnI5wR/mYQSrWLUIG0xoxggyLSLkqc3tcccJVzJ9Wg0MKxnbLhZWcBM/y0oT99yw5s8HSnu/SPxeJCBGU/ODhjUl2318APNl4HqQY7bv/uMPE09FR3luEUdpbBegfEjACOVDW6ny4tm8ihkzmei/CEaA== 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=wCnVNL27q1EwocllmDblvXml4yVAuAodLoxC4QLj/oQ=; b=QVyeljpPvfgli9RvlATD2nl2Bl9nH9AK9nrY89T7eSxwsN90zKbRvQdagVgiTcOPBbx3qHx7zL/trTWH+JRAh1aOtdE44oQG4zjevBCL0vrOLS2QltJMcHXuk1Z5njmzFV+jvt7nKKZHXI/yXyNHk2YrYR/MwoCO+o6RXbadDMiqeitNPDCbop4kqlSXCBFjL2uWPVXeOuCvTpjnbb6d5zoDvSEaF3bd3ryF0ECSRkuLnEWTS3Jn07+6bQS08Y7m/6nycBL8MqmSHlvTYkFHgYadI+5Vecl2aD7YR0WLmlsgU8ggO7/6mqrAmgGMd7yPSzo8rlv9xW2WyjFwTkDH+Q== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06:30 +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 03:06:30 +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 v1 4/5] arm64: dts: rockchip: Add AP6275P wireless support to Khadas Edge 2 Date: Mon, 17 Jun 2024 11:05:36 +0800 Message-Id: <20240617030537.3112356-5-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: e8cf7838-aacf-4291-ac65-08dc8e7a7c0f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: 6dQ6poiI9igHtvHPAm1T3lV0nhdSfBikCc/QBjzmeyeSDHTGHHj2rjuScciITqAiNMczOX7Fmbc/KuGS+1Gkc02w5s82BurRgGFxdFAExCIJoRHKMuO0xWYGGdaWbSyqYZB3AFucPTmZ7HVz1HEcgpz0DJIXqAt9aK1kuWt/excssM6H5ZEupCITnkrmjzy2/g8+djv6AtWdCFZGyVtqG4Swy68B3z5xOQo+9yEnQaifCXL2nOnD1I4wP8KI5BlvHRUw2j3IExq1E8dGvubKQRsj1GMa70uRQ/x/pfdjXk+hU0hS7ZkccZYYCFOO9LKqVT46Vy2NI5k9T1wyvAd5ZQGfkuGFa4qJE/LJx22Inl+uY4TInMY58WioVZSi+InHzK32fywRrN7pnUSTg4uwTnvuatnym15tZBiWnu7Eanxt0Nzs/72XQVoGk2zmCMgkZd1o6+JK3cCcRhict9EVJLoF7p4KFYFkqY8Ai4UneXtWHssMOlNxPC+/s7G1eKrOAAQzv7qnahS9PSy1RTLkESHuxhonrp/dleYPl6aCCH8KINMU9bHA1J/iofhVHZ+kV66bEudNO8W5oJMvnrpj7RTVua6DJkdv2MuBVG5cVMTMN5yf6o+4Bp+gvhsQWwKKCeoumFl/rKCoRwifhaJ9Ybjn2F3oKKVf47pDQEMHjXAgumrdQaApqdZ7ZAd+sdCITGKZ6M4mifd6eOh0Rtd7nIdXJ9yohMHj29oBGvNRsP7ffw5j+B7pJ7d5UvyiTrrOl/zYlQ22ha/ObYxLif+Ht4S7qigjEdTMVuoTXo6eM7NUW+QHkksl4qRe/1X7JbwgTZCbk9GLfYrLDINukGu8BQ93bF+2pfV8k+GSOT1lbxePwVxgaWaL6S2Z866ERUeZ4tlHrPPK2n7LQ50lJcfLUtMzkD8TrzDD5QTjHub8TiBOzjH4qAPxZJ8Kl+L3sDe58QYh2xQ82O1jEyTK/tdu7KQ2XIHVs393PERpioUzjHK200ZLtnSWFP48Ahvojl90E9XFsIiVFpbTLMF4XrNA0vLIawwuzH+V8w9ncypg6jCVjDr88X15o8GVxLS+g5j702K20HSQe12Ebj7MJYCPi4ZukqbOti5pbgncant/q8i3QFWqNGTl/v1TfZVENf33PAuJXQS4rasS1Ylfdx4PPJbECewXbpm8OoWFH6PX9HhGfsm3mHoo4Gg0wu19iGzEbTaNOSlc3H/sUFldR25bbTGbpsVEJeGGqOCdCoWvvcDDjfr03VIHmLP1HIUJlPlc22TcLSDuqAh6UyYmxylETZYGuATDv5RCwfNtp4nte+QFkfom/OIH2WQDkqV17Oj7 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gkGnNrg7E7q962eGJedYLATBKnuyJBuKiLzV9MM3jDNESyP5UZUOY+P60do1Ue4F4jVVZgigElX3wbRzEjC0ZKuCbMY+2UmAN0YffFiHioZ+CHFh1wNgIcuVHMah687d8P1u0zLrAoXTeONWkEzlunNqH1LUMTH5XFqzHZFBKkmZJ/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Ev5j53MSOmtsHU61ua3nN1UA/QzLdSTdUDbElDu+ut9bitIV8yXu20KCioRvo5SmVJrfLkzc7pdKeuSdVq0z1HgpFW9RH+2c3FaIXR7Ue5/HqJEVxwWu3qKXA37orLY+oXIxWRz0WiU0YLGnBngd/SGadLgHAdG4Ia1b/m8z9l0WLVS7q9Fu7ORGe2DYZV/rLXpqNGtdFI98AOLfA4hm886w8xOWcU+tP0Uk1V9mn1R14wKLuXiUQYJV2f6ZHAm74dDcemvdN/j6J31ZvuPwjbOBYTfi7e5F/iyY0f2zhHHPX1CG6uAI+sGsT7o0JcwYKIMU5iZdr3ScSohdDDrPDtBTpQVcA8HFykd7agTtrYhYjfSrcQ== X-OriginatorOrg: wesion.com X-MS-Exchange-CrossTenant-Network-Message-Id: e8cf7838-aacf-4291-ac65-08dc8e7a7c0f X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:30.0465 (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: /ds6Xad2S7RLF21epqPskOJARIQ/pHQ1yxvp7Pr4j6RLLbyqXLzdmcSkHjRaGIzf43DBPOrVPE9EW4OJ+fBEhg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200632_279904_DEA4490D X-CRM114-Status: UNSURE ( 7.69 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Khadas Edge2 uses the PCI-e Ampak AP6275P 2T2R Wi-Fi 6 module. Add "pci14e4" prefix to vendor-prefix.yaml and "449d" to brcm,bcm4329-fmac.yaml Link:https://lore.kernel.org/linux-devicetree/20240617023517.3104427-1-jacobe.zang@wesion.com/T/#u https://lore.kernel.org/linux-devicetree/20240617024341.3106240-1-jacobe.zang@wesion.com/T/#u 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 f8bedc5e05fbf..cdd5f124e3069 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 03:05:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacobe Zang X-Patchwork-Id: 13699926 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 1EEE8C27C53 for ; Mon, 17 Jun 2024 03:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Content-Type: Content-Transfer-Encoding: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=qPkpeSh/EdH3GIoVfq3PVuAd+950f8uiuR/32KMh2J0=; b=SND9zGOEnPMplfyb+TCQr8vAp4 1hIcL8DXZpMnm/x4hgru3VjwTbBeCoBvhI8L5mlLoIqbCo2+sETrMh1PKdWkakmowloRobz8rCfvX 2ROvuW42+W1SjpyrDPFQtfe3S9+/9SZspGRtTvqjuYvDRL1upbD5B4F4d8UXk1fU7eHk5Hqgs316B wY5hoUBH1AUVm4L5YU/ol6UAR19sDaZy3GHmH/1ckRlkK6fCcW2EkhOKBWweNdOCp3p4wsjDURtiO L9os+bLpUXMghHztTLaIqNpnj5satodCCCmGpgSGeaLfmb4vlxuIP5YB91FLltJz9eJMb3m1oqJwU RtHTo5SA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hk-00000008xZg-0Lc5; Mon, 17 Jun 2024 03:06:48 +0000 Received: from mail-sgaapc01on20703.outbound.protection.outlook.com ([2a01:111:f400:feab::703] helo=APC01-SG2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJ2hW-00000008xKg-3L2g; Mon, 17 Jun 2024 03:06:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YWoiiIalKEimLDA5VjUuoyeG5QV+1aYt3OQoF6K10Vd9y1jZWG8aSDAURIlVzoADENtBuCiEq9bvyKUg/1TWQOn6v8bO5kmtLTYGkgDKepowKhTnp+F4un9hN/3NB4pRFyrvYauf/P2g84hrrc7yybYeE1bgR/FWqoj5EVI4+21XqLuyWQlvbiekFcPIqnl4WAuf/xFpbAujro07lO2jXAGwLhVz6dIE2iiukrofhacpt2K40MIzPnT7yWmMC7xyscn+s2kbw7Z9yTM3g1URNmpXk2ZPtlFitvYWaL3aAn1TiCcWH1e4nEauxJTYQcbfIWxygnmLqi6zVwLK2MrIqA== 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=qPkpeSh/EdH3GIoVfq3PVuAd+950f8uiuR/32KMh2J0=; b=bdlhV2VlgcNyNPjM7rvsX8NexnXDubNUUooHLkrqqeI931r4mygcRHI62OVEN6W3JfKF4ZN2e2izLd+nE1CST4L+SsvoaMznCoPZUxPS8EB/Cvql8yLSt2pUOlQSNBG6lTG9uqMKxwM448hx2GLZ5jj34uw3xNLnixVskkoGZFV4pUBmx6JyP/tSNZek5hkE8hkDKTbuxInwvViZBcmePx7YGjZbqyKiwAdsqnQ8nC97PZ7HM/rSlrcr0AXF7YYrNbwNqs2S3IqCbowdvGK3nCve/kyoYCGKQa1rb1lc0bp1Dv3WGSxfXLi95UMsahHBbLDWTYBhakuzBRUqAH+9BA== 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 KL1PR03MB8001.apcprd03.prod.outlook.com (2603:1096:820:fc::5) 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 03:06:33 +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 03:06:33 +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 v1 5/5] arm64: dts: rockchip: Add cpufreq support to Khadas Edge2 Date: Mon, 17 Jun 2024 11:05:37 +0800 Message-Id: <20240617030537.3112356-6-jacobe.zang@wesion.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240617030537.3112356-1-jacobe.zang@wesion.com> References: <20240617030537.3112356-1-jacobe.zang@wesion.com> X-ClientProxiedBy: SG2PR02CA0038.apcprd02.prod.outlook.com (2603:1096:3:18::26) To TYZPR03MB7001.apcprd03.prod.outlook.com (2603:1096:400:26a::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYZPR03MB7001:EE_|KL1PR03MB8001:EE_ X-MS-Office365-Filtering-Correlation-Id: e2080625-729b-41da-6c7c-08dc8e7a7ddd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|7416011|376011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: UTBTw3DLA9FpSjSmIWIV3aC/mp+WBqv3xriuiWe5+G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PLN/thBPItDXIt3XOemlbSv6glezBZGuvVA1uPHwkf3tnQxvJXPqtiOKym1hdRwRntds58ntrBHfNZT1vkih4R3s3bgV0c1FzVR1w9ZUXxgxPOGk0OF1K1w+/CvmLki1PhPIl1+0HWSbQXoyWoY6G3z25c6/Vz3c+JNKEar6UTpCAsRK1k5v+A4gbOoiaGK6apR+leHATUxydcRePEe2wVtxaeEQ2CVKCNkEDb5kUDHvKtZNla3wDenuppq6XQbiGVLUYaAP9nh2iMNCBF8swOc= 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)(366013)(7416011)(376011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XUpksFkEZI0lnaivtwRlCOsRXYCS5cquNDzGa3GP3lfF/1beCID2qLXq2iWmu7T78w+Q30ZSmH7sOZYdPjFjOsPzVEo5tvd+2VdqUbAEcAAuO2AhmOi5QBXNkFKC9ZMYNJ0MiLESEIcvElIKYxy/Yr0fzppd80941UKUpre9Cygl+2nx0LZa+jk+H16vJnbqzNg5PDAUGWKDICqMrH4ogQDsDY+tOlwtI3c39Q/vnZLF0epEMRq7mspBuvoVoRqf+0inUitYO+gdssAM/T8z6r23jVhm3dmhBo5+3/EnhS7utmaetD3d7ydFi8bGhuE/4/+cLuk366LgzkDFpNSYpMkoEnW/6zTwmLTsXbod5QE5RRqFTEU1bJFm+fLtaNapXsokNqUqr/1RL+JoXIyFp56cNfsA1CaUj9/ExLqQGUqVHN08ikwQEpMROISMwo7VGqKS7nSuSlAj9hf1BGFi/GHeazkcQ5Gu8zclMmKEERMcG3mtuFTU+P5GCdBhKipqfnw0Ugw6nDFQbg/tPE90TYSc+8U0NLW5ZACWLBEyBth+s4Ygl7I9TxFUvAEobeAO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ant-Network-Message-Id: e2080625-729b-41da-6c7c-08dc8e7a7ddd X-MS-Exchange-CrossTenant-AuthSource: TYZPR03MB7001.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2024 03:06:33.0018 (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: g2GSoVlfs7oTdmRFwhBda4qD+iibGiFuM33hE7gVwHbsfBZMMk9mNQaQbhhl0wygC3lCkW10/sB5VcUAlfW+Dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR03MB8001 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240616_200634_902197_10F24308 X-CRM114-Status: UNSURE ( 8.37 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 cdd5f124e3069..04796265f4b7e 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>;