From patchwork Fri Apr 19 08:32:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10910091 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 1B89813B5 for ; Sat, 20 Apr 2019 08:47:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0D6CF288AD for ; Sat, 20 Apr 2019 08:47:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 01A5228AAC; Sat, 20 Apr 2019 08:47:58 +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,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ABE10288AD for ; Sat, 20 Apr 2019 08:47:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 53F17892AA; Sat, 20 Apr 2019 08:47:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id B0F1D8920A for ; Fri, 19 Apr 2019 08:35:04 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 4so5496951wmf.1 for ; Fri, 19 Apr 2019 01:35:04 -0700 (PDT) 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=aSruXCIf56eTUnwd91mFJWvgWo5ilLOW75OOPS8G/vQ=; b=tj1aEHmXgk097eZpgGTbfQ5/uMaLSRQMOsdT3GwI5soFFk+5Yg0ZsTk8vBYufONebC hqeInZdBQ2v1mX4vTAs1xCotSid7QL8Al7Ot344ti9HNv2XPK58OhAGFf3tFqlhtH286 kyek3SdLCtfqHLxH0zNoaP1QpIwi8g/9ZCzC+NKTLoYZ59gJln5Sue2ivTecInU9p1RV 6Vc6YytEMtJf+MtTG6sckplLEXeKDVYtu4RSHsDOU/EgU4JCd4F3JcVF/2EI7AZWQBbe t7aPEL8tItfUTgFU+Q985Ebb1ijOG4KDtiXXJJqh7TnS1YpVciOtbWHStY/1EywLSGI1 ZC8Q== X-Gm-Message-State: APjAAAUcnEp2wbwr2CXxD6Hlf7zsOAg5t/oX0cMt8TI275m/qjbmWh9D RS24HE8duvBCFZXCEeWCsvgk1Q== X-Google-Smtp-Source: APXvYqxfjCfRWxLbTWBnUcA/cu/fK391O64x79gXKonNAQ0gNZuh0zwpSSvj2c3lV75vHBq3aiErZQ== X-Received: by 2002:a1c:e0c6:: with SMTP id x189mr1764732wmg.4.1555662903279; Fri, 19 Apr 2019 01:35:03 -0700 (PDT) Received: from localhost.localdomain (cpc89244-aztw30-2-0-cust4998.18-1.cable.virginm.net. [86.31.179.135]) by smtp.gmail.com with ESMTPSA id t76sm5700147wmt.8.2019.04.19.01.35.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:02 -0700 (PDT) From: Peter Griffin To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, john.stultz@linaro.org, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, p.zabel@pengutronix.de, xuwei5@hisilicon.com, mturquette@baylibre.com, sboyd@kernel.org, yuq825@gmail.com Subject: [PATCH v2 0/6] Add HiKey / HI6220 SoC Mali-450 support Date: Fri, 19 Apr 2019 09:32:55 +0100 Message-Id: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Sat, 20 Apr 2019 08:47:32 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=aSruXCIf56eTUnwd91mFJWvgWo5ilLOW75OOPS8G/vQ=; b=b/L5hdEywCgjzZXewVEgNkwkRzSctvTyMAgjLLfQe/+d8De14q8WZX75J9BSDobTku YUBJKbF348WamlAnWAxLY8sGTZvvMi2yJIx2ug6l/zntb9dohxh0wh4tCkJGuI1d0z8L SrQZhZStVkUneIGq++IlAWsT2hX5/S0B8XP0NSNA4FAlnN04Ysw+Lv2b4MR89PMJOH2K R6rVoL0zmApHrx57+z8sXYHfjMS321lOzp1YwQ0P4p7s/xPwQ8gOC71JF4DxI7SHCf9F Ret9rCen/YzJXaWJ+lP/WFlhuEObKsdn5HpdKtYREmNd66KMY02IMnL2faRr9dUPQJhh RAdA== X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hi folks, This series adds support for the Mali450 MP4 GPU found on the hi6220 SoC from HiSilicon. It has been tested with the lima drm/mesa driver hosted on freedesktop.org gitlab, and validated using Weston and kmscube. As lima drm driver has now been merged this v2 series includes one extra patch to avoid Oops when all Mali ip blocks share the same irq. regards, Peter. Changes since v1: * Additional drm/lima patch to avoid Oops in shared irq case (Peter Griffin) * Squash clock and reset driver parts to avoid bisection hole (Stephen Boyd) * Add comment as to what other driver is probing same dt node (Stephen Boyd) * Check regmap_write error code and return individually (Philipp Zabel) * Add Rob Herring Reviewed by tags Peter Griffin (6): dt-bindings: gpu: mali-utgard: add hisilicon,hi6220-mali compatible dt-bindings: reset: hisilicon: Update compatible documentation arm64: dts: hisilicon: Add Mali-450 MP4 GPU DT entry reset: hi6220: Add support for AO reset controller dt-bindings: reset: hisilicon: Add ao reset controller drm/lima: handle shared irq case for lima_pp_bcast_irq_handler .../devicetree/bindings/gpu/arm,mali-utgard.txt | 5 ++ .../bindings/reset/hisilicon,hi6220-reset.txt | 1 + arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 38 +++++++++++++ drivers/clk/hisilicon/clk-hi6220.c | 3 +- drivers/gpu/drm/lima/lima_pp.c | 8 ++- drivers/reset/hisilicon/hi6220_reset.c | 65 +++++++++++++++++++++- include/dt-bindings/reset/hisi,hi6220-resets.h | 7 +++ 7 files changed, 124 insertions(+), 3 deletions(-)