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: 10908691 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 1176913B5 for ; Fri, 19 Apr 2019 08:35:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 000021FF81 for ; Fri, 19 Apr 2019 08:35:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E645928D80; Fri, 19 Apr 2019 08:35:14 +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_SIGNED, DKIM_VALID,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 A80BF1FF81 for ; Fri, 19 Apr 2019 08:35:12 +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: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:In-Reply-To: References:List-Owner; bh=AMys78L0c7XSpMbCi8eeSSJcVqYfaVDsAxgMT9pg3E0=; b=gba +Zood/8bPQcfmbkI52LG4TPZUiJLajyz66V+DdQWE/WnJsoUznqgt1zV2iivpZuwa0rnmnZEYKWO1 gO9G2rzEKL4+dA99w/cjPiQalknpyIb8JfjKtn+appRhQgIwPY8THvr9B9v8zQZLUHVoSI8GUoAqA Vo0u4RSsnO8nwkZTHGRLfxXSlq20k9MJxskxc5xAU20wAN7Yu+qC3iBdLz5N9x1jsLaSUKBNzp+SU aPeldDp1abnnUjUMaixYcbrCWHzyDOIP+N3gWGsuIjZsk08Fs5GMzorkXYVWAx3dhjByoiS3XsvPz pLpUy7nmREOQTj3MBOLaPhk+5THjYng==; 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 1hHOzF-0006lp-79; Fri, 19 Apr 2019 08:35:09 +0000 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHOzC-0005sw-HI for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:07 +0000 Received: by mail-wm1-x342.google.com with SMTP id v14so5678652wmf.2 for ; Fri, 19 Apr 2019 01:35:04 -0700 (PDT) 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-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=IWyxp2NYrOl4uRETIKavaByRLsZJmTQ+wyqVRzEaqgcRQTgpwc+k93iXSBfa731ocf lVKdpCx7oF1JTObkBHldhNi687p6tuPtUBYLNxHvwxfCs7dEulmGqr9iGFzSBggzgbk2 SQXRhZoJvZ16vHNxg0otcrcYCSxGqp8XLfNvRNjfEisMxGKisoWE91v3D8rpUSGDo1cL sKknSqXdQOO6W+OCfqsvU67JtTScNyfB4JEuWGKikPvY+T76N9ndd/MuX2aKpYd9QGQu sxN/fxxxEn1zMz2pIrS4FvmMdAyvnnwngVFK7vpsEM5PCFGdBUH8e0jukaaj30VjdcP2 XP9w== X-Gm-Message-State: APjAAAXZaLePQjxkIwHi7w1/zVSYiyT7c0MadnNgbQ4e0djdf4va4dzP OvU6/nD5sT1Iu/FGoM7ucq4k2FIKJ34= 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013506_592801_3C512FA0 X-CRM114-Status: GOOD ( 13.02 ) 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: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org 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 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(-)