From patchwork Fri Sep 27 20:13:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13814537 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 31952CDD1AA for ; Fri, 27 Sep 2024 20:16:12 +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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=EtNjTwBLUZhf4+CdFGDYc6vbt+NFBvdBfVqHF0SsxBU=; b=yTuSH7ATVl5SZvtOLePThtZeXl P1v0vNjQiyWCIEK/mkaEiGLpCrGfbmmgUi5X2jJhdLJvxFAs8ROFFOz0k0B6PabDexfT2QnPDTo62 fz2xa1IC8Zg608BlQKAQG2q6Yy0xFYEZtTnPyVN1XJUNwZLzA+QB9miLMsuDgyTVFtROTjEklAzSN v6ynUVHDUr9yOL7Y45Yv/kVBcaDUS1PbhIuKb6ugFYkVQu0bt07xmc8KgBelgdGTbMFsnbQK3jQrt jXoVI7wbP9ubTkLISS9SiXY48BFzOVgg4BOsBxf93udcZ5bHcEcXl20DjbCCHtrv3FJUq8Jdd8Qmb 8s4kIgkQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suHNg-0000000C1wv-0JCR; Fri, 27 Sep 2024 20:16:00 +0000 Received: from out-181.mta1.migadu.com ([2001:41d0:203:375::b5]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suHLJ-0000000C1XJ-24RA for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2024 20:13:36 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1727468009; 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=EtNjTwBLUZhf4+CdFGDYc6vbt+NFBvdBfVqHF0SsxBU=; b=Mgid25BvSpZbPoFHxy/+OLdlSdd6zKRB/5cbVYo9NsA4wyfSZ64NPsynF60yhg0tkWdNT5 TqdHILreLJh6UIo6NSv86BIciJ3yO8S5OASJ+f34e4Nd/nyD82mUxJu+HVPrX3bi+JRuA+ IZFrvnReIDGhgQXdRoM/U/u6D/5xZO8= From: Sean Anderson To: Arnd Bergmann , Olof Johansson , linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Rob Herring , devicetree@vger.kernel.org, Magnus Damm , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , Adam Ford , Sean Anderson Subject: [PATCH 1/3] arm64: dts: renesas: salvator-x: Add SD/OE pin properties Date: Fri, 27 Sep 2024 16:13:11 -0400 Message-Id: <20240927201313.624762-2-sean.anderson@linux.dev> In-Reply-To: <20240927201313.624762-1-sean.anderson@linux.dev> References: <20240927201313.624762-1-sean.anderson@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240927_131334_539428_595DE355 X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. 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 Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Geert [1] as well as his analysis of the schematic. [1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/ Signed-off-by: Sean Anderson Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/salvator-x.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/salvator-x.dtsi b/arch/arm64/boot/dts/renesas/salvator-x.dtsi index ddee50e64632..5920932cbc2f 100644 --- a/arch/arm64/boot/dts/renesas/salvator-x.dtsi +++ b/arch/arm64/boot/dts/renesas/salvator-x.dtsi @@ -25,5 +25,7 @@ versaclock5: clock-generator@6a { #clock-cells = <1>; clocks = <&x23_clk>; clock-names = "xin"; + idt,shutdown = <0>; + idt,output-enable-active = <1>; }; }; From patchwork Fri Sep 27 20:13:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13814538 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 8A7BBCDD1D2 for ; Fri, 27 Sep 2024 20:17:20 +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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=O2En2LUWhEsQHsqEJNOotoHkKE7KQmkeHw7ybLj3Q3A=; b=nBOoCToWpnWrY7WSXD3g0InVGg +HK1+KVGGIbjO8XgQceDY30n/R2sUTEiJbBBUAAqq/LzW7wY21k8NUys7O1AOgpzmuGy40wnw4Dnc 6GVeWGr61ZyF/GaxRzYzHCFxDhhGjoyJf4L/NIelPelhzsdcpV0Fjj6dyR5E4ZNohD0iBrIfrYDG6 6q22Ii1zNQ+ZuM+CiHNqsgk7312hEwOaMgA7JcTTwL2eF30Hl87zqJOrebLDe5hBZSe/On0fqBWhR u32BqbGIOxqsj+9BGQ5SWDDEdQPZ2F0nsFRY4zkeH/UYRXEIux7L/sgnhJfr5Als4fGfhRSrjWx2H Y4s8aNlA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suHOp-0000000C22s-1NkB; Fri, 27 Sep 2024 20:17:11 +0000 Received: from out-185.mta1.migadu.com ([95.215.58.185]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suHLL-0000000C1XP-34Ie for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2024 20:13:37 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1727468012; 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=O2En2LUWhEsQHsqEJNOotoHkKE7KQmkeHw7ybLj3Q3A=; b=TAaacyuAZ2phbSPNJBSf2hQIc73wP9BJuK/+QPeAuC9Y0+1Eb36NCx/XCa2/OHHEyHd2xB VFMHpzd33Qn0aAGBWM5e/yDzIevb6MbwM1QEOR0eYC9EfMLULQVY5ALVC99Ko3PZYKHE9b 2iT21C3wxeBVfh9jF2I+bMLcBHR3IjY= From: Sean Anderson To: Arnd Bergmann , Olof Johansson , linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Rob Herring , devicetree@vger.kernel.org, Magnus Damm , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , Adam Ford , Sean Anderson Subject: [PATCH 2/3] arm64: dts: renesas: hihope: Add SD/OE pin properties Date: Fri, 27 Sep 2024 16:13:12 -0400 Message-Id: <20240927201313.624762-3-sean.anderson@linux.dev> In-Reply-To: <20240927201313.624762-1-sean.anderson@linux.dev> References: <20240927201313.624762-1-sean.anderson@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240927_131335_937941_9EF16B40 X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. 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 Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This is based on Geert's analysis of the schematic [1]. [1] https://lore.kernel.org/linux-arm-kernel/CAMuHMdUmf=BYrVWGDp4kjLGK=66HSMJbHuMvne-xGLkTYnGv2g@mail.gmail.com/ Signed-off-by: Sean Anderson Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/hihope-common.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/hihope-common.dtsi b/arch/arm64/boot/dts/renesas/hihope-common.dtsi index 83104af2813e..6abe094fc253 100644 --- a/arch/arm64/boot/dts/renesas/hihope-common.dtsi +++ b/arch/arm64/boot/dts/renesas/hihope-common.dtsi @@ -198,6 +198,8 @@ versaclock5: clock-generator@6a { #clock-cells = <1>; clocks = <&x304_clk>; clock-names = "xin"; + idt,shutdown = <0>; + idt,output-enable-active = <1>; }; }; From patchwork Fri Sep 27 20:13:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Anderson X-Patchwork-Id: 13814539 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 1BB1BCDD1D4 for ; Fri, 27 Sep 2024 20:18:33 +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: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=9/xNhc8+PZj0WTaGQ0MRXNuLuruFyK61DR8gHEBRuys=; b=dmbAih3qtluXUcHYNctTXNDEiB 8BBqQ8mdHmBRR3frgObSi68r7kBxY99CkUrtJYEfzryfm6XvLXLT8gZ3O3GRzuDlN3t87cGKx7WkJ 5eRhgKc5wwgJY4uvvATGAh6/FipHMky/ixWLww3LzshdfP518SGxhIUGbamfnnQyLIbDc8OSBdCh+ BwnIoVTQSc5tRwpagjc5clEx2WrhqOppGXeeIT93GIVDfTBLgJDiSWt4uGWFMVglCkoGbubUzg1KN hjgJXsVhwXrz8eIr98bSifWQ1Mbc+BpRz3mKCFeO6U9gwrS5QmT7iANW7TbNBqHNibYvPyfVoDKf8 wLF413Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1suHPx-0000000C2AE-416C; Fri, 27 Sep 2024 20:18:22 +0000 Received: from out-181.mta1.migadu.com ([2001:41d0:203:375::b5]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1suHLM-0000000C1Xs-2ggg for linux-arm-kernel@lists.infradead.org; Fri, 27 Sep 2024 20:13:38 +0000 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1727468015; 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=9/xNhc8+PZj0WTaGQ0MRXNuLuruFyK61DR8gHEBRuys=; b=rcxxiKrgGAE5h+oeQSAHFT7DjCxxTCQWZt3lrCGpZJftAAAtk3SKtsw1o1lwyCK6oCUHjb oW/77VnRtIwOkTBTjE2KEU1ABBCJg3LOf1oGljmSq5ftyK1F6y3SViQEKoxq/11YPLdNvG StEUj03XkItYIAbEmq9JNcC6QkokF7w= From: Sean Anderson To: Arnd Bergmann , Olof Johansson , linux-arm-kernel@lists.infradead.org Cc: linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , Rob Herring , devicetree@vger.kernel.org, Magnus Damm , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Conor Dooley , Adam Ford , Sean Anderson Subject: [PATCH 3/3] arm64: dts: renesas: beacon: Add SD/OE pin properties Date: Fri, 27 Sep 2024 16:13:13 -0400 Message-Id: <20240927201313.624762-4-sean.anderson@linux.dev> In-Reply-To: <20240927201313.624762-1-sean.anderson@linux.dev> References: <20240927201313.624762-1-sean.anderson@linux.dev> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240927_131336_839332_A02F181F X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. 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 Add SD/OE pin properties to the devicetree so that Linux can configure the pin without relying on the OTP. This matches the register configuration reported by Adam [1] as well as his analysis of the schematic. [1] https://lore.kernel.org/linux-arm-kernel/CAHCN7x+tcvih1-kmUs8tVLCAk0Gnj11t0yEZLPWk3UBNyad7Jg@mail.gmail.com/ Signed-off-by: Sean Anderson Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi | 2 ++ arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi index 5a14f116f7a1..a258ba0d6b4f 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi @@ -364,6 +364,8 @@ versaclock6_bb: clock-controller@6a { #clock-cells = <1>; clocks = <&x304_clk>; clock-names = "xin"; + idt,shutdown = <0>; + idt,output-enable-active = <0>; assigned-clocks = <&versaclock6_bb 1>, <&versaclock6_bb 2>, <&versaclock6_bb 3>, <&versaclock6_bb 4>; diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi index 68b04e56ae56..06ad9db420d6 100644 --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi @@ -166,6 +166,8 @@ versaclock5: versaclock_som@6a { #clock-cells = <1>; clocks = <&x304_clk>; clock-names = "xin"; + idt,shutdown = <0>; + idt,output-enable-active = <0>; /* du_dotclkin0, du_dotclkin2, usb_extal, avb_txcrefclk */ assigned-clocks = <&versaclock5 1>, <&versaclock5 2>,