Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp195561pxf; Wed, 17 Mar 2021 19:57:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkBngalpSuT9gl6EF8wKR9rNruVC3PSun2zUJ5yHfmGEUzAQ98qyuMpZq7fNG50VJw89w1 X-Received: by 2002:a05:6402:48c:: with SMTP id k12mr897013edv.237.1616036256311; Wed, 17 Mar 2021 19:57:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616036256; cv=none; d=google.com; s=arc-20160816; b=fHP4nWoK7TUO2wa91kWtyXVzuP0a727gRhdWW9Vwc9JMLl/7UJEqkIgwfTS7qGcQaG WOEg4D7JNIGkfFJWs7JZ3noH+AC7Ol+OtDTB5C7LZz088hJoR8u3RSQ5Isw+JtIxvMU8 hvZSMpSY1dWKPNNUmBQ1qft/7Zup4QNOB49VDsBYSQQFC0z4anQktgwlY6ZVObvJ0RqB gUptCtBc2QN37ZRsbkZcMxhAtoCqASNqnBwtvg+Fwa4qNlC5Wt4gJ33mRl22r0K9FaBM rRSBqUwA7xLgrPNigglF23ntmpzhZdXSjGJdpl81c7XpPyyMLdoIXJTbP2O36EMM6jxK nLzw== 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=27W1NAaEDoiN1XjCrbRbIY3sRWmvahk+Y7TUd1HZpNk=; b=teNWHHJ+c4TSOHarhWc8HT/7D9p7s1P8fX/pmqh7EVyOPoTP34Uj4fyXYCTxw1L+u3 LB9erLOXV2W2iHaNrFIn0LDamBMvrxrMXgTgFM9BWBs0LbRpbm9MTejz8JRSajV1h5OW SnBCD36RwmXmZCHo44jjWCqSav7frHzWps9GVTg0zZZKQalJJKL95Ha7U46/ox2FL1P4 vkV+3UQFCB9Qx7SrWsRbl2gqICFYB2girNNcYVv/4KptXuDnUo34Ehzicn9V9Y2/+yS+ vpGXjs+MqkL+ID2tXWhpSaSr8U1gCSjISad+pzc2Z61/6m8pYtiM25Zn1Xw4yVXLnc0H oNZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NNT30YpU; 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 h1si642728ejf.242.2021.03.17.19.57.13; Wed, 17 Mar 2021 19:57:36 -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=NNT30YpU; 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 S230341AbhCRC4O (ORCPT + 99 others); Wed, 17 Mar 2021 22:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbhCRCz7 (ORCPT ); Wed, 17 Mar 2021 22:55:59 -0400 Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9629DC06175F for ; Wed, 17 Mar 2021 19:55:59 -0700 (PDT) Received: by mail-ot1-x32c.google.com with SMTP id h6-20020a0568300346b02901b71a850ab4so3864169ote.6 for ; Wed, 17 Mar 2021 19:55:59 -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=27W1NAaEDoiN1XjCrbRbIY3sRWmvahk+Y7TUd1HZpNk=; b=NNT30YpUOjnTtIIgfpPaaNb1NMWqPi9HZGoaMjkSlCPov7l+5HMwI8MrMlLHCsm+Lk vLbpD1HexvGx38mf30KvE8L+mYXcCXiN4RqIaytz9B2dqg0GjdofqlkCWrZnhaqWqzyV GrHhWdJpO7P8QlolwKGMCziDVySsJrOBikmTs8tTzWL6/ibmap79OuxlVUp6pAb/IlUU 6CXY/JltgtoMigly3rllHeZVza0XWr/zyE0Vbnh9bdm6ah5TLYLMCupumLa92xCeKy6R DPZ5f4SZqxPt4qiHYsisFA+mrYsYEIKXtW84qLgabMrqlDb46NASckOEFwfF24F8Enfp hi+w== 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=27W1NAaEDoiN1XjCrbRbIY3sRWmvahk+Y7TUd1HZpNk=; b=TJqKsLZIM2IabUVl5K4ap/XJ47Yssw3bxOnEPqMwaQUelia00D5jM2s5aojThE0Kqb xcmJT/Kz8ina+HWrCzGz95lSiN6Blv7yWahsoonU7IhZA95w3R/slmybo9oYwTyJo7Mw /uz+TmcgwoY75IPubMe641JXx15v/WF+Gqge2/8G44DFDVtTsCsK5XBflnvmT3c52dLG 3Z0BuLPpA5+FS8f5d9v6SxK1Wsw3vd1hzoe0+ssAk/8AsTFPfviKYnmtlUHfxXPksowP yhoO3pBgoNUl6mjPbpVTb7c1riaGvH2g16QYZQ8lznJOKmtZShUyi44cxugNwbmdSYul VTJA== X-Gm-Message-State: AOAM532wu9wXcrute2GZiX/MZDI8hfHfU54v7oI6u+eZuvtgj5JT5mUb hy9getN2Cmluew8pU0SGhB6B5A== X-Received: by 2002:a9d:2f24:: with SMTP id h33mr6029369otb.128.1616036158912; Wed, 17 Mar 2021 19:55:58 -0700 (PDT) Received: from builder.lan (104-57-184-186.lightspeed.austtx.sbcglobal.net. [104.57.184.186]) by smtp.gmail.com with ESMTPSA id g13sm181622otq.3.2021.03.17.19.55.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 19:55:58 -0700 (PDT) Date: Wed, 17 Mar 2021 21:55:56 -0500 From: Bjorn Andersson To: Martin Blumenstingl Cc: linux-remoteproc@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, ohad@wizery.com, robh+dt@kernel.org Subject: Re: [PATCH 3/5] dt-bindings: remoteproc: Add the documentation for Meson AO ARC rproc Message-ID: References: <20201230012724.1326156-1-martin.blumenstingl@googlemail.com> <20201230012724.1326156-4-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201230012724.1326156-4-martin.blumenstingl@googlemail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 29 Dec 19:27 CST 2020, Martin Blumenstingl wrote: > Amlogic Meson6, Meson8, Meson8b and Meson8m2 SoCs embed an ARC EM4 > controller for always-on operations, typically used for managing system > suspend. > > Signed-off-by: Martin Blumenstingl > --- > .../remoteproc/amlogic,meson-mx-ao-arc.yaml | 87 +++++++++++++++++++ > 1 file changed, 87 insertions(+) > create mode 100644 Documentation/devicetree/bindings/remoteproc/amlogic,meson-mx-ao-arc.yaml > > diff --git a/Documentation/devicetree/bindings/remoteproc/amlogic,meson-mx-ao-arc.yaml b/Documentation/devicetree/bindings/remoteproc/amlogic,meson-mx-ao-arc.yaml > new file mode 100644 > index 000000000000..ba5deebaf7dc > --- /dev/null > +++ b/Documentation/devicetree/bindings/remoteproc/amlogic,meson-mx-ao-arc.yaml > @@ -0,0 +1,87 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/remoteproc/amlogic,meson-mx-ao-arc.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Amlogic Meson AO ARC Remote Processor bindings > + > +description: > + Amlogic Meson6, Meson8, Meson8b and Meson8m2 SoCs embed an ARC core > + controller for always-on operations, typically used for managing > + system suspend. Meson6 and older use a ARC core based on the ARCv1 > + ISA, while Meson8, Meson8b and Meson8m2 use an ARC EM4 (ARCv2 ISA) > + core. > + > +maintainers: > + - Martin Blumenstingl > + > +properties: > + compatible: > + items: > + - enum: > + - amlogic,meson8-ao-arc > + - amlogic,meson8b-ao-arc > + - const: amlogic,meson-mx-ao-arc > + > + firmware-name: > + $ref: /schemas/types.yaml#/definitions/string > + description: > + The name of the firmware which should be loaded for this remote > + processor. > + > + reg: > + description: > + Address ranges of the remap and CPU control addresses for the > + remote processor. > + minItems: 2 > + > + reg-names: > + items: > + - const: remap > + - const: cpu > + > + resets: > + minItems: 1 > + > + clocks: > + minItems: 1 > + > + sram: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + phandles to a reserved SRAM region which is used as the memory of > + the ARC core. The region should be defined as child nodes of the > + AHB SRAM node as per the generic bindings in > + Documentation/devicetree/bindings/sram/sram.yaml > + > + amlogic,secbus2: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + A phandle to the SECBUS2 region which contains some configuration > + bits of this remote processor > + > +required: > + - compatible > + - reg > + - reg-names > + - resets > + - clocks > + - sram > + - amlogic,secbus2 > + > +additionalProperties: false > + > +examples: > + - | > + remoteproc@1c { > + compatible= "amlogic,meson8-ao-arc", "amlogic,meson-mx-ao-arc"; > + reg = <0x1c 0x8>, <0x38 0x8>; I'm generally not in favor of mapping "individual" registers, do you know what hardware block this is part of? Can you express the whole block as an single entity in your DT? Regards, Bjorn > + reg-names = "remap", "cpu"; > + resets = <&media_cpu_reset>; > + clocks = <&media_cpu_clock>; > + sram = <&ahb_sram_ao_arc>; > + amlogic,secbus2 = <&secbus2>; > + }; > + > +... > -- > 2.30.0 >