From patchwork Fri Sep 6 21:21:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 13794765 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83C46E6FE4A for ; Fri, 6 Sep 2024 21:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Cc:To:In-Reply-To:References:Message-Id:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rtuaKfmFG/cjqohk67SqCEs+Y7825qb5YDfTf6uC31Y=; b=bnmyOKrKS8G9MdNYbdpUZgPNJb 50PIGciJOAADH6QPI7E21pnZQRa8hoMahzHA8iTN0kKkrDHhrnKJmZj7sFy5N3SRvRXWAKAEGzlnm M1RKOg6P7awjRcHTcNsREGppTrDHNkIfRHFUL3hz3KC4pjSzc5uKL5V+s3as2ZfUkPMnNzjbEkok7 iaZUvyuxoT7qSLtZ8Efm+fmEt0JxKkv1xqfX4Difn+kVzzFI2uMe3mJISA4SXP02OBNtwc24rHCRp xhSJF3jeyDLpFszldH7KF5xf6U80ye7JdzzV/rDExHavsE2+8EP0UTO9ZTfKS3x/K1lqxgA5mRD6R wHEKPPgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smgQW-0000000DeTn-0CO5; Fri, 06 Sep 2024 21:23:32 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smgOZ-0000000De9p-0Ldt for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 21:21:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725657690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=rtuaKfmFG/cjqohk67SqCEs+Y7825qb5YDfTf6uC31Y=; b=faTdH6wp3g/euBh0N8oylB2csa1izx09S377BSX3QNLUMHmmqNWJGxsyaSxut/7wNlha+I 4B2164MQ9cgd5UcL/uiXzEG2U3WZYrVOb9ORNcPbXQg0J34MbeNcLfHl6yKp/KUUBf0+03 lmYtr41iuUOEuEv4ykt/ffTEtd5+tL4= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-148-Bybvp83XM72bwOtgVnekuQ-1; Fri, 06 Sep 2024 17:21:29 -0400 X-MC-Unique: Bybvp83XM72bwOtgVnekuQ-1 Received: by mail-qt1-f200.google.com with SMTP id d75a77b69052e-456916c1889so39939681cf.0 for ; Fri, 06 Sep 2024 14:21:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725657688; x=1726262488; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rtuaKfmFG/cjqohk67SqCEs+Y7825qb5YDfTf6uC31Y=; b=G2xUxt83v9OV3NySFAEQTf46LcCj9eA3vIgaTNoi2K7BlSoa+PecZdXqON3Iz4sW8w wAx7Iu+xc7nvZ0xdkFAvG52A1zhma1HnL7MQdmvKYvPqS77WUt4JXM1gs6/PsCpYmifG lw4I9fKnDTjw6ieOEgJBjAQbBtsB8UWi5Fls75XD5REGskssgJyRTwg6E+oACmXDz/Vd Hsfzdld7Af4MGblnyQnpJUk08ukwLDzqIzxIt1FmYpWOoC/wtQIyZoSPONmoa42etOUR kPfNicfZrnarZa/1L2XIOUOUzh/PmM9gQSX9BcbSEghacCCm0Jw1S7r5Lfx3EAwUZUDk YNzQ== X-Forwarded-Encrypted: i=1; AJvYcCVA2i+zkcIS1C40EjkbtUR1lxd+QR4A/ueeetnR7YPkLE/zwnvs7gpTaS0V30ZayjHytkVWQB5Jah7s/y3x7lqP@lists.infradead.org X-Gm-Message-State: AOJu0Yz9S4mfAAXBYkPM7x826Qp16JHX2vF5Wq7x/H/aOtXmxx/gdZCF LD+B4+M0yJRfS+F5GYSQYf1RjlRHCs8bZ41sz5cXRjMGvF4VYEAtIWF4CLRd+UCkkZdZvbSgmES 20eh432P3ats42sRoIiqrlLZcawbeR+K91LOcwvpPIlc0Uap5lBicQmva8aFbYTNt/Gi8JT2N X-Received: by 2002:ac8:5956:0:b0:457:c6a3:acd2 with SMTP id d75a77b69052e-4580c74f3admr58722461cf.45.1725657687956; Fri, 06 Sep 2024 14:21:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFFeTR/ORUTYHQZelmlFZlukyarwqQ1ssQ4OjtqV04N6yUGBj8UBHL2vsrn0D2ycJ4sqIBAgw== X-Received: by 2002:ac8:5956:0:b0:457:c6a3:acd2 with SMTP id d75a77b69052e-4580c74f3admr58722021cf.45.1725657687514; Fri, 06 Sep 2024 14:21:27 -0700 (PDT) Received: from x1gen2nano.local ([2600:1700:1ff0:d0e0::40]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4581add3a5esm4554791cf.74.2024.09.06.14.21.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 14:21:27 -0700 (PDT) From: Andrew Halaney Date: Fri, 06 Sep 2024 16:21:02 -0500 Subject: [PATCH RFC/RFT 1/2] arm64: dts: ti: k3-j784s4-evm: Mark tps659413 and children as bootph-all MIME-Version: 1.0 Message-Id: <20240906-j784s4-tps6594-bootph-v1-1-c5b58d43bf04@redhat.com> References: <20240906-j784s4-tps6594-bootph-v1-0-c5b58d43bf04@redhat.com> In-Reply-To: <20240906-j784s4-tps6594-bootph-v1-0-c5b58d43bf04@redhat.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Keerthy , Neha Malcom Francis , Eric Chanudet , Enric Balletbo , Udit Kumar , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney X-Mailer: b4 0.14.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_142131_230707_407364C3 X-CRM114-Status: GOOD ( 11.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order for the MCU domain to access this PMIC and its children in u-boot SPL, the nodes need to be marked appropriately otherwise they are not seen by SPL. This is necessary if the MCU domain is to program the TPS6594 MCU ESM state machine, which is required to wire up the watchdog in a manner that will reset the board. Signed-off-by: Andrew Halaney --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 6695ebbcb4d0..044a428136df 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -642,6 +642,7 @@ eeprom@50 { }; tps659413: pmic@48 { + bootph-all; compatible = "ti,tps6594-q1"; reg = <0x48>; system-power-controller; @@ -662,7 +663,10 @@ tps659413: pmic@48 { ldo4-supply = <&vsys_3v3>; regulators { + bootph-all; + bucka12: buck12 { + bootph-all; regulator-name = "vdd_ddr_1v1"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; @@ -671,6 +675,7 @@ bucka12: buck12 { }; bucka3: buck3 { + bootph-all; regulator-name = "vdd_ram_0v85"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; @@ -679,6 +684,7 @@ bucka3: buck3 { }; bucka4: buck4 { + bootph-all; regulator-name = "vdd_io_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -687,6 +693,7 @@ bucka4: buck4 { }; bucka5: buck5 { + bootph-all; regulator-name = "vdd_mcu_0v85"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; @@ -695,6 +702,7 @@ bucka5: buck5 { }; ldoa1: ldo1 { + bootph-all; regulator-name = "vdd_mcuio_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -703,6 +711,7 @@ ldoa1: ldo1 { }; ldoa2: ldo2 { + bootph-all; regulator-name = "vdd_mcuio_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; @@ -711,6 +720,7 @@ ldoa2: ldo2 { }; ldoa3: ldo3 { + bootph-all; regulator-name = "vds_dll_0v8"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <800000>; @@ -719,6 +729,7 @@ ldoa3: ldo3 { }; ldoa4: ldo4 { + bootph-all; regulator-name = "vda_mcu_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; From patchwork Fri Sep 6 21:21:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Halaney X-Patchwork-Id: 13794766 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DED0BE6FE4A for ; Fri, 6 Sep 2024 21:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:Cc:To:In-Reply-To:References:Message-Id:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1XgNokhgnZLHJ9w6Dbtf7+kicJZjf+p4lRARIcV93io=; b=Pcev7ng8yIICIkBvy8rnbK3ZtD NSEHhSyhd9UGtlUoa8gHuJj9ic0Ljj/BgNZFxUTeT+NXtMPWOir4wx/O2mKi3BgjqBoA9GHxEVTKl XUfpzw8LcnnLxNZja92Cxo2RjjWBfleCdrCEc+4DNZ2A+n1MDXKI2ZI+0nVvW9fCS4HANHduvtCQF 6vor21L5cQjeiKOKHhGoRKHLedFVefGPpGcwgMQfukfaQbXujTsT2sa8AMS55jhP2iQs4D2n9TJAG cBPCmI7zJPuN9H1AGO78s0p2wQBcIp0bIRlKPwG/JL1nLwSwDI/Jdj6x/OegHMX6iGXUbc5QDxcTT EaMZIvCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1smgRT-0000000Dee4-1btB; Fri, 06 Sep 2024 21:24:31 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1smgOZ-0000000DeAG-3lDM for linux-arm-kernel@lists.infradead.org; Fri, 06 Sep 2024 21:21:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725657691; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1XgNokhgnZLHJ9w6Dbtf7+kicJZjf+p4lRARIcV93io=; b=CexYIvISrg4qMpWfrfGMjZ+rJ5NEu4Dzbq90l+el3CwXx6+d6Y4mk0syqYcI8Gikwd5xRX BVZ/Q00qkGwhQxbWN3vEAwuOLhc7llY4asIAi+w5gPESQp7H8omQCwxu3fWcW/uZVTqcmp 24bH94/jcoQnYgk14NJFTLSFNUCvKus= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-635-ZfVzXD1BNr-sgqrSm1Y-1A-1; Fri, 06 Sep 2024 17:21:30 -0400 X-MC-Unique: ZfVzXD1BNr-sgqrSm1Y-1A-1 Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-457de9445f2so34084091cf.0 for ; Fri, 06 Sep 2024 14:21:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725657689; x=1726262489; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1XgNokhgnZLHJ9w6Dbtf7+kicJZjf+p4lRARIcV93io=; b=j/IQvkw4z5SgZcDeU5MeRQDiqVpZaHXkn+o3mzWOZNrP6mmWfoqgXLPeyoF73NV+mP WU2bHZ3Kh/ebbUPLHAoSnbBocoElivHDV/3Kkl+cWGToyA2EpjTiZ7p/7rwWbQg2HO4L CKxYe4no11a1haxg9kWlsypim+vsPGnYdkNkfaJFTYvP1gEimk0pCJ4xsLjh6OUp1VJg A2HDuJp1XsNMz6DygE3kKkIsVsafwHBEDkWkU+sB42jPuNe9ZirmhhwRMOQilyukaD18 IwGSojxuAYuuhv3srvu9chEG/h4E3ALMtErgCmKSVAa4+iiRpTY7Iei+fV2nLWKtOdvP WlEA== X-Forwarded-Encrypted: i=1; AJvYcCUCKney7rRrj54iROc4kdYRRaN9nNNGJ3PeJHo/i9hCV2yqKxAaNYChmOZX+MIvR1OS0329v+WmsssCmLoFwfy5@lists.infradead.org X-Gm-Message-State: AOJu0YzoFtCEDkjgi2tDJwO8RNOCDXSxsPLCMPmwece5/ZWNqJ1Wcgll o9oKRbr+0YACGOF1uPjhmUFIKP5kHydQ0U1NRT7qVDF6fpgi39unqHN2sgFJvw6QWrMyTfA+7Sx +nZrMBahk56HAT4xeuRN4C1kXu4VGGIQVm85XuJBVO/xD8cQLaIA9WVjBQ9syvWJUx8ZhBP8h X-Received: by 2002:a05:622a:487:b0:458:12cf:f2e4 with SMTP id d75a77b69052e-4582010218emr4829711cf.18.1725657689402; Fri, 06 Sep 2024 14:21:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE+qg/hx1oZqble1rXfDY8x3LrozBiErF38CIyhlgPt4o5J3PrazDcXHzLPX/zsQJCR1magsA== X-Received: by 2002:a05:622a:487:b0:458:12cf:f2e4 with SMTP id d75a77b69052e-4582010218emr4829421cf.18.1725657689052; Fri, 06 Sep 2024 14:21:29 -0700 (PDT) Received: from x1gen2nano.local ([2600:1700:1ff0:d0e0::40]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-4581add3a5esm4554791cf.74.2024.09.06.14.21.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 14:21:28 -0700 (PDT) From: Andrew Halaney Date: Fri, 06 Sep 2024 16:21:03 -0500 Subject: [PATCH RFC/RFT 2/2] arm64: dts: ti: k3-am69-sk: Mark tps659413 and children as bootph-all MIME-Version: 1.0 Message-Id: <20240906-j784s4-tps6594-bootph-v1-2-c5b58d43bf04@redhat.com> References: <20240906-j784s4-tps6594-bootph-v1-0-c5b58d43bf04@redhat.com> In-Reply-To: <20240906-j784s4-tps6594-bootph-v1-0-c5b58d43bf04@redhat.com> To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Keerthy , Neha Malcom Francis , Eric Chanudet , Enric Balletbo , Udit Kumar , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Andrew Halaney X-Mailer: b4 0.14.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240906_142132_194347_91556DF0 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order for the MCU domain to access this PMIC and its children in u-boot SPL, the nodes need to be marked appropriately otherwise they are not seen by SPL. This is necessary if the MCU domain is to program the TPS6594 MCU ESM state machine, which is required to wire up the watchdog in a manner that will reset the board. Signed-off-by: Andrew Halaney --- arch/arm64/boot/dts/ti/k3-am69-sk.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am69-sk.dts b/arch/arm64/boot/dts/ti/k3-am69-sk.dts index 1e36965a1403..1c3427856982 100644 --- a/arch/arm64/boot/dts/ti/k3-am69-sk.dts +++ b/arch/arm64/boot/dts/ti/k3-am69-sk.dts @@ -729,6 +729,7 @@ eeprom@51 { }; tps659413: pmic@48 { + bootph-all; compatible = "ti,tps6594-q1"; reg = <0x48>; system-power-controller; @@ -749,7 +750,10 @@ tps659413: pmic@48 { ldo4-supply = <&vsys_3v3>; regulators { + bootph-all; + bucka12: buck12 { + bootph-all; regulator-name = "vdd_ddr_1v1"; regulator-min-microvolt = <1100000>; regulator-max-microvolt = <1100000>; @@ -758,6 +762,7 @@ bucka12: buck12 { }; bucka3: buck3 { + bootph-all; regulator-name = "vdd_ram_0v85"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; @@ -766,6 +771,7 @@ bucka3: buck3 { }; bucka4: buck4 { + bootph-all; regulator-name = "vdd_io_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -774,6 +780,7 @@ bucka4: buck4 { }; bucka5: buck5 { + bootph-all; regulator-name = "vdd_mcu_0v85"; regulator-min-microvolt = <850000>; regulator-max-microvolt = <850000>; @@ -782,6 +789,7 @@ bucka5: buck5 { }; ldoa1: ldo1 { + bootph-all; regulator-name = "vdd_mcuio_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; @@ -790,6 +798,7 @@ ldoa1: ldo1 { }; ldoa2: ldo2 { + bootph-all; regulator-name = "vdd_mcuio_3v3"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; @@ -798,6 +807,7 @@ ldoa2: ldo2 { }; ldoa3: ldo3 { + bootph-all; regulator-name = "vds_dll_0v8"; regulator-min-microvolt = <800000>; regulator-max-microvolt = <800000>; @@ -806,6 +816,7 @@ ldoa3: ldo3 { }; ldoa4: ldo4 { + bootph-all; regulator-name = "vda_mcu_1v8"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>;