Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2789784rdb; Mon, 4 Dec 2023 07:36:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi5X72ZkqhCWOM0/VDNo3Cxvtj3cNcAf4Fs4gNlOr+wrW7bNkWw6d+48mqIYmR83HOnpSu X-Received: by 2002:a17:90a:fd82:b0:286:6cd8:ef13 with SMTP id cx2-20020a17090afd8200b002866cd8ef13mr4966873pjb.43.1701704204257; Mon, 04 Dec 2023 07:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701704204; cv=none; d=google.com; s=arc-20160816; b=fE1PyoKwydAbNei4rPb6fTsf8mP01RaiPrSly0n+t6MYfSrL9EvnUhTh1nUkhmo3OM Okg2pIw/hi8b0Lq8/B1nf1p/wYyUs0LyGaU8CWgH2HGKm/3BaeMIlFnuRsL0bH3/fSCq jMbli5d/A9o649T7D3Jv+L2NtiNh6acABNJvXtX6vM+1pBEm/hn85dO0UbUc4UwizelA vBA6zL3c2zWBaPMeUDCWWEPyJG6pWZZoFXh44rd0EexHsjQPwGGhEdLfDWfnWzGPaoUU Sir4yh8O5XI5Jr5OMKbvrw2dO1qOBflzuV4thlN2xtRtQwya67j8wfcs9UzYU2hUeGs9 RfOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=M4KCr8eFfVtiTY0UwfeXIsAJIrQ2O8jUkXkezbt/EUU=; fh=ZUK/zovZ3p9QBGC2x61y1qv8IqfQDcV6nzwDU9avA3I=; b=lwQgHEre9HWZrRD0XXl1LeCrDYspkU4QIEgYSI20oQMI7o3boaRsJkiqpKfcaXF5AV Kc72lNxOr9unYPB8QiOt6o2l/0t8bD+Q75KajQ+3llzcWZQvLZ6XbNHo/MSV6PvlrMp7 zRxNnChi7Y4hE/WRWxU3CrQI6h97jWZHv8GvwzvycutFuEMQvNAsDGeLpeX6KmwDw8gK ElKJcmRwjMaEbUmrekKuMHYUAPNnVqXOxVW795XUNIDJPh6gsU8dnt8KCFYCYfkrbaTD 6x6JNKWbmgwKPz2vuC2z3YaR7Fj2HJ4MARlLG87M10XpBoJZfii94IDxAYODqI84W0Vc zGdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QnNgzbdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id qe10-20020a17090b4f8a00b00286bf6873fesi1176144pjb.129.2023.12.04.07.36.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:36:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QnNgzbdd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B453B8073856; Mon, 4 Dec 2023 07:36:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234693AbjLDPf6 (ORCPT + 99 others); Mon, 4 Dec 2023 10:35:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344234AbjLDPfv (ORCPT ); Mon, 4 Dec 2023 10:35:51 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEB4CC0; Mon, 4 Dec 2023 07:35:57 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-54ca43031d1so1425163a12.0; Mon, 04 Dec 2023 07:35:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701704156; x=1702308956; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M4KCr8eFfVtiTY0UwfeXIsAJIrQ2O8jUkXkezbt/EUU=; b=QnNgzbddLLjyktLgphLLvjk42PM2nwm2m+j79L7lNQwKBZcsS01h8DS5VZILeuwsTD gQ6GnkYMFWLopYbDFQy6gycAfRe9v7mBncCeKZC0gUhX8DuU+cBSTPedDID/s7t935FK Q3DLzgiTQfjsnTU6LaKMIrCVBB/YNaEiFBa7dN69qVcBsxbzDopWKtGj+dIxceb5TbdG NWPGZG5iB1TOhR9CZF5dfsKKgFmO871v//XQhbW27XdJXPjPWIZYlWYw+ml1lp66kN5x W2ggwNRy2Gt009Ru7Ax6MgUb/IZBGygi+ZCk30FZLvIzYKQrxasz5iUsK828SNTgXU2q eI2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701704156; x=1702308956; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M4KCr8eFfVtiTY0UwfeXIsAJIrQ2O8jUkXkezbt/EUU=; b=cdee4szXkk5SRfMXK6sIlO6L0ZMsnbqrkYy1dbfp0BZoDqOYcOWvKE/H/BG0JLJjyL /UbQL58RSCg76gaPwBZrtOk6qzEDA6bjuETeIlGecmqYm1fgtAlpHtAz11rUUy0B7Axy 2WsOnhp4asYJMatk/6jSJi4gA6SHssQFDlHuxGvDkzquiEMj62q/+IxbTW5IqsCvIFIn 7oGXA5VHFgqZR1NjqP+4g9o2Ciu0lB1nHHqwoV5y6lpg2hhjtOUap+L1T33UiQI+J12w wJ+kDLNQQLem6kx0t2itH3lIMBcuxPIwyQHL1nkIEe0knkxattYan4vtpoXntEB3b3s2 naWw== X-Gm-Message-State: AOJu0Yzhl1UaC0EiUEYK0cbjap+ux+WqaYSmWw3QqwCV/bTwR8XqbeH3 itOoNb5KlMO35x0WGQKY7g== X-Received: by 2002:a50:954c:0:b0:54b:2894:d198 with SMTP id v12-20020a50954c000000b0054b2894d198mr3329077eda.4.1701704156091; Mon, 04 Dec 2023 07:35:56 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:55ff:210b:5393:c9d7]) by smtp.gmail.com with ESMTPSA id h20-20020a05640250d400b0054c77ac01f4sm693194edb.51.2023.12.04.07.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 07:35:55 -0800 (PST) From: Alex Bee To: Heiko Stuebner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH v3 2/3] ARM: dts: rockchip: Add GPU node for RK3128 Date: Mon, 4 Dec 2023 16:35:46 +0100 Message-ID: <20231204153547.97877-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231204153547.97877-1-knaerzche@gmail.com> References: <20231204153547.97877-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 07:36:18 -0800 (PST) RK3128 SoCs have Mali400 MP2 GPU. Add the respective device tree node and the correspondending opp-table. The frequencies and voltages of the opp-table have been taken from downstream kernel. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index 0676d8b22a1e..414b690f96e4 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -101,6 +101,27 @@ opp-1200000000 { }; }; + gpu_opp_table: opp-table-1 { + compatible = "operating-points-v2"; + + opp-200000000 { + opp-hz = /bits/ 64 <200000000>; + opp-microvolt = <975000 975000 1250000>; + }; + opp-300000000 { + opp-hz = /bits/ 64 <300000000>; + opp-microvolt = <1050000 1050000 1250000>; + }; + opp-400000000 { + opp-hz = /bits/ 64 <400000000>; + opp-microvolt = <1150000 1150000 1250000>; + }; + opp-480000000 { + opp-hz = /bits/ 64 <480000000>; + opp-microvolt = <1250000 1250000 1250000>; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = , @@ -131,6 +152,29 @@ smp-sram@0 { }; }; + gpu: gpu@10090000 { + compatible = "rockchip,rk3128-mali", "arm,mali-400"; + reg = <0x10090000 0x10000>; + interrupts = , + , + , + , + , + ; + interrupt-names = "gp", + "gpmmu", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1"; + clocks = <&cru ACLK_GPU>, <&cru ACLK_GPU>; + clock-names = "bus", "core"; + operating-points-v2 = <&gpu_opp_table>; + resets = <&cru SRST_GPU>; + power-domains = <&power RK3128_PD_GPU>; + status = "disabled"; + }; + pmu: syscon@100a0000 { compatible = "rockchip,rk3128-pmu", "syscon", "simple-mfd"; reg = <0x100a0000 0x1000>; -- 2.43.0