From patchwork Thu Feb 21 08:47:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pi-Hsun Shih X-Patchwork-Id: 10823283 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 D8ECF1575 for ; Thu, 21 Feb 2019 08:48:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C59CF2F7C8 for ; Thu, 21 Feb 2019 08:48:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B886A2FFB0; Thu, 21 Feb 2019 08:48: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=unavailable 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 667292F7C8 for ; Thu, 21 Feb 2019 08:48:50 +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:Cc: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:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vajknrDzNbabDTFKM6bEfbzZX2GfAw99xjkUmQxbKqA=; b=AzaZIVcSjw31vD RvFDA2UgPn2wuQvrfVudNKCsdwCRGZhEHfWQ8J9egQh1hK528JFD7WqrxEfwB1joDkULYGOOHLR99 lB/azc7YdRQnxvdzs2yz4jCbyfuJXxQKMJiB967tyGipdOzjRL+6WJH9Xvz7ZboD0ac6seIPuJbxQ ZkJXaLcQBoDN3Ta7Ve5fi09VHmisQ1pwUcfqlS2eIbmo56RHXvTRIPgo5F3xYYNz+jXw0mg03Bi85 vNnom4ojEHZxqxgRe57Fd+/XfLjpcAkodPQgdRQLHzZ7ptCMJhzH2EuliUtkqkm9PbJKasy1OwL5I JZqTPDZGwBEaGfwdgs0g==; 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 1gwk2C-0006io-Um; Thu, 21 Feb 2019 08:48:48 +0000 Received: from mail-pf1-x441.google.com ([2607:f8b0:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gwk1z-0006Rk-RZ for linux-arm-kernel@lists.infradead.org; Thu, 21 Feb 2019 08:48:38 +0000 Received: by mail-pf1-x441.google.com with SMTP id n125so6138580pfn.5 for ; Thu, 21 Feb 2019 00:48:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q5iBvG4HqidiXxiGis5rvY71e0EFMSebp/Zntf2KFIo=; b=Oa/WRdXX+4W1q0fB/rVIGahugIrASieUZcaKxUUf1E/5TbKb9lwC4zhBD5NDipC8SK 8HW8jRhnxT1cc0AeeKkw1KqJ8EL0NBva/AIJSK7fxVbCbNszg0SOwO87B/bviWxGCjLJ PIzTnoYtieukZcNJ3kWdbXX9PdzM5zGHUdmzE= 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:mime-version:content-transfer-encoding; bh=q5iBvG4HqidiXxiGis5rvY71e0EFMSebp/Zntf2KFIo=; b=DD9OtnPaaSIGlOsXHG7U1p9H4GGinK8I4ike87fRW4LoIxwKz2OG1vRP3XaGfuMDxE UxJg3p0jF2MevfQeX4npht/rvvO0foUaXPk4raoA+TS7IdXv4YXM1WAkL10bhkwSoEgh 131cMio7cZBEJtqRnkx5gsVGWmEZvW9ELmTGSJyYZvo3AZmRVRgkc+yIjm5zu0zRIB+q xTGEQ1LO/B9MWL4Ooxgnqgap8LKrfW2jDm2wntyYiSqNl1rQnHyGK2KyT6LiFDRbLteZ mD5dD5BbFdt345UxhrPXCn7Yi7S7CSyXHdxti3q4h1DOO6R4T/lrzpd4V8T0pFoDH1an Zttw== X-Gm-Message-State: AHQUAuasCDJB7tagn+NatTVd+1jQKNhXfbiyNiOjUnRmjnR2cnjql0nn Qg1Nl2KkqJ8TwoF+VWOn9cvf1w== X-Google-Smtp-Source: AHgI3Ia0m4hNRUVYGFbaW9a96CjS9AFRocoWSC9WAqTfUc7xQXwvjOlNc9NUoEvU2OUAMpF7uflabw== X-Received: by 2002:a63:d104:: with SMTP id k4mr32626620pgg.227.1550738915080; Thu, 21 Feb 2019 00:48:35 -0800 (PST) Received: from pihsun-z840.tpe.corp.google.com ([2401:fa00:1:10:7889:7a43:f899:134c]) by smtp.googlemail.com with ESMTPSA id b4sm23154027pgq.57.2019.02.21.00.48.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 00:48:34 -0800 (PST) From: Pi-Hsun Shih To: Subject: [PATCH v5 1/6] dt-bindings: Add a binding for Mediatek SCP Date: Thu, 21 Feb 2019 16:47:24 +0800 Message-Id: <20190221084729.101784-2-pihsun@chromium.org> X-Mailer: git-send-email 2.21.0.rc0.258.g878e2cd30e-goog In-Reply-To: <20190221084729.101784-1-pihsun@chromium.org> References: <20190221084729.101784-1-pihsun@chromium.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190221_004836_108897_1A25CC7C X-CRM114-Status: GOOD ( 16.40 ) 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: Ohad Ben-Cohen , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Erin Lo , "open list:REMOTE PROCESSOR REMOTEPROC SUBSYSTEM" , open list , Bjorn Andersson , Rob Herring , "moderated list:ARM/Mediatek SoC support" , Pi-Hsun Shih , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" 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 From: Erin Lo Add a DT binding documentation of SCP for the MT8183 SoC from Mediatek. Signed-off-by: Erin Lo --- Changes from v4: - Add detail of more properties. - Document the usage of mtk,rpmsg-name in subnode from the new design. Changes from v3: - No change. Changes from v2: - No change. I realized that for this patch series, there's no need to add anything under the mt8183-scp node (neither the mt8183-rpmsg or the cros-ec-rpmsg) for them to work, since mt8183-rpmsg is added directly as a rproc_subdev by code, and cros-ec-rpmsg is dynamically created by SCP name service. Changes from v1: - No change. --- .../bindings/remoteproc/mtk,scp.txt | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,scp.txt diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,scp.txt b/Documentation/devicetree/bindings/remoteproc/mtk,scp.txt new file mode 100644 index 00000000000000..8cf8b0e0d98a4c --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.txt @@ -0,0 +1,37 @@ +Mediatek SCP Bindings +---------------------------------------- + +This binding provides support for ARM Cortex M4 Co-processor found on some +Mediatek SoCs. + +Required properties: +- compatible Should be "mediatek,mt8183-scp" +- reg Should contain the address ranges for the two memory + regions, SRAM and CFG. +- reg-names Contains the corresponding names for the two memory + regions. These should be named "sram" & "cfg". +- clocks Clock for co-processor (See: ../clock/clock-bindings.txt) +- clock-names Contains the corresponding name for the clock. This + should be named "main". + +Subnodes +-------- + +When CONFIG_RPMSG_MTK_SCP is enabled, subnodes of the SCP represent rpmsg +devices. The names of the devices are not important. The properties of these +nodes are defined by the individual bindings for the rpmsg devices - but must +contain the following property: + +- mtk,rpmsg-name Contains the name for the rpmsg device. Used to match + the subnode to rpmsg device announced by SCP. + +Example: + + scp: scp@10500000 { + compatible = "mediatek,mt8183-scp"; + reg = <0 0x10500000 0 0x80000>, + <0 0x105c0000 0 0x5000>; + reg-names = "sram", "cfg"; + clocks = <&infracfg CLK_INFRA_SCPSYS>; + clock-names = "main"; + };