From nobody Wed Oct 8 15:13:06 2025 Received: from smtp-190d.mail.infomaniak.ch (smtp-190d.mail.infomaniak.ch [185.125.25.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B091E225795 for ; Fri, 27 Jun 2025 11:00:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.125.25.13 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751022034; cv=none; b=CtnJHUNEG6sTlgf5lWB2E5R+NElsMzPqspa+y8w34pjbRiNclVnAAG9Hh9gnOg9vUgYjThv8BA5ONiq885oyktgod2nB69fN0lMal5PRHjnGME8NQ7Xm5hGXjG1jVXSzxcdr+Lz/CTpcS9QVFgWTQpZGNELh3FTia4H08EYZBL4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751022034; c=relaxed/simple; bh=LsaoDkpHaIvDprZXOBsbjGmnELRN0iRLh8XBRohcrgk=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=lxHAAP7rg/QjHRgArAOBHJpCbtrFFENOfz2OzM5TM0vm2Kw+ikWMyqp2E7reJUwZ+f6w5wjc1NjIaCPSCSLwzkCFc7soyeJo4rK+SRuOGvVshQtEdcFhFEC20NKJ5gyJlQt/MhmZs1jUNmXW89NQvr6aC5Z41Wz1HgkQ9R8KwyQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net; spf=pass smtp.mailfrom=0leil.net; arc=none smtp.client-ip=185.125.25.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=0leil.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=0leil.net Received: from smtp-4-0001.mail.infomaniak.ch (smtp-4-0001.mail.infomaniak.ch [10.7.10.108]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4bTC9N0HHJzZJB; Fri, 27 Jun 2025 12:54:16 +0200 (CEST) Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4bTC9L6XsKzvrY; Fri, 27 Jun 2025 12:54:14 +0200 (CEST) From: Quentin Schulz Date: Fri, 27 Jun 2025 12:53:55 +0200 Subject: [PATCH v4 3/5] arm64: dts: rockchip: add header for RK8XX PMIC constants Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250627-rk8xx-rst-fun-v4-3-ce05d041b45f@cherry.de> References: <20250627-rk8xx-rst-fun-v4-0-ce05d041b45f@cherry.de> In-Reply-To: <20250627-rk8xx-rst-fun-v4-0-ce05d041b45f@cherry.de> To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sebastian Reichel Cc: Lukasz Czechowski , Daniel Semkowicz , Nicolas Frattaroli , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Quentin Schulz X-Mailer: b4 0.14.2 X-Infomaniak-Routing: alpha From: Quentin Schulz To make it easier to read the device tree, let's add constants for the rockchip,reset-mode property values that are currently only applicable to RK806 PMIC. Signed-off-by: Quentin Schulz --- arch/arm64/boot/dts/rockchip/rk8xx.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk8xx.h b/arch/arm64/boot/dts/roc= kchip/rk8xx.h new file mode 100644 index 0000000000000000000000000000000000000000..a6fbef71c06493c35b0f3697476= 167aaafa24f30 --- /dev/null +++ b/arch/arm64/boot/dts/rockchip/rk8xx.h @@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) */ +/* + * Device Tree defines for Rockchip RK8xx PMICs + * + * Copyright 2025 Cherry Embedded Solutions GmbH + * + * Author: Quentin Schulz + */ + +#ifndef _DT_MFD_ROCKCHIP_RK8XX_H +#define _DT_MFD_ROCKCHIP_RK8XX_H + +/* For use with rockchip,reset-mode property */ +#define RK806_RESTART 0 +#define RK806_RESET 1 +#define RK806_RESET_NOTIFY 2 + +#endif --=20 2.50.0