Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1991111pxb; Mon, 11 Oct 2021 18:15:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw80NvN70OMfkF6AqhC9l0WBnpNsiNluDFnU8tIEqDKGiKB5pr+hoy8Ei16QPI1gcJlSi0R X-Received: by 2002:a17:902:c401:b0:13e:f5f2:f852 with SMTP id k1-20020a170902c40100b0013ef5f2f852mr27230726plk.29.1634001319872; Mon, 11 Oct 2021 18:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634001319; cv=none; d=google.com; s=arc-20160816; b=VQ8z60Zoktp2gLvwo1PtBpcNL0bbS84DcO7/sadfkHNAlgeHEvCkvr4NIIqpl/klE6 Et0J/O9JcQS3/UfEryGKRxn7Ya6iyxczQI2Wc+thmx5LA2BknGiImOEEfFbZLw032w4s X+v2DYOMu/TVsOkoTlSLE3cDSMiMCtm+W0/KPWks2TV3Hu0DUFDPQExdI5ONwxndNQCo xSUL7uUbieTj+4TL5mhhbsXSuAKNMXtP4O10RFde7E6P6AIrIK7UhY7sEvVyF7aPBl50 Dfd5wimwU3CjBcysQslOCVZg2W7G4/oCb2DjMt6ZuRYhT6L9At9oHcaxza6Q98vSr7/v Aoug== 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; bh=BHu3CTNJcW0DF5BNGHVDrnCULEBWgL3rBnbu71YErj0=; b=DBCFJQ5LZh2cl+2UxQAh/Q7sAuDpipK8UhuY+TX7TASyK9DUhWV4zy19QmqjhFRwrX TfRhgwDQnnsYVnDqV4yTwO2dV3XUt+oXrNPfpDzY+2NnvGzFiN0aQGPXJ9CSjZdn8+zJ 57rcHxuVHwtgfx16bjYo8E7dpx2wMoM277fAE5qVyqKJ6TGOQOvYAVpapISs3IKRaqoq UuxJF2IVXH55zN38tyDh6hmYhShnGZ/aLOZjC+Tj/t50os40A0gZnsFSTyk4sJOPsGSW jSfz6D6vmNXfh7g+erK19vporjYi1Pjy3kpj4S+yq9QHlraxNeeZMR+LILlc5Kfu2NDl cTRw== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si1558510pjc.79.2021.10.11.18.15.06; Mon, 11 Oct 2021 18:15:19 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234390AbhJLBMH (ORCPT + 99 others); Mon, 11 Oct 2021 21:12:07 -0400 Received: from mail-ot1-f53.google.com ([209.85.210.53]:34539 "EHLO mail-ot1-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234181AbhJLBMG (ORCPT ); Mon, 11 Oct 2021 21:12:06 -0400 Received: by mail-ot1-f53.google.com with SMTP id g62-20020a9d2dc4000000b0054752cfbc59so23943787otb.1; Mon, 11 Oct 2021 18:10:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=BHu3CTNJcW0DF5BNGHVDrnCULEBWgL3rBnbu71YErj0=; b=oP8+Vnuy2Qql5QtEAnwCBTqHXzM4YxL+KbETs+yHU/I9j202seqGxVY2AaxgSSNpeX gG0ppHpOffYjYtLVwQ5gogrXBpxXUfd7l2ZCD9iqbHCacKtvXvX1HvfeCcPxURNBF22q bu3JGkALhXd1Cjn8n5r0PZEd3ExqKdiKc+sbFx4MVV8Lz0iTHkC0wZPQRa6JjDo6fKqQ r2bsU/TR8dQA0+/TKoPlXjV3RE2EIhTrLzcvDpe6lhYwlAkhDLt6RQ11VU/bp3PnM+oV sGhZvR/7CC92sOyCFSAqhHMgsDNpKkOINIb6PoBtqi6W6sUo9FydvuQCgjWVY6Xm2UaA /lwA== X-Gm-Message-State: AOAM532jtWgBhZoPyroXmvXykhkrcFlp8fslMm1951X9w3/EkzT4lsYe 1ZSgwkT6MEQWsmxD19mbYQ== X-Received: by 2002:a05:6830:351:: with SMTP id h17mr2967815ote.31.1634001005002; Mon, 11 Oct 2021 18:10:05 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id e7sm1031364otq.4.2021.10.11.18.10.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Oct 2021 18:10:04 -0700 (PDT) Received: (nullmailer pid 1519116 invoked by uid 1000); Tue, 12 Oct 2021 01:10:03 -0000 Date: Mon, 11 Oct 2021 20:10:03 -0500 From: Rob Herring To: Samuel Holland Cc: MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Michael Turquette , Stephen Boyd , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/6] dt-bindings: arm: sunxi: Expand MBUS binding Message-ID: References: <20211004012739.39053-1-samuel@sholland.org> <20211004012739.39053-3-samuel@sholland.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211004012739.39053-3-samuel@sholland.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 03, 2021 at 08:27:35PM -0500, Samuel Holland wrote: > The MBUS provides more than address translation and bandwidth control. > It also provides a PMU to measure bandwidth usage by certain masters, > and it provides notification via IRQ when they are active or idle. > > The MBUS is also tightly integrated with the DRAM controller to provide > a Memory Dynamic Frequency Scaling (MDFS) feature. In view of this, the > MBUS binding needs to represent the hardware resources needed for MDFS, > which include the clocks and MMIO range of the adjacent DRAM controller. > > Add the additional resources for the H3 and A64 compatibles, and a new > example showing how they are used. > > Signed-off-by: Samuel Holland > --- > .../arm/sunxi/allwinner,sun4i-a10-mbus.yaml | 75 ++++++++++++++++++- > 1 file changed, 72 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml b/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml > index e713a6fe4cf7..c1fb404d2fb3 100644 > --- a/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml > +++ b/Documentation/devicetree/bindings/arm/sunxi/allwinner,sun4i-a10-mbus.yaml > @@ -33,10 +33,33 @@ properties: > - allwinner,sun50i-a64-mbus > > reg: > - maxItems: 1 > + minItems: 1 > + items: > + - description: MBUS interconnect/bandwidth/PMU registers > + - description: DRAM controller/PHY registers > + > + reg-names: > + items: > + - const: "mbus" > + - const: "dram" Don't need quotes. Is it your intention that reg-names has to have 2 entries. Usually we aren't that strict and 1 would be allowed (when reg has 1). > > clocks: > + minItems: 1 > + items: > + - description: MBUS interconnect module clock > + - description: DRAM controller/PHY module clock > + - description: Register bus clock, shared by MBUS and DRAM > + > + clock-names: > + items: > + - const: "mbus" > + - const: "dram" > + - const: "bus" > + > + interrupts: > maxItems: 1 > + description: > + MBUS PMU activity interrupt. > > dma-ranges: > description: > @@ -53,13 +76,42 @@ required: > - clocks > - dma-ranges > > +if: > + properties: > + compatible: > + contains: > + enum: > + - allwinner,sun8i-h3-mbus > + - allwinner,sun50i-a64-mbus > + > +then: > + properties: > + reg: > + minItems: 2 > + > + clocks: > + minItems: 3 > + > + required: > + - reg-names > + - clock-names > + > +else: > + properties: > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > additionalProperties: false > > examples: > - | > - #include > + #include > + #include > > - mbus: dram-controller@1c01000 { > + dram-controller@1c01000 { > compatible = "allwinner,sun5i-a13-mbus"; > reg = <0x01c01000 0x1000>; > clocks = <&ccu CLK_MBUS>; > @@ -69,4 +121,21 @@ examples: > #interconnect-cells = <1>; > }; > > + - | > + dram-controller@1c62000 { > + compatible = "allwinner,sun50i-a64-mbus"; > + reg = <0x01c62000 0x1000>, > + <0x01c63000 0x1000>; > + reg-names = "mbus", "dram"; > + clocks = <&ccu CLK_MBUS>, > + <&ccu CLK_DRAM>, > + <&ccu CLK_BUS_DRAM>; > + clock-names = "mbus", "dram", "bus"; > + interrupts = ; > + #address-cells = <1>; > + #size-cells = <1>; > + dma-ranges = <0x00000000 0x40000000 0xc0000000>; > + #interconnect-cells = <1>; > + }; > + > ... > -- > 2.32.0 > >