From patchwork Fri Apr 19 08:32:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908693 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 6B83917EE for ; Fri, 19 Apr 2019 08:35:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D45428D78 for ; Fri, 19 Apr 2019 08:35:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E77C28D87; Fri, 19 Apr 2019 08:35: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_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 03C3B28D78 for ; Fri, 19 Apr 2019 08:35: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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=ti5Fq8pQgm5Dte7Eo8zqcqZGYmH1M06ezQoyhUuWT5Y=; b=UqQanarueHy0zh5h7d/MTKDZGA 6n8qZZ3+1oRwOuuKAp3w+FG1zpDFvRT/ug8TesQy4l7aN1wJdEBEw6RSa6W+LrsIzVhsvEVlVeAAu SwimiIJysJR3aiKZp4EXo3UmHSRz6yVUVBR7SqfPRdobQEu/blfprnn3AD7uKhnTMwgoT2JbMaDK/ 7ZL81uZYD0PaqV/XECw80nPWXxE9C3HEd57O/dWlbK5dQBZNdk/gCaY+Vjk1ZqRgM6bFvyaTwuiCJ xnYo4icEzm6XT/zr5gyvUgsY3aXnaT/ZGu50i6hPAud8RnmDgNdQwyIw/QRrwEvC1yZK26zkDD9Ib EnwY/XxA==; 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 1hHOzN-0006tf-IU; Fri, 19 Apr 2019 08:35:17 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHOzC-00066S-Th for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:08 +0000 Received: by mail-wm1-x344.google.com with SMTP id o25so5479447wmf.5 for ; Fri, 19 Apr 2019 01:35:06 -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:in-reply-to:references; bh=MCTEvmabwYzI3ci+NujQrB/hypflAW8OQ75e8/ggXfk=; b=MmDEdzRcl9DaSM0D19sHLRP9UUgUb3DU9U/mKJ4uV0lViP+8Df/cara5+dwmvId2vi WCLQOT1S9LX6lveDGKTjokIESoUs5zV+Yvi2kw6zAVVXQxJinyhsP81cBiz3+fbe0KXq ib3QilCDqnukXnjqqNJxDG7lbKiTmelD2kCgZCXW6E3bamJvWp+dJHAKTUt9EIDg5PJO AsDxgXHM9sRx+3nZAzUT1J9faizEapC+cpYUkDdC4uGnPeBtXmOu2wab7KpbQzOGQDRM YwN/fvrXryGp/kH7lktMqf7IosiwgS0IQxI/hbqoi3Y+bV/6gjxR+f9ffx6d6suPdsih gDBw== 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; bh=MCTEvmabwYzI3ci+NujQrB/hypflAW8OQ75e8/ggXfk=; b=YkaYbPXqsoa3eg2x6kmTFxkwEBCPhbpKWrxPkOc8LDOaEQNLWx5hVkYslqcwHVzrh8 9Dwxdbc0pRcqkdDC6HiXiktGsfJRrt37CyD+rDEUsukvYxPh6xKX1jLnAmzLSYetT4/l R9UPeAuclEXj9Rdgl/3SsFGoy36D0oqlFEWDCHtOz31woaLD3U6RaHi8lJB0auEABoHn zKn5mfABFBV2mBFoxAd49EmHm1d/WMF2ql8aMBqdEynx42hBC4kA3BmvDKjnER2FTesB CCQV/iomGNfUX1/bOc53mgPiVTy24+aflTlp1E6xBvP8xkIVdGlsZVYHWtVkZUa0kWfQ cbJg== X-Gm-Message-State: APjAAAWRd7eb0TAM/7oOv6P7gzH6ohlk6Zx/7Jo1mIqRelQN2riivlPD jKm6QgzxGxS2rI04RLL3HHE/FtlM9H8= X-Google-Smtp-Source: APXvYqz4to8wAVskrNWhKtpXeo1y+/84uKbi75fWJa+XAgG68NFzqtWiTfz7vu78hoCS57ktmCjphQ== X-Received: by 2002:a1c:6502:: with SMTP id z2mr1745391wmb.119.1555662904613; Fri, 19 Apr 2019 01:35:04 -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.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:03 -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 1/6] dt-bindings: gpu: mali-utgard: add hisilicon, hi6220-mali compatible Date: Fri, 19 Apr 2019 09:32:56 +0100 Message-Id: <1555662781-22570-2-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013506_959764_8F833DBF X-CRM114-Status: GOOD ( 12.18 ) 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 The Hisilicon hi6220 uses a Mali-450MP4 with 4 PPs, so add a compatible for it. Signed-off-by: Peter Griffin Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt index 3f128e4..2a16b0c 100644 --- a/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt +++ b/Documentation/devicetree/bindings/gpu/arm,mali-utgard.txt @@ -21,6 +21,7 @@ Required properties: + rockchip,rk3228-mali + rockchip,rk3328-mali + stericsson,db8500-mali + + hisilicon,hi6220-mali - reg: Physical base address and length of the GPU registers @@ -91,6 +92,10 @@ to specify one more vendor-specific compatible, among: * interrupt-names and interrupts: + combined: combined interrupt of all of the above lines + - hisilicon,hi6220-mali + Required properties: + * resets: phandles to the reset lines for the GPU + Example: mali: gpu@1c40000 { From patchwork Fri Apr 19 08:32:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908695 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 5D17B17EE for ; Fri, 19 Apr 2019 08:35:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C1F928D80 for ; Fri, 19 Apr 2019 08:35:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E4F228D87; Fri, 19 Apr 2019 08:35:45 +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 CC1C728D78 for ; Fri, 19 Apr 2019 08:35:44 +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: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=yOowhLd8/Vn98/y1yqJwH6nnzctkrgw6sPVdaKyPneU=; b=d0fRjHHvNquuPV/d95WKihTyp2 1sWqSDZG2eU2Pjs5PuqXExZE6U6EJ4sGsjhAfjyF37UxwYHYPN2EI23+a0uAmJjzsJQFqQMmEqCEj bkMFnLENlE4xBSP+kgorN7A+77EjxOQQSbyG3OzpuqrkoFrH5u/zoXFcO4gpTltgdjISCZquYoz7Q jGhNBthXaUKzWHdkBJGzvZtuqBOcvUmWGfls9XHRF2NnBx5COGkK5JsxEYELeS+zZaiG38AT74ZAc s3ouWkuZi7BoQT1Wk+hN3epgRds/IZ6ZOtUa054YrkvyQiHWAbVWA4iUbHpAtFU+yPCp7gN2UY6fE rio1UrUQ==; 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 1hHOzk-0007Fu-7k; Fri, 19 Apr 2019 08:35:40 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHOzD-0006Mq-Pe for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:09 +0000 Received: by mail-wm1-x343.google.com with SMTP id z24so5703577wmi.5 for ; Fri, 19 Apr 2019 01:35:07 -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:in-reply-to:references; bh=R+rJiqbMseAY0oDXLdqiRPHEvayMMhzkPPex8gF7dgU=; b=QfQHEsBYJGmCfbvCkQEdvF68c++DOn6w/o7o8GEiyXAig9Z+9m7DaMhcsQKntFtYnB 1+dBWaFYLD0GEfWl3RCAhiTptjg6gq0YiusIgprGi0HFOx2851ocy0FX3xae7WuqS/ed 89IgUPQtsujhvnlMzV/nwNJcdUnDyQ7uXy6pnZw51MxGTen/iof4K2N3blkitkAeyZoE 9khDqmN2DOxwZrKpMp8Dg5hq37d3r5eoE8OIubk85T/ngEImrFPy/BpUT948YmZNhfZ9 946tDcmUur+xy03c6QDgSIFTZp8g/+uJT1C3C56JdVClCR22iQH1AkRvuGjs+NG/F4AS DbRg== 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; bh=R+rJiqbMseAY0oDXLdqiRPHEvayMMhzkPPex8gF7dgU=; b=r6DL4yf53BUe3YMskoZBoFmTSlrudb3grtl9vBn7Xx5Yk/pvML/6MICKaHxFzxq0ss MYhFb2a4cFw/rJgDvwxo/4HJsxf31JhlIZk/zDaYEiWD45hkOjA/kTZ9GC06X9u9CZ+p Kjy7t9tO4ZNIwvkhDWg8+ct8wX1MRvjW7bjf+PVUXTqnWaPnDusm4smAOSuanp1aOeCz 8VoGUJzwTWb3yhKjZmgohddOFX1L1Rn/rwxy2xF4o8/dRwVI7E7CVQRXbF7z9tEVglYZ AS5vIhiMgM1+0+LuKg6aL7lOx+5/B+CoBcOQoY6/zRb0oxlFZtOA/bHFAmihMbvHUbVo jfUQ== X-Gm-Message-State: APjAAAUZUMn4lscM2TR4906VF0lVxsuUCxhwlsnsvI5P3/kka2Wu0848 VaNMgCelEUlZomvNXoyC/9rgsOgwr+s= X-Google-Smtp-Source: APXvYqycZRtZ6ywKlVhqIl1XavT+h5aoAdbNM/r1Isv8aFT4FLSgI+SBf0CB7Z37wYaGSWHsx0OiDw== X-Received: by 2002:a7b:cd93:: with SMTP id y19mr1774612wmj.113.1555662905852; Fri, 19 Apr 2019 01:35:05 -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.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:05 -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 2/6] dt-bindings: reset: hisilicon: Update compatible documentation Date: Fri, 19 Apr 2019 09:32:57 +0100 Message-Id: <1555662781-22570-3-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013507_830136_9EE91DE5 X-CRM114-Status: GOOD ( 12.49 ) 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 The reset driver now supports the ao reset controller, so update the documentation to match. Signed-off-by: Peter Griffin Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt index c25da39..ea0a6a9 100644 --- a/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt +++ b/Documentation/devicetree/bindings/reset/hisilicon,hi6220-reset.txt @@ -11,6 +11,7 @@ Required properties: - compatible: should be one of the following: - "hisilicon,hi6220-sysctrl", "syscon" : For peripheral reset controller. - "hisilicon,hi6220-mediactrl", "syscon" : For media reset controller. + - "hisilicon,hi6220-aoctrl", "syscon" : For ao reset controller. - reg: should be register base and length as documented in the datasheet - #reset-cells: 1, see below From patchwork Fri Apr 19 08:32:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908697 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 4A95B13B5 for ; Fri, 19 Apr 2019 08:35:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3B5D728D78 for ; Fri, 19 Apr 2019 08:35:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2FA6628D87; Fri, 19 Apr 2019 08:35:50 +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 D7BA528D78 for ; Fri, 19 Apr 2019 08:35:49 +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: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=pBSQUQiMaRjpJ0nQ3d9a5lPZE78iffJ/zvr1jP4cN2A=; b=YtIdWJmEKAt/BYdSfwknuB0p2+ 5ZVC7OUZN+8D4GkNjkTQi/agbnY+CQr7GmCQ9eNbuitC2FuYiMLFsKFpQHzb2Vian/rWZq/f/o8z7 LIO2CAfSm6ukUeo/I4MQdIx+q7fDRDP+lfqYPuJd1DOrEc0vUkXXazu1D77vZgL8uchCoxfEntt5E +vPnWyp0dwDMvBxZowR2xctYKhEo5iCCDUcSC6h3EhJwnrgRvuy/lYSOmiImg1a1G7e/kAaXoU+ut YiEAsdtEG7Umh+Vg/9Q8uZIbEhl16RZytNK8ihBF5GhqmGFmeQ7eBPblB04idxq8GGgZ0z+OLAmdb R2JXhGrw==; 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 1hHOzq-0007OD-M0; Fri, 19 Apr 2019 08:35:46 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hHOzE-0006bG-MY for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:09 +0000 Received: by mail-wm1-x344.google.com with SMTP id z24so5703631wmi.5 for ; Fri, 19 Apr 2019 01:35:08 -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:in-reply-to:references; bh=U+1RhXgibSnIdgZgBtIFJvFDwIprDWg0GFwO76wEX90=; b=ggTiLMIo2MMiAErRNCHRkXFT4doB1OuzZsQ3lhdY35FZ7JO88Z/8xWeE27m/Z/BcJz 8TfOXyjmmYMTJBU9qzBMD0PabNOWATKdkLUA6QE3y9jgPqHLf67+CW48qTYM/3PsSNot YHh8+I8S/K643QlO7BGUnT/iKRlc6CcfpjK+adXPACUvXYEZtNePPOYq/S9AeesFB7Uj ieWoZB3rS69TZejgh8hnIyW8ykUqdVqaXUdqpmFCdKkY0RUe7IYRc3OEQdFkfY58aBeQ 8Rg5rSUD1fXBjE0X5ecd4e3AJ9dvUi3/xyRBXqa9nSAK35ZFcD80YCHW6rIlm2045Ux8 8taA== 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; bh=U+1RhXgibSnIdgZgBtIFJvFDwIprDWg0GFwO76wEX90=; b=cOM8HqDicRGSTarvWlUtIWBRSH/CtIUFQmiMmbjZTLYVGCqaZele+ulIXD2Vl6R8Wy Gy0Y5mzmuv7EKQAgm5imYlC0CqZ0bsZsf1qVEK2y6aFpfXsFLhQ+Po9xZX7SluRU+nZ4 68h41xtHPCnRcrJEJHb6/U7o78HD29WW/aohWruJoiOZ7UfeuezRSSrKlXhpCMf9+a/D PvoznGHT/2J09QQZ8nNJSLJY2mkIkkqFgKHVucijsDtDOt+V49WmlvJ/795Hjd4P9XQT QAaDGLoaEdxxNBuUoQXohsnvOjL0gDLINe8pogP9lSzyMl7ocjy3OSIzUV7I+2VCXyzs OFWg== X-Gm-Message-State: APjAAAWOIttl4LwSsjRVIxrOZ++8FqI75pbLkibVY7LRoMBO9sED6dCt v3D3rPY5FRu9dRZqp71ERYf2CQ8DUUM= X-Google-Smtp-Source: APXvYqxGOL6NBipSMdJ5FdFtE7FShaEaFP4/LYJ8fD6dQ5oq2G5QK8hZF07N9rHyxM4oFFuBMdlMkQ== X-Received: by 2002:a1c:c910:: with SMTP id f16mr1753287wmb.47.1555662907167; Fri, 19 Apr 2019 01:35:07 -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.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:06 -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 3/6] arm64: dts: hisilicon: Add Mali-450 MP4 GPU DT entry Date: Fri, 19 Apr 2019 09:32:58 +0100 Message-Id: <1555662781-22570-4-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013508_732127_1E18913C X-CRM114-Status: GOOD ( 12.30 ) 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 hi6220 has a Mali450 MP4 so lets add it into the DT. Signed-off-by: Peter Griffin --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index aec9e37..2defc19 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -1019,6 +1019,43 @@ clock-names = "apb_pclk"; cpu = <&cpu7>; }; + + mali: gpu@f4080000 { + compatible = "hisilicon,hi6220-mali", "arm,mali-450"; + reg = <0x0 0xf4080000 0x0 0x00040000>; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + , + , + , + ; + + interrupt-names = "gp", + "gpmmu", + "pp", + "pp0", + "ppmmu0", + "pp1", + "ppmmu1", + "pp2", + "ppmmu2", + "pp3", + "ppmmu3"; + clocks = <&media_ctrl HI6220_G3D_CLK>, + <&media_ctrl HI6220_G3D_PCLK>; + clock-names = "core", "bus"; + assigned-clocks = <&media_ctrl HI6220_G3D_CLK>, + <&media_ctrl HI6220_G3D_PCLK>; + assigned-clock-rates = <500000000>, <144000000>; + reset-names = "ao_g3d", "media_g3d"; + resets = <&ao_ctrl AO_G3D>, <&media_ctrl MEDIA_G3D>; + }; }; }; From patchwork Fri Apr 19 08:32:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908699 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 9784413B5 for ; Fri, 19 Apr 2019 08:36:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 88F7E28D78 for ; Fri, 19 Apr 2019 08:36:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7D56A28D87; Fri, 19 Apr 2019 08:36:04 +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 0F53228D78 for ; Fri, 19 Apr 2019 08:36:04 +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: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=OpV0RchMD3BNBZmtqCyzOxqeuSqg/x3dAqb9dKRM8E4=; b=JYvjqiuHiXg+f4uDti7zhsnp8N 0PbTqQCtkSEdqR7EbEgcXy4roWpbNDr3m2E1q5kRUfygTIQ5J2qY++s36FYZCMpGffIL1/8KiRKeC KOE48aj22LGPIZaKKjV6g8qHpL62LBDmyPN3yUc6eG0B8gkjfO4Akpmk84NEMdf6IRGkXuZcfhgVW 7VtR7fb0VTs7knO/nsYo6jPnnGtmSRFW2VtqXKeFyxJCyYQuv5IQQUQiWeXZDbwG20r4cDfVH4qX/ ZeHhWjMLraKQHZDwHUs0hX2KujRJEh2r1LzWqT4GHlhZuNrPVd2kTOwSrALlVy8ogkLIS1yUHncqG ZWUnnK/g==; 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 1hHP02-0007d3-E6; Fri, 19 Apr 2019 08:35:58 +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 1hHOzG-0006mK-Jb for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:14 +0000 Received: by mail-wm1-x342.google.com with SMTP id z24so5703702wmi.5 for ; Fri, 19 Apr 2019 01:35:10 -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:in-reply-to:references; bh=ynOU9D+n/C593aR3+aH7h2j53IirX4AgmFGNr7usCrU=; b=byTpf8QoDgheP4OH2aYrCTOxGGLrxTH10MiS0MadOR04anYnsYV3eXcz0Z5yIL4hMc cUB8UgQcoNVUgO+CYC4mDqDAioM40IiIwGUvTWVLmzmZOr+vi0a6LMpnh3AHazSm8/BC shZvT217NUTHxY/C41qd7v80EyDpr8ENIJLNeOga9H2B+XK1lPVehRNZMF1IB//lma7l Ye8SjgV9UqExN8kwh4cifc9xHyEAeftkvfDLQ5IMH4LiKafv+fcC6Ur6nRmLa7Jxcut0 gQ0XYpGIok5VuoWE0nNo60Oc9kVhI+ilYcYNoTeYTfhVDS6KPMLx0Z87s9LzvLM4uL+0 VB2A== 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; bh=ynOU9D+n/C593aR3+aH7h2j53IirX4AgmFGNr7usCrU=; b=mOZqY0GE3iKNblSLqt6wolnKiwUMjU0lD7JJ4POQc4LLejRA8kfHiyS43hM0Bpcbv9 GkQ7DK+g1kHeQdjl65BJIscYJ7g572Fw4Hib4k209ZAfZPiIiAoHFRw3xTWZ9CPNnf2Z ym6KzTHFjyD6ujARZ3iqJaZoJRssFKan79HJbwqXKSI0rPIHOlsZ8k628NeXEGTuOBZf 3EgddNt5LuOVFLVm9zUp4LZsnSY/r7TlXn5+I6UW7HDoDdWAfBgeQNMFBoRa/ogqjcX+ ZfwHKyQ/fpUOfzqWtkBCSuBA//IlT08GEcPfTCU/qrirNsT3cLd5T+CF6QzfSjj2ViOS j1eg== X-Gm-Message-State: APjAAAXk1oBOjp9qBl4EcDefg1tYfdzi1wjze5T3XvIdz8ffneEy93d3 gHVgDsHlbjHt62a22w1Ya3RLSdKB6nc= X-Google-Smtp-Source: APXvYqwekbzTNrsULQwgq7khMJrLh4Cfn1gRnNMNgYqnDRCzpvEUs6iMH0O5C23PtZ6RMMJEoHncBA== X-Received: by 2002:a1c:f606:: with SMTP id w6mr1732536wmc.130.1555662908388; Fri, 19 Apr 2019 01:35:08 -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.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:07 -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 4/6] reset: hi6220: Add support for AO reset controller Date: Fri, 19 Apr 2019 09:32:59 +0100 Message-Id: <1555662781-22570-5-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013510_897098_3E84F1A8 X-CRM114-Status: GOOD ( 17.78 ) 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 This is required to bring Mali450 gpu out of reset. Also we now use CLK_OF_DECLARE_DRIVER to probe in both the clock and reset drivers. The clock and reset parts have been done as one atomic commit to avoid a bisection hole. Signed-off-by: Peter Griffin Cc: Stephen Boyd Acked-by: Stephen Boyd --- arch/arm64/boot/dts/hisilicon/hi6220.dtsi | 1 + drivers/clk/hisilicon/clk-hi6220.c | 3 +- drivers/reset/hisilicon/hi6220_reset.c | 65 ++++++++++++++++++++++++++++++- 3 files changed, 67 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi index 2defc19..66a3746 100644 --- a/arch/arm64/boot/dts/hisilicon/hi6220.dtsi +++ b/arch/arm64/boot/dts/hisilicon/hi6220.dtsi @@ -260,6 +260,7 @@ compatible = "hisilicon,hi6220-aoctrl", "syscon"; reg = <0x0 0xf7800000 0x0 0x2000>; #clock-cells = <1>; + #reset-cells = <1>; }; sys_ctrl: sys_ctrl@f7030000 { diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index a87809d..3dde9d3 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -89,8 +89,9 @@ static void __init hi6220_clk_ao_init(struct device_node *np) hisi_clk_register_gate_sep(hi6220_separated_gate_clks_ao, ARRAY_SIZE(hi6220_separated_gate_clks_ao), clk_data_ao); } -CLK_OF_DECLARE(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init); +/* reset driver also probes and uses these registers */ +CLK_OF_DECLARE_DRIVER(hi6220_clk_ao, "hisilicon,hi6220-aoctrl", hi6220_clk_ao_init); /* clocks in sysctrl */ static const char *mmc0_mux0_p[] __initdata = { "pll_ddr_gate", "syspll", }; diff --git a/drivers/reset/hisilicon/hi6220_reset.c b/drivers/reset/hisilicon/hi6220_reset.c index d5e5229..ccd5e0a 100644 --- a/drivers/reset/hisilicon/hi6220_reset.c +++ b/drivers/reset/hisilicon/hi6220_reset.c @@ -36,6 +36,7 @@ enum hi6220_reset_ctrl_type { PERIPHERAL, MEDIA, + AO, }; struct hi6220_reset_data { @@ -95,6 +96,61 @@ static const struct reset_control_ops hi6220_media_reset_ops = { .deassert = hi6220_media_deassert, }; +#define AO_SCTRL_SC_PW_CLKEN0 0x800 +#define AO_SCTRL_SC_PW_CLKDIS0 0x804 + +#define AO_SCTRL_SC_PW_RSTEN0 0x810 +#define AO_SCTRL_SC_PW_RSTDIS0 0x814 + +#define AO_SCTRL_SC_PW_ISOEN0 0x820 +#define AO_SCTRL_SC_PW_ISODIS0 0x824 +#define AO_MAX_INDEX 12 + +static int hi6220_ao_assert(struct reset_controller_dev *rc_dev, + unsigned long idx) +{ + struct hi6220_reset_data *data = to_reset_data(rc_dev); + struct regmap *regmap = data->regmap; + int ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_RSTEN0, BIT(idx)); + if (ret) + return ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_ISOEN0, BIT(idx)); + if (ret) + return ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_CLKDIS0, BIT(idx)); + if (ret) + return ret; +} + +static int hi6220_ao_deassert(struct reset_controller_dev *rc_dev, + unsigned long idx) +{ + struct hi6220_reset_data *data = to_reset_data(rc_dev); + struct regmap *regmap = data->regmap; + int ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_RSTDIS0, BIT(idx)); + if (ret) + return ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_ISODIS0, BIT(idx)); + if (ret) + return ret; + + ret = regmap_write(regmap, AO_SCTRL_SC_PW_CLKEN0, BIT(idx)); + if (ret) + return ret; +} + +static const struct reset_control_ops hi6220_ao_reset_ops = { + .assert = hi6220_ao_assert, + .deassert = hi6220_ao_deassert, +}; + static int hi6220_reset_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; @@ -120,9 +176,12 @@ static int hi6220_reset_probe(struct platform_device *pdev) if (type == MEDIA) { data->rc_dev.ops = &hi6220_media_reset_ops; data->rc_dev.nr_resets = MEDIA_MAX_INDEX; - } else { + } else if (type == PERIPHERAL) { data->rc_dev.ops = &hi6220_peripheral_reset_ops; data->rc_dev.nr_resets = PERIPH_MAX_INDEX; + } else { + data->rc_dev.ops = &hi6220_ao_reset_ops; + data->rc_dev.nr_resets = AO_MAX_INDEX; } return reset_controller_register(&data->rc_dev); @@ -137,6 +196,10 @@ static const struct of_device_id hi6220_reset_match[] = { .compatible = "hisilicon,hi6220-mediactrl", .data = (void *)MEDIA, }, + { + .compatible = "hisilicon,hi6220-aoctrl", + .data = (void *)AO, + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, hi6220_reset_match); From patchwork Fri Apr 19 08:33:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908701 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 E75F617EE for ; Fri, 19 Apr 2019 08:36:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8D5128D78 for ; Fri, 19 Apr 2019 08:36:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CCED028D87; Fri, 19 Apr 2019 08:36:13 +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 85E4E28D78 for ; Fri, 19 Apr 2019 08:36:13 +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: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=yIob+A+j3RTKuUcymvn4WEyy5vAq2ItFxBJbxFpzztA=; b=TomBrQ93T4GQDjsBhuBGO/dHKD 85YvEpjILOXrB3/3f0M5AHX1GMOTsOOxlckXe61xd0cpLyCLGywe2IqZMZPzrMN0oK6k2v+bCvVHR IOv11/KP0TEMreOvSsZNv9NcZFuCNL5sYO4mfe8nqX3d0KBv2lpneDGQjTS22uDN3grlW/U4znEC/ DZWRjhVfmKOlxqWSHooSC2DbW6gr03rQPEAx8dtiYb4lT/7TCMhRtPTSLdDvqI1Cktdg8zlbX/Bxl eC4y/dCKaJJ2K5rzDcENc8cFmEgsd+zaBVajTOKHnwDDRtcQQXNm0TDTWS7312MrP0mcrOr5x8IIj HAComjNw==; 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 1hHP0B-0007qt-Rh; Fri, 19 Apr 2019 08:36:07 +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 1hHOzH-0006mu-7N for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:14 +0000 Received: by mail-wm1-x342.google.com with SMTP id v14so5678948wmf.2 for ; Fri, 19 Apr 2019 01:35:11 -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:in-reply-to:references; bh=WzKNBO96cllaDZYht9HJ/bZN1iAt8AGESvlKduBe/SY=; b=LPrqSJdsTkO4xoeE7tsRT9wJQ8vByFXhhcpzha3M5PSlCR8/lBvMlCASU/cxecMkOh UmFaTRf/tnUhmnaIihVY9vMB9PcnuDpeX2Y+FPOqYNPArv4bp6D7EVdqQPRFBBa8r94+ SQIihJIa0qIUl64U38mxzRgWgStXMVg6pefv0iSnuP3UtiW7TfYeyZvMeBwwSgx39IjW EYBobw9GPsizSMd0kLOGcvl86MV4M06iYNLRnjKZ18xxGyNl2tc0RYu+q9Go6/LNKgBr MhC03aUgHHuJlBVTa83tKyZxK5cHaDI8JEISC2qUyKvF/c2OLTJa9hVM/MpNMFT8KENE Dc2g== 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; bh=WzKNBO96cllaDZYht9HJ/bZN1iAt8AGESvlKduBe/SY=; b=cGd+pv/xDtdKLZj0JnvEyv23J78Bu9emi3svFuAkO+HLCijQmhm1e8Qjes25k3G4nf gZ491CLOkNsKQ9G3zXrggs1MQ8+BBWX0cHkPkl8yE3T+S60PCAiY5ETD7LEJyjiJ2FBz 0r+q5emLJ/j30gJVqYQI6EiBqAd3ugQXUP97gUAFdbILWje2LXl1lhkr3rnKgzLbHjfX P10/oCEYIDbjjM9j7lc60zv+kUj+4ibzQkbXIZmPpUivWEL/U+eLdEYC6P0ip7z8aGpV z1UFVGL/s7vSGgBlRO64T3m6ZpF0nS+UF9259E4mwdZ22v4R4VcCbUvzymB7/vBgB4mC 5SvA== X-Gm-Message-State: APjAAAXGXIkbsKH+kDleklCAAfgT5kvadTdKQvSUb0+/b9If6HhggXIy AkhZl6P8QIesZmK/b8FZJXGudrzyTrc= X-Google-Smtp-Source: APXvYqywtRrgku0AqUVMt1yhhNoxlXj19ieN/Bb41Np801RohrxLkAt2YF/xqgf+ErRr+uw5SHwVQQ== X-Received: by 2002:a1c:4187:: with SMTP id o129mr1735083wma.57.1555662909576; Fri, 19 Apr 2019 01:35:09 -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.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:08 -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 5/6] dt-bindings: reset: hisilicon: Add ao reset controller Date: Fri, 19 Apr 2019 09:33:00 +0100 Message-Id: <1555662781-22570-6-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013511_444822_9682EE18 X-CRM114-Status: GOOD ( 10.53 ) 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 This is required to bring Mali450 gpu out of reset. Signed-off-by: Peter Griffin Reviewed-by: Rob Herring --- include/dt-bindings/reset/hisi,hi6220-resets.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/dt-bindings/reset/hisi,hi6220-resets.h b/include/dt-bindings/reset/hisi,hi6220-resets.h index e7c362a8..63aff7d 100644 --- a/include/dt-bindings/reset/hisi,hi6220-resets.h +++ b/include/dt-bindings/reset/hisi,hi6220-resets.h @@ -73,4 +73,11 @@ #define MEDIA_MMU 6 #define MEDIA_XG2RAM1 7 +#define AO_G3D 1 +#define AO_CODECISP 2 +#define AO_MCPU 4 +#define AO_BBPHARQMEM 5 +#define AO_HIFI 8 +#define AO_ACPUSCUL2C 12 + #endif /*_DT_BINDINGS_RESET_CONTROLLER_HI6220*/ From patchwork Fri Apr 19 08:33:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 10908703 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 A5D1617EE for ; Fri, 19 Apr 2019 08:36:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96DAA28D78 for ; Fri, 19 Apr 2019 08:36:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B2AB28D87; Fri, 19 Apr 2019 08:36: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_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 0310C28D78 for ; Fri, 19 Apr 2019 08:36:23 +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: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=GGkronddysxNutL+sWznwpdSZ07ZnInQGUJ/991a1Cs=; b=ibf3nXtP5M4qevWt2CkXy4SWag 8GEa2jqI2z7i0q69g6ABtvYnNUCJ2PjOMpErP2L6+pHcSaHe2KOG33Fm69gTKfGJifSoZDiu7oker EuUJ9CLEIpvB9mNoVs09lZwqe+N520GGtduHLKUnRs2N7xwZD+VYolOUqW086GTsd4PeHgDOTbgW9 36q6lHQVYF3s6oSjIvJrJSjuhkMYUus3nNTOIgRZu68PILimKz6FUSxAX+zWuX13q/YlEHs5Ow2Jw onqWDJO9uQ++jkvCCqxRd8GRIgJIqSrXRTTMNPVEwSzJguWpiL91nPvVxfoLG5f4Li7FJBw/rkBkq 14FZD3RA==; 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 1hHP0N-00085L-02; Fri, 19 Apr 2019 08:36:19 +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 1hHOzJ-0006oa-3M for linux-arm-kernel@lists.infradead.org; Fri, 19 Apr 2019 08:35:18 +0000 Received: by mail-wm1-x341.google.com with SMTP id q16so5493831wmj.3 for ; Fri, 19 Apr 2019 01:35:12 -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:in-reply-to:references; bh=Ce+xsHXl4yFXBVy1VUWq5FJ/Ala/Os2pJsWh4xCgH2Q=; b=IE8Ds0UEUpH1f+3I6uwelgIIq26MWuAaBjFXVFvqp0hUyWENlu7GgR+VSATdjFczq+ a7vz1MIpVKHX767N8pRQovw7XNRECSOx5GUUC+8Ca/lQaopQ2l258H1JlwxoabzPtM8b grZPsuCzCqTQF7t2RnZrdh8zLjlUzal5b64UHYh7ZMwl1LxFjB6ZosWOkyJKEtlp0cYD GhKmw5IPZdB2ParXTexHcEYHUyrFVQEREIvKrUg2pDiJFmMfodtZ+ViIbxGt9J0dZpYl 3/Yl22r1W6/FAQdxpWIqafuO0evAhh6vdcygaSDBnqr4LbmAW7iFzUBtA1L89XigRGW/ /i9Q== 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; bh=Ce+xsHXl4yFXBVy1VUWq5FJ/Ala/Os2pJsWh4xCgH2Q=; b=oX6ZfbPEOa04lSWS9aWvSKcenrotB787Skih7xAaBB3NzaQW2DlNPHqcjkvEguZYQy /rwPPToIxAk56xJ7HM0tRYZH0E4lAy9aBkZJ+1lq0TGSUhIdKpjjVKm3OnB6C3ebFly/ IWeZcIn7iq73liXEaHZWb7L/RE46poljV59gS74KYsd73H14GhwT/rwJv2nwZ52V8DBm GrkPrP0FeZIZPrwgD9kUMqkxYOc9wJFg85eLU/XDYpS9totqdJTMQLej5K9oOf18UD0t +qNgUQReK2/HGN7b+nZ32aT7wjO1WGsu36Ntx4tTUNBDvVOJTlPc5yRbH/V6wwaAdGrW zMrw== X-Gm-Message-State: APjAAAUwTO/pmzGw6bAKaYhL6pk2C/BbDn9ZtIZID0sfzVCijxvGFP3j x9Hklu2s8Wv+c5rmyVXKNq4j16iMTh0= X-Google-Smtp-Source: APXvYqxHCiejcT6tfcxtXdLG5uPOoyx8wHXcYqizHu+I/8l6MFuXaHqJKEsT1gnEHkdZKqtfL7vAoQ== X-Received: by 2002:a1c:185:: with SMTP id 127mr1758875wmb.145.1555662910901; Fri, 19 Apr 2019 01:35:10 -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.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Apr 2019 01:35:10 -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 6/6] drm/lima: handle shared irq case for lima_pp_bcast_irq_handler Date: Fri, 19 Apr 2019 09:33:01 +0100 Message-Id: <1555662781-22570-7-git-send-email-peter.griffin@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> References: <1555662781-22570-1-git-send-email-peter.griffin@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190419_013513_390304_899EF479 X-CRM114-Status: GOOD ( 14.19 ) 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: Rob Herring , 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 On Hikey board all lima ip blocks are shared with one irq. This patch avoids a NULL ptr deref crash on this platform on startup. Tested with Weston and kmscube. Signed-off-by: Peter Griffin Cc: Rob Herring Cc: Daniel Vetter Cc: Qiang Yu Reviewed-by: Qiang Yu --- drivers/gpu/drm/lima/lima_pp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/lima/lima_pp.c b/drivers/gpu/drm/lima/lima_pp.c index d29721e..8fef224 100644 --- a/drivers/gpu/drm/lima/lima_pp.c +++ b/drivers/gpu/drm/lima/lima_pp.c @@ -64,7 +64,13 @@ static irqreturn_t lima_pp_bcast_irq_handler(int irq, void *data) struct lima_ip *pp_bcast = data; struct lima_device *dev = pp_bcast->dev; struct lima_sched_pipe *pipe = dev->pipe + lima_pipe_pp; - struct drm_lima_m450_pp_frame *frame = pipe->current_task->frame; + struct drm_lima_m450_pp_frame *frame; + + /* for shared irq case */ + if (!pipe->current_task) + return IRQ_NONE; + + frame = pipe->current_task->frame; for (i = 0; i < frame->num_pp; i++) { struct lima_ip *ip = pipe->processor[i];