From patchwork Wed Feb 9 21:55:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 12740954 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 22751C433F5 for ; Wed, 9 Feb 2022 21:57:54 +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: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:In-Reply-To:References: List-Owner; bh=MxebNnyi3MlqwMvFv8WT+F9exMkAi99NyIQwfimF3Ks=; b=Xkrr5M2+bCdw9O dDLNaGfQrKdPTRDTvT5AwZLKXltKiDOZVOKxvCtHdzj8AoM3m/aKDy0UcKrkvb3h9pRg2gT5OobyL HzZybTLqdmZ3pMc9yy5nrV2khPeI8c78fVRmds8M4XBcCodn4Xl6Q1gYaM2rvZovnRBFsksUvqh5n 7lZG7kg/isN14/hbhAgxDip2fasIWE5hSW5csBXTKdqa9bYO0toHGrcLxcPm7Tv52msvVftDmJTxz Hn7GCwN43EizVBMXpGFbqP/94P0WYcA+KuTndiwRqdoUrqAlIU/sKkHMMBsjIE3ROw0yW7EQ3mnWe Cw4OE3F7euNu68ZF0OPQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHuwr-001kVN-Mi; Wed, 09 Feb 2022 21:56:26 +0000 Received: from mail-ve1eur02on0600.outbound.protection.outlook.com ([2a01:111:f400:fe06::600] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nHuwb-001kMp-KU; Wed, 09 Feb 2022 21:56:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BelQHjsTDp/ynfPy2Xid0mUbaTa84iJl7xWyEcYWnCQzp/6mJal+BtZbq7DBq8Row4kTC6LJp1EfnUaHr/8P2DlDozWVplVCvJ6pxWAgeoPy0kHfFm/b4jeuhAXFwXB5eAWUjUFky56GvzBcRqSI4wnqpyazlDlD5stMDF1LEEtxhRwDi8bLY1HfYUXGjDFWo+4sqoYTdnREKna5I/lqJ5RcLPEj6P9eWsxvoz5jkQeRCcNNM13dZY4bMKNTCdzfxqYzH+ju1mkx08b2rCH3Shk9rvITND6Sme5TlQxusPp7vXyd/PcOcRY9SaztFAYpgD03cTMjBycVGclKqp1buA== 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=8+ZeP3sg0/Td589Z2ryGgBECGTfyTWxkXdYv5CB/8HQ=; b=Qn8zrXW0aN3AYX0mg8epWAEiEfHZ6nBkIGwdkVodHfbCljaKtnHMj7IhmNMF/QpqkSJ5M3bcNLQ+5GrPcQkrQpIs3yIqZ7rJx8cC5GWSVq/WD+XUT9M2dg1ch8dHH3iaWEmCkLj1Bgay+XyeoRwMQ0xUwdb+OFtb3vC6R/oNL7u+OCDnQiC6Wdq9xaYu12S+OJOSKNxQOX4iEXwCVkTfaHWljgAo58qCJv2rcUtFNRc49VohomEEUW9Q0M7NIpViF7QcUvzpHmUB31flTgQucgVP7eWLzGMxYXxCpKSMRi5eghKu3BkCCMaCuKkqUeGIlnMfNqGWPajKVP6+SWk16Q== 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=8+ZeP3sg0/Td589Z2ryGgBECGTfyTWxkXdYv5CB/8HQ=; b=wNnl3fQLgycmW11MxnQKzYXo7McpxX3uHvqpjAsxhSvcyAFUes/Odia5jWsrBLd6gbjcc2RM35CSzwiktjz6saFEwhMDD54xCr2DqU1NoqpMqUqJ81utvl483SfHCBTLUyi1xhAV1KKM+VtkcXqQr+xoMlVQIfo3Q7tnDY8xVPo= 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 VI1PR08MB4575.eurprd08.prod.outlook.com (2603:10a6:803:eb::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4951.17; Wed, 9 Feb 2022 21:56:02 +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 21:56:02 +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 v6 0/5] Add GPU for RK356x SoCs Date: Wed, 9 Feb 2022 22:55:44 +0100 Message-Id: <20220209215549.94524-1-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 X-ClientProxiedBy: ZR0P278CA0197.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:44::8) 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: 12851dd6-0c72-49f5-82fd-08d9ec16f6a1 X-MS-TrafficTypeDiagnostic: VI1PR08MB4575:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1775; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AL4k/Uibvr0U4yE6pbwo5qXoB+25aPyJx/QGpdNPkqHHCwiJ9jUoHlxMi+2Hh/RV/5a+PqmUPmWh3nn43pMv0hSeXosZHfN6xUetSH6JxzaSxHIp8sagtu5IwxT6BTjkjILF1+QAC6w4X0vAb/Ydo4PAqK8Nn7A8FEqiA0K99omNK251isOEMd7hP5iR5XQEFsx1tlKjFNnbNFMLSY+R2JxxkM5APJKhb+ArBMcSWAJH+fyHsmFFVSyxn9EMF+P4nfXgap+ZtEytKiVjT6t1/D5zx169WBV1Oa3F12pJAz3XVhDniE2e5skbjifi9SNvuq7YhgqH7uI1D7Z62jG/5v8jbdoJW6qXr5/SxUmOfUNJcJeMn79HeIFIhXegeMQo+NCXDiL5C9a/w73d7jYL5ExJ1E98gpBTwnobHt8qtCC5zcdfIvq7p648Ia1EdPKtdluCZ+caHyf1Dm+Fie5k26+v+s+MMsn2SXKiM0kMCXIzhnyF/s5VyJymYTr/fwsUfUv/irDJn55Lb89zFk6/v1MrFss+UkETQMc1kptt3/iog8iYmelTNuje9D34aFAii7j0DLaiG8HirV4jOt1twI2Vq3EPpd+8h3LQ3oMK6duiYdkoCmWTM70O5zl1mSbdWp4vzjvEEkSXcNuKtEePjGJN5VXVs+ycnL5w6MxmFH8sQlQZ5QyIHP74BBsGrou4OHyiYToVhte7q4SHNK8UkGIrTCNjLrqrVjVNo41viduaT6ZIiBYIFEWpWqbtaom/WKhRl6sSNEgxRpOR6WYPfQ== 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)(6029001)(4636009)(366004)(6512007)(38100700002)(2906002)(4326008)(508600001)(316002)(54906003)(52116002)(36756003)(6666004)(6506007)(6486002)(966005)(2616005)(44832011)(1076003)(86362001)(7416002)(66946007)(66556008)(186003)(8676002)(66476007)(8936002)(5660300002)(83380400001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9Z/CgbYy/J7B7tGFrQixvyaY/13RIz6MUKZeejuiFzGD46x8sEDVn88pNlpc8wvzAvblWBhg06K21JcMiZsiXo53daC45IydbBcp0s33mqqGpd3kypZIHvaCprH4VU+vUmnPAaR04ZP8Q3xwPp6/UWuQabN1CNDQXlJmjropM2VGn7cEwZePb7AWwDgZP6wq493mGjpjWZTzz9NcXvQq317EQpGHu8Itom7N0b7VL1JWP4UWxACwMWa+CYRAXcjHgouBhJ2rsCnGcrGyfPMLqLWKRB4+A62BWDEBsidchyq5xotPSQVJ7WyF0+9FMeKvz4DQSsJaGZ7ga8Q6/EXDA1cUI9Ix1zKfy2qn2ASW/CVzgvyluf6fm3z2who6uokKFW+urf50R7jEFs77yy4hdLEjbQ6JHR1wtCaJaukOHPa05htGU/1NyrJy0mZJNyKXsgvylgjqEETCuwtp3jiG6OEM4LnTtwA0ndRbePXAPDyOKIXfpv+W+gORkdyYIDRn1D39+7+DxhSnTFghKkeS4790Lb1QFlphT37N0N7Nvfgk7A4vCvHEGv/Zvkz4V2HTxxv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NvtIos1eGZso5BwEYwjDEo4pfBbfiVW3Nn0CNBZ7nPYKb10MqLnjgD0Bj6uOeKeWuDLxBqapkv7Ae9d3X3gUnhFzKAFws557ZTQnpc= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 12851dd6-0c72-49f5-82fd-08d9ec16f6a1 X-MS-Exchange-CrossTenant-AuthSource: HE1PR0802MB2426.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Feb 2022 21:56:02.4288 (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: v0GaM73yMgA5j+kzLHbUCJtM4jXUpcqDum7PexujISXt6T2YQYyc975Puf6WyDkdy47KHq/YOjt3xkyFIajE9/DID1ugK0u1n8e9Kxee9eM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB4575 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220209_135609_701850_AC86132E X-CRM114-Status: GOOD ( 13.82 ) 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 Hi all, This series aims to bring the GPU support for the RK356x mainline. In conjunction with the VOP2/HDMI TX patches v4 [0]) it has been tested successfully on a RK3568 EVB1 with weston and glmark2-es2-wayland. It should be noted that on the RK3568 EVB1 the supply of the GPU power domain needs to be set to "always-on" in the device tree. There is an ongoing discussion to provide a clean solution [1], in the meantime one has to apply a hack. Looking forward to your comments! Best regards, Michael v6: - use existing clock name "gpu" instead of "core" - fix missing space in indentation v5: - address Rob's comments, describe clocks in SoC specific region - move gpu_opp_table so that nodes without a reg are sorted alphabetically - add GPU support to the RK3568 EVB1 v4: see https://lore.kernel.org/linux-rockchip/20211126151729.1026566-1-knaerzche@gmail.com/ v3: see https://lore.kernel.org/linux-rockchip/20210805025948.10900-1-ezequiel@collabora.com/ v2: see https://lore.kernel.org/linux-rockchip/20210730164515.83044-1-ezequiel@collabora.com/ [0] https://lore.kernel.org/linux-rockchip/20220126145549.617165-1-s.hauer@pengutronix.de/ [1] https://lore.kernel.org/linux-rockchip/20211217130919.3035788-1-s.hauer@pengutronix.de/ Alex Bee (2): dt-bindings: gpu: mali-bifrost: describe clocks for the rk356x gpu arm64: dts: rockchip: add cooling map and trip points for gpu to rk356x Ezequiel Garcia (2): arm64: dts: rockchip: add gpu node to rk356x arm64: dts: rockchip: enable the gpu on quartz64-a Michael Riesch (1): arm64: dts: rockchip: enable the gpu on rk3568-evb1-v10 .../bindings/gpu/arm,mali-bifrost.yaml | 15 ++++ .../boot/dts/rockchip/rk3566-quartz64-a.dts | 5 ++ .../boot/dts/rockchip/rk3568-evb1-v10.dts | 11 +++ arch/arm64/boot/dts/rockchip/rk356x.dtsi | 76 +++++++++++++++++++ 4 files changed, 107 insertions(+)