From patchwork Mon May 20 19:43:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10952233 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 D469D14B6 for ; Mon, 20 May 2019 19:44:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C110A288C3 for ; Mon, 20 May 2019 19:44:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3A2D288C7; Mon, 20 May 2019 19:44:27 +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 550D6288C3 for ; Mon, 20 May 2019 19:44:27 +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=M0A5RlYOlyWAgn63wp8SDcdhHKs7hqj4f5fXl7RRUpo=; b=RrtQtTZC7IHO89 UKrrsdbspGnZd5CPHOyAfDnhBgW0loxhQLi4307UkI+T9mbDfEpZYiQ2chWByDgJkMPlI3FKqlzwV j5MXuA+3hBmXFicdgagaiu8DWx/3Mi+2c6M8kQSODmz3pZPL15Tf7Q8hsDgYq79l/v4BPL/diPzbp kPQtStgNefYFJOxbDZiS4FiHYKIIOPSn5dtFfrPcrD7TIUGB13J1yA+viJRSZ2J42/s8ekxCtkl42 9xS9XP38ZFN/b/3FB07Y+xP1kfwXIEebOFTPjTayXjbZ3oYzVs22MbY+qhiUkL8CN9mcVQ89zkr4v WLxXyDCwnDWDIkn1ho2w==; 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 1hSoCr-0000zz-5H; Mon, 20 May 2019 19:44:21 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hSoCc-0000l8-UB; Mon, 20 May 2019 19:44:08 +0000 Received: by mail-wr1-x441.google.com with SMTP id w8so15930793wrl.6; Mon, 20 May 2019 12:44:06 -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=tfGgUjPbd31Ss7/rk7zFjMjprcKV+dr6vtdFkBjPbQI=; b=bsJhe6lu0EYb7AiOJA9l8BMIFOl5jNy5IyVsIaknO+hu31Fe1Yr1nLSe9QxcSJxC2u rbbVXuvcvGdG65k0e82429secn1zvnv8zSjZTTahAInSylnGl0lnvn85EMHzmtQ93xZ1 kMgmt/n0dWO8zPRN8qheK0OFFgpAn3AJRCqrCObu/5q7zvy8PTkvL5iLx7FGqupIafQV TiNq0sowj6PB4ZtsCUgCjg97m80pePy4uZQGnhCeZJXykq41/p/iVD9ntAMw3f9PR4+d iJTMgj/Xzrn4YCkUyqPfjrY//r7vpw1z3X0eBjUSqoOv7bAEFlMDGUjkE/0JmiL/3b0/ 0R+A== 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=tfGgUjPbd31Ss7/rk7zFjMjprcKV+dr6vtdFkBjPbQI=; b=d4bT1Xpv8qHDSkBUugqw7Sfd6sdhbsV7ITZuDOrU7/6W7Fy0ewawn/b/56aFitYGNJ tbTXzd5qSyL0mV1WOCKBgUBDdMJQ4xmDOB8ofq7NEh4q851Gz23M1YQp6PfJZm4F2zm5 nDLhajQov7REQw4gZnMGUEfIQpZ4T2MemG5M2gBZIlfzeMAc9AL8qUxtd6Um4QDFYcdJ P4lZkx0+PbSX80zzZEyp5cwv4ipicNf9TsMJ6pE0Ga6aX6Q0QonkWjTEwgotdXyXxoqX IzvlK/DD0pAZ9esQ8Mp4XODHdFahMqPpYufMlcNe96y1G+gFWYlwtryYAdUvGbCXI2rQ TZBw== X-Gm-Message-State: APjAAAW1gTigJ8zceevRsKPPZgkRtcYJ8uHq1VhPFCh3/jYAJp8YtSa4 GUbjcbFuqazkpO81iJFh2BYMdH26 X-Google-Smtp-Source: APXvYqwx3+Y8miEK9uW+Hm0SSs+kVKPlWxA+6K/QvYcvrofGjMRU2+ZOFUp1ani97eRcr6KdL3GYOA== X-Received: by 2002:adf:8385:: with SMTP id 5mr31213005wre.194.1558381444916; Mon, 20 May 2019 12:44:04 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133EE71009C356FA1F0E19AF9.dip0.t-ipconnect.de. [2003:f1:33ee:7100:9c35:6fa1:f0e1:9af9]) by smtp.googlemail.com with ESMTPSA id p8sm9135352wro.0.2019.05.20.12.44.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 May 2019 12:44:04 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com, mjourdan@baylibre.com, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org Subject: [PATCH v2 1/5] dt-bindings: soc: amlogic: canvas: document support for Meson8/8b/8m2 Date: Mon, 20 May 2019 21:43:49 +0200 Message-Id: <20190520194353.24445-2-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190520194353.24445-1-martin.blumenstingl@googlemail.com> References: <20190520194353.24445-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-20190520_124406_968764_CFDDF746 X-CRM114-Status: GOOD ( 12.26 ) 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: 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 The canvas IP on Meson8, Meson8b and Meson8m2 is similar to the one found on GXBB and newer. The only known difference is that the older SoCs cannot configure the "endianness". Add a compatible string for each of the older SoCs to make sure we won't be using unsupported features on these SoCs. Signed-off-by: Martin Blumenstingl Acked-by: Maxime Jourdan --- .../devicetree/bindings/soc/amlogic/amlogic,canvas.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt b/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt index 436d2106e80d..e876f3ce54f6 100644 --- a/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt +++ b/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt @@ -2,8 +2,8 @@ Amlogic Canvas ================================ A canvas is a collection of metadata that describes a pixel buffer. -Those metadata include: width, height, phyaddr, wrapping, block mode -and endianness. +Those metadata include: width, height, phyaddr, wrapping and block mode. +Starting with GXBB the endianness can also be described. Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data rather than use the phy addresses directly. For instance, this is the case for @@ -18,7 +18,11 @@ Video Lookup Table -------------------------- Required properties: -- compatible: "amlogic,canvas" +- compatible: has to be one of: + - "amlogic,meson8-canvas", "amlogic,canvas" on Meson8 + - "amlogic,meson8b-canvas", "amlogic,canvas" on Meson8b + - "amlogic,meson8m2-canvas", "amlogic,canvas" on Meson8m2 + - "amlogic,canvas" on GXBB and newer - reg: Base physical address and size of the canvas registers. Example: