Message ID | 20240131212625.1862775-2-b-brnich@ti.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:106:209c:c626 with SMTP id mn5csp35005dyc; Wed, 31 Jan 2024 13:29:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IHA1xCeUL9mbjdOXEPHG5/kFis9gcqKEQtypWDmt7pIRYo+6DwFp8YaeBY9pZzeOLOluySk X-Received: by 2002:a17:906:19da:b0:a36:124f:7087 with SMTP id h26-20020a17090619da00b00a36124f7087mr2370201ejd.38.1706736550074; Wed, 31 Jan 2024 13:29:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706736550; cv=pass; d=google.com; s=arc-20160816; b=U42+J933bEK8HFofjc0cUpvVo3qYfqSuJAYHVbynd9MndK31vDd4a1Z5ycdGCqNfuI cuUGgS61g3ZweEDDFtPn+2ZE5jtP/rOxE4lZa3fbWinkWQLVu8qRHTSnjsEuvATuqQcA xZJrApTtHr2LVDs8C4ckvIn+tUn5BgUvmtMBwdUOYaxtPDPXzVbqeJUDeQPiTG3wd2bO bOmJVbS5hczRhg0qTOxRpfnRV1lrRNVTJvG4to+MHiyEoqWqjoUZ5yRcKWHGQwKDhBmg 0TIGEmKGKg3XoiXS4tLfonzqIt60WsrfhLv2KXMlDwr43uNg2s6R5ppqX9xzbTho/5is D8Ew== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wdG//Xd6xd9OLxbOdH6iKiAlTR9/FDqTxdm2k9x4EvE=; fh=CEuXPmEfRbP/Bd4dijjAmwJaq4cI1K9YZbI3IvJy0IY=; b=wONnt853APwD8dkyKkUeRTSUtVV/rZRmTeRIa43tUPkOm6wrmEZuDVLSrDMn+duvC0 ANJsoDxhRWkAaQ34YvRPMPBktIXuEThgsXz81NG7w5nUNURJHI9PIfuf8u5ZK5lMvakq NrcxzLPHLvCrwkFcfBNB/VG4V0pxgqCEeZwX5UFt2KKV3SpYsqi5tfJ+qsIxO4tV+QQD iN880oddmBrjAMOONSw59irEO2u1isCFwlJIJ0yOzyoURs7zghcEQTSjhD8Ndl8bNscp 7Kr0scfMv0fMn0KnG42PmG8c9vAZwC4AmG0ll5217A9QoHlZoE/Wo32T2Kutb84Ctl22 4w6A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=B1tOnkNg; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCVhzEIEB4mivWCnck5Sdu5IR3eZo0EvLQ4cS8LaqHtgdxqDyXeB8qmVi5bDkikASFgKo3yCczNAZe7myIvIZmyHKDy2EQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id i21-20020a17090639d500b00a35a4ca17aasi3741719eje.618.2024.01.31.13.29.09 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 13:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=B1tOnkNg; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-47162-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 95EA91F22446 for <ouuuleilei@gmail.com>; Wed, 31 Jan 2024 21:29:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6704C3A8CF; Wed, 31 Jan 2024 21:27:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="B1tOnkNg" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB97239859; Wed, 31 Jan 2024 21:27:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706736442; cv=none; b=BK2T+drZ/YssrJGQP9KOxrCvnCQei5taA9qdsqG5jeKE6+xroMS0h8FYP0hIfOOXek48lRi9oC7hycGbunTqfXOtG7kw7fQBLyXasf+bteGAQpMvKPUycopVSbjFYi/GtLn9PSTcICNrwcqS4bhI0oLsMwfCz2w6rLHhoed69xY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706736442; c=relaxed/simple; bh=4UZvqj+jhQZfdAZz5p5AwA7e6ez97Ilgo+T1DbybycE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r3cXVPjhcNb53oa1Uv0G+mVl6w1OwTal9ECv/az+zIL9An4OQlmpGLFs/QCzlrXeZi1neiDCWEvBSPR+MxrY99oUqRa8/MH/L5FpbTSdQtoxWenSrv5NId5VfSYpRzU942X2uGi0myUiQbRC0btQVL3Mhguc/K+Fe+eoNsgely8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=B1tOnkNg; arc=none smtp.client-ip=198.47.19.141 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VLQx8P119705; Wed, 31 Jan 2024 15:26:59 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706736419; bh=wdG//Xd6xd9OLxbOdH6iKiAlTR9/FDqTxdm2k9x4EvE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=B1tOnkNg0oZzW2nZkUUoXW8fn2uqwi2vum5KqGt7oRXCfG3mZCs6xKCCl+Pk78OtP JFpXYTMiQJgbNhJkU1sm2tgI8AZfzAcv2QAsbkUVPEK2IXoFdIKveYiQH6rD/Xt7dj 7W8hy9uVAnZ/QMivd0XNo4/9P58zj7UoKY84kiIA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VLQxUV023324 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 15:26:59 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 31 Jan 2024 15:26:58 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 31 Jan 2024 15:26:58 -0600 Received: from udba0500997.dhcp.ti.com (udba0500997.dhcp.ti.com [128.247.81.249]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VLQfKQ028966; Wed, 31 Jan 2024 15:26:58 -0600 From: Brandon Brnich <b-brnich@ti.com> To: Nishanth Menon <nm@ti.com>, Vignesh Raghavendra <vigneshr@ti.com>, Tero Kristo <kristo@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Bjorn Andersson <quic_bjorande@quicinc.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Arnd Bergmann <arnd@arndb.de>, Konrad Dybcio <konrad.dybcio@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org>, =?utf-8?q?N=C3=ADcolas_F_=2E_R_?= =?utf-8?q?=2E_A_=2E_Prado?= <nfraprado@collabora.com>, Marek Szyprowski <m.szyprowski@samsung.com>, <linux-arm-kernel@lists.infradead.org>, <devicetree@vger.kernel.org>, <linux-kernel@vger.kernel.org>, Darren Etheridge <detheridge@ti.com> CC: Brandon Brnich <b-brnich@ti.com> Subject: [PATCH v3 1/6] arm64: dts: ti: k3-j784s4: Add Wave5 Video Encoder/Decoder Node Date: Wed, 31 Jan 2024 15:26:20 -0600 Message-ID: <20240131212625.1862775-2-b-brnich@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240131212625.1862775-1-b-brnich@ti.com> References: <20240131212625.1862775-1-b-brnich@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789642984974724291 X-GMAIL-MSGID: 1789642984974724291 |
Series |
Add Support for Wave5 on TI Devices
|
|
Commit Message
Brandon Brnich
Jan. 31, 2024, 9:26 p.m. UTC
This patch adds support for the Wave521cl on the J784S4-evm.
Signed-off-by: Brandon Brnich <b-brnich@ti.com>
---
arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 8 ++++++++
arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++
arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 2 ++
3 files changed, 30 insertions(+)
Comments
On 1/31/24 3:26 PM, Brandon Brnich wrote: > This patch adds support for the Wave521cl on the J784S4-evm. > > Signed-off-by: Brandon Brnich <b-brnich@ti.com> > --- > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 8 ++++++++ > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++ > arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 2 ++ > 3 files changed, 30 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > index f34b92acc56d..7d37c11b4df4 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > @@ -784,6 +784,14 @@ &main_gpio0 { > status = "okay"; > }; > > +&vpu0 { > + status = "okay"; > +}; > + > +&vpu1 { > + status = "okay"; > +}; > + > &mcu_cpsw { > status = "okay"; > pinctrl-names = "default"; > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > index f2b720ed1e4f..8b2623ac8160 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > @@ -662,6 +662,26 @@ main_i2c6: i2c@2060000 { > status = "disabled"; > }; > > + vpu0: video-codec@4210000 { > + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; > + reg = <0x00 0x4210000 0x00 0x10000>; > + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&k3_clks 241 2>; > + clock-names = "vcodec"; > + power-domains = <&k3_pds 241 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; Why are these default disabled? I don't see anything missing that would need to be added at the board level. You disable them just to re-enable them in the next patch. Leave these default enabled. > + }; > + > + vpu1: video-codec@4220000 { > + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; > + reg = <0x00 0x4220000 0x00 0x10000>; > + interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; > + clocks = <&k3_clks 242 2>; > + clock-names = "vcodec"; > + power-domains = <&k3_pds 242 TI_SCI_PD_EXCLUSIVE>; > + status = "disabled"; > + }; > + > main_sdhci0: mmc@4f80000 { > compatible = "ti,j721e-sdhci-8bit"; > reg = <0x00 0x04f80000 0x00 0x1000>, > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > index 4398c3a463e1..93bb0cba1b48 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > @@ -247,6 +247,8 @@ cbass_main: bus@100000 { > <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ > <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */ > <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ > + <0x00 0x04210000 0x00 0x04210000 0x00 0x00010000>, /* VPU0 */ > + <0x00 0x04220000 0x00 0x04220000 0x00 0x00010000>, /* VPU1 */ Add these in sorted by memory address order. Andrew > > /* MCUSS_WKUP Range */ > <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,
Hi Andrew, > -----Original Message----- > From: Davis, Andrew <afd@ti.com> > Sent: Thursday, February 1, 2024 12:35 PM > To: Brnich, Brandon <b-brnich@ti.com>; Menon, Nishanth <nm@ti.com>; > Raghavendra, Vignesh <vigneshr@ti.com>; Tero Kristo <kristo@kernel.org>; > Rob Herring <robh+dt@kernel.org>; Krzysztof Kozlowski > <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>; > Catalin Marinas <catalin.marinas@arm.com>; Will Deacon > <will@kernel.org>; Bjorn Andersson <quic_bjorande@quicinc.com>; Geert > Uytterhoeven <geert+renesas@glider.be>; Arnd Bergmann > <arnd@arndb.de>; Konrad Dybcio <konrad.dybcio@linaro.org>; Neil > Armstrong <neil.armstrong@linaro.org>; NĂcolas F . R . A . Prado > <nfraprado@collabora.com>; Marek Szyprowski > <m.szyprowski@samsung.com>; linux-arm-kernel@lists.infradead.org; > devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Etheridge, Darren > <detheridge@ti.com> > Subject: Re: [PATCH v3 1/6] arm64: dts: ti: k3-j784s4: Add Wave5 Video > Encoder/Decoder Node > > On 1/31/24 3:26 PM, Brandon Brnich wrote: > > This patch adds support for the Wave521cl on the J784S4-evm. > > > > Signed-off-by: Brandon Brnich <b-brnich@ti.com> > > --- > > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 8 ++++++++ > > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++ > > arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 2 ++ > > 3 files changed, 30 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > index f34b92acc56d..7d37c11b4df4 100644 > > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > > @@ -784,6 +784,14 @@ &main_gpio0 { > > status = "okay"; > > }; > > > > +&vpu0 { > > + status = "okay"; > > +}; > > + > > +&vpu1 { > > + status = "okay"; > > +}; > > + > > &mcu_cpsw { > > status = "okay"; > > pinctrl-names = "default"; > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > > b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > > index f2b720ed1e4f..8b2623ac8160 100644 > > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > > @@ -662,6 +662,26 @@ main_i2c6: i2c@2060000 { > > status = "disabled"; > > }; > > > > + vpu0: video-codec@4210000 { > > + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; > > + reg = <0x00 0x4210000 0x00 0x10000>; > > + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>; > > + clocks = <&k3_clks 241 2>; > > + clock-names = "vcodec"; > > + power-domains = <&k3_pds 241 TI_SCI_PD_EXCLUSIVE>; > > + status = "disabled"; > > Why are these default disabled? I don't see anything missing that would > need to be added at the board level. You disable them just to re-enable them > in the next patch. Leave these default enabled. I thought that disabled by default was the standard for node in dtsi files, where they get specifically enabled in the particular dts file for the SoC. In V4 I will remove the disabled by default. Should this apply to all platforms in the series? > > + }; > > + > > + vpu1: video-codec@4220000 { > > + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; > > + reg = <0x00 0x4220000 0x00 0x10000>; > > + interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; > > + clocks = <&k3_clks 242 2>; > > + clock-names = "vcodec"; > > + power-domains = <&k3_pds 242 TI_SCI_PD_EXCLUSIVE>; > > + status = "disabled"; > > + }; > > + > > main_sdhci0: mmc@4f80000 { > > compatible = "ti,j721e-sdhci-8bit"; > > reg = <0x00 0x04f80000 0x00 0x1000>, diff --git > > a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > > b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > > index 4398c3a463e1..93bb0cba1b48 100644 > > --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > > +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi > > @@ -247,6 +247,8 @@ cbass_main: bus@100000 { > > <0x00 0x30000000 0x00 0x30000000 0x00 > 0x0c400000>, /* MAIN NAVSS */ > > <0x41 0x00000000 0x41 0x00000000 0x01 > 0x00000000>, /* PCIe1 DAT1 */ > > <0x4e 0x20000000 0x4e 0x20000000 0x00 > 0x00080000>, /* GPU */ > > + <0x00 0x04210000 0x00 0x04210000 0x00 > 0x00010000>, /* VPU0 */ > > + <0x00 0x04220000 0x00 0x04220000 0x00 > 0x00010000>, /* VPU1 */ > > Add these in sorted by memory address order. Will do in V4 as well. > > Andrew > > > > > /* MCUSS_WKUP Range */ > > <0x00 0x28380000 0x00 0x28380000 0x00 > 0x03880000>, Brandon
On 2/1/24 1:13 PM, Brnich, Brandon wrote: > Hi Andrew, > >> -----Original Message----- >> From: Davis, Andrew <afd@ti.com> >> Sent: Thursday, February 1, 2024 12:35 PM >> To: Brnich, Brandon <b-brnich@ti.com>; Menon, Nishanth <nm@ti.com>; >> Raghavendra, Vignesh <vigneshr@ti.com>; Tero Kristo <kristo@kernel.org>; >> Rob Herring <robh+dt@kernel.org>; Krzysztof Kozlowski >> <krzysztof.kozlowski+dt@linaro.org>; Conor Dooley <conor+dt@kernel.org>; >> Catalin Marinas <catalin.marinas@arm.com>; Will Deacon >> <will@kernel.org>; Bjorn Andersson <quic_bjorande@quicinc.com>; Geert >> Uytterhoeven <geert+renesas@glider.be>; Arnd Bergmann >> <arnd@arndb.de>; Konrad Dybcio <konrad.dybcio@linaro.org>; Neil >> Armstrong <neil.armstrong@linaro.org>; NĂcolas F . R . A . Prado >> <nfraprado@collabora.com>; Marek Szyprowski >> <m.szyprowski@samsung.com>; linux-arm-kernel@lists.infradead.org; >> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; Etheridge, Darren >> <detheridge@ti.com> >> Subject: Re: [PATCH v3 1/6] arm64: dts: ti: k3-j784s4: Add Wave5 Video >> Encoder/Decoder Node >> >> On 1/31/24 3:26 PM, Brandon Brnich wrote: >>> This patch adds support for the Wave521cl on the J784S4-evm. >>> >>> Signed-off-by: Brandon Brnich <b-brnich@ti.com> >>> --- >>> arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 8 ++++++++ >>> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 20 ++++++++++++++++++++ >>> arch/arm64/boot/dts/ti/k3-j784s4.dtsi | 2 ++ >>> 3 files changed, 30 insertions(+) >>> >>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> index f34b92acc56d..7d37c11b4df4 100644 >>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts >>> @@ -784,6 +784,14 @@ &main_gpio0 { >>> status = "okay"; >>> }; >>> >>> +&vpu0 { >>> + status = "okay"; >>> +}; >>> + >>> +&vpu1 { >>> + status = "okay"; >>> +}; >>> + >>> &mcu_cpsw { >>> status = "okay"; >>> pinctrl-names = "default"; >>> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >>> b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >>> index f2b720ed1e4f..8b2623ac8160 100644 >>> --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >>> @@ -662,6 +662,26 @@ main_i2c6: i2c@2060000 { >>> status = "disabled"; >>> }; >>> >>> + vpu0: video-codec@4210000 { >>> + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; >>> + reg = <0x00 0x4210000 0x00 0x10000>; >>> + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>; >>> + clocks = <&k3_clks 241 2>; >>> + clock-names = "vcodec"; >>> + power-domains = <&k3_pds 241 TI_SCI_PD_EXCLUSIVE>; >>> + status = "disabled"; >> >> Why are these default disabled? I don't see anything missing that would >> need to be added at the board level. You disable them just to re-enable them >> in the next patch. Leave these default enabled. > > I thought that disabled by default was the standard for node in dtsi files, where > they get specifically enabled in the particular dts file for the SoC. > Only disabled if there is missing information needed for the node to function that can only be added at the board level, e.g. pinmux usually. > In V4 I will remove the disabled by default. Should this apply to all platforms in > the series? Yes Andrew > >>> + }; >>> + >>> + vpu1: video-codec@4220000 { >>> + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; >>> + reg = <0x00 0x4220000 0x00 0x10000>; >>> + interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; >>> + clocks = <&k3_clks 242 2>; >>> + clock-names = "vcodec"; >>> + power-domains = <&k3_pds 242 TI_SCI_PD_EXCLUSIVE>; >>> + status = "disabled"; >>> + }; >>> + >>> main_sdhci0: mmc@4f80000 { >>> compatible = "ti,j721e-sdhci-8bit"; >>> reg = <0x00 0x04f80000 0x00 0x1000>, diff --git >>> a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi >>> b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi >>> index 4398c3a463e1..93bb0cba1b48 100644 >>> --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi >>> +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi >>> @@ -247,6 +247,8 @@ cbass_main: bus@100000 { >>> <0x00 0x30000000 0x00 0x30000000 0x00 >> 0x0c400000>, /* MAIN NAVSS */ >>> <0x41 0x00000000 0x41 0x00000000 0x01 >> 0x00000000>, /* PCIe1 DAT1 */ >>> <0x4e 0x20000000 0x4e 0x20000000 0x00 >> 0x00080000>, /* GPU */ >>> + <0x00 0x04210000 0x00 0x04210000 0x00 >> 0x00010000>, /* VPU0 */ >>> + <0x00 0x04220000 0x00 0x04220000 0x00 >> 0x00010000>, /* VPU1 */ >> >> Add these in sorted by memory address order. > > Will do in V4 as well. > >> >> Andrew >> >>> >>> /* MCUSS_WKUP Range */ >>> <0x00 0x28380000 0x00 0x28380000 0x00 >> 0x03880000>, > > Brandon
diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index f34b92acc56d..7d37c11b4df4 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -784,6 +784,14 @@ &main_gpio0 { status = "okay"; }; +&vpu0 { + status = "okay"; +}; + +&vpu1 { + status = "okay"; +}; + &mcu_cpsw { status = "okay"; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi index f2b720ed1e4f..8b2623ac8160 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi @@ -662,6 +662,26 @@ main_i2c6: i2c@2060000 { status = "disabled"; }; + vpu0: video-codec@4210000 { + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; + reg = <0x00 0x4210000 0x00 0x10000>; + interrupts = <GIC_SPI 182 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&k3_clks 241 2>; + clock-names = "vcodec"; + power-domains = <&k3_pds 241 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + + vpu1: video-codec@4220000 { + compatible = "ti,j721s2-wave521c", "cnm,wave521c"; + reg = <0x00 0x4220000 0x00 0x10000>; + interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&k3_clks 242 2>; + clock-names = "vcodec"; + power-domains = <&k3_pds 242 TI_SCI_PD_EXCLUSIVE>; + status = "disabled"; + }; + main_sdhci0: mmc@4f80000 { compatible = "ti,j721e-sdhci-8bit"; reg = <0x00 0x04f80000 0x00 0x1000>, diff --git a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi index 4398c3a463e1..93bb0cba1b48 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j784s4.dtsi @@ -247,6 +247,8 @@ cbass_main: bus@100000 { <0x00 0x30000000 0x00 0x30000000 0x00 0x0c400000>, /* MAIN NAVSS */ <0x41 0x00000000 0x41 0x00000000 0x01 0x00000000>, /* PCIe1 DAT1 */ <0x4e 0x20000000 0x4e 0x20000000 0x00 0x00080000>, /* GPU */ + <0x00 0x04210000 0x00 0x04210000 0x00 0x00010000>, /* VPU0 */ + <0x00 0x04220000 0x00 0x04220000 0x00 0x00010000>, /* VPU1 */ /* MCUSS_WKUP Range */ <0x00 0x28380000 0x00 0x28380000 0x00 0x03880000>,