Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp504854pxu; Thu, 15 Oct 2020 09:10:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyn4r6vnBbJ07XE/r+k8LaOnr6/wqtYZX8YF+9HNur9hH9r32yQEn1xpUnXx44jxU5X5mnL X-Received: by 2002:a17:906:eb59:: with SMTP id mc25mr5167894ejb.34.1602778214782; Thu, 15 Oct 2020 09:10:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602778214; cv=none; d=google.com; s=arc-20160816; b=wTDZKacZF5znCn6y3r0gZCJ8GlHH5jj9sEv1ZLAG7SOzqaJQ5mEiu4xePMzR2RkFLq 6k7+1cSkIZUUEfpsqdyHMwzq5DRIxKEmuhdOZKmb0YlLasbWLJyvD7ywzVYD590h6BVu BSnPgVFXhWbOaufsXkAvvQacEqP2EmmC6t+61EOUedVf+lo2kWTqsbe9XORzAQwoKATX cKM5ubyD773dBk3/F+4gRRfEfSgOkyRpBpAdrk1M9vgOm5txX1P+rT1BB/1XPhYVnB+e TytVaRrOVrJ4olocC/2NPd5MeWZp72hbDxy2ITLi6g6ppgRiMQUWCbm6BBVT1vSWszEQ ZHyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=nUtWJkg6eJ1iY2+GVkiu33OjWW0LdzQDlTNHvwhb+zs=; b=Y0S8+/4wOV6t3nbu/04vtsXWxTaJ5nwQpq0DYJm/SMww/gtA+EWZ0Eg+cJ1rmaT9kN /DVIGNk6K5l7jwhD1jcB7wFVt/juA26Aoz7bn4JyZIE3vEQp75HJqAhl3AU4LNkJI4Al m+2O5xXom84FQabhA1Z7FSHuFMcfB5Is1eC2HXrMYYbaEMTUJ6wUIzbJSGNxgPHi5xaP jeIjweKBXLs+YNcO7it70jcUQBC6biEk6vj+mU7Yr2FNOcPiJybfDAsOTRpq8ctrNO2H 3ktLtsvayJj77Br2paf6VUhBW/2M1gDIyHa9lN3RM1r2h9rSbsmo1Tf8KIdQWm36bI5Q EMOA== 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cq9si2211284edb.231.2020.10.15.09.09.43; Thu, 15 Oct 2020 09:10:14 -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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388946AbgJOQHj (ORCPT + 99 others); Thu, 15 Oct 2020 12:07:39 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:36610 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388461AbgJOQHj (ORCPT ); Thu, 15 Oct 2020 12:07:39 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 7D5DE1F45C3D Subject: Re: [PATCH] arm64: dts: mediatek: Add smi_common node for MT8183 To: Matthias Brugger , linux-kernel@vger.kernel.org Cc: Collabora Kernel ML , weiyi.lu@mediatek.com, drinkcat@chromium.org, hsinyi@chromium.org, fparent@baylibre.com, Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org References: <20201001162823.3592352-1-enric.balletbo@collabora.com> From: Enric Balletbo i Serra Message-ID: Date: Thu, 15 Oct 2020 18:07:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 2/10/20 11:17, Matthias Brugger wrote: > > > On 01/10/2020 18:28, Enric Balletbo i Serra wrote: >> The SMI (Smart Multimedia Interface) Common is a bridge between the m4u >> (Multimedia Memory Management Unit) and the Multimedia HW. This block is >> needed to support different multimedia features, like display, video >> decode, and camera. Also is needed to control the power domains of such >> HW blocks. >> >> Signed-off-by: Enric Balletbo i Serra >> --- >> >>   arch/arm64/boot/dts/mediatek/mt8183.dtsi | 10 ++++++++++ >>   1 file changed, 10 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi >> b/arch/arm64/boot/dts/mediatek/mt8183.dtsi >> index c2fd141afcf6..9082bc65e15e 100644 >> --- a/arch/arm64/boot/dts/mediatek/mt8183.dtsi >> +++ b/arch/arm64/boot/dts/mediatek/mt8183.dtsi >> @@ -916,6 +916,16 @@ mmsys: syscon@14000000 { >>               #clock-cells = <1>; >>           }; >>   +        smi_common: smi@14019000 { >> +            compatible = "mediatek,mt8183-smi-common", "syscon"; >> +            reg = <0 0x14019000 0 0x1000>; >> +            clocks = <&mmsys CLK_MM_SMI_COMMON>, >> +                 <&mmsys CLK_MM_SMI_COMMON>, >> +                 <&mmsys CLK_MM_GALS_COMM0>, >> +                 <&mmsys CLK_MM_GALS_COMM1>; >> +            clock-names = "apb", "smi", "gals0", "gals1"; >> +        }; >> + > > Having a look at the bindings description, it states that the power-domains > phandle is a required property. Hmmm, this makes me think that there is a kind of circular dependency for MT8183, so MT8183 power domains depends on smi_common and smi_common depends on MT8183 power domains. Will take a deeper look. Thanks Enric > So I suppose you have to base this on the power domains series. > > Regards, > Matthias > >>           imgsys: syscon@15020000 { >>               compatible = "mediatek,mt8183-imgsys", "syscon"; >>               reg = <0 0x15020000 0 0x1000>; >>