From patchwork Tue Jun 22 03:07:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12336317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0702C48BE5 for ; Tue, 22 Jun 2021 03:09:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 95CAF6115B for ; Tue, 22 Jun 2021 03:09:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 95CAF6115B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Oe0JYOjIWy/GIu7WXGmx7tevgeEMb/0pyLYw/Xxoh6k=; b=1bVzWjPUS/q42l VbAJcYWEjFoC/sK5Mgy5dQGEmT/5ffgaHlj0E8LLAl6HasrC8tlMon5RDZxEot1RB7oLXMGqDtYZB gPuylIuLQbh5UD1L/nPTQWpVCWWKVzUhn2BolJaTRYvJJouoDXslm8Ks5g38zuL4/gycuVtvFzXOp 0jYECZW0WFWifpchft8skhRc05Yw9nVEme3/VQ0QRmGbf5sEBWzX7vv4q6l1FespjYMpKcjEBH80J AVMfUGKDWECGhvldUkwtrc+tAqfZVBFZuMVhv7FJ/5OGPRNB8iDwGvTle3OvNYYEOi8vUH3KNrFTI Ei4MgIUjbZq+m2ZB8rSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvWlg-005SzZ-VO; Tue, 22 Jun 2021 03:08:05 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvWld-005Syo-4a for linux-arm-kernel@lists.infradead.org; Tue, 22 Jun 2021 03:08:02 +0000 Received: by mail-pl1-x633.google.com with SMTP id v13so9682272ple.9 for ; Mon, 21 Jun 2021 20:07:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=lkbW9hluwcztIOh5kOua513vVzY59E2u/mei+FpwsSU=; b=RkwrsYDbtUQcWzbVeDSJAQgCYy9gRaRRqozIRYV1yWbYfhv7cdakF5J3Bv2BUngsfK hFeLAZPesXvPVBLBNLFE0napPJPxpRWdvXy5QwbvejJwJkDMbYaqL24vsX5nu6api4WC +9MX/N1/6gkIAn8RNjfy/zz3PpXPQPBYS/XsM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=lkbW9hluwcztIOh5kOua513vVzY59E2u/mei+FpwsSU=; b=EUyPz+zLrfFYc6HHOmGypbYGVpV2YETeKy9h5QTuSW0eck+Fna278tagKTvpOMG5p+ QF0J5v6aOvBzDAggqY3dTz/JqSMvt6VQTJVfpkSSFouGFaIx8xxn3LQ0h3DuYCqGJR6g 4f3Tr8vPMrKe7hcTplwu9XdJiOFlc79rwoxGFld4ElK4yrSM1Eaq02lPO4I9E1s7qxxg ejEJa2urn8CbWWDTxdJnraO+NcB2XngtnvuT6ZhS7wUsniN1WfmtOWrJxHSqDEevFO81 Ci4ueR2ax4MwD0y+qJDxhYbLgSMTB+a11zvbv2gNLrnQmPFACi7ah5N7EJF7vL7End/Q p7eg== X-Gm-Message-State: AOAM530gunJ6VxMpJwb4cot/PMRUUyPfF5UIx2DZfzhsaKQ8/CNzY2RT uw9lANiVXgneWWMiZP7xUVuZ5g== X-Google-Smtp-Source: ABdhPJywluBdydO/3+koxsNDeRCsfm/8/sSu9Nh+eXDSX8Lh9XieDEU9gLyfXK1qghmIJoNiqBpV6Q== X-Received: by 2002:a17:90a:c002:: with SMTP id p2mr1501687pjt.132.1624331278548; Mon, 21 Jun 2021 20:07:58 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:aaeb:6e67:2eb9:f492]) by smtp.gmail.com with ESMTPSA id z6sm13740722pfj.117.2021.06.21.20.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 20:07:58 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , Chun-Kuang Hu , devicetree@vger.kernel.org, Enric Balletbo i Serra , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Jassi Brar Subject: [PATCH v3 RESEND 1/2] arm64: dts: mt8183: add mediatek, gce-events in mutex Date: Tue, 22 Jun 2021 11:07:41 +0800 Message-Id: <20210622030741.2120393-1-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.288.g62a8d224e6-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_200801_222281_9A4B4748 X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org mediatek,gce-events is read by mutex node. Signed-off-by: Hsin-Yi Wang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index c5e822b6b77a3..cf22d71161e58 100644 --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi @@ -1250,6 +1250,8 @@ mutex: mutex@14016000 { reg = <0 0x14016000 0 0x1000>; interrupts = ; power-domains = <&spm MT8183_POWER_DOMAIN_DISP>; + mediatek,gce-events = , + ; }; larb0: larb@14017000 { From patchwork Tue Jun 22 03:07:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 12336319 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 14FC5C2B9F4 for ; Tue, 22 Jun 2021 03:10:08 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D53FA6115B for ; Tue, 22 Jun 2021 03:10:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D53FA6115B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type: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:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kzyog1cSluvUGgW06HbvmkLqFJBSHrcL0F2PUMe6meY=; b=V1pYnJKSt1GaQP ofPL34E+VALe/HP7uenOVMzJO9OuBSxQV6FcAtiSXgn8ZUdEUKeY+i5X3FrgPZ70FVTn6vnNJPH5w bmFZ6gxroAx4gV8/aUd+sFtrgIaytDuN7KVvXTvZ7BIeqkcpHn8e2vJLGsRU9oKBuErjncowcOD7t itvdgl3lZfDgP8QHzSrAiA58psVGKuGNV6lyVmhPmNAhebndFLTnqPUL5QTPZGzKQoV9Y7N/CY90F R6Wi8WjOtRzD+THwKntxQeuDtzGZmkNU/VvUQ6KGp3oyp2hnUK0XFewdDLBd95s/kAQcwZclvcwK8 p7d3aiemAROtt+qgzuJw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvWlt-005T1a-13; Tue, 22 Jun 2021 03:08:17 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lvWlm-005T06-3m for linux-arm-kernel@lists.infradead.org; Tue, 22 Jun 2021 03:08:11 +0000 Received: by mail-pj1-x1034.google.com with SMTP id bb20so7073125pjb.3 for ; Mon, 21 Jun 2021 20:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=/axYvMfoFLDaKlVP6Tl3B1EkkhrpvpNeyDJW5bdfZhA=; b=k83nh7RiqD5V5056qN6WN5ZvDCnNY7sTi5WlZN+3QbXPNZ2g2CkqGDadYDq4XoFeNN 0Snrfbt7Y2f+NcE03wtJHCU1hBKJmETfVTuCnD13rgueHS+Ad/l0saAD3vC1wNxxSUi2 eZnVA4f4AQW/pShwvz4okalEODd2eKmF2+pMw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/axYvMfoFLDaKlVP6Tl3B1EkkhrpvpNeyDJW5bdfZhA=; b=GfKUDuLkdTHKVH+qavgpAV68YKSn6Vl4YJM7aMjUI+lR6dDwrNNTF9hPGtzq8498sU xeNfgGFhUYyyYNisnLmve4eYUJENQpSTPvAounhEoAVqst1dnMdmtu9ieE2pTx6TD00w PAxsVHgqrKLbbQIsTUa6PkPw6OtH/W1tEOfzQ3/jJEtfoOMm1J2e204jxIBibv0ThdBi HMCmG1xRd03j/9hQZWmm/h5FT71v0dqq2zDOKuYXTR+wnwFX+6U3jJtWxfMAqgsPx67o Dnd88D6dZcJEfpkK+CKDSJYgBie8aseZ0hcjg2PwMn+XQRRqSrvsb2hyg7G8FP9vZbl2 pizA== X-Gm-Message-State: AOAM533cf/bcpFXVoK9aavHt5HwKfHacEH7sisUhtMzdP6lOk+Kl5ADo sWRSOPmePe4NLU9slHIaGBS1cw== X-Google-Smtp-Source: ABdhPJwzlzyWf3yKiyhlNbzn0nwaQRXwZEnBSa4r9G4IGQMWgp7yjmz4s5T6yEUp3O4J48EBirki1w== X-Received: by 2002:a17:90b:3d0:: with SMTP id go16mr1368208pjb.236.1624331289347; Mon, 21 Jun 2021 20:08:09 -0700 (PDT) Received: from hsinyi-z840.tpe.corp.google.com ([2401:fa00:1:10:aaeb:6e67:2eb9:f492]) by smtp.gmail.com with ESMTPSA id z6sm13740722pfj.117.2021.06.21.20.08.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Jun 2021 20:08:08 -0700 (PDT) From: Hsin-Yi Wang To: Matthias Brugger , Rob Herring , Chun-Kuang Hu , devicetree@vger.kernel.org, Enric Balletbo i Serra , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Jassi Brar Subject: [PATCH v3 RESEND 2/2] dt-bindings: mediatek: Add optional mediatek, gce-events property Date: Tue, 22 Jun 2021 11:07:43 +0800 Message-Id: <20210622030741.2120393-2-hsinyi@chromium.org> X-Mailer: git-send-email 2.32.0.288.g62a8d224e6-goog In-Reply-To: <20210622030741.2120393-1-hsinyi@chromium.org> References: <20210622030741.2120393-1-hsinyi@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210621_200810_191097_1DA9A6AB X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This property is used by gce clients. Signed-off-by: Hsin-Yi Wang Acked-by: Rob Herring --- .../devicetree/bindings/mailbox/mtk-gce.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt index 7771ecaac5868..2ef7ff67cb2b0 100644 --- a/Documentation/devicetree/bindings/mailbox/mtk-gce.txt +++ b/Documentation/devicetree/bindings/mailbox/mtk-gce.txt @@ -35,6 +35,10 @@ Optional properties for a client device: start_offset: the start offset of register address that GCE can access. size: the total size of register address that GCE can access. +Optional properties for a client mutex node: +- mediatek,gce-events: GCE events used by clients. The event numbers are + defined in 'dt-bindings/gce/-gce.h'. + Some vaules of properties are defined in 'dt-bindings/gce/mt8173-gce.h', 'dt-binding/gce/mt8183-gce.h' or 'dt-bindings/gce/mt6779-gce.h'. Such as sub-system ids, thread priority, event ids. @@ -62,3 +66,14 @@ Example for a client device: <&gce SUBSYS_1401XXXX 0x2000 0x100>; ... }; + +Example for a client mutex node: + mutex: mutex@14020000 { + compatible = "mediatek,mt8173-disp-mutex"; + reg = <0 0x14020000 0 0x1000>; + interrupts = ; + power-domains = <&scpsys MT8173_POWER_DOMAIN_MM>; + clocks = <&mmsys CLK_MM_MUTEX_32K>; + mediatek,gce-events = , + ; + };