Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3966456pxk; Tue, 29 Sep 2020 10:31:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMZPRUmfHAQw9NftXbx6cxSv4gRoNdq3JBpohQjGliXSeGoXKnAc6TJRqMwux96sp9HlBt X-Received: by 2002:a17:906:c957:: with SMTP id fw23mr4156081ejb.510.1601400701484; Tue, 29 Sep 2020 10:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601400701; cv=none; d=google.com; s=arc-20160816; b=TsAidyS9z/yvjF0m/uu+IxwFFkK12n+8dc77/XwSP0RTb02XfyTa3oUcTkDtqrHWiE Rczy1taYMEstoUcYxmY3jtUNTBccqTHAXKxLBbwOhAsvCLtNoJH3c+soZlHAKFoFJyiv aCeo3F+qy5e6L8fD9yOfB+REoACTtOuDhDUGTyuz/6PPEfEH9qzxI07sy6g6ywNwlcfY 8ef+aOUrcuspfyPkdFeS4ZHvKLbszvQFYTiYpwu7EDMwc0WPzOChUZjyba4wVdkNs2G6 IlQAtWucp8d6oW9Iv/15S28SRG4HzQyfm7qCBUUOxeIqCnDQzU3Z+Ob8s0VNlArZOQrL eunA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=fFztEzSJ2rV1rMZN9OkJojf3DIgVoZo3w4SHkm4pQyk=; b=z1qJmr5suFafBkoUNEoDWIR1xVw/MfDD8UrGbFQKs+lne7CfjkfaP8jdhqhackl1jO dt0lYmKa0Pc1yBp4WHyT9v0UDPr07g9s+8tYLz1Q4mGCK2kbc1JhQ6jZGm1aZsIC3OeE fZk3rz0tNif/QX7oPzHFoZ3SBHr+d8hIX3MSKwqK0jNev1lrE97aj2p43Ik4a+H2lA3n cG1vmPHw0l0pRXkv3EULommpTzAb1yURiQXmCwPQW1RoEfVApzEEEwkEfD2im9xsPkl9 /YM2PZuaOTo9kbgVkzGjjPQgN4LlfnpCWgiKvlXLRX6utbs+o6twPeZek1sxj1xBZmvc AVEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aeynrkEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n19si1390170edr.130.2020.09.29.10.31.17; Tue, 29 Sep 2020 10:31:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=aeynrkEn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728501AbgI2RaM (ORCPT + 99 others); Tue, 29 Sep 2020 13:30:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727328AbgI2RaM (ORCPT ); Tue, 29 Sep 2020 13:30:12 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C30A9C061755 for ; Tue, 29 Sep 2020 10:30:06 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id 5so4420122pgf.5 for ; Tue, 29 Sep 2020 10:30:06 -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=PW2W+c2fMyVp4PRuKvLWOxAQ/BwOjBtAHUaVzBVyNlXx+GdIk8Tivf5AYIXh/dib1Y GHMcl4iTmuZjHuWyuenn/CZSCgmws8b7wSUCM272ePbI7AlP+00c+vp3Vt1VQSfi8BV2 ksK3dFHLdJKE+GeDxQjI53KakTcLX0mRf9KS8h5HwJ8AHegP0Rn0zNRQj/wG50uSvTAN jm05TGP/VQcYNigW1Ul4MtwDzupwtRWnhTkw3aHIa30VxD5o9IZxUIAoOzbfSgPQwMTH m9lzxVVmvR63BgkNQFJfZVZFQTblE8yssjgTHPYzmDBLA6NLtk3rf7gu8mDxZWh94sbJ nRkg== X-Gm-Message-State: AOAM532+zftnPOqcr9VHfTA07NTLvpLqLFHU4wDEj+SLnTnMuh1Jicvg gGiKtEQe2kc8/La5exPAdwqgRg== 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 Cc: ohad@wizery.com, bjorn.andersson@linaro.org, robh+dt@kernel.org, matthias.bgg@gmail.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, stephane.leprovost@mediatek.com, gpain@baylibre.com 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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200910130148.8734-2-abailon@baylibre.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 >