From patchwork Mon Jun 6 17:07:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12870711 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 6B4E7C43334 for ; Mon, 6 Jun 2022 17:08: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: 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=JRt0ECMQejDhwUrZy5nVdBzg0TG1PjCWzmJHYdYk83Y=; b=zrFTGH2e3hpYPx 4UqJ33spig2k3f3cFdHmqbrkIKPyxj1wIoj3bn0jmQuxW8DDNt5YyrkIokuY7NQh9SCJbIjttseFD jyvOwWEVACkS2QHFFMt5YRw/UBYAU+xdu4L7jSfAXwDdbmNQHMTy/IBx8GYYSl5gyV263NJJR56uO amTJ6UWqQFOBL9RLr6W50Sps6+Xhy+kC7FXbqtM/VzA2gUTclGizrSQBuO/0dIEO8MHNC8QTUtVBS rk475Kc/C+j4qSoTk1ebOmEblXoxyQwyU87bF6U0W2YZlJvHncuknX4fR5mOlaUSw4Y6gY61amX+i hVfzr61EG8/gQnF+xyrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDR-002Aal-Rp; Mon, 06 Jun 2022 17:08:33 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDO-002AYX-Ar for linux-rockchip@lists.infradead.org; Mon, 06 Jun 2022 17:08:31 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 3FBC3100829; Mon, 6 Jun 2022 17:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654535293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=3wuVSsd1Hl7QmHFoqYqgbtX3GlonApyXjf8ww2OyDio=; b=Mwt48Sn0zqXjhnddWtfJWgxi3CiyQanDpb6EzPhDipiDaFVJRSyTx/wECC9eTXmxUYe/kj /YU/syoSWVWVwhQvF1j1AfnxtzpbZx867Lw8CxQVhdnD4S98ZNfjkeQtfcnX01z53bhO88 8cpigHyhXB6FdTDvGzzyN8IF14ilAr0= Received: from frank-G5.. (fttx-pool-217.61.151.134.bambit.de [217.61.151.134]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id C857F1007DE; Mon, 6 Jun 2022 17:08:12 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Heiko Stuebner Subject: [PATCH v2 1/5] arm64: dts: rockchip: set display regulators to always-on on BPI-R2-Pro Date: Mon, 6 Jun 2022 19:07:59 +0200 Message-Id: <20220606170803.478082-2-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606170803.478082-1-linux@fw-web.de> References: <20220606170803.478082-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 1d65b9ac-23e4-4d70-9cef-91b73834202b X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_100830_587252_DA5B5348 X-CRM114-Status: UNSURE ( 8.43 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich The gpu power supply needs to stay always on until the issues with power- domains not being regulator aware is resolved. Otherwise we run into issues where the gpu-regulator gets shut down and we start getting mmu faults. Signed-off-by: Frank Wunderlich --- v2: Add description why always-on is required --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 7e5b3947e28f..5bb49bc2630f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -215,6 +215,7 @@ regulator-state-mem { vdd_gpu: DCDC_REG2 { regulator-name = "vdd_gpu"; + regulator-always-on; regulator-init-microvolt = <900000>; regulator-initial-mode = <0x2>; regulator-min-microvolt = <500000>; @@ -264,6 +265,7 @@ regulator-state-mem { vdda0v9_image: LDO_REG1 { regulator-name = "vdda0v9_image"; + regulator-always-on; regulator-min-microvolt = <900000>; regulator-max-microvolt = <900000>; @@ -359,6 +361,7 @@ regulator-state-mem { vcca1v8_image: LDO_REG9 { regulator-name = "vcca1v8_image"; + regulator-always-on; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; From patchwork Mon Jun 6 17:08:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12870715 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 6D74EC43334 for ; Mon, 6 Jun 2022 17:08:52 +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=t2Etiqs/VIIKyLC+1/Whhv4F7WVxsuGh8RH9zpyeHz4=; b=YjDN/gtUt659Ks 8IRX8JWTEXktDkgS2/HVAfa6XUIJ7HLbx0VKBjoILmIFoOrMBVVP9bI0B2z4XvnFf3+9FF3Cm1vPh li5SL7oEsgG7jnWb7tVtiE6xmkEZCDomq1GB0Y5FV85A8mMqkttaApmw08NZd6BkbhUf79KxTdgVz YYaHqL62Wkxi4JnHiSuQPdeN6AgN8QmHBwXYTsJ5/Qb1/L3fc/kh6DXJS6e8Hw+LzBDnQzobGTuaT ddD9qY7+cHkIUkVjWkOGLvPVI5BZll3GbxdIFhOS+KU8iDfGBkDH4j0DwdndcwC9pmmJzShgHKeDM 10Fqi7gtK+hP7WBUjr1A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDS-002Aap-6q; Mon, 06 Jun 2022 17:08:34 +0000 Received: from mxout2.routing.net ([2a03:2900:1:a::b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDO-002AYZ-EQ for linux-rockchip@lists.infradead.org; Mon, 06 Jun 2022 17:08:33 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout2.routing.net (Postfix) with ESMTP id AE31860402; Mon, 6 Jun 2022 17:08:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654535293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vz1jUMX0hgXPNe5ZtZW+sXU/8PkjKOcZEAhjLjhZGU8=; b=mZQ1cNPNMHoVzvdnHhfa7pxpSGRnIxekuuVs1/zFQg8AVbJRCMX9xcYCPPCXxx+foi6TgK JQaqnvhivXNwA4K2waHuVcltclmCG8CsdaJvboKc3QiCH96KYanpkdffxZ7uGr9W5fdjQN epYaknmzKmE6n2Ncjkk+NRm9irhWLOY= Received: from frank-G5.. (fttx-pool-217.61.151.134.bambit.de [217.61.151.134]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 429EC100274; Mon, 6 Jun 2022 17:08:13 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Heiko Stuebner Subject: [PATCH v2 2/5] arm64: dts: rockchip: enable vop2 and hdmi tx on BPI-R2-Pro Date: Mon, 6 Jun 2022 19:08:00 +0200 Message-Id: <20220606170803.478082-3-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606170803.478082-1-linux@fw-web.de> References: <20220606170803.478082-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: dbd3e06b-b642-467f-a03f-4a26483e9c60 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_100830_734321_89376E42 X-CRM114-Status: UNSURE ( 8.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable the RK356x Video Output Processor (VOP) 2 on the BananaPi R2 Pro board. Signed-off-by: Frank Wunderlich --- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 5bb49bc2630f..eeaf02461f9b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -8,6 +8,7 @@ #include #include #include +#include #include "rk3568.dtsi" / { @@ -54,6 +55,17 @@ dc_12v: dc-12v { regulator-max-microvolt = <12000000>; }; + hdmi-con { + compatible = "hdmi-connector"; + type = "a"; + + port { + hdmi_con_in: endpoint { + remote-endpoint = <&hdmi_out_con>; + }; + }; + }; + vcc3v3_sys: vcc3v3-sys { compatible = "regulator-fixed"; regulator-name = "vcc3v3_sys"; @@ -174,6 +186,24 @@ &gmac1m1_rgmii_clk status = "okay"; }; +&hdmi { + avdd-0v9-supply = <&vdda0v9_image>; + avdd-1v8-supply = <&vcca1v8_image>; + status = "okay"; +}; + +&hdmi_in { + hdmi_in_vp0: endpoint { + remote-endpoint = <&vp0_out_hdmi>; + }; +}; + +&hdmi_out { + hdmi_out_con: endpoint { + remote-endpoint = <&hdmi_con_in>; + }; +}; + &i2c0 { status = "okay"; @@ -613,3 +643,20 @@ &usb2phy0_otg { phy-supply = <&vcc5v0_usb_otg>; status = "okay"; }; + +&vop { + assigned-clocks = <&cru DCLK_VOP0>, <&cru DCLK_VOP1>; + assigned-clock-parents = <&pmucru PLL_HPLL>, <&cru PLL_VPLL>; + status = "okay"; +}; + +&vop_mmu { + status = "okay"; +}; + +&vp0 { + vp0_out_hdmi: endpoint@ROCKCHIP_VOP2_EP_HDMI0 { + reg = ; + remote-endpoint = <&hdmi_in_vp0>; + }; +}; From patchwork Mon Jun 6 17:08:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12870712 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 5C7ABCCA481 for ; Mon, 6 Jun 2022 17:08:46 +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=5zj/mzUmdvOIvf7a6Qb7IDSdrwB9fxNIXv9IVLUt8Fc=; b=tuBBAjbnR5Ey4c feeSoqI/D5RzL8X4BlRsIiC+qJ0gINmfDnbcYyuTnnVS8ghIZ/0Kzcd/HTugWHnbtLQ/QDXOXTc5n oyp0dUaQ/YcI9uMMQ3R9Id6bHulX66JbWojxIn/STqHnGM4VbIhvc7ozu0jI/QPe5OuaVGsFUftpo 0dEuPj212YT3mQMdkEuhRjFSBqPhRIV8/Su+ToIDcEhU8VdkY+FmWWn8nFHKGqB0B6/gyptph4j/f 7RphHZQJC5aPlAlyHLqsyuz12KTE7vOs/vieyT34fBfniju2UjVALbjdLnIbi9tKiPD672Lh7Db8n VQpjN22OrSGNtd4wZLOg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDU-002Aba-88; Mon, 06 Jun 2022 17:08:36 +0000 Received: from mxout1.routing.net ([2a03:2900:1:a::a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDO-002AYT-F4 for linux-rockchip@lists.infradead.org; Mon, 06 Jun 2022 17:08:33 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout1.routing.net (Postfix) with ESMTP id 2A5993FFF0; Mon, 6 Jun 2022 17:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654535294; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G6mObrSdOwq0VvY7EOJPbzhP1qVMTYOa2gbT0X1xZX0=; b=AwomFCxk1089a0eA+7FDRFHaTDFT8ZcXx/ZSPP4+bdv3RYm1zVVqP3B5NqgDVQ/oHJ/fL+ uWWZ06QKTjV8KL12Sq2DuEg2TMJUSZoilOnIM1MACQ4aEy2WQh7f3dACnFt4FYpoF+Raz4 9KcCQacb+v990XynzmzKZ7PhThdnz30= Received: from frank-G5.. (fttx-pool-217.61.151.134.bambit.de [217.61.151.134]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id B55131002CA; Mon, 6 Jun 2022 17:08:13 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Heiko Stuebner Subject: [PATCH v2 3/5] arm64: dts: rockchip: Enable HDMI audio on BPI R2 Pro Date: Mon, 6 Jun 2022 19:08:01 +0200 Message-Id: <20220606170803.478082-4-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606170803.478082-1-linux@fw-web.de> References: <20220606170803.478082-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 3fae8dbd-ad76-4e8e-8b17-ce111ec43b74 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_100830_717786_2F8CA833 X-CRM114-Status: UNSURE ( 7.92 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich This enables the i2s0 controller and the hdmi-sound node on the Bananapi R2 Pro single-board computer. Signed-off-by: Frank Wunderlich --- this needs this patch/series (now yet applied in 5.19-rc1): https://patchwork.kernel.org/project/linux-rockchip/patch/20211126122718.631506-2-frattaroli.nicolas@gmail.com/ --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index eeaf02461f9b..57ddb7608976 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -204,6 +204,10 @@ hdmi_out_con: endpoint { }; }; +&hdmi_sound { + status = "okay"; +}; + &i2c0 { status = "okay"; @@ -444,6 +448,11 @@ &i2c5 { status = "disabled"; }; +&i2s0_8ch { + /* hdmi sound */ + status = "okay"; +}; + &mdio1 { rgmii_phy1: ethernet-phy@0 { compatible = "ethernet-phy-ieee802.3-c22"; From patchwork Mon Jun 6 17:08:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12870713 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 B0F5ACCA473 for ; Mon, 6 Jun 2022 17:08: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: 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=4IE9gl0Wr6egtH2TaWuLmKPOAd8m2XbYjuPCOs+nY9A=; b=avwiWGmh+Od3KB CCVaCPGarUiptp/pYDas1s3eKz/7bhjQUdsb4LoA94A0QT243osAQ6ou0niUxkeO9IirKLI0FNI/8 hAHv5RCgnxomh6a5wlyTOZySIAwO4VxEAOIcDpNyWDPTaqPnPK1tOBK+/XB0rvhqTYIYOR5ZrZTSl 4OP/8YYxD4l46Dvf5Bs8RLLPJeK2zPwyYVK0m94QGYhQBKWftEgjOJ6jgmPZ4NQXYdHjHbXXoiiXT uCpCMcf6FvCUbm70v9MvZ0vV6caNmuRHKQiIdmdhcVpuQFbaMqzZ25Rkhn1dUQUvcQU2fkJ0+vvu8 VzxLaM0zzYKatMA6ifCA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDU-002Ac5-NV; Mon, 06 Jun 2022 17:08:36 +0000 Received: from mxout3.routing.net ([2a03:2900:1:a::8]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDQ-002AYU-Rb for linux-rockchip@lists.infradead.org; Mon, 06 Jun 2022 17:08:34 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout3.routing.net (Postfix) with ESMTP id 9DF1E604E4; Mon, 6 Jun 2022 17:08:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654535294; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vRerv6C2zCJWPtOnuZDa03OrSoI9ro8LrRb+tA/s5g4=; b=sABYE3sneoCZIYpY522rKFtGCkOPpON/Gn9nif/HKHkjY0/GOjmVOCI5QhhN0yMStg5Te3 9zocvd6JcmqbAEd6eqzxB6UYNrc95U/RcwYZyc5r15oLWpAEOFy1aqG0B3qVUUhlZjSwG+ IfGZ5cSrC624FcrfSpeaa+B22igdu4o= Received: from frank-G5.. (fttx-pool-217.61.151.134.bambit.de [217.61.151.134]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id 2FC91100274; Mon, 6 Jun 2022 17:08:14 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Heiko Stuebner Subject: [PATCH v2 4/5] arm64: dts: rockchip: configure thermal shutdown for BPI-R2-Pro Date: Mon, 6 Jun 2022 19:08:02 +0200 Message-Id: <20220606170803.478082-5-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606170803.478082-1-linux@fw-web.de> References: <20220606170803.478082-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: 83ac6d59-5b44-4a64-bbda-8324a0a9a0c1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_100833_070727_EFCD8371 X-CRM114-Status: UNSURE ( 7.56 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Add thermal shutdown configuration for use of GPU. Signed-off-by: Frank Wunderlich --- v2: new Patch as heiko suggested splitting it from gpu dts patch --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 57ddb7608976..75ddca1561e0 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -588,6 +588,8 @@ &spi3 { }; &tsadc { + rockchip,hw-tshut-mode = <1>; + rockchip,hw-tshut-polarity = <0>; status = "okay"; }; From patchwork Mon Jun 6 17:08:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 12870714 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 E3DE3C43334 for ; Mon, 6 Jun 2022 17:08:48 +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=n1jDtUkikQXWEXo5elyDN/pfjXHQGEXuqrVydJp5q0E=; b=koUQTO7HsyrSb1 Z1WbRi/Md+YZ093C6mErRT5qKtHXe8wA71cAi7KhP+ePjrFbPPWrAfKP+MyDRCY9B72HwDl4jnuzE SMNGK5qXLsmwA53stXULncKej5hnn02hyfmyWrBPxmB7OiJD3Q9W09v98KTfXd2AMPjwK7BCdZFsm tmqcKUySoj9ETAN8rXdLBM8isPatF4K0cEYV+78DuNJt3yw7T9EOJ7fOg7fPuvzc+EAtq9CRQ8r80 Yfn2YFzlHoYB/d7G8ReIoODWMu3LvCOqob6/WbaS369lSStgNo3rLaqjP2sp6kogAVyrSaxXBJDuc Dy4su7RlwA/8cOB82csg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDR-002Aaa-Ev; Mon, 06 Jun 2022 17:08:33 +0000 Received: from mxout4.routing.net ([2a03:2900:1:a::9]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyGDO-002AYh-DW for linux-rockchip@lists.infradead.org; Mon, 06 Jun 2022 17:08:31 +0000 Received: from mxbox2.masterlogin.de (unknown [192.168.10.89]) by mxout4.routing.net (Postfix) with ESMTP id 0EAA710129B; Mon, 6 Jun 2022 17:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailerdienst.de; s=20200217; t=1654535295; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Oo7wuHCaM7LObR3Luu8dCjyfSsvuTgkkbVEUGIl6ZLM=; b=RBEHtde08Hmxr2GKQ9qStzpA5WH2seuLg+uO1h34vG0z1rNwUTHo2lTzBcPCOGyCmjC9C3 hHAkrMx9mREElrDJUUurhWHOyNMlCnUCYObFqssZqm8lRL6WadNzP4mE5KuxY4Zide49+q DIMoHRkMJ3ppwULyiLmsJuwEuMRLX/s= Received: from frank-G5.. (fttx-pool-217.61.151.134.bambit.de [217.61.151.134]) by mxbox2.masterlogin.de (Postfix) with ESMTPSA id A22C01002CA; Mon, 6 Jun 2022 17:08:14 +0000 (UTC) From: Frank Wunderlich To: linux-rockchip@lists.infradead.org Cc: Frank Wunderlich , Heiko Stuebner Subject: [PATCH v2 5/5] arm64: dts: rockchip: enable the gpu on BPI-R2-Pro Date: Mon, 6 Jun 2022 19:08:03 +0200 Message-Id: <20220606170803.478082-6-linux@fw-web.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220606170803.478082-1-linux@fw-web.de> References: <20220606170803.478082-1-linux@fw-web.de> MIME-Version: 1.0 X-Mail-ID: cbd03c29-97ee-47dc-a203-7ff8203a3489 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_100830_671905_A3050886 X-CRM114-Status: UNSURE ( 7.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org From: Frank Wunderlich Enable the GPU core on the Rockchip RK3568 BananaPi R2 Pro Signed-off-by: Frank Wunderlich --- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts index 75ddca1561e0..77cf6b435007 100644 --- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts @@ -186,6 +186,11 @@ &gmac1m1_rgmii_clk status = "okay"; }; +&gpu { + mali-supply = <&vdd_gpu>; + status = "okay"; +}; + &hdmi { avdd-0v9-supply = <&vdda0v9_image>; avdd-1v8-supply = <&vcca1v8_image>;