From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Gross Subject: Re: [PATCH 2/3] ARM64: DT: add video codec devicetree node Date: Wed, 16 Aug 2017 09:53:48 -0500 Message-ID: <20170816145348.GA4042@hector.attlocal.net> References: <20170612124317.29313-1-robdclark@gmail.com> <20170612124317.29313-2-robdclark@gmail.com> <9ba128c6-8018-6307-448c-a7f9ea1400c6@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-oi0-f41.google.com ([209.85.218.41]:36079 "EHLO mail-oi0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbdHPOxu (ORCPT ); Wed, 16 Aug 2017 10:53:50 -0400 Received: by mail-oi0-f41.google.com with SMTP id g131so38271044oic.3 for ; Wed, 16 Aug 2017 07:53:50 -0700 (PDT) Content-Disposition: inline In-Reply-To: <9ba128c6-8018-6307-448c-a7f9ea1400c6@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org List-Id: linux-arm-msm@vger.kernel.org To: Stanimir Varbanov Cc: Rob Clark , linux-arm-msm@vger.kernel.org, Andy Gross , Stephen Boyd On Wed, Aug 16, 2017 at 05:31:47PM +0300, Stanimir Varbanov wrote: > Hi Rob, Andy, > > On 06/12/2017 03:43 PM, Rob Clark wrote: > > From: Stanimir Varbanov > > > > Signed-off-by: Stanimir Varbanov > > Signed-off-by: Rob Clark > > --- > > arch/arm64/boot/dts/qcom/msm8916.dtsi | 28 ++++++++++++++++++++++++++++ > > 1 file changed, 28 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi > > index 24c24ab..1dcd632 100644 > > --- a/arch/arm64/boot/dts/qcom/msm8916.dtsi > > +++ b/arch/arm64/boot/dts/qcom/msm8916.dtsi > > @@ -88,6 +88,13 @@ > > no-map; > > }; > > > > + venus_mem: venus@89900000 { > > + compatible = "shared-dma-pool"; > > + reg = <0x0 0x89900000 0x0 0x800000>; > > + alignment = <0x1000>; > > + no-map; > > + }; > > In the spirit of 377a22d3caec3d2cda0cc996101121145ac43ff2 "media: venus: > don't abuse dma_alloc for non-DMA allocations" commit the above > venus_mem should be changed to: > > venus_mem: venus@89900000 { > reg = <0x0 0x89900000 0x0 0x600000>; > no-map; > }; > Ok, I'll fix this up. No need to send any update. > > + > > mba_mem: mba@8ea00000 { > > no-map; > > reg = <0 0x8ea00000 0 0x100000>; > > @@ -1214,6 +1221,27 @@ > > }; > > }; > > }; > > + > > + venus: video-codec@1d00000 { > > + compatible = "qcom,msm8916-venus"; > > + reg = <0x01d00000 0xff000>; > > + interrupts = ; > > + power-domains = <&gcc VENUS_GDSC>; > > + clocks = <&gcc GCC_VENUS0_VCODEC0_CLK>, > > + <&gcc GCC_VENUS0_AHB_CLK>, > > + <&gcc GCC_VENUS0_AXI_CLK>; > > + clock-names = "core", "iface", "bus"; > > + memory-region = <&venus_mem>; > > + status = "okay"; > > Is that correct, shouldn't the status be disabled and enabled in the > board dts(i) files? There isn't anything board specific for this, so it should be enabled by default. > > + > > + video-decoder { > > + compatible = "venus-decoder"; > > + }; > > + > > + video-encoder { > > + compatible = "venus-encoder"; > > + }; > > + }; > > }; > > > > smd { > > Regards, Andy