From mboxrd@z Thu Jan 1 00:00:00 1970 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=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 9F31EC4727C for ; Tue, 29 Sep 2020 17:31:45 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 11F2E2075F for ; Tue, 29 Sep 2020 17:31:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="vShRrJ6Y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="aeynrkEn" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11F2E2075F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.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=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=Qo4ULdi8rX/1uOMFjA8jh7L6tFCX6V4bqFstEif6rX0=; b=vShRrJ6Y9wn59UdTBlxdGGkla nKifMFmSCU4CaoKlrjEMrtR5+54zVfo+6EW0/eyKy37MmuA9oNVo+IrZr/VnYLoqmoTY2EiV3XvqV evG7MTj/ty/kRGQwFbXZvIhXUOiwL9IV+0+auS7tIMiSgaFdLXjVA9t4cAK45mc19zgClEp2krYHK OyMxk2IhX3hCqzFb/pHjL1DN3a5TMKYymTzFShH7gqYL/4w6Ya4bnUdmkqhckaxXPju4H3SKDt5Zh Bxz5tCmDeyz0lbQCEIrDdWUHemd8fD0DXu0/7hrTbITdcW2VSQ9j3+GRBrinZNW8VJFZXBUt24gjJ 3YQWOOz7Q==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNJS9-00024y-MY; Tue, 29 Sep 2020 17:30:13 +0000 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNJS5-00023j-Oz for linux-arm-kernel@lists.infradead.org; Tue, 29 Sep 2020 17:30:11 +0000 Received: by mail-pg1-x544.google.com with SMTP id 34so4384892pgo.13 for ; Tue, 29 Sep 2020 10:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=fFztEzSJ2rV1rMZN9OkJojf3DIgVoZo3w4SHkm4pQyk=; b=aeynrkEnHlUKQBiPgnMNPHfg0Nz/g4+4y8462gVE1P3bPzk3sGsp1nXqWgmTcx537r K7NYa5MGpJxLWQ/ElST1A5ZqgN+GdxSQwLJiXt3UDJIVJdAR/ChP3fkVCrpIRP+IdFXy 8Yjieyth0CDInMoo2PGaIxgNGd8tsKCbAjF6QurEsgKr5SrrhLO5GkOZgn/9ePtPy+Q4 /FAckVwJnbOUDfuknKlAEctofIK3BQaIJOd8FlKw0yn2dIZi0km/l7eBAEuvVvGSyBg7 FeCjLtaeZjT2Zy52Sjl4EUXfOEO1I6G6g0x3Wkq7HI+szuz9JNYZsByWB7AwNGc+Qz8Q hmyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=fFztEzSJ2rV1rMZN9OkJojf3DIgVoZo3w4SHkm4pQyk=; b=X9dkfiTjWRNay+cL4rL84Jilq6o7WG+kp07ds/FdpiZlPrLMqPOfVswEQWE4CwDMxb Tk7gSwQfzfs3c5PV1dNZE1BTwPvBxZnX8mT3DaCWAKCG5ZZqFLeUn8NtRHAI6LEzV71o iQeUALJxYE7yF8hCtR0tBZ3U99n1fMEYdK1QlN1A9bLz8hm2qHdqRPSKEXTTYmb8GDHA QMGMSwRnglFLyTmyQAaQc/QA38uy6846TrTMOikp+R4CzX9alXq9/hMzcFjOQmixBYFQ Zh/fdIEr6jUwhlsrdw4fw+DoHREPynfoMicToVebJJTKx9pX55rjED1TMmvsfsWC+Xf6 /SHw== X-Gm-Message-State: AOAM531YT5RRXZhcOeuoTz9KhuFteu0cipCUwjmXIkq5MX66AsdGHQiC xRBTzqyf8Ytg2MdvHWHwr3U/3g== X-Google-Smtp-Source: ABdhPJwYRq0qr3kl6y4PgVWlwBb8KVS0Fu4JKWsnWScQjJaKTexwp1yZHfnEDT2p1jBCWeNI6lFv2A== X-Received: by 2002:a62:26c1:0:b029:142:2501:35ef with SMTP id m184-20020a6226c10000b0290142250135efmr4783468pfm.79.1601400606139; Tue, 29 Sep 2020 10:30:06 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id n72sm6976829pfd.27.2020.09.29.10.30.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 10:30:05 -0700 (PDT) Date: Tue, 29 Sep 2020 11:30:03 -0600 From: Mathieu Poirier To: Alexandre Bailon Subject: Re: [PATCH v2 1/4] dt bindings: remoteproc: Add bindings for MT8183 APU Message-ID: <20200929173003.GA124290@xps15> References: <20200910130148.8734-1-abailon@baylibre.com> <20200910130148.8734-2-abailon@baylibre.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20200910130148.8734-2-abailon@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200929_133010_073488_5341CF09 X-CRM114-Status: GOOD ( 20.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ohad@wizery.com, devicetree@vger.kernel.org, stephane.leprovost@mediatek.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, gpain@baylibre.com, robh+dt@kernel.org, linux-mediatek@lists.infradead.org, matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Sep 10, 2020 at 03:01:45PM +0200, Alexandre Bailon wrote: > This adds dt bindings for the APU present in the MT8183. > > Signed-off-by: Alexandre Bailon > --- > .../bindings/remoteproc/mtk,apu.yaml | 107 ++++++++++++++++++ > 1 file changed, 107 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml > > diff --git a/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml > new file mode 100644 > index 000000000000..7a71d2f5c4e6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/mtk,apu.yaml > @@ -0,0 +1,107 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > + > +--- > +$id: "http://devicetree.org/schemas/remoteproc/mtk,apu.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: MT8183 AI Processor Unit (APU) a.k.a. Vision Processor Unit (VPU) > + > +description: > + This document defines the binding for the APU, a co-processor that could > + offload the CPU for machine learning and neural network. > + > +maintainers: > + - Alexandre Bailon > + > +properties: > + compatible: > + const: mediatek,mt8183-apu > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + description: > + Three clocks are expected for AXI, IPU and JTAG. > + The JTAG clock seems to be required to run the DSP, > + even when JTAG is not in use." > + maxItems: 3 > + > + clock-names: > + items: > + - const: axi > + - const: ipu > + - const: jtag > + > + iommus: > + maxItems: 3 > + > + memory-region: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > + pinctrl: > + description: pinctrl handles, required to configure pins for JTAG. > + > + pinctrl-names: > + items: > + - const: jtag > + maxItems: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - iommus > + - memory-region > + - power-domains > + > +additionalProperties: false > + What about the pintctrl for the JTAG part? > +examples: > + - | > + #include > + #include > + #include > + #include > + > + reserved-memory { > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + > + apu_ram: apu_ram@0x60000000 { > + compatible = "shared-dma-pool"; > + reg = <0x60000000 0x040000000>; > + no-map; > + linux,cma-default; > + }; > + }; > + > + apu0: apu@19100000 { > + compatible = "mediatek,mt8183-apu"; > + reg = <0x19180000 0x14000>; > + interrupts = ; > + > + iommus = <&iommu M4U_PORT_IMG_IPUO>, > + <&iommu M4U_PORT_IMG_IPU3O>, > + <&iommu M4U_PORT_IMG_IPUI>; > + > + clocks = <&ipu_core0 CLK_IPU_CORE0_AXI>, > + <&ipu_core0 CLK_IPU_CORE0_IPU>, > + <&ipu_core0 CLK_IPU_CORE0_JTAG>; > + > + clock-names = "axi", "ipu", "jtag"; > + > + power-domains = <&scpsys MT8183_POWER_DOMAIN_VPU_CORE0>; > + memory-region = <&apu_ram>; > + }; > +... > -- > 2.26.2 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel