From patchwork Wed Jan 17 11:15:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 1887399 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=dCS3Dm6S; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=lWuhZGOP; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFQBd1yJdz1yPg for ; Wed, 17 Jan 2024 23:27:53 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AB2BF87B75; Wed, 17 Jan 2024 13:27:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.b="dCS3Dm6S"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="lWuhZGOP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E581C87B66; Wed, 17 Jan 2024 12:15:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) (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 2545F878A5 for ; Wed, 17 Jan 2024 12:15:38 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=namcao@linutronix.de From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705490137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dH8pyfqDOjtmU8IYi2xh3PD/0fARMgnExQ4LrQH6qDE=; b=dCS3Dm6SBNJTL+tS0cn/oFHRMAOVMooDGlIYaUbVebLgPoGcAgxr9cGsWr6NAHs7w4kRXg DDDR4N5UPx8bmXyrpKDCiINr9fgiLsQ5Urvgmdt3nmvYGCJV8BqtymYWIR3ISoeNJ1UEBA wEWdgwOQjiQk+Tlgrvb4JktJiZF/qb/o1fT3crUwsluArBNfq3YTWAOrfvG+5jJAgmihFE r9ePJkLNccaWXGrawMuYOXF/c589edfC4ysIauTaeFOKxk4t8/2Dj1w5tnXuXMzKV3jslE 3rP+nsS5RRj2VUy97jIlBr/NjS9yFrQShYyqbC0hVshWRAv/WEN+Ji3JB6ncrA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705490137; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dH8pyfqDOjtmU8IYi2xh3PD/0fARMgnExQ4LrQH6qDE=; b=lWuhZGOPr7viVlJwYWCwHlp33v/gGcBmDaF/bNBwdcVH27Xjot37ZDRCI8LxLmbPD6QXmW qEHgdfwI0mFZuoBQ== To: Rick Chen , Leo , u-boot@lists.denx.de Cc: Nam Cao Subject: [PATCH 1/2] riscv: dts: starfive: add regulator device Date: Wed, 17 Jan 2024 12:15:25 +0100 Message-Id: <811391b298858a02cbaae0dfafb92073b701e7d1.1705489598.git.namcao@linutronix.de> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 17 Jan 2024 13:27:11 +0100 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.8 at phobos.denx.de X-Virus-Status: Clean Add the axp15060 regulator device. OpenSBI uses this device to perform board reset and shutdown. Signed-off-by: Nam Cao --- arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi index e94f9fe826..388d29727f 100644 --- a/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi @@ -127,6 +127,11 @@ pinctrl-0 = <&i2c5_pins>; status = "okay"; + pmic@36 { + compatible = "stf,axp15060-regulator"; + reg = <0x36>; + }; + eeprom@50 { compatible = "atmel,24c04"; reg = <0x50>; From patchwork Wed Jan 17 11:15:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nam Cao X-Patchwork-Id: 1887400 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.a=rsa-sha256 header.s=2020 header.b=jElrlqcF; dkim=pass header.d=linutronix.de header.i=@linutronix.de header.a=ed25519-sha256 header.s=2020e header.b=SPV+B2YA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TFQBq6VgWz1yPg for ; Wed, 17 Jan 2024 23:28:03 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 361EE87B79; Wed, 17 Jan 2024 13:27:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; secure) header.d=linutronix.de header.i=@linutronix.de header.b="jElrlqcF"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SPV+B2YA"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6F7FA878A5; Wed, 17 Jan 2024 12:15:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 2974887B5D for ; Wed, 17 Jan 2024 12:15:40 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=namcao@linutronix.de From: Nam Cao DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1705490139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MhHto95saDD9Q3pIUPw2kD7KQpBB+qqOiQI9ZmKelqw=; b=jElrlqcF8rWZ1Ikpmwcn0dU07qTwxPtl7FiVaCCbsDs2xuqvvOwdQ4B3udGeLjxQA/6Va8 h1dDbLmW/Bx8lkRcTHlh8NUDx6GLtVieESNK2muRZ9quP5hHIYDyqWEhpKhQAMqMo6zzK9 /yYdsi+9+Gk6ueii1zG2KCJAX3O0DgjCpW2NfPucwBg1vDrNrAj2z9D0yJ0uD3lAHaosp3 zhn2PmS7TVF5JOXbBCki7/N5mG2ridHp5745O7GIpZezC+jTZSiZY2If08tc5XdXuDXE9I kfEER1+zq5fYPyHux91vZXtkthelNR688rX/KZcaO50EVGx8OX02PLteDL8N8A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1705490139; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MhHto95saDD9Q3pIUPw2kD7KQpBB+qqOiQI9ZmKelqw=; b=SPV+B2YAVGlubQQxYtLM8iCHyK/Kq/xbd31bf0QkCD5wKVOM3YK4ATndyGwSgpCgDJ7dan Pkbd/t7HLsj8ynAg== To: Rick Chen , Leo , u-boot@lists.denx.de Cc: Nam Cao Subject: [PATCH 2/2] riscv: dts: jh7110: add power management unit controller node Date: Wed, 17 Jan 2024 12:15:26 +0100 Message-Id: <3a9cd87553130b5e359910dcc931037a7c171714.1705489598.git.namcao@linutronix.de> In-Reply-To: <811391b298858a02cbaae0dfafb92073b701e7d1.1705489598.git.namcao@linutronix.de> References: <811391b298858a02cbaae0dfafb92073b701e7d1.1705489598.git.namcao@linutronix.de> MIME-Version: 1.0 X-Mailman-Approved-At: Wed, 17 Jan 2024 13:27:11 +0100 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.8 at phobos.denx.de X-Virus-Status: Clean JH7110 has a power management unit controller node. Add this node. This device is used by OpenSBI during board reset and shutdown. Signed-off-by: Nam Cao --- arch/riscv/dts/jh7110.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/riscv/dts/jh7110.dtsi b/arch/riscv/dts/jh7110.dtsi index 6d2675d6ce..2cdc683d49 100644 --- a/arch/riscv/dts/jh7110.dtsi +++ b/arch/riscv/dts/jh7110.dtsi @@ -473,6 +473,12 @@ status = "disabled"; }; + power-controller@17030000 { + compatible = "starfive,jh7110-pmu"; + reg = <0x0 0x17030000 0x0 0x10000>; + interrupts = <111>; + }; + qspi: spi@13010000 { compatible = "cdns,qspi-nor"; reg = <0x0 0x13010000 0x0 0x10000