Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp991943rwl; Thu, 5 Jan 2023 07:20:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXtIHcrsKeOG6XSSgxmyBrZiz5etBia+1TEcCkrzk5rN5GwjIq24inv0M/MDG0hHhoWwpZpg X-Received: by 2002:a17:902:e889:b0:18e:4a20:5b89 with SMTP id w9-20020a170902e88900b0018e4a205b89mr78824108plg.23.1672932046830; Thu, 05 Jan 2023 07:20:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672932046; cv=none; d=google.com; s=arc-20160816; b=X3SMpAsWgx3CkB4a9lR45WIayFgAV70HKksJoq46BHd3Bwia473YYfX2ZZrTI8f1US IMty5qTvFmxIQdpye0xysMYECXv1pe0aM8NMZrBJx/XDtm9HC+fLlbTWsYlsD0bCmELd ZUnowtEkbd1PELsBoUGRs3MtstAf4Z9rzydbuoPpZ9nFfi6qqjvmF4s9VbgtNmK3oTnr q8ObemWURn0M39AcVn2B8o/MwrgotFqhnFy2flPVjTbvK5hQb70EQabWff4VYLQPfJEb fBjhCV4mkMNS8MMFcA/eE2kNL3j6/3VS2RDQVgY1OsvSovAvcRIyKTRUW6LVTnBgg/s+ 2oUQ== 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:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:feedback-id:dkim-signature:dkim-signature; bh=V6G1v0bX0D4UJNGGt2xLs1w58IJyGOC4jf7dccTEEPM=; b=CJLd3c+xPfJSKvS3KqyR18aCikZHGJZExgufdfEuUkqC8t9ar998hd/7gTYYnH38Gz Px+gewnH5XvTmA9qrPWHq8mrYLSd9s+zp5DVaRkm2uVPYAwBgrGN1DFsM/gNJSBrCQqc SPTyp9Se6Z4JzaOB8oEp35NBvKb+0xLRZdbNBmlTmkDCK9WnOyUglrKuY23JQF56HAvG hUzqAZVtAI/5G+ATPdo1unYYHial3D7Qfn4k34gUhuW/b26D6kQHmXzKpRrqJXMH59zs 8Glcsm6+aEMMkx/gY8IGrCC68vf9ReTOTObLMuMdncC9uv1brOKSe1dzQcfqgkzaLjky 33NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sholland.org header.s=fm3 header.b=1gZckvrW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cNOnBTbP; 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=sholland.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170902ec0400b00192cb9c331asi2222339pld.65.2023.01.05.07.20.39; Thu, 05 Jan 2023 07:20:46 -0800 (PST) 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=@sholland.org header.s=fm3 header.b=1gZckvrW; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=cNOnBTbP; 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=sholland.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233024AbjAEOtU (ORCPT + 55 others); Thu, 5 Jan 2023 09:49:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234162AbjAEOtL (ORCPT ); Thu, 5 Jan 2023 09:49:11 -0500 Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9DBA5AC63; Thu, 5 Jan 2023 06:48:56 -0800 (PST) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 18BDD3200947; Thu, 5 Jan 2023 09:48:55 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 05 Jan 2023 09:48:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1672930134; x= 1673016534; bh=V6G1v0bX0D4UJNGGt2xLs1w58IJyGOC4jf7dccTEEPM=; b=1 gZckvrW14EF6QB1iyxkjWAB6iRnHIiVv2ITPJDMOAekUfAtApvHM4joaNEsNOTPz dm3iPtBjbXT4UaiyshKQ7x2M9bSXx7PR5x0ao4mHvjuJvXLV5YQjcsIwmdizvyxR J8FFXJG4EoWwR3gajt9fQTRjmkPZra4YljZh21KuppF6OBhIzlmdClElEtm2m1tx 4yiw4oOIoqELlaB5ahYbxjeB6uB7XzysI7VPsqns2BaboVLGIDyBCtsKBx+eSJBP sKhMKbVzNp0QwShyyyDt4w0JKxiHp04InkVNB4jDvkhTLK5kHUacKKEkds2otrcd xCilLN3Xtiv9UpUJnbqWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1672930134; x= 1673016534; bh=V6G1v0bX0D4UJNGGt2xLs1w58IJyGOC4jf7dccTEEPM=; b=c NOnBTbP9S0V2/aQUaA120sVik6fZ0yLzAfug1DGbwRkHr5kGzXq7wLs81ycuGu+S pSddtWpa7rIvSaym3JpoG6hsxAbcr4Ga2cWr6hWkM/cN5F04En3rzIQNZ2q6elLe n9Y611F4OYGB22rrilQ9mQqAVCR64GxgF96nRaeVqqcpT5fgmLCCSFt+me3GpPa6 7zqLyHEmY54YecWhB/MfI3973WARveHAUWZaHl5fAIhXltYID+l4BSGxLZEEDhMj oatK+gHoGaubk1+APfp0w9EEaB3/N1ROSp3dUpZ9W7+NygTlSOmG9jxDgPGfQfFi xYw3BS/RnUVy3dVxqwbWg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrjeekgdejtdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfvvehfhffujggtgfesthejredttdefjeenucfhrhhomhepufgrmhhu vghlucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecugg ftrfgrthhtvghrnhepheffgfegtedttddutdfhfefhgefftdeklefgueeltdettdekgffg ueehvdfhffdvnecuffhomhgrihhnpehlihhnuhigqdhsuhhngihirdhorhhgpdhgihhthh husgdrtghomhdpkhgvrhhnvghlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomhepshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Feedback-ID: i0ad843c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 5 Jan 2023 09:48:53 -0500 (EST) Message-ID: <383edfed-c9fe-9214-5b61-dbe6f017e03a@sholland.org> Date: Thu, 5 Jan 2023 08:48:52 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux ppc64le; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Content-Language: en-US To: Paul Kocialkowski Cc: Chen-Yu Tsai , Jernej Skrabec , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Albert Ou , Conor Dooley , Greg Kroah-Hartman , Maxime Ripard , Palmer Dabbelt , Paul Walmsley , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-riscv@lists.infradead.org, linux-staging@lists.linux.dev, linux-sunxi@lists.linux.dev References: <20221231164628.19688-1-samuel@sholland.org> <20221231164628.19688-2-samuel@sholland.org> From: Samuel Holland Subject: Re: [PATCH 1/4] media: dt-bindings: cedrus: Allow power domain references In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Hi Paul, On 1/5/23 04:43, Paul Kocialkowski wrote: > On Sat 31 Dec 22, 10:46, Samuel Holland wrote: >> The Allwinner D1 SoC contains a separate power domain for its video >> engine, controlled via the "PPU" power controller. Allow the >> power-domains property so this can be represented in the devicetree. > > I've been looking around for information regarding the PPU and couldn't find > anything about it. Do you have some reference where it is mentionned? There are some oblique references as far back as H6 in some user manuals (in the bus block diagram and interrupt list) and in the vendor clock drivers. I gathered some information here: https://linux-sunxi.org/PPU It is used by OpenSBI for CPU idle: https://github.com/riscv-software-src/opensbi/commit/9dc5ec5c.patch and I have a series adding PPU support to Linux for the Video Engine: https://lore.kernel.org/linux-sunxi/20221231160402.16157-1-samuel@sholland.org/ > I do see a power domain driver (apparently for the GPU) on recent allwinner > kernel releases but that seems to be for arm64 chips only. Yes, there is an older GPU-specific power domain hardware, and the generic one found on D1/R528/T113 and newer. However, I found while writing the Linux driver that the two are more similar than the vendor drivers would imply. Most of the registers from the old hardware remain in the new hardware; they just are not used by the new vendor driver. So you can reference my Linux series for a full register list. Regards, Samuel >> Signed-off-by: Samuel Holland >> --- >> >> .../bindings/media/allwinner,sun4i-a10-video-engine.yaml | 3 +++ >> 1 file changed, 3 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml >> index 541325f900a1..d5be7f604e8c 100644 >> --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml >> +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml >> @@ -63,6 +63,9 @@ properties: >> CMA pool to use for buffers allocation instead of the default >> CMA pool. >> >> + power-domains: >> + maxItems: 1 >> + >> required: >> - compatible >> - reg >> -- >> 2.37.4 >> >