From patchwork Fri Aug 31 08:52:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Jourdan X-Patchwork-Id: 10583417 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 122CD17DB for ; Fri, 31 Aug 2018 08:55:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3EB62B077 for ; Fri, 31 Aug 2018 08:55:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6ABA2B0A0; Fri, 31 Aug 2018 08:55:52 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 6E7DB2B077 for ; Fri, 31 Aug 2018 08:55:52 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=UjTYaWq6JxKEW8vXzbNRdrOQQFyq+FQkEIiSqaVYWlo=; b=qcnkFsH8Y6XJVxK1R0ybWRI0yn kQL4bF1zTgHzL5vgKTRAa9mRtWbAOW8GdmGJRMnuMt+Rzr/E3vsKHX4JG0RQD8qUrApMe9FNMa2KT U8LYgXYHHkQSLXK2ONW/gS5v38p+YNIZ8xP9xq1+yD5ytgrfcak0SQ6pB5cEZMDjRMpU1lMBqICNs W/EkIFQ3IaljaswTOXjsy9jFOkyWFjg4wGCGfdLBJzcEZNZ8iuxheR5st3sRNRq7Uc5ysPRqmmdWx q4i2MY7gBN44LntgG9NqybFTuVmc8+n6SVHUko8Vf28RpRGiCfWqlERLLWHa5Uv8mjmnxVZtShhXk wt8EC79g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvfDW-0000od-HH; Fri, 31 Aug 2018 08:55:46 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvfAQ-0006Fn-5f for linux-amlogic@lists.infradead.org; Fri, 31 Aug 2018 08:52:37 +0000 Received: by mail-wm0-x241.google.com with SMTP id q8-v6so4562437wmq.4 for ; Fri, 31 Aug 2018 01:52:23 -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; bh=TlhOjpl43EpRuA5yEzGXvHqeICOEPG6QYX+g5iMHpvQ=; b=0KSooAfUchUz6L4rUvDniYYn5OIYYCRRJzGLriihxLUZkD6XCVCvoXykt6rCoUiYbs D4coIkjh9BchCAx33o9GB2XURxzoAS6Bm463+lOgU0tUdpV04HfTyEWtgdYpiV9YowW5 LOmLzNumXgO4r+fWQ7M5eZIqgBSfYmDkYlPMb4N9xxCL934IrS8i1gsXQBiypxagYvOX rA7RAQP2MluleNOjbv8PVTRuTg6D5lvucef9+Jk48CLcfKwxOdGqYs3veCnhHpDHXY9a v9e5Gu+hSm5YA5vYLvZ2DDxW0zemjhcYqZkBkXANqpRN2joVS4bXHA67+BbSCiFk4vsf U6Lg== 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; bh=TlhOjpl43EpRuA5yEzGXvHqeICOEPG6QYX+g5iMHpvQ=; b=iCGtuJJvFXB9kxFh0g+sW+fxI7ucTUn9wLrb9GZFWOnmupqU5yqS6ug0tYdUp5Wje4 eaoZZfc4bc49M8TiiIYHOqVNcr4OEj+yaPdHYZnLxAmDHmSkNrsyebHYIkPPycGGGgBj duEVis/3saFtrZpWFX0J0HCAC7s2Z0Lc+5IZuc0nnReXMtmlVEvImHIuKquadqW636vy 6TLdoWkZUrsOmJxAOnak94q+uxywkPHRVUru5VblFZUjCXcB5ELsZe8qrn06XmJowEw2 6rQTR/RMIajVPxt9xFPi843xmut5YXDS9U1VW9Y1qZboYc8I9QnIMjphJMEeVjyD7ezM cqmA== X-Gm-Message-State: APzg51BLGt+ddhkfDrQ+bHPxU4jfoinYFDL0DkfwH6gYqdPXaxnctZFG 2I0Ke9KiMtA+YZK/pBCbNaf8jA== X-Google-Smtp-Source: ANB0VdZaGQp8H4FSDbmJyy4mzlnI0mVST5etoCrIePvaBBhe9l8+tAWothU5X4FFf4cs6/7TmkEulw== X-Received: by 2002:a1c:7d51:: with SMTP id y78-v6mr3956828wmc.37.1535705542733; Fri, 31 Aug 2018 01:52:22 -0700 (PDT) Received: from localhost.localdomain (81-67-76-113.rev.numericable.fr. [81.67.76.113]) by smtp.gmail.com with ESMTPSA id v6-v6sm8920822wro.66.2018.08.31.01.52.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 01:52:21 -0700 (PDT) From: Maxime Jourdan To: Kevin Hilman , Rob Herring Subject: [PATCH 4/4] ARM64: dts: meson: add vdec entries Date: Fri, 31 Aug 2018 10:52:05 +0200 Message-Id: <20180831085205.14760-5-mjourdan@baylibre.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180831085205.14760-1-mjourdan@baylibre.com> References: <20180831085205.14760-1-mjourdan@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180831_015234_419515_619B3274 X-CRM114-Status: GOOD ( 10.07 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Maxime Jourdan , devicetree@vger.kernel.org, Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Hans Verkuil , linux-amlogic@lists.infradead.org, Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, Jerome Brunet MIME-Version: 1.0 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 --- 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 98cbba6809ca..daee53a755d7 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -774,3 +774,14 @@ compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu"; power-domains = <&pwrc_vpu>; }; + +&vdec { + compatible = "amlogic,gxbb-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 c87a80e9bcc6..bfd65d1a8959 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxl.dtsi @@ -775,3 +775,14 @@ compatible = "amlogic,meson-gxl-vpu", "amlogic,meson-gx-vpu"; power-domains = <&pwrc_vpu>; }; + +&vdec { + compatible = "amlogic,gxl-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 247888d68a3a..2f356495be5e 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxm.dtsi @@ -117,3 +117,7 @@ &dwc3 { phys = <&usb3_phy>, <&usb2_phy0>, <&usb2_phy1>, <&usb2_phy2>; }; + +&vdec { + compatible = "amlogic,gxm-vdec"; +};