From patchwork Fri Jul 26 12:46:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 11060965 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20CB4912 for ; Fri, 26 Jul 2019 12:48:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0E2EA284E9 for ; Fri, 26 Jul 2019 12:48:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0244F28969; Fri, 26 Jul 2019 12:48:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A1291284E9 for ; Fri, 26 Jul 2019 12:48:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=05DJRRyPnP00UY2ojgK9pQRLB3TeRAdXfxvXE3HLHjI=; b=eRc6v5pe2gB5ZQ EyOvmazk/USRi+q0ZqgrKz4rMqQY/+IcaPLGN/bBVcBXY8rSgLZUe5SCf0g0euLb3zzzlsUK6VqJm STfgqLZLLo3kudwCUX25Vrzx3ul4kNA0GszPW/ftywTSv1zjtW7bexEJz/KgKTCzvc7x/U0ZuhozN RVQMOrxfjk0gCFRtSyQ/W6/EgB8t8+9fi3iSlkuzIIlN2/nTeY+bRZ5QDMjETd3rszhxp2ge7FINP bxBonyMGboQws+opncU7ls3YTSUHkLbg+d13mUZ4e5RD9aGKEX//iXhdEnuyN23NY5aZoINrmpg7o 3aMYusdXzGL0wHpM48zA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqzdt-0004aI-2t; Fri, 26 Jul 2019 12:48:13 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqzcY-0003NM-Rc for linux-amlogic@lists.infradead.org; Fri, 26 Jul 2019 12:46:54 +0000 Received: by mail-wr1-x443.google.com with SMTP id x1so4406778wrr.9 for ; Fri, 26 Jul 2019 05:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q2ZYPAYax6bQxbm/1YpeRuib4ukPUXFCF68rf3gTwXE=; b=UExMW0UUk/saslNhvncL7VmYbPBukVTDIwiQ9JEDm69304VqE2iV0GPHIMb+GUPi9Q XdND6CCt4qIO7Z4R//L+VDKTJAUY+3+Y1HzYcDO2y4mr4QOkGhwHY3+9qwH1jcJt6sgE CoiuxUwVJ1pmjRomS01ZwYEr690+g6Hf0aYHNDKua/QYqVCnK8s+lUjCoMqMBGPuokIZ gewunm6XF2lbta7rgn6eIKlLbS4HzeUPan8WI9YsybAITkTOZdv07nFpAQE8F/0jpMWr 1C43R+9oAIwvWjl4yunSxC0lKcsRwrKAEgJ9Muul1S0BDHCmeNzV8cK0Ds3kH/DwncuW bJPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=q2ZYPAYax6bQxbm/1YpeRuib4ukPUXFCF68rf3gTwXE=; b=bjpnnG2c25vwK9fAw+Z3kYrNr48prYO63Au6fZvU0ErODEgLJSJDJrG8+bQYn5ft5z fQfaURmUzNtl48Z8ymFwn2W9YsDlE4+JEPG/dI3vHuYL7zsNBD+BkJIGmy9Yv0/i7mLa yuExqns95uHx8P0SNROWsH+Qm/HfW4NMnmC1AyYCknngZZycvDVqBbgK/e/UKCsN//Xb 4aYVInhZaJLNpqlkEfCfo34sxQJ8xbwkt1vKjiJya4U8WhCda+V+Bj8cCkCoKG6TXqnK 2D98bwLZRUAkJHxgB+XQ3KUTGgeD+hd7wn7degDTXZ0edgBKML8R2DGhFxTCmw5OdQdv 59BA== X-Gm-Message-State: APjAAAV+cDGFE50FdnRHLmvKrLTo4nNhHXf2KYY7ehfEGShc91tGiitz HZypgd44UBBbRdltN9NsXsOOog== X-Google-Smtp-Source: APXvYqwqpHIX1Hp7OItyBHPULfeNjzdPhmgqs5iWOD8M1voMJHDkAIcMIUA10pnpZcFezyDpSX8tag== X-Received: by 2002:a05:6000:3:: with SMTP id h3mr16592055wrx.114.1564145209279; Fri, 26 Jul 2019 05:46:49 -0700 (PDT) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id x16sm39090124wmj.4.2019.07.26.05.46.48 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 05:46:48 -0700 (PDT) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH 1/3] dt-bindings: media: amlogic,vdec: add default compatible Date: Fri, 26 Jul 2019 14:46:37 +0200 Message-Id: <20190726124639.7713-2-mjourdan@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190726124639.7713-1-mjourdan@baylibre.com> References: <20190726124639.7713-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_054650_893892_90E9A13C X-CRM114-Status: GOOD ( 10.38 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The first version of the bindings is missing a generic compatible that is used by the base node (GX), and then extended by the SoC device trees (GXBB, GXL, GXM) Also change the example to use "video-codec" instead of "video-decoder", as the former is the one used in almost all cases when it comes to video decode/encode accelerators. Signed-off-by: Maxime Jourdan Reviewed-by: Neil Armstrong --- Documentation/devicetree/bindings/media/amlogic,vdec.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/media/amlogic,vdec.txt b/Documentation/devicetree/bindings/media/amlogic,vdec.txt index aabdd01bcf32..9b6aace86ca7 100644 --- a/Documentation/devicetree/bindings/media/amlogic,vdec.txt +++ b/Documentation/devicetree/bindings/media/amlogic,vdec.txt @@ -26,6 +26,7 @@ Required properties: - GXBB (S905) : "amlogic,gxbb-vdec" - GXL (S905X, S905D) : "amlogic,gxl-vdec" - GXM (S912) : "amlogic,gxm-vdec" + followed by the common "amlogic,gx-vdec" - reg: base address and size of he following memory-mapped regions : - dos - esparser @@ -47,8 +48,8 @@ Required properties: Example: -vdec: video-decoder@c8820000 { - compatible = "amlogic,gxbb-vdec"; +vdec: video-codec@c8820000 { + compatible = "amlogic,gxbb-vdec", "amlogic,gx-vdec"; reg = <0x0 0xc8820000 0x0 0x10000>, <0x0 0xc110a580 0x0 0xe4>; reg-names = "dos", "esparser"; From patchwork Fri Jul 26 12:46:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 11060963 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1CEBB13A0 for ; Fri, 26 Jul 2019 12:48:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0AD412847B for ; Fri, 26 Jul 2019 12:48:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F2F2828948; Fri, 26 Jul 2019 12:48:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AAF8B2847B for ; Fri, 26 Jul 2019 12:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=i4jeFd/Ity0uEandDlPSngYaW4iGYz8JrtiLtiXJSkc=; b=We83FcI1heXI3F FGkoGeVZmh4yMvRivRn06Mbp8E2CaiXua0fJeoFR8KmFrPDQblnTHc+RF9e2A4u1PtLun3mMkQxQN 0HpCWUKmdEMV8qIROoucdry91QUbkq3FIbEJuKNxgtlNGJqaoH/dyJkcsSmOXa82FmN6fMid+Rtxk ttHePdZrs+IiRajaaGxZdallMveuR6sfFvIdchFlctiFGtn7LAiZy1QAcv7gpGZFDen/XRf7nJ3ub HY0E7a2u5VbRtkF+vZYtf+t3Ns9BQPba7Bs/LGcPj/MuQfBLdOBQa95c2E5NVpd89Md71c/CeUlO2 mtVN89OQANJ7zlXqKbkQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqzdq-0004XT-8j; Fri, 26 Jul 2019 12:48:10 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqzcZ-0003OC-Nh for linux-amlogic@lists.infradead.org; Fri, 26 Jul 2019 12:46:54 +0000 Received: by mail-wr1-x441.google.com with SMTP id p17so54291655wrf.11 for ; Fri, 26 Jul 2019 05:46:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GnVNZrf3NrBA1rEJS3yEc20MogrzrhTJ4K84VxPwt+M=; b=EbxJlKQJkFWK+Xju80qYs0AUcIev9OIj1bvka8/3uHjZVTLK6ajBrvJpSOw63+t2bD ykTSio0wJbXFYFHZY0WbG9N5dfRVVeaCelFlY0kK+KMgZ3NjEv99RC/dx2lrvTiA2XID 4dFKdBf8/gJ+hht7efgDFe3KUN8VWINUqyrPfRT8NI3G6wS3W5PkjJx1nqi7ZxM3CnPC lBqlQF7nh74Lwp2N5k+eI1omnQcUAr2Z1M3arcPRJP16uXcctKdNVtUaRiRV4Vod5iGz G5UOpMCjRF989nTulaQyhQmCFu+FOfsyhol9WRQqDIUyRIp9UiwcLxKpELfeU9Oaz6lQ g6+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GnVNZrf3NrBA1rEJS3yEc20MogrzrhTJ4K84VxPwt+M=; b=Ya8wBbeQjES+MuG0zfYwll+GXjd8xMTaUqTQ+ZNSxWR1rhnnnDX1L8xMPHhK+68rOT RIld5uLT1gqboZUF4DvKxUs9QKl26XvJkgcDrEhmrjmurljtiaIcEcdvxh79yuaehebV xVplt/NudUurEO77elyPB0UW5b+ZS3vF+JejFo41SyCOplt2xzNUeyCWIjC8ZUilNxL6 8fMyqMyF7Wh3oNEH9yhUzM3aGBQDTal/4r3BPD5u6dYEz/vsmYm4X4VI2MGG41cc4Ld/ 45h9+Je0r1LMmiugpuimYTbYq5HfaS20lP4YvHrXbTBX8z0PeMZev44DKN7LArfOkB14 3jRA== X-Gm-Message-State: APjAAAXo91G9KSO2tTPjTFJTdizTS4GBWbnDxydK6NXkbIING0b8XsHC Ju1X5MGIUpcM++kslNbALpjSUg== X-Google-Smtp-Source: APXvYqzJugJd3lJHrKUFGoc3lueZYS8pq3Az7Tfvg22mTfEOJ5LzNpMo3dpS+nX/DOufWWarEEiNLg== X-Received: by 2002:a5d:53c2:: with SMTP id a2mr23921778wrw.8.1564145210215; Fri, 26 Jul 2019 05:46:50 -0700 (PDT) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id x16sm39090124wmj.4.2019.07.26.05.46.49 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 05:46:49 -0700 (PDT) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH 2/3] arm64: dts: meson-gx: add video decoder entry Date: Fri, 26 Jul 2019 14:46:38 +0200 Message-Id: <20190726124639.7713-3-mjourdan@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190726124639.7713-1-mjourdan@baylibre.com> References: <20190726124639.7713-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_054651_775471_4ADB2FDE X-CRM114-Status: UNSURE ( 7.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the base video decoder node compatible with the meson vdec driver, for GX* chips. Signed-off-by: Maxime Jourdan Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 74d03fc706be..86e26ed551e0 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -437,6 +437,20 @@ }; }; + vdec: video-codec@c8820000 { + compatible = "amlogic,gx-vdec"; + reg = <0x0 0xc8820000 0x0 0x10000>, + <0x0 0xc110a580 0x0 0xe4>; + reg-names = "dos", "esparser"; + + interrupts = , + ; + interrupt-names = "vdec", "esparser"; + + amlogic,ao-sysctrl = <&sysctrl_AO>; + amlogic,canvas = <&canvas>; + }; + periphs: periphs@c8834000 { compatible = "simple-bus"; reg = <0x0 0xc8834000 0x0 0x2000>; From patchwork Fri Jul 26 12:46:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 11060967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2156D13A0 for ; Fri, 26 Jul 2019 12:48:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 100C02896F for ; Fri, 26 Jul 2019 12:48:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0273C28A75; Fri, 26 Jul 2019 12:48:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ADBF72896F for ; Fri, 26 Jul 2019 12:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Pk7bjMpDUdGDCxR7HziDBugJKQMgbmlcKeHLTCRw83Q=; b=tNp2paZDbb0kbP X/N6tpyXGwL2K/DZVK0sQyntg6wuA2Tp6lc8MBcXEBG3Yajoe9kdoUzb3czpmiSZoAiHryRXfgz17 6I8XoDke+vF5Lzev6rfqUr9o44HeEmVD2mISOkfeOsnnG/2lHimk7tTRKCHxDBDU6JF1LR3+omgk0 gCgC/QTbdXIVJ+pJ96D9nTEVyNnM846Z698hteSHVYiAts7/duZM1+Oyot1F0ivipFhUj01UsK92Y p0G/jwGD70FzPDA6SJFu0LgsVQopozK93AaAuS6KlyvsMLqrTlFeKcTDtGt9sW+oPJySmOZIpU+jf cgCsf05/TYoImw+vRttw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqzdx-0004eE-0P; Fri, 26 Jul 2019 12:48:17 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqzca-0003OX-5C for linux-amlogic@lists.infradead.org; Fri, 26 Jul 2019 12:46:55 +0000 Received: by mail-wr1-x441.google.com with SMTP id x1so4406851wrr.9 for ; Fri, 26 Jul 2019 05:46:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=20qFoI2zAcPj/2YkU+y26itShjeGgYjqahabkwiHIZo=; b=d8QZIZxg3qalk8cFoc3e6Svi1f1hjZPya7iD801QTZ6MeKg8ghkNFcSYyjgKo1/fyF 2iUDoTmf7nkIXIeYwpgXuV6aWSBACiYoJKgOM7zwAuX5NJEJD7eh2RFTWcOLZSJY8db2 /nun0C+jShXsTAOfFCkBO4v8xgSwa9c+Hc5i/kDmTZiOnjqm0U3qL1T44a1ZPqQORRDg lNXiiAjurl9dM+VmxMFWAZ7sKRBcocVAiNHj3U1yWCh5yMfP52f+zH1HUtfaZpDnw+Fq jEISIgjgDgCYC0YBVIehl/Q4KuzWnytfTwtRfQnfZYYH3Qg8odBhB+WqizrLnxpKRLT2 EBcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=20qFoI2zAcPj/2YkU+y26itShjeGgYjqahabkwiHIZo=; b=lwx0Je51R6IHsfV8K+RSPXdsisKPD7X6/Jem1ezSncFSK8eqNpHcjFoR5YS+/Qw69/ PZ042RFVVClcjzCJM+XOfsF2vssK3wLfmX95lKsKW8yWfgQU0yKJ86us816c9lVNl4rs 20bTMOahpASDuSps6R3DPozhuI2gUVJZwb/ZccPQ/Y+mE8CSPN1Q4KCFmWwJAlNH9ZLU AR+JNwMjRD6RKCjdDolSaRUOaFyXiS9KB2q3OApp8DONJ2BX7smCRvU1rM1dnMlD6SMh +foYzBBovDO64KFbSv4738Wpf5kH4tyTU2GSP43RkENz2+Ma8eQoRBDGK0z3D7riBQ8H 0ICA== X-Gm-Message-State: APjAAAXps+hAN69sPFK0TB89wO6r155UIq/u3wtCLWvc3b1APZCNVeyC mDY4JfRUMyZNbt+AA+AhPx14JQ== X-Google-Smtp-Source: APXvYqzLBzFzlo7nLvJmt4fKbevNt+r1fN1E5ZFnZOsl8lhgIl0SZeLHq4xpPKRJt37hUlte8hZ+zA== X-Received: by 2002:a5d:4ecc:: with SMTP id s12mr21563wrv.157.1564145211051; Fri, 26 Jul 2019 05:46:51 -0700 (PDT) Received: from mjourdan-pc.numericable.fr (abo-99-183-68.mtp.modulonet.fr. [85.68.183.99]) by smtp.gmail.com with ESMTPSA id x16sm39090124wmj.4.2019.07.26.05.46.50 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 05:46:50 -0700 (PDT) From: Maxime Jourdan To: Kevin Hilman Subject: [PATCH 3/3] arm64: dts: meson: add video decoder entries Date: Fri, 26 Jul 2019 14:46:39 +0200 Message-Id: <20190726124639.7713-4-mjourdan@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190726124639.7713-1-mjourdan@baylibre.com> References: <20190726124639.7713-1-mjourdan@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190726_054652_198173_7CAFC9BB X-CRM114-Status: UNSURE ( 8.03 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This enables the video decoder for GXBB, GXL and GXM chips Signed-off-by: Maxime Jourdan Reviewed-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 11 +++++++++++ arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 11 +++++++++++ arch/arm64/boot/dts/amlogic/meson-gxm.dtsi | 4 ++++ 3 files changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index f734faaf7b78..0cb40326b0d3 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -845,3 +845,14 @@ compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu"; power-domains = <&pwrc_vpu>; }; + +&vdec { + compatible = "amlogic,gxbb-vdec", "amlogic,gx-vdec"; + clocks = <&clkc CLKID_DOS_PARSER>, + <&clkc CLKID_DOS>, + <&clkc CLKID_VDEC_1>, + <&clkc CLKID_VDEC_HEVC>; + clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc"; + resets = <&reset RESET_PARSER>; + reset-names = "esparser"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi index c959456bacc6..a09c53aaa0e8 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -848,3 +848,14 @@ compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu"; power-domains = <&pwrc_vpu>; }; + +&vdec { + compatible = "amlogic,gxl-vdec", "amlogic,gx-vdec"; + clocks = <&clkc CLKID_DOS_PARSER>, + <&clkc CLKID_DOS>, + <&clkc CLKID_VDEC_1>, + <&clkc CLKID_VDEC_HEVC>; + clock-names = "dos_parser", "dos", "vdec_1", "vdec_hevc"; + resets = <&reset RESET_PARSER>; + reset-names = "esparser"; +}; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi index 7a85a82bf65d..a0e677d5a8f7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi @@ -144,3 +144,7 @@ &dwc3 { phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>; }; + +&vdec { + compatible = "amlogic,gxm-vdec", "amlogic,gx-vdec"; +};