Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp363376pxb; Fri, 15 Oct 2021 07:04:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXWH/mfOHnyAcEM9vNmI91f2ofVfDpQ1i+jtQt+q/ZIVMCsiiJfWXrBoCXkaYL9ihGXzDn X-Received: by 2002:a17:902:e353:b0:13f:3276:a9d8 with SMTP id p19-20020a170902e35300b0013f3276a9d8mr11273577plc.81.1634306699105; Fri, 15 Oct 2021 07:04:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634306699; cv=none; d=google.com; s=arc-20160816; b=tQpfHNfpDa+sCw77bgYpCN8k5vLC2IO3PC0/2aKL1ZI95rQ3FnalkAb5poRqJAc/OK IYK6/XUUfB//Kw0yGxGB2ohJq6QHzcf17fjyMaDuliBjNs1iHtTiN/DhRV9bgO6K3Azu 1mNGEVHZHlv40U0rFMqSg/XqQZdxBgcceGZRocNV7Kj/5ylZsZtqKIi3Z1CF/bvAavPG df6hun/zZwDCzTUqjKkH+2DuyNycUONu8yF+LzstejeT54c8zBALJgstLQP4UDLO6eqy 48Xkf0IjGRPLHngw2YhJntZqmKrhP6UBI6ywO/+ZnPIWYdCpG7pEIdo/FWmYwMXzsU4l kIyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:organization:from:cc:to:subject :dkim-signature:dkim-filter; bh=Dk+3Nxj8QWis9FqVBLsyTS4L9LyesVIOtSg6qZP5d5A=; b=aAdTgm4s+LORq0AdzKZtz+J/i7c5rfSWGQsdAN2685k9NWyttkuKFuXeYCu8W63FX5 zOoUhEY/x8UbuaUafNu9qHekDt5K2uWVQXyV5bWl5sJEjrjC+1A+1KrVOtZzIh4AlnrU kBMb/mVhV1MbQ4lrGnhck+qdhFgHkjkabMGZcuVfZrC5Q382URCjZx7H1zAXBNmlXp41 9bGJlOLC3q/c8vdjXTW4LFImQryZx7/AVNXA8O2ibeoyM6WWagMubkEniLmYGu49/F7b 4sN38RXbB5MiYtVzehM01zMxyeOueDJ1/TmGxWO9AF5Ufss+43EzcuwBrYzGl5G2sN1Y UAww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=fHfm1CBt; 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=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o9si7230791pfh.237.2021.10.15.07.04.36; Fri, 15 Oct 2021 07:04:59 -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=@samsung.com header.s=mail20170921 header.b=fHfm1CBt; 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=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236672AbhJOIKn (ORCPT + 99 others); Fri, 15 Oct 2021 04:10:43 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:40998 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233751AbhJOIKf (ORCPT ); Fri, 15 Oct 2021 04:10:35 -0400 Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20211015080828epoutp0268769aa62573e422dd2f9104e1f1acf1~uJdRAafY71848918489epoutp02K for ; Fri, 15 Oct 2021 08:08:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20211015080828epoutp0268769aa62573e422dd2f9104e1f1acf1~uJdRAafY71848918489epoutp02K DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1634285308; bh=Dk+3Nxj8QWis9FqVBLsyTS4L9LyesVIOtSg6qZP5d5A=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=fHfm1CBtBsOJQTG0ZlTmuGQPTCf5C1ab9Iz7t9FZFiQwWnIbEVbKFpq1uBGl5UFzB ZNKcXS0xpIAszqJeIeirJXoSHIMStQUMfaBayKZW1WVblCznrcMozxV6L0Q3i0Wmd6 eWkvfPcLfOk+uaWQ/DwxacnXnWiD5e9COELURm1c= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20211015080827epcas1p47065b6ddbdd353936c28b21e628b83da~uJdQi-VjR0131701317epcas1p4r; Fri, 15 Oct 2021 08:08:27 +0000 (GMT) Received: from epsmges1p3.samsung.com (unknown [182.195.38.233]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4HVzRS2Vxtz4x9QG; Fri, 15 Oct 2021 08:08:20 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p3.samsung.com (Symantec Messaging Gateway) with SMTP id 9F.8B.13696.4F639616; Fri, 15 Oct 2021 17:08:20 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas1p4.samsung.com (KnoxPortal) with ESMTPA id 20211015080819epcas1p4c9367ff621e03529a9a37fa17253f486~uJdI102wF0131701317epcas1p4V; Fri, 15 Oct 2021 08:08:19 +0000 (GMT) Received: from epsmgms1p1new.samsung.com (unknown [182.195.42.41]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20211015080819epsmtrp26e98309c3265a431e1542c6d62ed0ee0~uJdI0-Bi_0470904709epsmtrp2K; Fri, 15 Oct 2021 08:08:19 +0000 (GMT) X-AuditID: b6c32a37-297ff70000023580-a9-616936f4cac1 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 44.1F.09091.3F639616; Fri, 15 Oct 2021 17:08:19 +0900 (KST) Received: from [10.113.221.102] (unknown [10.113.221.102]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20211015080819epsmtip145bf31673f77aaba181dec1343e90377~uJdIfDuS32625826258epsmtip1b; Fri, 15 Oct 2021 08:08:19 +0000 (GMT) Subject: Re: [PATCH v2 4/6] ARM: dts: sunxi: h3/h5: Update MBUS node To: Samuel Holland , MyungJoo Ham , Kyungmin Park , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Rob Herring Cc: 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 From: Chanwoo Choi Organization: Samsung Electronics Message-ID: <435d622b-4ad9-d9d5-3c9b-7b66304e42e4@samsung.com> Date: Fri, 15 Oct 2021 17:29:48 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Thunderbird/59.0 MIME-Version: 1.0 In-Reply-To: <20211004012739.39053-5-samuel@sholland.org> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA02Tf0xTVxTHvf3xWtiKz4LjSjIpbzhDZ7G1P3gYypZY3HOQpYuJIXMJvrVv QCht7Q/DXDJwQYHimA4lsUJQAcePZLACgk1Ka8ERyGAyZ8EZcFEQ0LXCGEO2Bdb24cZ/n3Py Pfd7zrn3cpn8ESSOm6+3UCY9qcOQSNaN/iSx6A9FPin+aSwKrx8YZeOz9d8CfOSL3zi447GP jd911iL40pcDAL/Q50TwMxXX2fjYcAb+4FQzgp92DXDw2UcVCL7m+46Fr3p/ZLwTRTyfOM0h Oh61sYmb9kkO4WitQIjOxmJirvMSIKq6WgHxdLkOEEuOneqIDwv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621e03529a9a37fa17253f486 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE CMS-TYPE: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20211004012802epcas1p27d6b3e2df865cc6d4beb379e2b65e002 References: <20211004012739.39053-1-samuel@sholland.org> <20211004012739.39053-5-samuel@sholland.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/4/21 10:27 AM, Samuel Holland wrote: > In order to support memory dynamic frequency scaling (MDFS), the MBUS > binding now requires enumerating more resources. Provide them in the > device tree. > > Since the H3 and H5 have different clock divider limits, they need > separate compatibles. > > Signed-off-by: Samuel Holland > --- > arch/arm/boot/dts/sun8i-h3.dtsi | 4 ++++ > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 11 ++++++++--- > arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi | 4 ++++ > 3 files changed, 16 insertions(+), 3 deletions(-) > > diff --git a/arch/arm/boot/dts/sun8i-h3.dtsi b/arch/arm/boot/dts/sun8i-h3.dtsi > index 4e89701df91f..43acb98cf390 100644 > --- a/arch/arm/boot/dts/sun8i-h3.dtsi > +++ b/arch/arm/boot/dts/sun8i-h3.dtsi > @@ -282,6 +282,10 @@ &display_clocks { > compatible = "allwinner,sun8i-h3-de2-clk"; > }; > > +&mbus { > + compatible = "allwinner,sun8i-h3-mbus"; > +}; > + > &mmc0 { > compatible = "allwinner,sun7i-a20-mmc"; > clocks = <&ccu CLK_BUS_MMC0>, > diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi > index c7428df9469e..3a683e190dab 100644 > --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi > +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi > @@ -568,9 +568,14 @@ external_mdio: mdio@2 { > }; > > mbus: dram-controller@1c62000 { > - compatible = "allwinner,sun8i-h3-mbus"; > - reg = <0x01c62000 0x1000>; > - clocks = <&ccu CLK_MBUS>; > + /* compatible is in per SoC .dtsi file */ > + 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"; > #address-cells = <1>; > #size-cells = <1>; > dma-ranges = <0x00000000 0x40000000 0xc0000000>; > diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi > index 578a63dedf46..35d5d238e313 100644 > --- a/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi > +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi > @@ -233,6 +233,10 @@ &display_clocks { > compatible = "allwinner,sun50i-h5-de2-clk"; > }; > > +&mbus { > + compatible = "allwinner,sun50i-h5-mbus"; > +}; > + > &mmc0 { > compatible = "allwinner,sun50i-h5-mmc", > "allwinner,sun50i-a64-mmc"; > Reviewed-by: Chanwoo Choi -- Best Regards, Chanwoo Choi Samsung Electronics