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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2D115C433EF for ; Mon, 10 Jan 2022 19:58:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 70EE1830D0; Mon, 10 Jan 2022 20:58:53 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=kpnmail.nl header.i=@kpnmail.nl header.b="cq5NySgf"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2D9B083055; Mon, 10 Jan 2022 20:58:52 +0100 (CET) Received: from ewsoutbound.kpnmail.nl (ewsoutbound.kpnmail.nl [195.121.94.167]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2FA8981DD0 for ; Mon, 10 Jan 2022 20:58:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=openbsd.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=kettenis@openbsd.org X-KPN-MessageId: a3b509b8-724f-11ec-9a2e-005056abbe64 Received: from smtp.kpnmail.nl (unknown [10.31.155.40]) by ewsoutbound.so.kpn.org (Halon) with ESMTPS id a3b509b8-724f-11ec-9a2e-005056abbe64; Mon, 10 Jan 2022 20:58:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kpnmail.nl; s=kpnmail01; h=mime-version:message-id:date:subject:to:from; bh=m+c91I4HghSLwdCn2AGyg2/peyla69aW6NsAq1x/hG8=; b=cq5NySgfG6QUOF/qOgkI1ZIoR4SEIluIJ6JGxiIrWqVmcdmoZRLCzEkrcvZwzrxTIXnfOw9bNI11P cz93S7OU72PwWu40pQORP6APmh4DMxVHd4VwJtFvM78dUqx2Kqg5yV2f9oot3CcOlElwQhLU9sGVwZ 2JJY8XYQ9sIRZXo4= X-KPN-VerifiedSender: No X-CMASSUN: 33|TjpwzPg5dyKcGqsA+gmFjwtvIVnY8MTo3Yd5czrLbFnqfM+hwmLVzjpQzoHtWKQ MXeOzyKRYYvpkvmWFOjJTXg== X-Originating-IP: 83.163.83.176 Received: from copland.sibelius.xs4all.nl (sibelius.xs4all.nl [83.163.83.176]) by smtp.xs4all.nl (Halon) with ESMTPSA id b936a42e-724f-11ec-b76f-005056ab7584; Mon, 10 Jan 2022 20:58:48 +0100 (CET) From: Mark Kettenis To: u-boot@lists.denx.de Cc: sjg@chromium.org, jh80.chung@samsung.com, Mark Kettenis Subject: [PATCH v3 0/3] Apple M1 power management controller support Date: Mon, 10 Jan 2022 20:58:41 +0100 Message-Id: <20220110195844.2458-1-kettenis@openbsd.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean This series adds support for the power management controller found on Apple SoCs based on the device tree bindings submitted to upstream Linux. This is needed to enable power domains for devices that haven't been enabled by earlier boot stages. ChangeLog: v3: - Extend Kconfig description - Add comment on driver priv struct member - Update device trees v2: - Drop unrelated changes from device tree update Mark Kettenis (3): arm: dts: apple: Update Apple M1 device trees arm: dts: apple: Add u-boot,dm-pre-reloc properties power: domain: Add Apple pmgr driver arch/arm/Kconfig | 3 + arch/arm/dts/Makefile | 5 +- arch/arm/dts/t8103-j274-u-boot.dtsi | 1 + arch/arm/dts/t8103-j274.dts | 176 ++--- arch/arm/dts/t8103-j293-u-boot.dtsi | 1 + arch/arm/dts/t8103-j293.dts | 135 ++-- arch/arm/dts/t8103-j313-u-boot.dtsi | 1 + arch/arm/dts/t8103-j313.dts | 111 +++ arch/arm/dts/t8103-j456-u-boot.dtsi | 1 + arch/arm/dts/t8103-j456.dts | 117 +++ arch/arm/dts/t8103-j457-u-boot.dtsi | 1 + arch/arm/dts/t8103-j457.dts | 105 +++ arch/arm/dts/t8103-jxxx.dtsi | 143 ++++ arch/arm/dts/t8103-pmgr.dtsi | 1138 +++++++++++++++++++++++++++ arch/arm/dts/t8103-u-boot.dtsi | 25 + arch/arm/dts/t8103.dtsi | 675 +++++++++------- drivers/power/domain/Kconfig | 9 + drivers/power/domain/Makefile | 1 + drivers/power/domain/apple-pmgr.c | 113 +++ 19 files changed, 2340 insertions(+), 421 deletions(-) create mode 100644 arch/arm/dts/t8103-j274-u-boot.dtsi create mode 100644 arch/arm/dts/t8103-j293-u-boot.dtsi create mode 100644 arch/arm/dts/t8103-j313-u-boot.dtsi create mode 100644 arch/arm/dts/t8103-j313.dts create mode 100644 arch/arm/dts/t8103-j456-u-boot.dtsi create mode 100644 arch/arm/dts/t8103-j456.dts create mode 100644 arch/arm/dts/t8103-j457-u-boot.dtsi create mode 100644 arch/arm/dts/t8103-j457.dts create mode 100644 arch/arm/dts/t8103-jxxx.dtsi create mode 100644 arch/arm/dts/t8103-pmgr.dtsi create mode 100644 arch/arm/dts/t8103-u-boot.dtsi create mode 100644 drivers/power/domain/apple-pmgr.c -- 2.34.1