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: 10583411 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 041C017DB for ; Fri, 31 Aug 2018 08:55:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E70A02B06F for ; Fri, 31 Aug 2018 08:55:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA7C32B0A2; Fri, 31 Aug 2018 08:55:04 +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=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 6F3682B06F for ; Fri, 31 Aug 2018 08:55:04 +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=ERrO4w5CjYJv5p4yfK30nvKlwmvhOGm+BgQRWbEDKYA=; b=Vd6WcSJLlJLScnGoAZLU3qAGSe 5vqz/qYoHYhBqEtZq3QmlYNlcL+aSGovHp6OScj/HcVms7H9vKZMDw4QOziW1YA2HhoGNxYRUxb/O LLhsmqeVr492lxmQBNArZospZ+OmvjDTNBTl3H0vblujvfIOzyyH8WVigKHy5FtXu67Lb2g7IkQqd y7cs3zKc2/+GJk4a3nCOlkTdXQQFj6Kh0V0S3dnYlE1jG3x/nFbEDQcZc22CFrz0Dbi84RJrNmNyi 826YTHxiy0Yd0E4ivBOoq+Br3eeszoXHABJpY1owuJP6lOrqUTHGWYbF4LAhgyXq14PZis1DNx0pH a99am2Ng==; 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 1fvfCg-0007fr-1h; Fri, 31 Aug 2018 08:54:54 +0000 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fvfAO-0006Fl-El for linux-arm-kernel@lists.infradead.org; Fri, 31 Aug 2018 08:52:34 +0000 Received: by mail-wm0-x243.google.com with SMTP id f21-v6so4443715wmc.5 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=Y3/A/v9rAdhkSzm73GHpotemBYWJxzxaRbWRRgYozMbIqL9MiBs8ayetyt5HA+QDSL 1C9DJ1xoe1aIcWTKwbADsfPfNV8pGGO3Zojyfxn00SzIQz2tRrd9H0naF9jORNhRCfEy j+ZicdJ75qrEaLiZD40aLElSOQjmgjUQ7bRKmnSM6i7QWX8qurhTZu8cQGkYufnedCkT wACy8vuwPNsEucL8VDuSQPQUuOZEeoqWmTL+9RCuPV1sGmML3Qdn0OqiyGimN3u45MmL C9Yrx4WiA0PrSSo7thJo5TONvdvZKL80EFM6Vd4Mr2FFje6llQPJjDiDnjbmqiWBx8zb RvNg== X-Gm-Message-State: APzg51BfjRNYv+xU4pZsaZhMVfXwSI1LxKIMIn9+I35Sfbdd2NAvhyec /nmk676dwHVHisWPZurIB6PUVg== 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_015232_571554_785BD642 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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"; +};