Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1055988rwb; Tue, 27 Sep 2022 07:55:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jis3Ipsstw5GiFCfClEaChRvbP3LsZMK4rAS3gerPf5AQ5trooN2GB5J2nSY5S+5lPFkW X-Received: by 2002:a17:906:a4a:b0:782:686d:a1b6 with SMTP id x10-20020a1709060a4a00b00782686da1b6mr22184580ejf.232.1664290530557; Tue, 27 Sep 2022 07:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664290530; cv=none; d=google.com; s=arc-20160816; b=hNJ1qEDvTtcPRWLgede2cU7NmqKq0x6rwNeEJmL8NYFlZnulFRd2SeHWF3VHqnh6Pn cprBRY8ynTKys2Pr9fv8lR0JZSsssQ9vYVLCY5ojqrLMVMoylGI9Lk2OIsC3PoN1xqfH Mu63f/pkHTCO619RYYWdgQRqJRO3y8+2SjHBP37zaGem/nGpcPgBVohc7MVADwF/JBpW u8thf2gFD1exeRjODERcOkLY2uspuRbB30Zl3Uu+h/1+T13O+9JG+uy5aieed7lBioJx hu4JfkPsU2VmomWu8Rj0WWPBgPuHW57KX6GudrMxmduBl+DCwl0j6XGcLEbJLSpQ7ov9 +YOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=YZ21D5E/FLy07SRW8GTErjOqqAsLC/DiyoP1d4QWIfE=; b=zqb4mqEY+pe616Z605D7BMTLcWPl3zelgFz/UqjTIeofoRRyRBRZ2T1uVxJJSOomNr ugNpA05dKkcQ4R4BYMZYjXHfGqWbJw8SxpHUKJDzprmBnFNDdg49mE0KAcs7a+cqjkRi xxhHTEZD2mnQd+ZBi+pnK3iW5xkcwaG9fteAP3rwUERNB55M6bfDSy+PYZCFCW4OVXPt b4WKuAHUXOTYf3vV9+mNRjVaUacoGEBa5oLfBw52ko62qZh2LhTCZ7Q8c1DatS2GqEPf eWTNMx+rlszxzpQB0kowTDXm0U+b6kYKYKcU2PGGitq7ntjMZUf4CCYLCup9c9ZDoxhE hVMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Q31Ig1kU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id me5-20020a170906aec500b0078251de2451si1474942ejb.216.2022.09.27.07.55.04; Tue, 27 Sep 2022 07:55:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Q31Ig1kU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231883AbiI0Nrq (ORCPT + 99 others); Tue, 27 Sep 2022 09:47:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231260AbiI0Nro (ORCPT ); Tue, 27 Sep 2022 09:47:44 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 272D011E5E6; Tue, 27 Sep 2022 06:47:43 -0700 (PDT) Received: from [192.168.1.100] (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id D7004660035A; Tue, 27 Sep 2022 14:47:40 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664286461; bh=i3JE1JIoxOZavq36pGexdcMStHnjt09dhOhAqaqV0pU=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Q31Ig1kUQ4qn3jyA+OkbnkfpC/LG8fSULht8I4YhuJqyCULM8ZlT1vG5cuV7A1sEs eCRgExYoMoMplEAUf/PNj/8dAAoT3DnG2DcVdxd4cunom34vB0la1qmQSzbyxuA1dz WxGRpbPTnzzB1t8eItojj1wkP9jzI919ufjgtxYVd+Vzj3No+U4eIWHRpdafCJ946l mtG8GGBHO7ORyRXeK44OyE2jW8Lt1iPdmqeoaJbBCizOTL7vzlnK54cA37tEUyYmON u8lAS3Sfdgbr4Nb2zvoPgLNcKhFIEASXWK//xFETDqWdbiDzYWEEd48LOS7QcRVL3v d00gVXqMtwMCg== Message-ID: <4576f195-b390-2083-300c-bb31ad09a7ed@collabora.com> Date: Tue, 27 Sep 2022 15:47:38 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH 2/5] arm64: dts: mt8186: Add power domains controller Content-Language: en-US To: Allen-KH Cheng , Lee Jones , Matthias Brugger , Rob Herring , Krzysztof Kozlowski Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, hsinyi@chromium.org References: <20220923131148.6678-1-allen-kh.cheng@mediatek.com> <20220923131148.6678-3-allen-kh.cheng@mediatek.com> From: AngeloGioacchino Del Regno In-Reply-To: <20220923131148.6678-3-allen-kh.cheng@mediatek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Il 23/09/22 15:11, Allen-KH Cheng ha scritto: > Add power domains controller for mt8186 SoC. > > Signed-off-by: Allen-KH Cheng > --- > arch/arm64/boot/dts/mediatek/mt8186.dtsi | 188 +++++++++++++++++++++++ > 1 file changed, 188 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > index 64693c17af9e..833e7037fe22 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > @@ -329,6 +329,194 @@ > #interrupt-cells = <2>; > }; > > + scpsys: syscon@10006000 { > + compatible = "mediatek,mt8186-scpsys", "syscon", "simple-mfd"; > + reg = <0 0x10006000 0 0x1000>; > + > + /* System Power Manager */ > + spm: power-controller { > + compatible = "mediatek,mt8186-power-controller"; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + ..snip.. > + power-domain@MT8186_POWER_DOMAIN_DIS { > + reg = ; > + clocks = <&topckgen CLK_TOP_DISP>, > + <&topckgen CLK_TOP_MDP>, > + <&mmsys CLK_MM_SMI_INFRA>, > + <&mmsys CLK_MM_SMI_COMMON>, > + <&mmsys CLK_MM_SMI_GALS>, > + <&mmsys CLK_MM_SMI_IOMMU>; > + clock-names = "dis0", "dis1", "dis-0", "dis-1", > + "dis-2", "dis-3"; What about using more descriptive names for clock-names? disp, mdp, smi_infra, smi_common, smi_gals, smi_iommu > + mediatek,infracfg = <&infracfg_ao>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8186_POWER_DOMAIN_VDEC { > + reg = ; > + clocks = <&topckgen CLK_TOP_VDEC>, > + <&vdecsys CLK_VDEC_LARB1_CKEN>; > + clock-names = "vdec0", "vdec-0"; vdec0, larb > + mediatek,infracfg = <&infracfg_ao>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_CAM { > + reg = ; > + clocks = <&topckgen CLK_TOP_CAM>, > + <&topckgen CLK_TOP_SENINF>, > + <&topckgen CLK_TOP_SENINF1>, > + <&topckgen CLK_TOP_SENINF2>, > + <&topckgen CLK_TOP_SENINF3>, > + <&topckgen CLK_TOP_CAMTM>, > + <&camsys CLK_CAM2MM_GALS>; > + clock-names = "cam0", "cam1", "cam2", "cam3", > + "cam4", "cam5", "cam-0"; cam-top, cam0, cam1, cam2, cam3, cam-tm, gals > + mediatek,infracfg = <&infracfg_ao>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8186_POWER_DOMAIN_CAM_RAWB { > + reg = ; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_CAM_RAWA { > + reg = ; > + #power-domain-cells = <0>; > + }; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_IMG { > + reg = ; > + clocks = <&topckgen CLK_TOP_IMG1>, > + <&imgsys1 CLK_IMG1_GALS_IMG1>; > + clock-names = "img0", "img-0"; img-top, gals > + mediatek,infracfg = <&infracfg_ao>; > + #address-cells = <1>; > + #size-cells = <0>; > + #power-domain-cells = <1>; > + > + power-domain@MT8186_POWER_DOMAIN_IMG2 { > + reg = ; > + #power-domain-cells = <0>; > + }; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_IPE { > + reg = ; > + clocks = <&topckgen CLK_TOP_IPE>, > + <&ipesys CLK_IPE_LARB19>, > + <&ipesys CLK_IPE_LARB20>, > + <&ipesys CLK_IPE_SMI_SUBCOM>, > + <&ipesys CLK_IPE_GALS_IPE>; > + clock-names = "ipe0", "ipe-0", "ipe-1", "ipe-2", > + "ipe-3"; ipe-top, ipe-larb0, ipe-larb1, ipe-smi, ipe-gals > + mediatek,infracfg = <&infracfg_ao>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_VENC { > + reg = ; > + clocks = <&topckgen CLK_TOP_VENC>, > + <&vencsys CLK_VENC_CKE1_VENC>; > + clock-names = "venc0", "venc-0"; venc0, larb > + mediatek,infracfg = <&infracfg_ao>; > + #power-domain-cells = <0>; > + }; > + > + power-domain@MT8186_POWER_DOMAIN_WPE { > + reg = ; > + clocks = <&topckgen CLK_TOP_WPE>, > + <&wpesys CLK_WPE_SMI_LARB8_CK_EN>, > + <&wpesys CLK_WPE_SMI_LARB8_PCLK_EN>; > + clock-names = "wpe0", "wpe-0", "wpe-1"; wpe0, larb-ck, larb-pclk Regards, Angelo