From patchwork Tue Jun 4 16:42:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 102190 Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sEXIk-0000RZ-21 for patchwork@linuxtv.org; Tue, 04 Jun 2024 16:46:23 +0000 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id DC84E282ADF for ; Tue, 4 Jun 2024 16:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73A9314900F; Tue, 4 Jun 2024 16:46:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="tZjIPass" X-Original-To: linux-media@vger.kernel.org Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7CB90147C7D for ; Tue, 4 Jun 2024 16:46:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519571; cv=none; b=kW1G3jhc+UI3CkgKjIaVc177r7+OgkqrSoWkOaYmJnf17ASf9yvTraNYgjb8q2/pkGjKdG3MokZ4qLLhCZxn1nW9wGczMPTx3aSkxU5bfezSNWbAAKg2Gy0kXAGbkWXBXYtWg2G1brYl3h6ZNupi8WWeKGJj0p2AVPIf7YSyLRc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519571; c=relaxed/simple; bh=V/n6N+TOSeadphevdOSNbz+/OF7dVHiqPrKnq5b76Kw=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=d3pRgZzNtR/yy+hsdHnhXEO/hbVabBydE8vqcZnQBp4CeRCo4U+EisOP4s3aG3TzQV2TUj2HJoc/k6ac3VOxvHdUIRGJZ7fd2LQdvRRZM9XaZ08vOYZ4MclzCqBMT7aarEWaoaexFpWzOmvxbuRs1gtC4i4R1sPqZaXqT/OQd7s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=tZjIPass; arc=none smtp.client-ip=209.85.221.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-wr1-f43.google.com with SMTP id ffacd0b85a97d-35b447d78f1so10912f8f.0 for ; Tue, 04 Jun 2024 09:46:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1717519567; x=1718124367; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=WzX2crzner54qLH1BfhKB/A+YfwINCia8LSzqi1+8vk=; b=tZjIPassX4ao52fljki28nkQFowzi8xv85CYONNniqNGIH6acvTZyhWgHaEAetxVWt jlNt6Hr+6B+QS4m0ozSJMSyYJv1c2x26PExC5eVonXF6FlKt3ZAZTVviSOGMVDZ+y28W qA3VWCc9Kf435DYdG+mQtsaiD9ywX5bhrRUO6h0jI91Zskb3CV+jFq1yZNHYmbltTeV6 ASLqzLYCGQ5k0a6m1qtB0II9WTTIlL9ORtnVe6055YUwOvEFyORyNARzbQ+33NMqBfGS GZnyFusmvBdq6G/jo9hSGjtmlYen7Z1WRH44niuUHWgUmdvefzx/plNIZ/SCreck+dYo YQ/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717519567; x=1718124367; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WzX2crzner54qLH1BfhKB/A+YfwINCia8LSzqi1+8vk=; b=WgI/ersGcgIAGT3xNdDtGhcyUhdyjNE9vl6wNgeXTFOVRxaCIkWU2chMfO5kTjWYIB PdpWGOnlbKVSTdYEaV21UO3xTQ+p4YewN+TDfBvl+wELe6qLU1Fx1XrBs168bu1U0k9h ILP3+leQD8t/DAeXPQ4vw72Zh6TvVORxMRezkveXhF79ArywL5HMoTAylRmeZRpfmMDQ bnHvVqn8DhN0qh9BNvZwwZDc/UIF+0Z34RiD0KqZ7ggtMYQSpFTRcis4Td4bQk7kRiZU /wkRb4Hpca9Tv01uccaIO+zKzhcsrYu+4Z69ChHR0eGXPC9+oJ6JeuBzIlzpN3KXbEwG SA/g== X-Forwarded-Encrypted: i=1; AJvYcCUb34lZCHw59yPKd8vFcrkLTFn8OKZy2HYHM/N8IwGe7eNoIf3bYN9G3ONuXb79qbLTJl2GJKjSZsJ4fK821isH1GtodELPcXdeSsw= X-Gm-Message-State: AOJu0YyCAFhrdjxgDh3kiZju93TkHiGYXwNXKh6hFgh5+yFVIVr+4vN8 DcRL+WymE6i62rPz3NYh9KsQuWky85J0/vCZENZYN0VYlqddcCDqJ3t8r9zz0DTQ3+HY4/BYVr6 crW8= X-Google-Smtp-Source: AGHT+IHsjwQSpgpoULxOmieXHX2EY9bSw43cMW3Y1lHVNFwHiKurh8RKIaF8+RMv/nVJic85jiZtmA== X-Received: by 2002:adf:fd8f:0:b0:359:f17c:134f with SMTP id ffacd0b85a97d-35e7c591460mr2636525f8f.32.1717519566817; Tue, 04 Jun 2024 09:46:06 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c090esm12634482f8f.6.2024.06.04.09.46.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 09:46:06 -0700 (PDT) Message-ID: <2db42e45-c034-43be-be96-0e88511d1878@freebox.fr> Date: Tue, 4 Jun 2024 18:42:04 +0200 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v5 1/3] dt-bindings: media: add qcom,msm8998-venus From: Marc Gonzalez To: Mauro Carvalho Chehab Cc: MSM , linux-media , DT , Pierre-Hugues Husson , Arnaud Vrac , Jeffrey Hugo , Bjorn Andersson , Konrad Dybcio , Bryan O Donoghue , Stanimir Varbanov , Vikash Garodia References: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> Content-Language: en-US In-Reply-To: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> X-LSpam-Score: -4.8 (----) X-LSpam-Report: No, score=-4.8 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no msm8998 has the same video encode/decode accelerator as msm8996. Signed-off-by: Marc Gonzalez Reviewed-by: Bryan O'Donoghue Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml b/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml index 3a4d817e544e2..56c16458e3bb4 100644 --- a/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml +++ b/Documentation/devicetree/bindings/media/qcom,msm8996-venus.yaml @@ -18,7 +18,9 @@ allOf: properties: compatible: - const: qcom,msm8996-venus + enum: + - qcom,msm8996-venus + - qcom,msm8998-venus power-domains: maxItems: 1 From patchwork Tue Jun 4 16:43:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 102191 X-Patchwork-Delegate: stanimir.varbanov@linaro.org Received: from sv.mirrors.kernel.org ([139.178.88.99]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sEXIj-0000RY-2q for patchwork@linuxtv.org; Tue, 04 Jun 2024 16:46:25 +0000 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 02535282C87 for ; Tue, 4 Jun 2024 16:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 606D9149009; Tue, 4 Jun 2024 16:46:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="yl6mD+xV" X-Original-To: linux-media@vger.kernel.org Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 465E41487CC for ; Tue, 4 Jun 2024 16:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519571; cv=none; b=fsstX90O8Bl1zrER9ZXSVIrbqOLSNb2mcipNFblP4eT8ONGqHy9uMJc+obJogqnCe1/Lw4PBr6oT6WhNyvPmUpF28b6FhnjbJday+g9Xadi9NssQw3SqK+jR4geF24ny/gMTe4bY1NnpjfhDOR7IldoZTUlldtl6s4by7kmbVP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519571; c=relaxed/simple; bh=PdXm6GeJL+T3+++g0lNjWIDmHt7wIOaJGPbPgDMH2V0=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=WRStdososRqn/8f6LPWUJWXZvCWP1gsPZx3a7hp1l0I2iXdYvTm8rJPtv9Ye9RitARRpB/LZ99JETvH7W264P0t/SPpDlibkjcX7FFbS43foZ36SQvf00lfkFZA0i6AO8jUg7CnMI7Yl2902JbjopgSyP7fSlAQ9V+1g0Us2hhI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=yl6mD+xV; arc=none smtp.client-ip=209.85.221.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-wr1-f42.google.com with SMTP id ffacd0b85a97d-35e4d6f7c5cso3354001f8f.2 for ; Tue, 04 Jun 2024 09:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1717519568; x=1718124368; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=EprwjT9zeYKxx2x+GSdgGwrPW0I9xgtlt7hKg5xoeWk=; b=yl6mD+xV+KO4dFl43bc1rsKBXkGDlfUgFjfpde1YHISn31PJMLICj8NfO3p1gRStzJ OyxZ3ogCRBExlnoZIctjAPo2QNDkCUFoewwYutfetcDQJvUE60iZD3pQg+zc855681IS /zh+t9Nk9j5/xgzE7XCYxtgZ2IgW4UFs2TQ8tDscvXgLRABSbnhZk124485hB+WXfk05 obffbiG4YKfdqOPdnWXwQB5vF0y8a6IKamvygEinatDmmjEKBGypw2/xFZiJ4rfOqvrp Ub0kevu+MVUqgb3xUQf/KTgNNAJgGrCRLGlSqiGWsLp5BccsSfCotjsIK0Pl03VoiGMj Tp1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717519568; x=1718124368; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EprwjT9zeYKxx2x+GSdgGwrPW0I9xgtlt7hKg5xoeWk=; b=M5HUIiHbrlj+bGpKcrgSBtKpdARMlmfX7rlxEZdlzJj9p/T8emSuDNm4YjGPgsE23h KJezSGKYTvPdubNf5rGqItNgVeZAisULNUKarUVE6muBsEzTWT7HNhPR2sZILlxmp5Dk P15ynh9N/MdTC5wbC+NLpZb8k+aLQ3XSR5j6kTAPlXEkxJhBQA/pS91izX3vcUlGPPRL EkLTdjCEJyCwCW30zbicLXkBh7ZDAgsDZw8669Re85UJpJTSU54fQIdcv8nMzGxhRFNb AoPyUaiKFYVulYgXCWFhEgJad25NFwozjrDV5bBU8IFEkboDuWadcu/5rqNePRppTpKT GUHw== X-Forwarded-Encrypted: i=1; AJvYcCW1iproZ3V3Pzn+S919Cgoq1qlBR9T+nZcSbDoLbl14J/CZfiTkSKrp29wrQvbQW8VZLAZHtC6LAgELAa8ejLw7lQiV0NwY7wZaCCQ= X-Gm-Message-State: AOJu0YzUr04ADrBa3FWSyg/dT0hgTOmqgr4/fMRptWQvbUXh1Oj4lGYE /PpUeZ0KKVAwgeouZumgIfFx5mecb4cb6ia351YX/1xTyrJSrobTQHJuFcN1JaU= X-Google-Smtp-Source: AGHT+IHmeQd596hbam5FHaqaRKdOl2gWWsrwWd6gy09aCfkAuqe52QrfA9Oa55fhoiNHA6ZyxMpScQ== X-Received: by 2002:adf:f94d:0:b0:356:4c65:3a63 with SMTP id ffacd0b85a97d-35e0f32ceccmr8800084f8f.58.1717519567371; Tue, 04 Jun 2024 09:46:07 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c090esm12634482f8f.6.2024.06.04.09.46.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 09:46:07 -0700 (PDT) Message-ID: Date: Tue, 4 Jun 2024 18:43:07 +0200 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v5 2/3] media: venus: add msm8998 support From: Marc Gonzalez To: Mauro Carvalho Chehab Cc: MSM , linux-media , DT , Pierre-Hugues Husson , Arnaud Vrac , Jeffrey Hugo , Bjorn Andersson , Konrad Dybcio , Bryan O Donoghue , Stanimir Varbanov , Vikash Garodia References: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> Content-Language: en-US In-Reply-To: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> X-LSpam-Score: -4.8 (----) X-LSpam-Report: No, score=-4.8 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no From: Pierre-Hugues Husson Add the missing bits for msm8998 support. Downstream vendor code for reference: https://git.codelinaro.org/clo/la/kernel/msm-4.4/-/blob/caf_migration/kernel.lnx.4.4.r38-rel/arch/arm/boot/dts/qcom/msm8998-vidc.dtsi#L42-53 qcom,load-freq-tbl = /* Encoders */ <972000 465000000 0x55555555>, /* 4k UHD @ 30 */ <489600 360000000 0x55555555>, /* 1080p @ 60 */ <244800 186000000 0x55555555>, /* 1080p @ 30 */ <108000 100000000 0x55555555>, /* 720p @ 30 */ /* Decoders */ <1944000 465000000 0xffffffff>, /* 4k UHD @ 60 */ < 972000 360000000 0xffffffff>, /* 4k UHD @ 30 */ < 489600 186000000 0xffffffff>, /* 1080p @ 60 */ < 244800 100000000 0xffffffff>; /* 1080p @ 30 */ Signed-off-by: Pierre-Hugues Husson Signed-off-by: Marc Gonzalez Reviewed-by: Bryan O'Donoghue Acked-by: Vikash Garodia --- drivers/media/platform/qcom/venus/core.c | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/drivers/media/platform/qcom/venus/core.c b/drivers/media/platform/qcom/venus/core.c index ce206b7097541..8b715cb7ab51a 100644 --- a/drivers/media/platform/qcom/venus/core.c +++ b/drivers/media/platform/qcom/venus/core.c @@ -587,6 +587,44 @@ static const struct venus_resources msm8996_res = { .fwname = "qcom/venus-4.2/venus.mbn", }; +static const struct freq_tbl msm8998_freq_table[] = { + { 1944000, 465000000 }, /* 4k UHD @ 60 (decode only) */ + { 972000, 465000000 }, /* 4k UHD @ 30 */ + { 489600, 360000000 }, /* 1080p @ 60 */ + { 244800, 186000000 }, /* 1080p @ 30 */ + { 108000, 100000000 }, /* 720p @ 30 */ +}; + +static const struct reg_val msm8998_reg_preset[] = { + { 0x80124, 0x00000003 }, + { 0x80550, 0x01111111 }, + { 0x80560, 0x01111111 }, + { 0x80568, 0x01111111 }, + { 0x80570, 0x01111111 }, + { 0x80580, 0x01111111 }, + { 0x80588, 0x01111111 }, + { 0xe2010, 0x00000000 }, +}; + +static const struct venus_resources msm8998_res = { + .freq_tbl = msm8998_freq_table, + .freq_tbl_size = ARRAY_SIZE(msm8998_freq_table), + .reg_tbl = msm8998_reg_preset, + .reg_tbl_size = ARRAY_SIZE(msm8998_reg_preset), + .clks = { "core", "iface", "bus", "mbus" }, + .clks_num = 4, + .vcodec0_clks = { "core" }, + .vcodec1_clks = { "core" }, + .vcodec_clks_num = 1, + .max_load = 2563200, + .hfi_version = HFI_VERSION_3XX, + .vmem_id = VIDC_RESOURCE_NONE, + .vmem_size = 0, + .vmem_addr = 0, + .dma_mask = 0xddc00000 - 1, + .fwname = "qcom/venus-4.4/venus.mbn", +}; + static const struct freq_tbl sdm660_freq_table[] = { { 979200, 518400000 }, { 489600, 441600000 }, @@ -893,6 +931,7 @@ static const struct venus_resources sc7280_res = { static const struct of_device_id venus_dt_match[] = { { .compatible = "qcom,msm8916-venus", .data = &msm8916_res, }, { .compatible = "qcom,msm8996-venus", .data = &msm8996_res, }, + { .compatible = "qcom,msm8998-venus", .data = &msm8998_res, }, { .compatible = "qcom,sdm660-venus", .data = &sdm660_res, }, { .compatible = "qcom,sdm845-venus", .data = &sdm845_res, }, { .compatible = "qcom,sdm845-venus-v2", .data = &sdm845_res_v2, }, From patchwork Tue Jun 4 16:44:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Gonzalez X-Patchwork-Id: 102192 Received: from ny.mirrors.kernel.org ([147.75.199.223]) by linuxtv.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1sEXIz-0000SC-38 for patchwork@linuxtv.org; Tue, 04 Jun 2024 16:46:41 +0000 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C45E81C2178A for ; Tue, 4 Jun 2024 16:46:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9A76149C45; Tue, 4 Jun 2024 16:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b="DQEezx71" X-Original-To: linux-media@vger.kernel.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70C3D1487D4 for ; Tue, 4 Jun 2024 16:46:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519572; cv=none; b=N568Tpu5fLKIG7d7bD0ngzLWCfH/Wj04oJl5HAxhK5nEhY3M/M/o7kBax4o0pBmr8GSRSrmvMDrPgTMy+zZcoSjxM/MAH/njir/DyQ1q6bvRWZwICRA2Oi/nqsEF7odyKIf8ssubm/DUTNJcsQdjARi5R/5zFkSeQl3oRiqlHrM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717519572; c=relaxed/simple; bh=qZsLucO4wltDzOvpnEVOiiPXz0qeTCCoPH/9/Nt9vP8=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=YsCSUee5I3wdH+A0Z05YC/4Trye/GaaTr1S7/b13zG/iXNDnkJuqJmsdNDsjllrLjJnh0BMMCpvDgkl8ytc+T+nUw1gFQ0JGUBRvjTe1K27GSixjvzh+d0PcMUoP7UNrxP1h2ta9sfy/bKSZ8oLkUSxnxi9KKZN0SbwT0PgNVog= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr; spf=pass smtp.mailfrom=freebox.fr; dkim=pass (2048-bit key) header.d=freebox-fr.20230601.gappssmtp.com header.i=@freebox-fr.20230601.gappssmtp.com header.b=DQEezx71; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=freebox.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=freebox.fr Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-354f3f6c3b1so1184044f8f.2 for ; Tue, 04 Jun 2024 09:46:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebox-fr.20230601.gappssmtp.com; s=20230601; t=1717519568; x=1718124368; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=m4aOTDhd6SYPECUR44Sp9t/2nUToF1TX06udRYmdYOk=; b=DQEezx71fjuPAjLBupTmCaVLPNZts3iGCwAsFuOZfpkD/Mc/XGWwvDPrqO+unZcAMd xqPQZdE/8G55g3NraeEsfX0t9g4u1mjc4pnudpV+EWHaMIAmSbzvvwXN0dIaMw0vjXaf ovr/svLSorZv7dID5O+EF3foEh7cRFYSAjWtFq0Yv0ZqwDxCDmXoYugZrll/wozarXO7 0KdyZ33Moo92gtzwWp6U4FT8q2Gj4yKmy5dIKjaqvyE+CQLoxNesC1yWR97q2ww+4r2b kE3yPC0hnMvjBcmubRdPjGR52Dc8XsJRAVgYbTAEEkPop/mT/tJqW91xPB0PrKKwK8q2 4lGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717519568; x=1718124368; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=m4aOTDhd6SYPECUR44Sp9t/2nUToF1TX06udRYmdYOk=; b=BD734chN4wYR8Ftbm9T2XTA00icZGM3kGnSKylTQDCyWFBQoTbEONMK+uAA8/udPyr e7oVegVje9o3cRvBgvFFlJzd1xnD5K2URpfzKUSN65HCxqrtxHiJGUmljj7IpxcaKAWP qAPaEaYdMi6Yy26+ChBEOVXnF9AMDd4mP5TwHESnfBmVWgkezTqIYXm1+qE8pqP+61lV 1N/cf0cKmO9eh72Yuzbk+s7HrDqKKxh43dWzuVsmbGdaAtaTB3LvMbIJfuKolMxqH7/q I+LIZ38E/TpxXksQOUqEi8jDh4t4yppEcaJEfxO4L6zrWpwwbaXkgyguunITq+0d5Eo7 k2JA== X-Forwarded-Encrypted: i=1; AJvYcCVx7fwgy78H0gJE1/YRbmCV2E5mIgYEB1O0H9G8p3zX8J1/IlgCQLkx+lKLlhBmK+sm5LmU5BJiZTqUowvMQWIzMs/urC78sztfWzg= X-Gm-Message-State: AOJu0YwoUirwsjlRLm1KcXhl2As2rYof9Zi7SQ3N5XXQk3sgrJqNXkk9 0K69geagot7uAycgO8F5uyUml5nt2FI1RhqpL7SpwG7KMc2+YVPbt74esMSS6zg= X-Google-Smtp-Source: AGHT+IHfGuqUXGBWWo8WiHE0hJOslHvsN+h+FU1a0TC4FSJOpeGMJjMByciPhc79OYAM01Hk52ip1w== X-Received: by 2002:adf:f58e:0:b0:35b:5a14:984a with SMTP id ffacd0b85a97d-35e0f30c7d4mr9621006f8f.56.1717519567901; Tue, 04 Jun 2024 09:46:07 -0700 (PDT) Received: from [192.168.108.81] (freebox.vlq16.iliad.fr. [213.36.7.13]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35dd04c090esm12634482f8f.6.2024.06.04.09.46.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jun 2024 09:46:07 -0700 (PDT) Message-ID: <6d86a6a3-4d99-4fda-9a38-7688587237e6@freebox.fr> Date: Tue, 4 Jun 2024 18:44:24 +0200 Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH v5 3/3] arm64: dts: qcom: msm8998: add venus node From: Marc Gonzalez To: Mauro Carvalho Chehab Cc: MSM , linux-media , DT , Pierre-Hugues Husson , Arnaud Vrac , Jeffrey Hugo , Bjorn Andersson , Konrad Dybcio , Bryan O Donoghue , Stanimir Varbanov , Vikash Garodia References: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> Content-Language: en-US In-Reply-To: <8b2705b7-f33c-4ebe-a6a8-c5ef776fe9ad@freebox.fr> X-LSpam-Score: -2.5 (--) X-LSpam-Report: No, score=-2.5 required=5.0 tests=ARC_SIGNED=0.001,ARC_VALID=-0.1,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DMARC_MISSING=0.001,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,SPF_HELO_NONE=0.001,SPF_PASS=-0.001 autolearn=ham autolearn_force=no From: Pierre-Hugues Husson Now that the venus clocks are fixed, we can add the DT node. Signed-off-by: Pierre-Hugues Husson Signed-off-by: Marc Gonzalez Reviewed-by: Bryan O'Donoghue Acked-by: Vikash Garodia --- arch/arm64/boot/dts/qcom/msm8998.dtsi | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8998.dtsi b/arch/arm64/boot/dts/qcom/msm8998.dtsi index 6e286f91241be..f65a76da61ea8 100644 --- a/arch/arm64/boot/dts/qcom/msm8998.dtsi +++ b/arch/arm64/boot/dts/qcom/msm8998.dtsi @@ -3145,6 +3145,54 @@ hdmi_phy: hdmi-phy@c9a0600 { }; }; + venus: video-codec@cc00000 { + compatible = "qcom,msm8998-venus"; + reg = <0x0cc00000 0xff000>; + interrupts = ; + power-domains = <&mmcc VIDEO_TOP_GDSC>; + clocks = <&mmcc VIDEO_CORE_CLK>, + <&mmcc VIDEO_AHB_CLK>, + <&mmcc VIDEO_AXI_CLK>, + <&mmcc VIDEO_MAXI_CLK>; + clock-names = "core", "iface", "bus", "mbus"; + iommus = <&mmss_smmu 0x400>, + <&mmss_smmu 0x401>, + <&mmss_smmu 0x40a>, + <&mmss_smmu 0x407>, + <&mmss_smmu 0x40e>, + <&mmss_smmu 0x40f>, + <&mmss_smmu 0x408>, + <&mmss_smmu 0x409>, + <&mmss_smmu 0x40b>, + <&mmss_smmu 0x40c>, + <&mmss_smmu 0x40d>, + <&mmss_smmu 0x410>, + <&mmss_smmu 0x421>, + <&mmss_smmu 0x428>, + <&mmss_smmu 0x429>, + <&mmss_smmu 0x42b>, + <&mmss_smmu 0x42c>, + <&mmss_smmu 0x42d>, + <&mmss_smmu 0x411>, + <&mmss_smmu 0x431>; + memory-region = <&venus_mem>; + status = "disabled"; + + video-decoder { + compatible = "venus-decoder"; + clocks = <&mmcc VIDEO_SUBCORE0_CLK>; + clock-names = "core"; + power-domains = <&mmcc VIDEO_SUBCORE0_GDSC>; + }; + + video-encoder { + compatible = "venus-encoder"; + clocks = <&mmcc VIDEO_SUBCORE1_CLK>; + clock-names = "core"; + power-domains = <&mmcc VIDEO_SUBCORE1_GDSC>; + }; + }; + mmss_smmu: iommu@cd00000 { compatible = "qcom,msm8998-smmu-v2", "qcom,smmu-v2"; reg = <0x0cd00000 0x40000>;