From patchwork Fri Apr 12 07:18:45 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: 10897319 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 55E9317E0 for ; Fri, 12 Apr 2019 07:19:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2573928D7F for ; Fri, 12 Apr 2019 07:19:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 173D128E50; Fri, 12 Apr 2019 07:19:31 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22B0228D7F for ; Fri, 12 Apr 2019 07:19:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727025AbfDLHTZ (ORCPT ); Fri, 12 Apr 2019 03:19:25 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:36759 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbfDLHTY (ORCPT ); Fri, 12 Apr 2019 03:19:24 -0400 Received: by mail-pg1-f195.google.com with SMTP id 85so4765085pgc.3 for ; Fri, 12 Apr 2019 00:19:24 -0700 (PDT) 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=CdjtSJDgHKJru6yUdFHRXvszC0gLu6QOE1jwOSiM3wo=; b=k3ar99EgtK0dqas/r9PN3Rr3t76D9gBsDKkAodBiVTEwsoi7XeDIMGzwfQq/6KA28R Bcqil7x3kileoFA5ha1N9tAhZLfA2XwRweyPw6m1IW2mrEV/i/ud3+wjk4OHHy4yjQ3j JGcbk3pFh1TYHXWxKKzEhPM6ht4wVXuDxOIGE= 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=CdjtSJDgHKJru6yUdFHRXvszC0gLu6QOE1jwOSiM3wo=; b=EF4b78n1TGXhgksUFVPYoC/rNfe68gHP//CBi6NOY2JVFobklZcVTpm3z4a08Z4z9c pvV1W+N8FUNZxxCjgyJqz0bHdauumnPMy00CK/3m1vsGXAAp7O3ACzcZIJkxe/eR+Zav pp8keS8nMaIVo1YIsoUXyP+yA5vyjywDfAbNHZIup8ECgLFSUEDDGRQgRvci8dxOzD/M R/JkfpNtmCXjlQKq4TXJiyvugca4lblOhbi1p55YS0zMu7iNDsBwoM8//f+RamkRmeFt mBhex54Fk43Xw8vVgr9LtlOejkad1TdIhw/dddCguFNOifimhw914h1gehTcS0hnbsUM kPzA== X-Gm-Message-State: APjAAAVwgQb7+qYzBnHwdWB7I6FUnvcyajfZgUV4TD9+V64gI+qYyu68 R6HjEM3K0Mlk4oVsuyYytpW8gQ== X-Google-Smtp-Source: APXvYqxP05gur/nI+G/dnr2eF92/8BJsDmSRYeo90ro2iYEHKz6691iRSzkpJvaIIMPYa1GHHjs8sA== X-Received: by 2002:a65:5343:: with SMTP id w3mr51446957pgr.232.1555053563699; Fri, 12 Apr 2019 00:19:23 -0700 (PDT) Received: from pihsun-z840.tpe.corp.google.com ([2401:fa00:1:10:7889:7a43:f899:134c]) by smtp.googlemail.com with ESMTPSA id k124sm67466862pgc.65.2019.04.12.00.19.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Apr 2019 00:19:23 -0700 (PDT) From: Pi-Hsun Shih Cc: Pi-Hsun Shih , Erin Lo , Rob Herring , Ohad Ben-Cohen , Bjorn Andersson , Rob Herring , Mark Rutland , Matthias Brugger , linux-remoteproc@vger.kernel.org (open list:REMOTE PROCESSOR (REMOTEPROC) SUBSYSTEM), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-mediatek@lists.infradead.org (moderated list:ARM/Mediatek SoC support), linux-kernel@vger.kernel.org (open list) Subject: [PATCH v8 1/7] dt-bindings: Add a binding for Mediatek SCP Date: Fri, 12 Apr 2019 15:18:45 +0800 Message-Id: <20190412071851.60332-2-pihsun@chromium.org> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e-goog In-Reply-To: <20190412071851.60332-1-pihsun@chromium.org> References: <20190412071851.60332-1-pihsun@chromium.org> MIME-Version: 1.0 To: unlisted-recipients:; (no To-header on input) Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.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 Signed-off-by: Pi-Hsun Shih Reviewed-by: Rob Herring --- Changes from v7: - No change. Changes from v6: - No change. Changes from v5: - Remove dependency on CONFIG_RPMSG_MTK_SCP. 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 | 36 +++++++++++++++++++ 1 file changed, 36 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 000000000000..3ba668bab14b --- /dev/null +++ b/Documentation/devicetree/bindings/remoteproc/mtk,scp.txt @@ -0,0 +1,36 @@ +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 +-------- + +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"; + };