Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1806035pxb; Wed, 9 Feb 2022 05:03:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLH87nkr1qp0wIOcuGX59LiSZqvX/LDljyHuYtAHDl4ljGpBTq7E9ci8a8RtTktsp7McvS X-Received: by 2002:a17:90b:4d82:: with SMTP id oj2mr2467496pjb.202.1644411793076; Wed, 09 Feb 2022 05:03:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1644411793; cv=pass; d=google.com; s=arc-20160816; b=eLhPXobxOWajfl8XiYC2ubt5DD5Rfgsru9ACxfcGw9M6TyOMdz7PclvJXDMm5jlq5b 8WTDF7ZGRxIs+U/Dat9KS7Y6bw/L0+XOVGXjfNrvJ76u/X5a4R9oiNvwxnuJszi2QzrZ HjMdiXg0qiFcsT4maBypckJll8kNP+VDGO09/NsFTdkU2gsizwy7jYSGrxEwolK1bYPF oFOlEgwSy3MWu/8zG+hk2zlbrI96NsR4Td6X6ITmePPGC0suR0XweskQG3HPNU3vdiwq ExG9rcOKSESEnuSMdS1GAy6Y0mhW4PZTzipWcPvDb+ylWqCG8A50wTg7S+pLsrpTYZtm 3ZBA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NoHFNvqb0jv3J8as9pJQb0e8fgE2Vfvfy1zsGXmEqls=; b=h+f1doJhXuh7bP0ETbvWam6Kz2Mhn0bn9+Q1TuQPqBiJYBOLkFjbYObOzi89ajp3LI Q572GaDul77GOXb8ZAvoJMTQxVGyPB7/ugVfBES2azBuyiU5to7EH8O2CP+0eV9CCzMA OCWOyh3o7Bje1pYv14bh2B/TeJnE5ybuNX+6GG6RjrDBZoc88vQoFo+k6WloTPGpH/pb vv3zvUGHcLpTvalqJGTMl6yT3ih6Bw5Wb8PdSFgFV/6KTjl3QQuXxLyP+0Az5pyvGNGH xw6KFXpor6G/0wd+a0Xb3L3GN2nZjnSK0b4nxfsiAI3GOFp0qatlr316+fwzgOLv/QqS VGRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=MjNLRsPy; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z17si15929190pfh.116.2022.02.09.05.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Feb 2022 05:03:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=MjNLRsPy; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0E5E1E1712D5; Wed, 9 Feb 2022 02:34:11 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236668AbiBIIwX (ORCPT + 99 others); Wed, 9 Feb 2022 03:52:23 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:40562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234211AbiBIIwK (ORCPT ); Wed, 9 Feb 2022 03:52:10 -0500 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2061b.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1a::61b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43F44C028BEE; Wed, 9 Feb 2022 00:52:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TpSm0dmEscaZA2JegRIYfIzBaRv17ac5+LYZYzOHrozitPbmrEf8VwRWwZ7QuOP5XWv16BsU7m4a5NaZx3dRGjWSbxAFlbtco4z05ph7vxgWO64cXRN+K7i9QFlaVweYGo2+Ja87bGACa37mLMi296vhTzulOXlaFJhF9tDQrzsGMjvaOqK/ytftm8dkkSrfDk+WkjIEfikf5pRgAVyKAySdD3GHJJe6GlYzWmqyPhoQ9LNYQZLSZK0xnhv94YqAtc5yPnRQ7Z7Lsz2LDO5beizLZhyGuFrCfpd5l05Gn/5l1ppMV586PTE9oyHae5CecEKApP10g30jzqqV/V58oA== 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=NoHFNvqb0jv3J8as9pJQb0e8fgE2Vfvfy1zsGXmEqls=; b=OqIvHpj+i8F5zhGqjCSRMi+l+3LyVPPFT7PrDufg+eVMFeUeLnH7/Qy8hXNUomvuybc/9dg4UERI9AEJP5GVuBygjOKLjdEOL84mfQkRgmwKLkWh5xosWTQ8YIkcqqp218w1PY9IsKb3H1yDVFNICK8+a0dfDKryCGLaPpPMB+NDTybOZygSD3WRK2yFlT32jJbnYqVB0GwF8rivgVtWGdekFfvL92O1C7MhZ2jrFwSsHMP/v2PNFHCiHYs6SXm93TTx3BFmkV10+IyprTFbkmgBM2H54wM8uWaEoMNaObH9d/L/hFnxP9nD7HCJJ4t5/XEK73894PccX0hnMLsVYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NoHFNvqb0jv3J8as9pJQb0e8fgE2Vfvfy1zsGXmEqls=; b=MjNLRsPy8JJdNmopEI3xfEFSu8APrC5y4Qra6dfrflQ+jxh5VneKLGAVeOnvlCLw3RjMtsI1bE6FzPwYJli/mLMjFdICoZjMFBIWJuA1+u1Io+dugptcaqm33ej2sEARXOVtREGd+skEsXw+U6vgLRD2wTQRZT6OnNWEX++zDao= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) by VI1PR08MB2927.eurprd08.prod.outlook.com (2603:10a6:802:21::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.12; Wed, 9 Feb 2022 08:51:29 +0000 Received: from HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56]) by HE1PR0802MB2426.eurprd08.prod.outlook.com ([fe80::e14f:197:5001:4c56%3]) with mapi id 15.20.4951.019; Wed, 9 Feb 2022 08:51:27 +0000 From: Michael Riesch To: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Cc: David Airlie , Daniel Vetter , Rob Herring , Heiko Stuebner , Peter Geis , Nicolas Frattaroli , Michael Riesch , Ezequiel Garcia , Alex Bee , Liang Chen , Sascha Hauer , Ezequiel Garcia Subject: [PATCH v5 2/5] arm64: dts: rockchip: add gpu node to rk356x Date: Wed, 9 Feb 2022 09:51:07 +0100 Message-Id: <20220209085110.3588035-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220209085110.3588035-1-michael.riesch@wolfvision.net> References: <20220209085110.3588035-1-michael.riesch@wolfvision.net> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: ZR0P278CA0072.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:21::23) To HE1PR0802MB2426.eurprd08.prod.outlook.com (2603:10a6:3:e1::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c048c59b-621d-492a-1e11-08d9eba95b91 X-MS-TrafficTypeDiagnostic: VI1PR08MB2927:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:983; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /lQH+t2Z5XgDI1oUUf41KDIGWU0kW/rOdQvpJ+HxpTrz4hkrMar9kwZGmkyasp8d4eNPFMNhDS03iGEDr8QXeVXmSpkedxqheZS7qt59/cqP/MVggi1SZCvebgVDFkYFIuDXPTHKYoNHVGtgA7NGl8HYTHwqCvbfYL33+5EYgpsyLJ114JFA9dT67eLn9Rg5nye70M2mQR66+9FB8toTCBPEtWbqOtTHfYcD0Qg1jr9ZtHaGD0f3ShvWoXeajHZvsYzipKQldKc4iCjB6jcuDfv7aypslaVNvysud4fPBKZ4i2/EBFpvexzMKQTRHkAOMyOtsBjg5YWgeQgjbcYtQCoB3PuGYb2bBnL42DBe03mNOTSiPq2tSa74Ez6D+TZC4vy8c688TQYvwwUh1lBuUfFEzqX9trnWD5EJtSCN3qYFNPAQ39OSCNFVdnIRj2GR5846iDc4UgUrRx6k0f58RZF6Ve72yAEteYW16PVFW/Fbqxvedi6GDRxmOLqcQEm6bta+3cMNZDswzREmc+fXV1MFIHQU07QNXutTugPjBVysBIPqmD0OQ/hDBX7p7fZA/oY/e52HEaykovQSDlozqfcOJTZkRtXQOoHsjy8YqcF+cshKr8W1yz1rC0LCL4/3qy5QEwCuXb5wSis4G46ONw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:HE1PR0802MB2426.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(54906003)(66556008)(186003)(4326008)(316002)(66476007)(36756003)(6666004)(44832011)(8676002)(66946007)(7416002)(5660300002)(52116002)(6506007)(86362001)(83380400001)(2616005)(1076003)(8936002)(6486002)(508600001)(38100700002)(2906002)(6512007);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ERFQt+yMcp5NG7/ZDTnWPT+ZtWQ3bOdGIxi/z05bCWoDNyAskRg2dlkhj4Hn?= =?us-ascii?Q?784gN/iOwZgMB2PwgJ6nO9TV9lmmyLV4vtZWB7OzZBuz/9bq3lph0YjLXB9u?= =?us-ascii?Q?km1fisdYK+1kP3CZhaRlsHciXEFHcTjAsJDVRIU748JSp4EhuikEP+8cWs/x?= =?us-ascii?Q?KcV1uID+O+VkYRs6qm17e5MTqjle8UTNoWf24BLlTTaqF1kjAxUmFJz62K4C?= =?us-ascii?Q?f73SjXgyTRQJs9+6/sZVPi4YuXXxSv1os2Tr3qqJJAdrfDqdzjJvimG2pWS/?= =?us-ascii?Q?Xig6n3PVETweiHq6B56mZUGKGRcLXbHPZE+iav6SxBto4IYWpOgQE+Rz3V5S?= =?us-ascii?Q?/gZoAz2SXbfZVJ2Yf4sgmXr91EXjwkPz0jtZxKrdJ+jj1EblNtMNDA4lL47I?= =?us-ascii?Q?AuaZciiwsM0KuYLtokGRijzOo2h3clq79SMNKRc41IaVuj9gaQ9HihXMYiZ1?= =?us-ascii?Q?bLA4fUyoecF4yW+lXe9mKxPBPM9nTnUoLS5BtQZwlidxsuYiE1Chm/egGfNP?= =?us-ascii?Q?gdf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2Wq?= =?us-ascii?Q?96psEBtFzs5CBUaC5vMxf8P3RZG8ljr4pj50XwvdJCLeuAGWCY9llXg6LJUL?= =?us-ascii?Q?c2WWIv1Ro8yK3CdRcaaFz5+KJ678KXXbL3xNBIb9O3fxLFjgO7BsJnbuSRPL?= =?us-ascii?Q?NQ0XM4rJNREF5AXwv/zix30NyjZTsbRPrg0/lWmcd/aVhpdarM41Z707psDg?= =?us-ascii?Q?C88pCIx91FlSLolX5Fz9e1laseq0+dwKauMdHj8vw3h1sMn013roPlFS1Tdj?= =?us-ascii?Q?OijpAZJSWYxf46EcWBuaFgKVmWEFOQhi2V8E3N9TUxAdM7vBENUHHnDBw3xf?= =?us-ascii?Q?x+zNnAuDZDsURKed36KxVNDz8AOrWRQ=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: c048c59b-621d-492a-1e11-08d9eba95b91 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 08:51:26.9279 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SViyvLkMS647Pc2sPxz2dmil059dIeQHmKK9NOdCrQfjcVnrZYwgoE4MfEqKpgSemjBi6lD0/iRI96ZqZShLuYhKHk9/8K69uhXjMh2Q7Aw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2927 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ezequiel Garcia Rockchip SoCs RK3566 and RK3568 have a Mali Gondul core which is based on the Bifrost architecture. It has one shader core and two execution engines. Quoting the datasheet: Mali-G52 1-Core-2EE * Support 1600Mpix/s fill rate when 800MHz clock frequency * Support 38.4GLOPs when 800MHz clock frequency Signed-off-by: Ezequiel Garcia Signed-off-by: Alex Bee Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index ff1689283996..47484305b7a4 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -144,6 +144,40 @@ scmi_clk: protocol@14 { }; }; + gpu_opp_table: opp-table-1 { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <825000>; + }; + + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <825000>; + }; + + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <825000>; + }; + + opp-600000000 { + opp-hz = /bits/ 64 <600000000>; + opp-microvolt = <825000>; + }; + + opp-700000000 { + opp-hz = /bits/ 64 <700000000>; + opp-microvolt = <900000>; + }; + + opp-800000000 { + opp-hz = /bits/ 64 <800000000>; + opp-microvolt = <1000000>; + }; + }; + pmu { compatible = "arm,cortex-a55-pmu"; interrupts = , @@ -444,6 +478,21 @@ power-domain@RK3568_PD_RKVENC { }; }; + gpu: gpu@fde60000 { + compatible = "rockchip,rk3568-mali", "arm,mali-bifrost"; + reg = <0x0 0xfde60000 0x0 0x4000>; + interrupts = , + , + ; + interrupt-names = "job", "mmu", "gpu"; + clocks = <&scmi_clk 1>, <&cru CLK_GPU>; + clock-names = "core", "bus"; + #cooling-cells = <2>; + operating-points-v2 = <&gpu_opp_table>; + power-domains = <&power RK3568_PD_GPU>; + status = "disabled"; + }; + sdmmc2: mmc@fe000000 { compatible = "rockchip,rk3568-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xfe000000 0x0 0x4000>; -- 2.30.2