From patchwork Sat Apr 13 17:15:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10899569 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 896041669 for ; Sat, 13 Apr 2019 17:16:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D022289DC for ; Sat, 13 Apr 2019 17:16:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5190428C26; Sat, 13 Apr 2019 17:16:09 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 04BA3289DC for ; Sat, 13 Apr 2019 17:16:09 +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=Bd6LQ3Tn0ektwNma/m/0fH5+UcmBB4r8gd1Ry6lrIyE=; b=Xyzwld4VjUysr/ zp3YFHXYh4iupNAk60ueNkDvwI/q74rkJLR1Vs/3V6tSccb0koCfsm1MkAAnkNvXOGryOablFCmP6 ZyqdNRb1GZ+PbvMZMraFc+tFlmWtG3u660i9eWvySqavPPBYqp0Ie3TkUHvQXrM9OgJi79ko14fAr zuHk+gV831uvGeiRNKF1qexCuvocHBMJpxhQsUWsj4HLsLL238VO10Nrk9zvFXmZWAfeaZhvdZZuD FJcxh6cH+7BuVERki9pYrRiGtq9Pz3iwxcnbDPHloZgjeKLxqEfvipGANAYSGCqvuYcpoFjn+KA7a kHTRy8PQCODxfEPXVNNw==; 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 1hFMG4-0000JH-RS; Sat, 13 Apr 2019 17:16:04 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFMFo-0008R9-LL; Sat, 13 Apr 2019 17:15:49 +0000 Received: by mail-wm1-x341.google.com with SMTP id w15so14636723wmc.3; Sat, 13 Apr 2019 10:15:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3t2VA5TTre+AZliJf9BQLiPu2UPCQMoeVa/gyjIW8SY=; b=YNBV7o+DMqHuxMHouOE/GNfPBXveM9hvT5oc9C4FrVqZy8LuDEfwi9/SETrPKnMNvA C+Kqk6/Fa2Ud1yKfudDbcA0f10DSxhjZitAisi2DIfhVbX2YVkxXRHF8OVPWHctBRnW6 m3wmdo7dHjzRAZdsG03XiQnbbOz5r88t8TFknjlZMYDJ5j0OtxwinZlUrNhENO2uyKDB i5Ih2P3jclBMhU9FVRb01pmUo2U8RpCW21QGR3JgOwbeH9HC3xzmQ6opKPI/+oY8P3/A i/ZibEXHLn9utIHzFwUFewN+vv4BHngdOf/JQTALq6UTWHjUpkgJlaC2vBUmwvBeoV2F 2eiA== 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=3t2VA5TTre+AZliJf9BQLiPu2UPCQMoeVa/gyjIW8SY=; b=JMOI7Dw+S4joZw0YTZG5x8PL7NXCrwNm5I3ozLBkq64hxeDNJ0ucIOUExJzPRuv3j8 7LUSzB0gjYL84lIh3QeDNy81Z124nmpg1LtgpPNiRYsHwRKAuh6MepUzbtn5dZ5B+jzB TAkrttZlPbQ45uoj3p01b7qns6hQ3ToRoqqvvZv6jMZXlPHBZQ/6bi9cHmly9ibekBpl XxlawJdRBtG0kl6+13cZFoYF2cU3kr4AOfEVqkfKAc0K7yLtPnbwEK+y5Bp9vw9OuzUE u4RVoQOwWGwromoE+oYXjyAT6QQ/Lby0nGjpAG0ModAPogHffbona9WOifF2sx2aGcKS thmQ== X-Gm-Message-State: APjAAAUb3DywqlTMiJAH+YGmxR/XIwYofSFOEMhDPgWCB32zBW/1m6a7 IRw+B+MZbyegaO6ciEviBtU2+NGA X-Google-Smtp-Source: APXvYqxdocTQnfviHVwHfmzUPilRZK9Z+H8UpylYEkwgI1prhyx5CDMUlAOI4buWF98nqmXS90m26g== X-Received: by 2002:a1c:c186:: with SMTP id r128mr15209469wmf.100.1555175746655; Sat, 13 Apr 2019 10:15:46 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C8AD0010B8127C043607D1.dip0.t-ipconnect.de. [2003:f1:33c8:ad00:10b8:127c:436:7d1]) by smtp.googlemail.com with ESMTPSA id h84sm16745965wmf.15.2019.04.13.10.15.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 10:15:45 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 1/3] ARM: dts: meson8: add the canvas module Date: Sat, 13 Apr 2019 19:15:30 +0200 Message-Id: <20190413171532.25967-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> References: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190413_101548_694428_05584A70 X-CRM114-Status: GOOD ( 10.67 ) 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: mjourdan@baylibre.com, Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Add the canvas module to Meson8 because it's required for the VPU (video output) and video decoders. The canvas module is located inside thie "DMC bus" (where also some of the memory controller registers are located). The "DMC bus" itself is part of the so-called "MMC bus". Amlogic's vendor kernel has an explicit #define for the "DMC" register range on Meson8m2 while there's no such #define for Meson8. However, the canvas and memory controller registers on Meson8 are all expressed as "0x6000 + actual offset", while Meson8m2 uses "DMC + actual offset". Thus it's safe to assume that the DMC bus exists on both SoCs even though the registers inside are slightly different. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/meson8.dtsi b/arch/arm/boot/dts/meson8.dtsi index 7ef442462ea4..6b5c90bb960b 100644 --- a/arch/arm/boot/dts/meson8.dtsi +++ b/arch/arm/boot/dts/meson8.dtsi @@ -228,6 +228,27 @@ }; }; + mmcbus: bus@c8000000 { + compatible = "simple-bus"; + reg = <0xc8000000 0x8000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xc8000000 0x8000>; + + dmcbus: bus@6000 { + compatible = "simple-bus"; + reg = <0x6000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x6000 0x400>; + + canvas: video-lut@20 { + compatible = "amlogic,canvas"; + reg = <0x20 0x14>; + }; + }; + }; + apb: bus@d0000000 { compatible = "simple-bus"; reg = <0xd0000000 0x200000>; From patchwork Sat Apr 13 17:15:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10899575 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 863E31669 for ; Sat, 13 Apr 2019 17:16:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 534C2289DC for ; Sat, 13 Apr 2019 17:16:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 478C228C26; Sat, 13 Apr 2019 17:16:23 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 F18E1289DC for ; Sat, 13 Apr 2019 17:16:22 +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=fb8juuVieNHMt3vaXyNImsdf7A7BTMX7qZIJ/d858nw=; b=BTBWke6uYSdqhY CLcwtYpQY0gzrba5M93h/5zOIuTM71u0KPdw65bDLJl+jTynZ/zzFSRqngDgqtxJCZo5nebwn4J5V m4TAyhPB6I/WLxkRPL/obPJ5NlheOhJQdCUib4mWBdZzwwqjgmd8RMV+SLiOUOMPs+AUnV9N79U2X kF7HZmoO2mapMv4+vhgS8hIlnUFE8yTZ3mR+xsGOAEEFwb5fFh05ft+czx0kCqddPTvhglDqfHr6m 9Z1/aVvciQtupM5agtFToW9Qvhez0pk1U1nO53uoviAKTMl3rEyteWhAX3+afj/Bn2NPw2ZNZilem Kit19pD2d+XVvl4qnUPA==; 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 1hFMGK-0000dQ-CT; Sat, 13 Apr 2019 17:16:20 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFMFp-0008RO-En; Sat, 13 Apr 2019 17:15:50 +0000 Received: by mail-wm1-x341.google.com with SMTP id h18so14643956wml.1; Sat, 13 Apr 2019 10:15:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9E4DqO8/055EQu/UGPx4DBiSsBA4UG4QMItls5PqPKk=; b=GO3cnXo9kZsGfjtyf+gzqQgQqYKamzRbp9AIl30FP6zlcfwC6HZWxb+96HyFGCl/tC tAaExNm6/xiVgu+fE0uxop2J60+7hva51T4Kz+rJedJWFAIKwHSvizMYADo5Fm/fekLg jIHpKhjdNb+dJeBIfImWiMXlo16mtyhB9LDCbBMVND+Pmw4LvaPq0TTrARRdhObm6FFN i6mp7QEGRi9atbWrsbtLBSz3HMKg/U1BVMXua6Xh9Dl9urx07XSgUAC6ZRplI6xbJw4q 9BNbwvf4A75wQKN9ZsIRW1yDgi7RKvJTcrMJvfrHU3Xv4tn6ywh/Q+TgH1RrXRbz8LfQ Xk5A== 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=9E4DqO8/055EQu/UGPx4DBiSsBA4UG4QMItls5PqPKk=; b=QcIKc1lPSvLoiT3K/i3wZi3oQKtjBYVfKcjBnwKey+iZXUqgjjWKqZ1kpir4KvBSIG D8B7MaJSj6Ta7BXvJctLzaXooctWHvnHT0prghG9BrCisBkQcC6RdZnXs3MRo4hhvIYR 3nNYdpocJ+KEtCCXhP49a7pr1eyUX/VC+/5VkLiGWPXF/G/A7ufFZ6twHbhZkSx3h5wG iOaeFzXTAhhKMNAynOdsya2U5G78R7ixftjKe4nF8bggT5PNdggTnagfkYM3g6Wj3PMP 6fB++fnHjRipQ2n83oAu24NCBRXrU9CayQF7wEcYiLGcz9lmmL0EgMNVRSagKJQOWkKD wJjQ== X-Gm-Message-State: APjAAAWG94Tu4+P5S27wClDNiB1R6oqzF3ZZpOfhDUcHQKcHAOy9n9G3 ++m+C6IdWWGYsQ4DvpQ6oprB3H+D X-Google-Smtp-Source: APXvYqwqulVeTNBwX8bThrfS/jug+deJWy/IZW1GcRXa1i2SC13VSB4fi9ZufadnQs3W+sINIixmXQ== X-Received: by 2002:a05:600c:d4:: with SMTP id u20mr15272538wmm.88.1555175747733; Sat, 13 Apr 2019 10:15:47 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C8AD0010B8127C043607D1.dip0.t-ipconnect.de. [2003:f1:33c8:ad00:10b8:127c:436:7d1]) by smtp.googlemail.com with ESMTPSA id h84sm16745965wmf.15.2019.04.13.10.15.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 10:15:47 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 2/3] ARM: dts: meson8m2: update the offset of the canvas module Date: Sat, 13 Apr 2019 19:15:31 +0200 Message-Id: <20190413171532.25967-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> References: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190413_101549_501067_FC6F46E5 X-CRM114-Status: GOOD ( 11.83 ) 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: mjourdan@baylibre.com, Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 With the Meson8m2 SoC the canvas module was moved from offset 0x20 (Meson8) to offset 0x48 (same as on Meson8b). The offsets inside the canvas module are identical. Correct the offset so the driver uses the correct registers. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8m2.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/meson8m2.dtsi b/arch/arm/boot/dts/meson8m2.dtsi index bb87b251e16d..e88c36d47e5c 100644 --- a/arch/arm/boot/dts/meson8m2.dtsi +++ b/arch/arm/boot/dts/meson8m2.dtsi @@ -14,6 +14,16 @@ compatible = "amlogic,meson8m2-clkc", "amlogic,meson8-clkc"; }; +&dmcbus { + /* the offset of the canvas registers has changed compared to Meson8 */ + /delete-node/ video-lut@20; + + canvas: video-lut@48 { + compatible = "amlogic,canvas"; + reg = <0x48 0x14>; + }; +}; + ðmac { compatible = "amlogic,meson8m2-dwmac", "snps,dwmac"; reg = <0xc9410000 0x10000 From patchwork Sat Apr 13 17:15:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10899577 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 30C131669 for ; Sat, 13 Apr 2019 17:16:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F2B50289DC for ; Sat, 13 Apr 2019 17:16:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6F4D28C26; Sat, 13 Apr 2019 17:16:35 +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_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 9C500289DC for ; Sat, 13 Apr 2019 17:16:35 +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=O5R1Wpp4d4530UoJoo77/1Nx/TPe5EHVB9mwKYs2ysg=; b=NRxlE4fwphDYDf ZXJpkOIJw35TNrT9M7Uwb+eEBrZdQqQkB0GOXrzIxc7piRqkQtWizG027xuTQMTokXS3FSIj053M4 6pQBr+lOyOSU4ZQsxIxA2IxOCCatrgB3UDCyWu7RGRkaH0VETFVqyVqw2HkL+13cyW6tic3PQtH8i BJvofBqGXoVjgYc3DbAuaHUJ1agxQRns2aGXkU56jBL5UOfn9XLhBWr1m+BSVtR5NymL4ZyfLaocR U6EMQan3eCH1YvGQRWN47N+UiU9RYQwKMUEUAWzFZcXnNxIPaIerD6QDAloGfaLxLHhoDgds3vmti 3LegGj2CgZRpN5uE6bzQ==; 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 1hFMGS-0000l6-Tm; Sat, 13 Apr 2019 17:16:28 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hFMFq-0008S2-Hj; Sat, 13 Apr 2019 17:15:52 +0000 Received: by mail-wm1-x341.google.com with SMTP id z24so14732938wmi.5; Sat, 13 Apr 2019 10:15:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hh4yQhBPQBAdSO+xFdJJMR708sMAiI2dTB3FREcZ1hY=; b=HJ/Kh2VDa75prfApuD4ohFKbR59qt3c33FjtOX9Syf/JVbkhZspLRmb5DIIt+lheAs nWrn4rqtDiPcVFtE2lH2and3RpljIQ1OykU9DeRuGXzG9/Wf4wHIYq99mkrDVwp4duis XNGCFuIydP3UluqgcMxDdIzaB3o+O86RXSipzq4iSca5wRStLlkZl3LOyplX8jRpImyl ix8KcTtLR07fCoBGp0+QS3bdx2e7EgcDFu0NLPullRshvvU3nbDFBHxfytIfDjw7sVPv 1VY5kzV5PNgtLr3Sgj4ICzys3q+0uMHolqGNadM/7CCaMcxa2PlUuDNa4XWVK7eAZh/c uTlw== 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=Hh4yQhBPQBAdSO+xFdJJMR708sMAiI2dTB3FREcZ1hY=; b=L/J4m04PeFxQxTasZOQ2+nav3XvC0zWuLDrd6E6vKEjvHBk6xnXzOPz1ObqUy5VM/5 fhjiMGXdtJFPm88YKGkcNLyRm7TVYxneFeLu4f6fUwzd+Vn43JYozoHcLIwkyxyB8KWh wSmjZr+kBtfRkUt9wGesZIgAKLX+q4B6ZxoBs+yT+RlkzceQ3nZgdrr1lkgEjPkPQ6re XjDLK0y9jH+r8qKQO4aTYb3kZvDfuxpH0YfFFd2895A/zeb/82SLA0RFHb1ixtDtMbGw PuJIoUxzYadaee3lk5Wyr8p+HXC91Xm1uk8Y4CnDR10BLwFFEK2buGBzehsDfbETupTS /sdQ== X-Gm-Message-State: APjAAAXetT9iGYBK1HiQnA4TF78+unY3Hxecasoam58p9r4DI/f6+6wf gh3qbW+vZOuGU8r9jhEHqJXIqPiM X-Google-Smtp-Source: APXvYqwGOIyVec7OvKYIPCbs4ICpJgtfXHVwGRFw1T99hR9Eoj+/h4tXMYu24BOuFeGlD7h6IVpfIA== X-Received: by 2002:a1c:e188:: with SMTP id y130mr15041584wmg.83.1555175748947; Sat, 13 Apr 2019 10:15:48 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C8AD0010B8127C043607D1.dip0.t-ipconnect.de. [2003:f1:33c8:ad00:10b8:127c:436:7d1]) by smtp.googlemail.com with ESMTPSA id h84sm16745965wmf.15.2019.04.13.10.15.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Apr 2019 10:15:48 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Subject: [PATCH 3/3] ARM: dts: meson8b: add the canvas module Date: Sat, 13 Apr 2019 19:15:32 +0200 Message-Id: <20190413171532.25967-4-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> References: <20190413171532.25967-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190413_101550_851353_FE0081FB X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. 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: mjourdan@baylibre.com, Martin Blumenstingl , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Add the canvas module to Meson8b because it's required for the VPU (video output) and video decoders. The canvas module is located inside the "DMC bus" (where also some of the memory controller registers are located). The "DMC bus" itself is part of the so-called "MMC bus". Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm/boot/dts/meson8b.dtsi b/arch/arm/boot/dts/meson8b.dtsi index 800cd65fc50a..f4e832638e9c 100644 --- a/arch/arm/boot/dts/meson8b.dtsi +++ b/arch/arm/boot/dts/meson8b.dtsi @@ -205,6 +205,27 @@ }; }; + mmcbus: bus@c8000000 { + compatible = "simple-bus"; + reg = <0xc8000000 0x8000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0xc8000000 0x8000>; + + dmcbus: bus@6000 { + compatible = "simple-bus"; + reg = <0x6000 0x400>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x6000 0x400>; + + canvas: video-lut@48 { + compatible = "amlogic,canvas"; + reg = <0x48 0x14>; + }; + }; + }; + apb: bus@d0000000 { compatible = "simple-bus"; reg = <0xd0000000 0x200000>;