From nobody Sun Nov 24 23:24:35 2024 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AAC69136E21; Sat, 2 Nov 2024 01:10:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730509848; cv=none; b=S4IdOS2cmqBU5IhT3dtlXQ79MmbI4PdTVzLyc+w+M/ElYvwXJX0IjsiyL9ijfgxl4F2uQNNz73Zz6AKVFkIDAjguPgiHNQkgCeuPELW7+7+IjyU0vl5lznp10Rq20z4aYYQY0NapN/E71Jvy1aFAFZfWoN6v0IC8jAmDVSQggm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730509848; c=relaxed/simple; bh=ztOkG1l9yjVcr2pfAMEkRwns7DNCI2dI76C/ri/QF58=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hog+Su5OJw7E5J9qUlxFNzRikC1BtXtY+mX/L27x9cgOGI3sZsm232oVPRjgvn+fjD2MBwb2/FfTnUoGaPe13VwWkBJ+7zCObCFvuom0ypGCfbMh687ydKV52lSWrPk5eYDKutx0nmVN+GPhfXIiOibr3hQfL69cq16ikOlOkco= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=FPkgcaI0; arc=none smtp.client-ip=209.85.210.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FPkgcaI0" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-71e5a1c9071so2233292b3a.0; Fri, 01 Nov 2024 18:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730509846; x=1731114646; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=AmFdBAmyPJlGFUTTlreUxBYzIDgdjp64ciz7CA5AoGc=; b=FPkgcaI0PjI2f+IDOs/e7WZ2VmSXEkUTgCXm/m8gTWYupA5uGiFTrSxtY+Q6ViHKT1 JDwfcEZBxXyOcWp+9/I8zDrtZKIxoyVwaal7ySaMNJ3IhkXDHiLYwGM0HpbZoFi+ch1X nj+H6uuJ1LMeUfH0EE6grHVB55Gz/FlSf2nUWyZco7dRe+btdeg4ba7fBtwtjXwnxNGw VZ+zRa9bulnPTp+oDYpw4v8lkWkUiwRe4xf9sge6I/tZ/msM7d6pBJ01NwxXQ1e6S23c oyVElM8P/X+zFVsN32Ymcn7KZscy61q7oqgbZMcm+8+0IZjGel9c9zyTHCtUm/ROEvQX kG+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730509846; x=1731114646; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AmFdBAmyPJlGFUTTlreUxBYzIDgdjp64ciz7CA5AoGc=; b=G9bz5Gtu3PPtVz6JqyeDr9SlWQrCB7z43kknAv91YIJXmzDE9c5H9rCgtAQfKT0ENj LJiTqRqKf2TB9P6G399J14G8CR23dfQxwAPlkyc44WPcc8bTjKYYZCd/3XF9T9GCYZVe E7Unf6c7Ehn2yBVv8yVXHbHtKHl4R7qbxuLmy86rD+uLqHu5VcLo7C/YCnTiZ7dLfe0A t7Vj0uAfZF+De7IIg6epHXeSlmkYMFuLiIrcdlY0Zg1SK1B4+ofPoc7KynIemdcpj3Ce h52lSzkI9Pgwb66TKiGUkorXzVqOfiT0OJf6POL+v3sRfZ7MqZRM2zDEuUU138R9bo14 6d6g== X-Forwarded-Encrypted: i=1; AJvYcCU0ixxi3USJfn4sjU1b4TSxx659TBmpbz5NZR55ZtUXiozGWty3Jo8P9c2/ZychqFE2UTHfiNrcrp6tlS/T@vger.kernel.org, AJvYcCU4fRUb08NaaQQ8//8kC1jByFO11n0ADyU+ZEFhZ5ot6Sg/TZXDaUd7xHdPZEYLk14eH88lCvfBRFiq@vger.kernel.org X-Gm-Message-State: AOJu0YzCHbcn4M866u6QMHV4AfaNNIIuSHrFSqWC9V+dpzrqdgi2TNJ6 WlP+0hXlAWP1I+Uz5PCId6fIWLESuFhshEyuB1KdxuQQ+soB4fUy X-Google-Smtp-Source: AGHT+IEPVDRzpA9/KVgpXNMZXEdqUyuGREPsqaz2/nZCzuK95yeWKhqOpAbhA1467QaLZXbbmcKxxw== X-Received: by 2002:a05:6a00:4644:b0:71e:7636:3323 with SMTP id d2e1a72fcca58-720ab3babdemr16463885b3a.7.1730509845614; Fri, 01 Nov 2024 18:10:45 -0700 (PDT) Received: from localhost.localdomain ([49.130.42.137]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-720bc2c38adsm3287708b3a.133.2024.11.01.18.10.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2024 18:10:45 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Nick Chan Subject: [PATCH v2 03/10] arm64: dts: apple: s5l8960x: Add PMGR node Date: Sat, 2 Nov 2024 09:08:25 +0800 Message-ID: <20241102011004.59339-4-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241102011004.59339-1-towinchenmi@gmail.com> References: <20241102011004.59339-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This adds the PMGR node and all known power state subnodes. Since there are a large number of them, let's put them in a separate file to include. Acked-by: Hector Martin Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi | 4 + arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi | 4 + arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi | 4 + arch/arm64/boot/dts/apple/s5l8960x-pmgr.dtsi | 610 ++++++++++++++++++ arch/arm64/boot/dts/apple/s5l8960x.dtsi | 13 + 5 files changed, 635 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-pmgr.dtsi diff --git a/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi b/arch/arm64/boot/d= ts/apple/s5l8960x-5s.dtsi index 0b16adf07f79..51c081923657 100644 --- a/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi +++ b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi @@ -49,3 +49,7 @@ switch-mute { }; }; }; + +&framebuffer0 { + power-domains =3D <&ps_disp0 &ps_mipi_dsi>; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi b/arch/arm64/boot= /dts/apple/s5l8960x-air1.dtsi index 741c5a9f21dd..7d6e799c933a 100644 --- a/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi +++ b/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi @@ -49,3 +49,7 @@ switch-mute { }; }; }; + +&framebuffer0 { + power-domains =3D <&ps_disp0 &ps_dp>; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi b/arch/arm64/boo= t/dts/apple/s5l8960x-mini2.dtsi index b27ef5680626..2ba846db2266 100644 --- a/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi @@ -49,3 +49,7 @@ switch-mute { }; }; }; + +&framebuffer0 { + power-domains =3D <&ps_disp0 &ps_dp>; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-pmgr.dtsi b/arch/arm64/boot= /dts/apple/s5l8960x-pmgr.dtsi new file mode 100644 index 000000000000..da265f484307 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-pmgr.dtsi @@ -0,0 +1,610 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * PMGR Power domains for the Apple S5L8960X "A7" SoC + * + * Copyright (c) 2024 Nick Chan + */ + +&pmgr { + ps_cpu0: power-controller@20000 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20000 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "cpu0"; + apple,always-on; /* Core device */ + }; + + ps_cpu1: power-controller@20008 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20008 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "cpu1"; + apple,always-on; /* Core device */ + }; + + ps_secuart0: power-controller@200f0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200f0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "secuart0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_secuart1: power-controller@200f8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200f8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "secuart1"; + power-domains =3D <&ps_sio_p>; + }; + + ps_cpm: power-controller@20010 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20010 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "cpm"; + apple,always-on; /* Core device */ + }; + + ps_lio: power-controller@20018 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20018 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "lio"; + apple,always-on; /* Core device */ + }; + + ps_iomux: power-controller@20020 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20020 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "iomux"; + apple,always-on; /* Core device */ + }; + + ps_aic: power-controller@20028 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20028 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "aic"; + apple,always-on; /* Core device */ + }; + + ps_debug: power-controller@20030 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20030 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "debug"; + }; + + ps_dwi: power-controller@20038 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20038 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "dwi"; + }; + + ps_gpio: power-controller@20040 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20040 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "gpio"; + }; + + ps_mca0: power-controller@20048 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20048 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mca0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_mca1: power-controller@20050 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20050 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mca1"; + power-domains =3D <&ps_sio_p>; + }; + + ps_mca2: power-controller@20058 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20058 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mca2"; + power-domains =3D <&ps_sio_p>; + }; + + ps_mca3: power-controller@20060 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20060 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mca3"; + power-domains =3D <&ps_sio_p>; + }; + + ps_mca4: power-controller@20068 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20068 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mca4"; + power-domains =3D <&ps_sio_p>; + }; + + ps_pwm0: power-controller@20070 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20070 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "pwm0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_i2c0: power-controller@20078 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20078 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "i2c0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_i2c1: power-controller@20080 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20080 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "i2c1"; + power-domains =3D <&ps_sio_p>; + }; + + ps_i2c2: power-controller@20088 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20088 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "i2c2"; + power-domains =3D <&ps_sio_p>; + }; + + ps_i2c3: power-controller@20090 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20090 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "i2c3"; + power-domains =3D <&ps_sio_p>; + }; + + ps_spi0: power-controller@20098 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20098 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "spi0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_spi1: power-controller@200a0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200a0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "spi1"; + power-domains =3D <&ps_sio_p>; + }; + + ps_spi2: power-controller@200a8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200a8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "spi2"; + power-domains =3D <&ps_sio_p>; + }; + + ps_spi3: power-controller@200b0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200b0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "spi3"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart0: power-controller@200b8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200b8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart1: power-controller@200c0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200c0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart1"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart2: power-controller@200c8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200c8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart2"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart3: power-controller@200d0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200d0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart3"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart4: power-controller@200d8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200d8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart4"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart5: power-controller@200e0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200e0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart5"; + power-domains =3D <&ps_sio_p>; + }; + + ps_uart6: power-controller@200e8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x200e8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "uart6"; + power-domains =3D <&ps_sio_p>; + }; + + ps_sio_p: power-controller@20110 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20110 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "sio_p"; + }; + + ps_usb: power-controller@20158 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20158 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usb"; + }; + + ps_usbctrl: power-controller@20160 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20160 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usbctrl"; + power-domains =3D <&ps_usb>; + }; + + ps_usb2host0: power-controller@20170 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20170 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usb2host0"; + power-domains =3D <&ps_usbctrl>; + }; + + ps_usb2host1: power-controller@20180 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20180 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usb2host1"; + power-domains =3D <&ps_usbctrl>; + }; + + ps_disp_busmux: power-controller@201a8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201a8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "disp_busmux"; + }; + + ps_media: power-controller@201d8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201d8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "media"; + }; + + ps_isp: power-controller@201d0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201d0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "isp"; + }; + + ps_msr: power-controller@201e0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201e0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "msr"; + power-domains =3D <&ps_media>; + }; + + ps_jpg: power-controller@201e8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201e8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "jpg"; + power-domains =3D <&ps_media>; + }; + + ps_disp0: power-controller@201b0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201b0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "disp0"; + power-domains =3D <&ps_disp_busmux>; + }; + + ps_aes0: power-controller@20100 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20100 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "aes0"; + power-domains =3D <&ps_sio_p>; + }; + + ps_sio: power-controller@20108 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20108 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "sio"; + power-domains =3D <&ps_sio_p>; + apple,always-on; /* Core device */ + }; + + ps_hsic0_phy: power-controller@20118 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20118 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "hsic0_phy"; + power-domains =3D <&ps_usb2host0>; + }; + + ps_hsic1_phy: power-controller@20120 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20120 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "hsic1_phy"; + power-domains =3D <&ps_usb2host0>; + }; + + ps_hsic2_phy: power-controller@20128 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20128 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "hsic2_phy"; + power-domains =3D <&ps_usb2host1>; + }; + + ps_ispsens0: power-controller@20130 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20130 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "ispsens0"; + }; + + ps_ispsens1: power-controller@20138 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20138 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "ispsens1"; + }; + + ps_mcc: power-controller@20140 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20140 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mcc"; + apple,always-on; /* Core device */ + }; + + ps_mcu: power-controller@20148 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20148 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mcu"; + apple,always-on; /* Core device */ + }; + + ps_amp: power-controller@20150 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20150 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "amp"; + apple,always-on; /* Core device */ + }; + + ps_usb2host0_ohci: power-controller@20168 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20168 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usb2host0_ohci"; + power-domains =3D <&ps_usb2host0>; + }; + + ps_usb2host1_ohci: power-controller@20178 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20178 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usb2host1_ohci"; + power-domains =3D <&ps_usb2host1>; + }; + + ps_usbotg: power-controller@20188 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20188 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "usbotg"; + power-domains =3D <&ps_usbctrl>; + }; + + ps_smx: power-controller@20190 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20190 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "smx"; + apple,always-on; /* Apple fabric, critical block */ + }; + + ps_sf: power-controller@20198 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20198 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "sf"; + apple,always-on; /* Apple fabric, critical block */ + }; + + ps_cp: power-controller@201a0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201a0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "cp"; + apple,always-on; /* Core device */ + }; + + ps_mipi_dsi: power-controller@201b8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201b8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "mipi_dsi"; + power-domains =3D <&ps_disp_busmux>; + }; + + ps_dp: power-controller@201c0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201c0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "dp"; + power-domains =3D <&ps_disp0>; + }; + + ps_disp1: power-controller@201c8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201c8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "disp1"; + power-domains =3D <&ps_disp_busmux>; + }; + + ps_vdec: power-controller@201f0 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201f0 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "vdec"; + power-domains =3D <&ps_media>; + }; + + ps_venc: power-controller@201f8 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x201f8 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "venc"; + power-domains =3D <&ps_media>; + }; + + ps_ans: power-controller@20200 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20200 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "ans"; + }; + + ps_ans_dll: power-controller@20208 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20208 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "ans_dll"; + power-domains =3D <&ps_ans>; + }; + + ps_gfx: power-controller@20218 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20218 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "gfx"; + }; + + ps_sep: power-controller@20268 { + compatible =3D "apple,s5l8960x-pmgr-pwrstate", "apple,pmgr-pwrstate"; + reg =3D <0x20268 4>; + #power-domain-cells =3D <0>; + #reset-cells =3D <0>; + label =3D "sep"; + power-domains =3D <&ps_secuart1>, <&ps_secuart0>; + apple,always-on; /* Locked on */ + }; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x.dtsi b/arch/arm64/boot/dts/= apple/s5l8960x.dtsi index 0218ecac1d83..7705215fbdc7 100644 --- a/arch/arm64/boot/dts/apple/s5l8960x.dtsi +++ b/arch/arm64/boot/dts/apple/s5l8960x.dtsi @@ -62,9 +62,18 @@ serial0: serial@20a0a0000 { /* Use the bootloader-enabled clocks for now. */ clocks =3D <&clkref>, <&clkref>; clock-names =3D "uart", "clk_uart_baud0"; + power-domains =3D <&ps_uart0>; status =3D "disabled"; }; =20 + pmgr: power-management@20e000000 { + compatible =3D "apple,s5l8960x-pmgr", "apple,pmgr", "syscon", "simple-m= fd"; + #address-cells =3D <1>; + #size-cells =3D <1>; + + reg =3D <0x2 0xe000000 0 0x24000>; + }; + wdt: watchdog@20e027000 { compatible =3D "apple,s5l8960x-wdt", "apple,wdt"; reg =3D <0x2 0x0e027000 0x0 0x1000>; @@ -78,11 +87,13 @@ aic: interrupt-controller@20e100000 { reg =3D <0x2 0x0e100000 0x0 0x100000>; #interrupt-cells =3D <3>; interrupt-controller; + power-domains =3D <&ps_aic>; }; =20 pinctrl: pinctrl@20e300000 { compatible =3D "apple,s5l8960x-pinctrl", "apple,pinctrl"; reg =3D <0x2 0x0e300000 0x0 0x100000>; + power-domains =3D <&ps_gpio>; =20 gpio-controller; #gpio-cells =3D <2>; @@ -111,3 +122,5 @@ timer { ; }; }; + +#include "s5l8960x-pmgr.dtsi" --=20 2.47.0