Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1822990imm; Thu, 23 Aug 2018 09:18:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdamB5b4oWnXYz4nzIGSBgXFOOUZxuDZpuRMGO0G1lvUrhwV8Ya9hFxR323U78BWjq8fLsRa X-Received: by 2002:a62:57dc:: with SMTP id i89-v6mr7203411pfj.45.1535041084278; Thu, 23 Aug 2018 09:18:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535041084; cv=none; d=google.com; s=arc-20160816; b=cm7kHpnQG6blfXUgyDg9KMTwzwATnLWjm9Af4joxEtGDatGSfdHdbXk0pyB04oX25X Ph3yNN0BYEwn6ffinEZNaW/+t5MuEhEZAZ3aV3eYKRPvFfYx2nh+ZGxxvZmHaXhcG/PP 8rQlLiRSwzgaEvspdPZrtKLNpqyYn70QkNxYveLmwm/scpiixtE65Itb0bbQ5Ciikblk pkqMtsBsJUVJ20gPP2dwSAHICIrs0uAwa4IF8XTfoBdYg0Lx2hwbIgfytvoULOjxLjW5 h6PMyfQKbs/gtL+CDJTCLMzS/ONzPZdNhA8Cl2m6fyzg8mjYfglJcO0cPh+dRcrnHoaZ ET4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=g1mfP/sOo/HQjJ7c7Fb0EYo8huXwFK/AM/SI3qAjqoU=; b=Ecvq7LfV1i/bOROJIRV8/vRZ8rqFENxFHjkqZQqjOyyYbwHp+SDJKumSsx5BMBkuE3 XwBiO24QF0Y4bhyRXyCtg9zdHrYC9fSsPhD8endFWRx96bf1e1QB6JA/JRj+/hESyRT9 BmmDfAS4cJkl62Gb4PEvIOR7K4VCVRTGVGE0Ij7oQ8ExG2eY4NoVIgaTUARd55NA7hjB THWhvjtMKCNBdu34zjpGQeu9+JYcTj5JIi5LzNNPk4obNEVL67FUjm5T19ktvbNLPjFH 24Ex8oB/fDhzYxJ9aIuZ/Xb+8EA1hNkKBUX+hLZI0m9VqkVwPXo3PZkKQg4jvN2Rx06S nTSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ShXQ+qF+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q61-v6si4500391plb.231.2018.08.23.09.17.48; Thu, 23 Aug 2018 09:18:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ShXQ+qF+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732261AbeHWPaJ (ORCPT + 99 others); Thu, 23 Aug 2018 11:30:09 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:44645 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729473AbeHWPaJ (ORCPT ); Thu, 23 Aug 2018 11:30:09 -0400 Received: by mail-wr1-f66.google.com with SMTP id v16-v6so4403290wro.11 for ; Thu, 23 Aug 2018 05:00:44 -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; bh=g1mfP/sOo/HQjJ7c7Fb0EYo8huXwFK/AM/SI3qAjqoU=; b=ShXQ+qF+cO44SQLJkTkZyvmZwCKIEiyLgCYDL5oIAxZ3jvStRMbCudlZwZe/Pnv3jp 7XvaddEnUrgfOsYAVtF6lJv/qG/p93CePArRxGUMM3v1prWDDK/LckLsFxPLr+2gbeHg wK2W3T2F7WgMtvNPRNv/qacCJ4wAULCdLz3YTc22e6b0zDnMrk55nWbR9+bQsXKMylb3 jv92OnAhPvxCnPmim1Lp9FXHMaekGNnNqRiPOCn5TM5TDYYlOkZxL2wI2QSB6vujmAc2 gzneUzecmIFnKumXyNWdZ8dpwbUX7K117pmkyoFUj67sMQWUDivtsSm5lDvewrAjt3s/ /6lg== 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; bh=g1mfP/sOo/HQjJ7c7Fb0EYo8huXwFK/AM/SI3qAjqoU=; b=EGgzhy9/sMDYwOp42rPrdVZ5TnbNp1qUj4pyN1eH8TcRI5jYQZcNvxUqSYi+rmE5P5 VaMsFxeDZ7jxHMW4nukPU7AAVARsPIieEi/fZynZhrXMOe0mzjL65pZ4Xz6Cd5B3RJwK NPeTQ97FeySzpF/TzAbK1LKB8VVtFFeAn1jKyqSxCO+qsajPiEC9siX5DTfNJFaOXKzy VxnzgO3UOsdsn2fVb9MYPGabx7YhxzFYsTxYpf+9c0+IFi4uAvfTtZB7ECBSCpqoLFaE SRnkSpI5T9hz/0w1Ueq/Oz+Ruld1knoJ3piwsyTPwtWm0yTXZdTUHaGtseAl5oTaQtuL gG/Q== X-Gm-Message-State: APzg51AiKOpL/2BmnNZZK3l8X7IPKzYgCfg62R76kVcSJ6ioZyFsqOWz 6bTbCnJCw7vCBUsv5zBfweHoYQ== X-Received: by 2002:adf:e5c4:: with SMTP id a4-v6mr2337085wrn.190.1535025643617; Thu, 23 Aug 2018 05:00:43 -0700 (PDT) Received: from localhost.localdomain (81-67-76-113.rev.numericable.fr. [81.67.76.113]) by smtp.gmail.com with ESMTPSA id y10-v6sm2830419wrl.87.2018.08.23.05.00.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 Aug 2018 05:00:42 -0700 (PDT) From: Maxime Jourdan To: linux-amlogic@lists.infradead.org Cc: Maxime Jourdan , Kevin Hilman , Neil Armstrong , Jerome Brunet , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v3 0/3] soc: amlogic: add meson-canvas Date: Thu, 23 Aug 2018 13:49:51 +0200 Message-Id: <20180823114954.30704-1-mjourdan@baylibre.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Amlogic SoCs feature a set of 256 canvas that act as pixel buffer descriptors. Some IPs like the display and video decoders access those pixels by using canvas IDs rather than direct phy addresses. As such, allocating/manipulating canvases can be done concurrently and there is a need for a standalone, lock-aware canvas provider module. Currently, canvas code lies in the drm/meson module as it is the sole user. This patchset adds such canvas provider module. Changes since v2: [1] - Don't include the drm changes in the serie. - Remove the syscon node in the dts and doc - Rename meson_canvas_setup to meson_canvas_config Changes since v1: [0] - Convert ops struct to a public API - Added comments - Hid the of-node probe code behind meson_canvas_get - Changed device lock to a spinlock with irqsave [0]: https://lkml.org/lkml/2018/8/1/1512 [1]: https://lkml.org/lkml/2018/8/7/894 Maxime Jourdan (3): dt-bindings: soc: amlogic: add meson-canvas documentation soc: amlogic: add meson-canvas driver ARM64: dts: meson-gx: add dmcbus and canvas nodes. .../bindings/soc/amlogic/amlogic,canvas.txt | 29 +++ arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 13 ++ drivers/soc/amlogic/Kconfig | 7 + drivers/soc/amlogic/Makefile | 1 + drivers/soc/amlogic/meson-canvas.c | 185 ++++++++++++++++++ include/linux/soc/amlogic/meson-canvas.h | 65 ++++++ 6 files changed, 300 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt create mode 100644 drivers/soc/amlogic/meson-canvas.c create mode 100644 include/linux/soc/amlogic/meson-canvas.h -- 2.18.0