From patchwork Wed Feb 9 08:51:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12739849 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 1A430C433EF for ; Wed, 9 Feb 2022 08:55:09 +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=MRJWVh6E1OHVUYyiuplfKVLijmr4J7NLlFMF5N6DKf4=; b=lMKoZbflmezkir iv4EcXhn6wr8Bs/NBOlk2gJqnb/64fIO9Y13Z7tmnDP8d6oKmMM4hSB/Ak6jLZrpVrppfORhzWUoH TOf2CJmns9pjXD63uCycz/z8sLs1zLrs4XLPOJ98FzhO0jMd8Yxrv9BDCwC8faZyVUCcQdDxdf9// KUlYHX4xfXU8VTiBTwBVldCs7nzdFd0qFv4GaVXbG1dOC4NUihtbH2g4xFZ87L5uC2I6tS+lNIxE+ YUXw1XjcGERQjMxvzpraz4c6y3MA0cscfUqrIsXR5gAMHiFuqaZ30OTtiMoNxIoYSqYatj57MrcDP iwR+AcZCuJRJcu9xTYwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHii1-00Gj9Y-Db; Wed, 09 Feb 2022 08:52:17 +0000 Received: from mail-db8eur05on2065.outbound.protection.outlook.com ([40.107.20.65] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihK-00Gitn-IV; Wed, 09 Feb 2022 08:51:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U66RxE6yQzFLvGwzq9L6H0L5e5nR/IRVbIL1skqVZf8ze43CUPYAzN75tpz87T3fcN36OPUV0KIQF7nnftTTuUTHcMuGqDa9PmcUZU1qqekRu2O2nYJ6B3ulYxXjB97KhS5Nm1+X0BXdjOYYuxIWqrU2ff0OSDpcTONO1w3mLrQxAVAbXwdvGWMzFX/6Jtud3t1pCNX6mMawDy0WJqkk/AOQFDCBIabfUwka+lRSx53MiRtH1AKN3BXMf1T4AUeHInKja+G3IK/j0pFQbqx4tjkE0WqCixAfbR084rE2OZrmdyCI4yGNkpXtfFN2ZE0ALu3ugZL02DgcYJR85gAPsg== 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=2suP7M1Va2Ir+ctJZL0kaA1yx080mTOhx9UfUDqQ/dc=; b=gV92Rev3e930wpeXjgBTDHxKqzFq9LgTefaE4ynUuCL5nnkDindOIq21Ev9VngJWWKz9G9+rOE3emaBEOOI930FRh9ySZv+3PypYG91v2gLG8EJ7UlGmBaFSvB30tiA6uSr+WCo6dFaz2F/MTvTSOyJq5KtihdDB/1mv4Nq7draeFfNnYjOEAJvdsbepcOvCobMCwfF9ydRjM1yf9qoSPRRKkSomGwrVml1HeOzkX06jDA6nJBGENygjPT6KFf3QVR5mp6duHismUycV2VTtCAj8nCWt2oCB+pRH+1l05qUi2KD/ZWrdaoXAWRuYCu8nBA1xqp1RFNWTEBCbaPakhw== 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=2suP7M1Va2Ir+ctJZL0kaA1yx080mTOhx9UfUDqQ/dc=; b=t4ZqUE5bsgSfkqp4VBOh4D4LrWndl2znTAcejP3qerd137Q/FJrbwDJrgbvrQWYWKN99IW5Xe8qTu2BsPP4o3cDSOXGjOiXNvokylIdVL7GjWowMyjMTs9K8VOJXtkYlltucnMff4+fUwDhiN8OujkLCeVJvSqZleu40yh1wWzA= 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:25 +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:25 +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 Subject: [PATCH v5 1/5] dt-bindings: gpu: mali-bifrost: describe clocks for the rk356x gpu Date: Wed, 9 Feb 2022 09:51:06 +0100 Message-Id: <20220209085110.3588035-2-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> 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: d4a78839-0035-4383-1e03-08d9eba95a67 X-MS-TrafficTypeDiagnostic: VI1PR08MB2927:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aujmJEyHFrRCPjyyvdL116c2WOiU9Zyk2Jn38v3fQvxoTQqQ4plqnlWPcqzL3ViSq+o3RoyNZUYeE55pJyUg6vGxjbdcFmyLGvNK++R73PFvXiPQ9RVTmQO/XSsp2GKg29RRhYg63zvFdcl5VSzFMAAxWxjfzkoGGKT8lyX2pCg1oZOQwY3YQj8+Xs1PNu7m9ROPG6ztDREOWq54tmPnXL57XJ3vtktw1N25YS9d74hvSQUMHqkP7Nez6imtAqSzlzt12qJRDa4y/2j9bf+M0P4C/qr5KXKkvQHSncAA1xjdQnUJKfbM5z16EA6ky4CZ9c/PSXlVqLHFxi+zI4yYqbTXNQaqKlx0An6AfjnYBlO65xtfxes26BhUOHnXP4brb7UL8TKXJPMWUpqtvCSe9WBxq6U9cvOCpCycSaesSMLg0LNWjaLTTX4IDKolU4uC58PcfJbl+Fl23k225MfR/R40m7TtqqYc2tLnxc9LaSDd8SuCMSHx0yca39ssLqRPMBGxG6Ngi+HzhtufIxmXff+7UNBJHkgDY0HzypVqEU+P0rrgtjZF58hKLBSlz32jAPMufztJNVqzXSmN5Pgx0MiQpJR+1JjJcSPv4dX9ZW1ztKrwJo8MDbv//LPOJyKRYQEN9Akb/AgdRRSeUIC75Q== 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: Y+mM8shedqmjsrl6jvche8kxJXdI/QnIjBu8R5hK8+dTS9kEZIRJbXT3XGScqEpqlXF0t21+Qtb0pN6/AZRI/p8Zmb3d/Fsr0/8A89TonEIdhHDXgoAWbnojZELvLb6N3I6js3ecwGEG4AdTh3jilaFIRAAlnFmvQdCl4ys+MqkcwGiw1jWkFWOiTBG2ur8j9+Ps6H1JlebxvjDi0xKZRRemyD3rs0rjtt9L2ho+7DceEC5VFG376macjpW49J9EryJjOp6aN0tbWxwAqhCpkho7MZC5THSvpClUpwLtBbp/NbAkcdaXQRE3WLiPW/mgkgY6B9QDbz9wfG2L63J/RrKZU8yfugM0AuG19Qj+aajWpvPrMxhi/YOi1OxZ+3DsZHrFWm84qLm+L/1S1F3QJXRmsVHxxtlGVrgsd3pJObO/WLda4wOo7NawVKhe1/TBxsbbV30wCrlY5Q7Oqo+65tkNEDYCFk0BLyz0yYr0kX2DBE0WRfNm1pw3boSMzRQph1ZZJLIDNeNSSoiqH6NG4GZQ4kpAc4ar7wtWQimF1j1Z7Js5LTOSIQAnL9mSlwD6UP8h4ZUOUoT88U/ZIRk0esJ7JZwKbmHbXqIvcn8GABt0DZPl5Qk8UnVuMGBmj91Rz4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63In5T4k4wAkap/XSDaPmSFF3rh1WFf5gzqQ0tQ7aiG4IeYE= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d4a78839-0035-4383-1e03-08d9eba95a67 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:25.0374 (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: zPUJ18d+a7F3/Zy60rDdxojI05zICad/Wy9rVZjIFMUCe9v+HMIjJvxSl85vLmiGjbHTsv3iNM24OqLmKELxqvH79BeqkYIw7OLDILQ2LBM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2927 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_005134_686223_ABC4CF0C X-CRM114-Status: UNSURE ( 9.86 ) 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 From: Alex Bee The Bifrost GPU in Rockchip RK356x SoCs has a core and a bus clock. Reflect this in the SoC specific part of the binding. Signed-off-by: Alex Bee [move the changes to the SoC section] Signed-off-by: Michael Riesch --- .../devicetree/bindings/gpu/arm,mali-bifrost.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml index 63a08f3f321d..21409c8d3813 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml +++ b/Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml @@ -159,6 +159,21 @@ allOf: power-domains: maxItems: 1 sram-supply: false + - if: + properties: + compatible: + contains: + const: rockchip,rk3568-mali + then: + properties: + clocks: + minItems: 2 + clock-names: + items: + - const: core + - const: bus + required: + - clock-names examples: - | From patchwork Wed Feb 9 08:51:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12739850 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 B8E8AC433F5 for ; Wed, 9 Feb 2022 08:55: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: 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=Nga9Jy8dkh8sDQz1Hh131b8uOo8Z5NzxSEYFYo+vNkw=; b=BitqEzyhHgLHgr VRvKjCzTcGyeauRnU5edYfQd+PV2eUSK2hcqFb6Df4uTr0aDrU9enB46oGiT9r8nz4gZ+2uinp9iK LXC0rxKEBQn3te3obTLYjkY8lWyJodhwIGp2touuDUMX+7WBzds7oKz2zZLKNelF75maq4VYu1mE9 rJixbBUEPEbv4s4rVsg+vyk5PVgpnTFWIkOp1rX8fSFPNbvWcp1UCvQWmtpCdUu99tyaeP0MjsWIU hWjsDrFBaJpN2saCTACkhqyfdqCYco4fEs+9lcRtWmXzvFiqEoIpEpjYTJvzNl9k5svluPEaABQEl k7rnruFFOhNDh0s3pN9w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHiid-00GjSk-Ve; Wed, 09 Feb 2022 08:52:57 +0000 Received: from mail-db8eur05on2065.outbound.protection.outlook.com ([40.107.20.65] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihM-00Gitn-P4; Wed, 09 Feb 2022 08:51:38 +0000 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> 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: ERFQt+yMcp5NG7/ZDTnWPT+ZtWQ3bOdGIxi/z05bCWoDNyAskRg2dlkhj4Hn784gN/iOwZgMB2PwgJ6nO9TV9lmmyLV4vtZWB7OzZBuz/9bq3lph0YjLXB9ukm1fisdYK+1kP3CZhaRlsHciXEFHcTjAsJDVRIU748JSp4EhuikEP+8cWs/xKcV1uID+O+VkYRs6qm17e5MTqjle8UTNoWf24BLlTTaqF1kjAxUmFJz62K4Cf73SjXgyTRQJs9+6/sZVPi4YuXXxSv1os2Tr3qqJJAdrfDqdzjJvimG2pWS/Xig6n3PVETweiHq6B56mZUGKGRcLXbHPZE+iav6SxBto4IYWpOgQE+Rz3V5S/gZoAz2SXbfZVJ2Yf4sgmXr91EXjwkPz0jtZxKrdJ+jj1EblNtMNDA4lL47IAuaZciiwsM0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aFz5+KJ678KXXbL3xNBIb9O3fxLFjgO7BsJnbuSRPLNQ0XM4rJNREF5AXwv/zix30NyjZTsbRPrg0/lWmcd/aVhpdarM41Z707psDgC88pCIx91FlSLolX5Fz9e1laseq0+dwKauMdHj8vw3h1sMn013roPlFS1TdjOijpAZJSWYxf46EcWBuaFgKVmWEFOQhi2V8E3N9TUxAdM7vBENUHHnDBw3xfx+zNnAuDZDsURKed36KxVNDz8AOrWRQ= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_005136_895744_2891BFC3 X-CRM114-Status: GOOD ( 10.81 ) 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 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>; From patchwork Wed Feb 9 08:51:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12739848 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 9BAD6C433F5 for ; Wed, 9 Feb 2022 08:54:51 +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=E8Dndt7AwCt5KU7hsQdyGUg+u/AxSVkWdPoEnYHZqEM=; b=kPg8BDReQBEszN H8lzKggZ+OIj3cZcBnu50/7uQuUiI9EcpjnShQWzG+cAi1KtmBNtlaJIvY3RstUo2bni2o2h8bEKF C6lYEFADs2RBu9P4D4pu47197nsyqyeb+J8TGhXWHw93SYzF3KCizuC7QH6tipViM843O6lCh2Zy5 l2Ev3I/MTAzNHlikT9eAj4NHcjovAhwNb49AQykPGCOsLIMZkZh8QbqXnycy/fbFlJO8qH0GfLaE1 9igwYS77pITtqkbQE/oJn/671zJp/kzo5NEmPYjQzEFA0BGhDbqTlzrq7pE4SEi/gp7T6BDMF32ho zhFJ7DjZoLrpTpcIV9qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihh-00Gj1w-Ih; Wed, 09 Feb 2022 08:51:57 +0000 Received: from mail-db8eur05on2065.outbound.protection.outlook.com ([40.107.20.65] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihI-00Gitn-NQ; Wed, 09 Feb 2022 08:51:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DnqNtWmQzk+C+OFHpa+RgdLKgOhYG51LwEgVaqW8kjfmmasTmqFR28wEAiLK6ez7NpnAd+E/GpomwiWkTGx4UiX5lcTMxY2A449YpxdvPl13QrA4C5VqRU5mxZZZjfX3CIKyeHdTM0YeSL9dqGgCOryJm4p5hrt3rM2EcfzjWuYi65HBDpXE86llqSAenhYVNsubz6CSLM0NsjEw15/9qlWh3DL2CyrzOcyqd69LGlsYLJ6dUq3FPHlH/j+Hi2ahjYkM+0WjOE33A9f+qE1yU9dEhUBEYnqLWUnE0FDVWPZI8jxkMEq8wZ0DdRaxHSRuBv+tTHzzVZhwJ/7HyZ+ChQ== 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=WXWbAHo/uTDOoy57WLUJi+4TuYSVQl0u8t02WxWpJYo=; b=Cq1l+7oVTLDGqgxkq1noiKcSjv2D7BxsaNZpdnN60AMED1TTdZ49/l02Ys2h3687ZEDlgxMwmyCp0vStRD6lNmwRw0O2mIcrZNUnI3Pd5x3EN82PMB4SN312UejUr4+8zDbzR8NyevDinDd49LhBrxog3HHTL6e661XJIp1VvW0A3iX8PahybRNWLhg78jigVx/wZHCUHO7/EJrJFNA+Migq+2tXGffWxXZQApVTYD6brOnED7AhOFHTi0EnasUYjIvWUHEHJoSYXotB+Z2qauyWNlkPlF9k1eK43u3xbZlIpWFzaeLIG0xGWFHIeTugkenaWI5ZQR8h3hGSQqNCzQ== 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=WXWbAHo/uTDOoy57WLUJi+4TuYSVQl0u8t02WxWpJYo=; b=yEjsfu2ALtJJm8kK+yDuvntDNIhjMVFjyln0MW9LGk5wnN90anmry2SPpRkSTqYPIMPxLBxkNKtQ6GIW1sX3iKwbYu3tmEITi0PQqRMvryS6MJgMz8Y6fcvWxat3UM5V/iaZx6Brj+imURmw0Yr03uUSRX7z1YsE6cASprhV5Mc= 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:30 +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:30 +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 Subject: [PATCH v5 3/5] arm64: dts: rockchip: add cooling map and trip points for gpu to rk356x Date: Wed, 9 Feb 2022 09:51:08 +0100 Message-Id: <20220209085110.3588035-4-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> 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: d7429efa-c291-4a09-0daa-08d9eba95c89 X-MS-TrafficTypeDiagnostic: VI1PR08MB2927:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:4714; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QGXaI2lT9p5utY/ZCfOyvevGWiVQwWm/R6Zzn/AKi92XP6C7RdCHI9elJQRRqIR4WbQYrHPV9epUe1WVfUL/aJ7DUoma9prsKYearu++P6Uk97xWZJRs7Xl6iGjEiO8fFGar+rb9K1WqYMBFlmhYFYiBK2I9NDzAH2xP4eVe1Cdb9IFh/mqdpk2CTNKTJxX9LSiEMkCKSeqxcaVQjhjNqSZnGyBwhnsaiRrgndDSYvUrKIDFAZcswUeoo7iL4CnbD9DxHr84BPdSDwf9bIx501slF4dgQbMvKKB+feRaICXaUFNZZuFvYwe2e0dY7PGagfV7m7Bf3LTv/RCb2pBmdtEInOVvPHLCTn/7FsqacVoQWPUkNLXtq52l73PHEueLYPka++5sCWHv73sNfJyc+6aoP8TShJPwo2Gk5aF8zGZE2YcyjhkSsIW7BSzuS++pHReRgeOp0Y09pbqLN3r7i9vzif5EN0aZcTP1H3ib1YeVtuGuwusajGNarEPYB/u7qedPZlJ5AY0XI1T5yILd0MjCVxUWWBdA5LFr58yB6vJI7uDJ1pGr0kWYtNa5xh4JhKJvsWi+ircj7QxCsA5I5TKSm/C+G+bnXcuZknRF+X+FmhOLzMVNDZ94HW0TATpWjq1kt4IVhF5mcjS2wv9W8Q== 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: Sz0G1n59eGOnX8SebMdRTtRKFF9hDTbVAq9H3HxlcXUbZwKqBzsskhUfF4Wg+YThk2IsfsoisALnIbNObOkzPSkU9bdHfEXMZWrfQdMavQ1kfXAO7yYMtG725W055SjRRayUGHISTtBMgPOIXgTlLohLofHhEkibC2M76DHk3P949BzUQXZLf8PIXbpBl6M8ACcUfAXtZEsVtfrfOAgK5P5Mmh/7ZXBVDeo32Aj8BOT/nPoI6UYuHo1iJ5YEuTjj8lZ1cfuZTegNFf8Uqeou/JOyL+KZKCZArJlGPixmCGOeCPEqe8BXEv44ktQ1mUO10e9xSPDlrL+AyNuC13KGAru7sIYJc4TwHCYMuvkxWAXUyLaG7gWlEaFhLQbs05jCKrFW/+Z/TYcZV+UElpQMuQwVSHLlrc9j4Njxi+ghW0Pm1QFYbwTXkXfw3hDDDKvtlSp/1B7OnC8WcOc4HRhPTw0TPyc1nIOS8PRVmt1F/4PYY+bIHZMYiRdbNaZSScpk8TjJPkCMBFTCpv64yXUy/pNjAaW/gbYS0L9FUWs1zYhHnoh636nISKLhtnXARbpPHobidOamC2oX9vHK1x2LOO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7eqFXtt/kPwdWinOctVih1gHd0/qXkBSCWKPNUC+qB8ObrywVBL3EUWYlc9dCXnmoSCe4DItSaUmT2bZc5KZSnWjOLbVs+EPs= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: d7429efa-c291-4a09-0daa-08d9eba95c89 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:28.5840 (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: 92QPDRL2yoDdO1bnaPW5WHk3NqGB1IcjEFDV1g5xfhd+ZeYQPIsnt8R6Yms7H+jvHLpnuVnk//TwK8QMHqlT/mv0vmvZ8roWGPLB2zpXVM8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2927 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_005132_797484_F2378519 X-CRM114-Status: GOOD ( 12.25 ) 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 From: Alex Bee RK356x SoCs have a second thermal sensor for the GPU. This adds the cooling map and trip points for it to make use of its contribution as a cooling device. Signed-off-by: Alex Bee Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk356x.dtsi | 27 ++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x.dtsi b/arch/arm64/boot/dts/rockchip/rk356x.dtsi index 47484305b7a4..2334fed4620f 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x.dtsi @@ -1093,6 +1093,33 @@ gpu_thermal: gpu-thermal { polling-delay = <1000>; /* milliseconds */ thermal-sensors = <&tsadc 1>; + + trips { + gpu_threshold: gpu-threshold { + temperature = <70000>; + hysteresis = <2000>; + type = "passive"; + }; + gpu_target: gpu-target { + temperature = <75000>; + hysteresis = <2000>; + type = "passive"; + }; + gpu_crit: gpu-crit { + temperature = <95000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&gpu_target>; + cooling-device = + <&gpu THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; }; From patchwork Wed Feb 9 08:51:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12739851 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 203ACC433F5 for ; Wed, 9 Feb 2022 08:56:22 +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=aaScsE6Ez32NrIXKMpz/N+Hkv7KG3xpeiy7TheWLsf0=; b=u+FSeqZiwafYLS Gzg+Pr7WGm5hN2htLJ4CqHYkIQlE6UQRtBfZ9MT0VUpbviSpIRoAiyx5zVdZpS31H5gLyrb5ATnHo 8MjzrbME2EgKCVBF2JVocBZREkPrct7paKAcg4cVaLytkLD3tIRJpFwLY8mud9F/uGWQek50tAA/V vDnxHbQDMFznBCr6cAvhN6bgyx143kAke3DXgUrsBekkHV9pVOnaGL7vmBCg0JeTmzITztS1959qE FYZwSzsL4E+b4xU/hKs3Knom+v5/dhQ9yEOdDkLqsGnWibpE1QUxaMsY/BFq84gpbC1ep4v/V4uMP co1giU0MLzf4xXF2mX5g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHijF-00Gjog-LT; Wed, 09 Feb 2022 08:53:34 +0000 Received: from mail-db8eur05on2065.outbound.protection.outlook.com ([40.107.20.65] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihP-00Gitn-66; Wed, 09 Feb 2022 08:51:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gWl3glTaL30g3Gv+wqmPSkzBc7hvkJdQydikKW1qa6kn1qmWGCM9l23jFSz87elJELLvLnHzrTEGafsNRcF38WFWM3v5ejtqiQlizKeB0WufbZyB+ON/CxZz8+ymybEqGCmJA1xm5y+TkeJD5QU2X4I431P2r6qvA3fs3s1FH423S0yKpCMRVZOhQaRGJgwK5vJLcMRzFxxYf5Jpln3/+QAHXICMV59I4WZtVl1bYLfm//AbjgQVaPgUJ30PxfQJ0i/ZihwjwhKMKxBu+zYEo9H65C/KUyFH5rqChNvMQvZoYVUH71XvvSvDpwL/FkdXC/r6zgGSUCzKpXGKFUKBiQ== 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=nXhbRDQGkISr6kHJqbllfTp+stN+je4oakh0iU0AGdo=; b=QqJ6hVM8iovev17HnBn3GJTuRhUtbIOG7yZRqqeTv7/DOu5s1g9rAdmNYKon7Nu8rivkvLELAU4EG9K5d8JroohHxY35ELP6PuV7GTlKwy7xiLvfEHIMQVflJui1ulcg881RMvPnpd5ZbtFUzziZ5Xf0EoYzuSwOT1DY7elhaWjXxcnsmwyVk7oNoPk8wZjc2hcPug0eudJ33RN7sqsDbemZy6syuhSsmg3lo/NgwiK6CrGfps7j5rRGbqyFKRnvwLtseZlKryG7rkVBDC68uUNwXOo9MkK8eKMFDVCYxOWgEXbJFLtHRJzHw8xuPxEljHeUwVix/kJdchg/AcVKnA== 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=nXhbRDQGkISr6kHJqbllfTp+stN+je4oakh0iU0AGdo=; b=BPOrIDNQhgGthHuShIH2GKHBGlxDjQezXLmdvkqE07Yx1V56BenlA2EIlhP3v1vVbs0l8x5bTkd91lIs6fWjGAuKZkz8+qdVc3RI1WwvVNTNTAiUMDpDq7N0NXQI6w8N4ymznr7Ro9cq1EI+2F8aPWby/zGvkEGCXrIRyUUJbZg= 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:30 +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:30 +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 4/5] arm64: dts: rockchip: enable the gpu on quartz64-a Date: Wed, 9 Feb 2022 09:51:09 +0100 Message-Id: <20220209085110.3588035-5-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> 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: 77fac23d-a810-4d4e-4b28-08d9eba95d8f 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: ORY1qBZfuBjqaWJsC5TJcudOS50/5IXAHKvpoJYRRsW6xMcEmjdgREI4PnqyhRgszqngzHNrSuibNyHtGdkU8iy03n6MeuxHh2TjCAp0SV9w4vFj506Ulu+J/PatcnZnJwrEoeUhRXTOGYqf/yi0DFGRPgQagBe2+eIx5A8Yp8w0GOqsaQJ+9zKnp87tuexoXRPNW1C8ymBSI259XyEmz/v2/J3On3xn5kmVtQA0hNjw9IhqorFkaxyivN2uSoddCHTcrdMg14b9bTeftaQ7n0YYEWrrg8U+65nSwvAtQjrNKgoKvVbqpqnCBKHkFnaTQtZJXvU5HuVB32JAo5n0OHmdVnyQkebIEmzDbPW1cFn9/NgeQMueXBZKjuCPeI1Zo3qa/t41zw+XXlZqLPDHO8Yp8CkBoXBEOlJFLvlzJTaCkS0bM7muvWHz2ntVTCjjI/6xMke5oAFC6jvXHhg+uMGZdzTQ6ejnGeeNMBlzSn0+TLU7X1CdFq0Tc2RHXOP2EjDFS5XanlHnf0c/R3QccwzTD2HwchPaNrwOcIUeANMGOUkB9gfDd8N+KByPwIXbKkKx5yxj+e2u/ORmm7JQ8w6RX1Ss8CcWiGMITF4E+xHOCIZTN3k7wHzF8VjHIwiT3Ur+jwfxiNiQ7dGEcTtbyA== 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)(4744005)(44832011)(8676002)(66946007)(7416002)(5660300002)(52116002)(6506007)(86362001)(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: Af7GTf2H2+6lhABbMgIrecqXB1VtolBQCkmjUi8GOV9R02mHlNb6nPrQ2aRLJiiA6fvdOvtJxlyZTExcD8ELFF7sL9EEjikqHQquMMbvz99ClmoesdzAd82/VIicbS++hZFsx/sz6JA5guJTPCzxyBEu9HAfzSxrX3GJEWmHIPQ/8jTPFzKaAE7cdmSwXCqutrCFdvPYhivh81KuPHT7dW0c8eTscOUD8p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ux6nm3Nfb5aReSiB8iJ/tDRctNeE2jt+pxEQBEsltKgrH6A6g+zsc4/QDLjiS9QemzOzYXOJo4B9tYZ4ZQEjsO1aXqlYLQ4tAyautQvMnc3S9kBK7DxoRu+xyWdhZ4tb7c94B3YA8TCQDm7xPf4eZcuEGeIyyd3O1tOiJqbixrN0SBidiFK+8DFfBXAsFmekegWCLvep7I2UrH6EILXLS3KtlwjKK9mtXZoiBW5YiVArlqBFjdeBCSbd8arpA3TLh40Z2CVUgBlMtnvypy+330Qvi9PAD7LVtwVJLjSJsia6Bk1W+gMGKYltZa+LiTPc5WBLhBTRzvuBedfEm0QivzjsRp+9T5HDiPBIuArv9nFlqxFsixmOFI/1S9vUqPxR8P0xzujdJLLigXqMyV1n2FnwI5yGl3G7IK2EML8vLB2ZN4ANGlJ8+imAz5o8e7HQSJOU= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 77fac23d-a810-4d4e-4b28-08d9eba95d8f 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:30.3651 (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: z0ruuJo5omRmnu6Xwa3nLTYSwJN2no66AUV3qmJvUKVBauLbHzvhgMJ1CAPyWOkNpxN3vSOgLhfNXNxH4oVivoUHCX4puARes248TCZ8NaY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2927 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_005139_291214_6B7818F6 X-CRM114-Status: UNSURE ( 9.70 ) 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 From: Ezequiel Garcia Enable the GPU core on the Pine64 Quartz64 Model A. Signed-off-by: Ezequiel Garcia Signed-off-by: Alex Bee Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts index 3e65465ac7d5..b048db6cff3a 100644 --- a/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts +++ b/arch/arm64/boot/dts/rockchip/rk3566-quartz64-a.dts @@ -221,6 +221,11 @@ &gmac1m0_clkinout status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &i2c0 { status = "okay"; From patchwork Wed Feb 9 08:51:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12739852 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 A847CC433F5 for ; Wed, 9 Feb 2022 08:56:25 +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=R6AKlRFDo+lCoaBsq9PyhrQ3MDIs/sd20JooFWm72oQ=; b=Tm0KoSneO5uTGK s/qgUp8k5xU1QoCesCXxF7ejlLNRf/4ebgYeJSDWhXmRbL3yI6bvlp9eRIHzdZwHX6VetgUP+hg6N +JMTT4Td5vO3O+1NC+e5rgHR4QUA7rOVQ/YPt2Qem44clz9NWnSc1WctRcvQjPZbIk3x3Zm4J0ZlU eMiq3+tuMFir8Z8UxZyi3XoY7qG9RJKYXb90xB3JEQ7xeDUQHsIC+enaUejLrYjAmchC/fjPCya4I wl+qnzSck9QqY3AUjmwU64q9GBit0854LfvOY+LILiOyI6imWeWY5HB+dnfANlFVbl2tohSOYasD7 +1dkCxU3JYoF9iGgs8aA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHik7-00GkFf-MQ; Wed, 09 Feb 2022 08:54:28 +0000 Received: from mail-db8eur05on2065.outbound.protection.outlook.com ([40.107.20.65] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHihR-00Gitn-9D; Wed, 09 Feb 2022 08:51:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MO2Q209pIFmhRiuiFo9sLdgktjT/CkrpRyplQ9H7xBy83IPJ5jcmqxonId7X9T5wZ9UtBbzH8h+tAB1pNwUfNY0qJz4rlEwPhxYCQxh+fLW4D//VImw4024B1ahu1/LrOSxbQMVHjwW0wKFtt7q3rEXe/4zxcjzPVY22C+s2vJjYI+mA2hxXkM6FA3SEosOgV0HbpEXTjJVgTLJCG82LCcM4ahzVFGoeKyDxxYbEflwg/V1ccmf/Un1VhBzgTq7bYclDQNd0dC41bljNGZ2COx9VUqfBGEQkD0NzJuNnQhJ46MeJ24heQx4oOefgI705di6YbgixwcDd/SyX45NeeA== 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=maYIBthui/wiXVu7QZ+ik0rjmMzwVfPApPwcKGj9fFM=; b=e50P5U9wiM3P61yO8JApRYc/1q4Qs0XCvP5EUoqAP9lzemLyQCT7uaMlBYAVoXMGjDxtkletJD9L1MmZ8YSg0Wvmnnuu6aBFt22wk5e7Pvr6kIRcZw/U9slTcr1y7waBALkrVEGdlZi7ZQZ7OoMyp3oXVsEsmvo/+g3SSXJuIGxHkIA6vRfMHBxKSoVq6Rr4dtigv7NU3MZqD1V+CLHIjW3jcUYINh0CC/Rihx2DpBbM8flmDtSEa4RFemr3Ay9Lm/pbQLbiijq4aYr7dDmEdylizbPycqqBfrO5VFLcZSkRUFZ/ZA5scP7nkEQo59vsSyIJ39+2tvLoBb3s69tNaQ== 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=maYIBthui/wiXVu7QZ+ik0rjmMzwVfPApPwcKGj9fFM=; b=cqogZLP6FU8J74kZJ38aEFDdPuGVIBASVnA2PE/KYjxwR1m4Lvrm0po7UfrutCdsmOTH+TD2tkaNHhOdiyIN6EWOSai2C5+GcuOKYdX9JVkhqsEvbDS/NcP/2hMPSiuM6AkMVpzTW8Cb5yP6gKGR97BHgO77bgTNN9jAAN4rJfo= 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:32 +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:32 +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 Subject: [PATCH v5 5/5] arm64: dts: rockchip: enable the gpu on rk3568-evb1-v10 Date: Wed, 9 Feb 2022 09:51:10 +0100 Message-Id: <20220209085110.3588035-6-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> 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: 6ccc77f1-d17a-4e81-11da-08d9eba95e9f 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: vRpoZ6AvuZrCSk57BZ7G4HsDvvfjVXISebMsup5l1cECRlKMxS84xwZkI++vRuP3zeuVhV9SD0fsGJ58wH3rtszpl6uua8e19zu8oK5/GgxQuPE5AgI66Rx2XchbJqs5TnclD7JOqZprommm3D9V2nF0yukyUeVoOUud8mX1p03T2jxR9GQBhzJbrK2F9PiPgtP3fMYjel+qKZvB6TdpHLVjiSdk0OOzVmd7n2I4pnklp3gBnPtBGvKo+A/JMxrBjwTrT6ZTGynuEiggd/gcZ5DlGsL4qpmsOFyZ5HGRffkR/8NRfB+AU6AiO/ycScGXN23j/cga6sdglOBVN1tlEzbz8C/EFm0gaLEQ6vjFFoy1Q8lKxCBrzfk4/DcA3QBbeQivGZsUZI2elHkHOOi5iIVlVaaUQ8iFnp1tDFGSM1O9l/ObxplQb4D1GRqGz29HWpstxiUFAagwWtajmuxG9mSGjL6vj1Agv5nrszFrHkupVDh34VFFVAIb4C4Ybze7xiCctp2Bv9sVIPnBIzoxL94Rh/weqnIxhsgCTfQ/BnvMybV0j/WRbB3D7k5bRhMcc/9CNsf3LyBzEAEWlxgyKrzNwNCu/88J8OhDu2iYa+d++HnMzhLvQBYwDONSpS1qAvx5kMRKs49MBiTcThbw8w== 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)(4744005)(44832011)(8676002)(66946007)(7416002)(5660300002)(52116002)(6506007)(86362001)(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: sfrW9RsnCDNfJ5liVBbxWzmG22DkKU0+mYVvwu4LrSqmjLsvTdF/WXp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VXP0+Xyy6JzvljR1A0a/ZC2jiZiEWxJZezdM0QO65xRDKeWntTh7Acz97Bz0Gj/Adn5jXAsE0SQcSixtthqbyOOy67bqfNy7tpTCX4OuIoFo2vN3B0QBJen4KT16Ape/fAIOnDY8lAw7GdXCLgDu3SWk1fxOetEVzGNBQgp8xUu3dSeNlbf503Vu1cdRtbPKaUQvNPrEcU3vw2Wdeo6JCdHIgC8bzvriGgkBR1oDjNnflOfnfvJoHkwrPvHRBs8+e1cLI16EelKtdi3nVbStskdjP9GqQUPtVb3RjZEOoUqY3/LdtNg0+LE91wu5ZzgeKYFVIP1ntEE4kgoSVxA2fHkrZVc/moqEhtEYiIsBOwaAdcUiYB9hdornNtZWjOZZimwO6ZMowuQVH2ZvJ6l4bcz3H2ZP4Vg+V5v1u73uyh3zg69ax31ch77OWQlgsPVI6G0RJtasX/pENrhR6DucEV+B7PZ6LhGiFXo9KNHlULJmtHO4ugQ4gQ7jYBfzGrK54/HpPIqmz+VQCbkpP2tgvPRbffwSW8jclDzBJBKqiCIdJ6hnZlFmFsT2g2Mgn2/vYtiG75Gi4nxMHm70bX1Awj1t7k1meyb50DXu890qv7mic4mlHd0jKaS6AZy59+64VyHnylvjKr7vd0zE7gnJxK8c= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 6ccc77f1-d17a-4e81-11da-08d9eba95e9f 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:32.1150 (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: bQlxx6788TYuWwX+axpHoYLvnUeuDAznXk4PPXNdxtzRicbWiLaU0V4MCGFXpr4vxtyUKZtzz/TJUMJcl27/OCKVRamSOkO8ctcolhTABMM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB2927 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_005141_380094_F61A0038 X-CRM114-Status: GOOD ( 10.55 ) 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 Enable the GPU core on the Rockchip RK3568 EVB1. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts index d8a4f7a9f562..39c495ff0157 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-evb1-v10.dts @@ -140,6 +140,11 @@ &gmac1m1_rgmii_clk status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &i2c0 { status = "okay"; @@ -462,6 +467,12 @@ &sdmmc0 { status = "okay"; }; +&tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <0>; + status = "okay"; +}; + &uart2 { status = "okay"; };