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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F212FC433F5 for ; Tue, 12 Oct 2021 01:12:44 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 B2D7360E53 for ; Tue, 12 Oct 2021 01:12:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B2D7360E53 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=GesE4lsm+Wb7e7sbj+q80n54hEncybzvcqlaejcnNXo=; b=1/kKTxMn23pUc0 mLGRYCO1XENxz5+z5reHwe8bmn4RoU5gjaDnbQbw5H/m3L/v4dQnUqBzYKRyeG5ItFwM1XhxfUpeT GxIIK1Kwrrvms6tUmshQGy0l5tRgBk3Ei5FcRtSvlwVFMyOWc57jZRGrLX77QkzBVdczl5zG3zyNP bkwuZZxBDqadYqzPImtjXctfW+iNjqGyfEZwa4o1vSRoNRGxHjoaa/wgGWskxTKdy4jMMLU0Agd+J dotFo5IDqiI21s+l+Ywd+YN2e3CMYCMmFEGZumetX6kHAE5GSpemDLqUWnyOEeB47y4ODItz0OBK+ r3Ok/UXPL9O9AmPatOdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ma6J0-00BAAt-IB; Tue, 12 Oct 2021 01:10:10 +0000 Received: from mail-ot1-f41.google.com ([209.85.210.41]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ma6Iw-00BA9i-60 for linux-arm-kernel@lists.infradead.org; Tue, 12 Oct 2021 01:10:07 +0000 Received: by mail-ot1-f41.google.com with SMTP id s18-20020a0568301e1200b0054e77a16651so7125576otr.7 for ; 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=sAdb11tIekUUFozOOXrm2ux1y1C+Y6C3qmGI91/+bKceRedg1QaXzFTGg8y926zgz+ /gA6aZ0bBSpHTvFRg56se7kLWR3Qs+Zq956rZ6HP/QF0TNbfmRqdxEmEo9G8XDWCeIKJ KThBMshL5cVqr2eukRTdupXWh9X3514UTONm7+3C0N+bu9S4pBaZlpBO+oyn3MEvBWcu Xx7fc9dr9tKKwXWiQm3JBeeygLIoy52f4Mh5rF3M7lHtnn5j19r9jDVKnSMN8SB1gd78 iS2XGpGb2a4Vk7aU1TAZYoVr/M/2SZTDPFxVgGxEWdDGbeyYujUMO3TEZA55hgTJtFUb iwfA== X-Gm-Message-State: AOAM532TF30qyndxoX1gM2vc+qIwSIUlRjAnGIT9EU00GKMagrg7rLAa ecrTcA+9k7vvyuPE6dMr7A== X-Google-Smtp-Source: ABdhPJxO2NBWb5MDE8WhIKRdZ0dLfwhGnsFavfLIfI3dUuhOiwT1yihMphEvXIvtJSRbEL1vlHbnyQ== 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-Disposition: inline In-Reply-To: <20211004012739.39053-3-samuel@sholland.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211011_181006_257448_AEA55D2A X-CRM114-Status: GOOD ( 21.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 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 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel