From patchwork Tue May 28 22:51:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Morrisson X-Patchwork-Id: 13677523 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 E8993C27C44 for ; Tue, 28 May 2024 22:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=SQUvkoHQ9f6yMSM5n08CxEYxzWTh4OF0CLlqkbXJrbM=; b=I5NRJvrl2jcAE9 7z36eiJ0pGEiGLruDXcWKHlT79Fl3pLKG7aD8i+YafNFwHBrPnxFQzVn1NOxDYA2KoqvkAKFsVtGw G/Y3lYnfqPZTxLozOgvC7Qjik8H7TX/uRNMrR2sgCR7Z/NUqOCsunWqzCzLnpdLhXgarllRvmUUQ0 bSZqvJLPPUScF8miuh6MEKYeANb95TNd9sbuCcqLpK5nrGnrMdtbmYtvxDD2iVU8Xn8b05YlOxkyd 6ioSKzjNh1mtKpq3KxafrEHHeQncV/OIzqq07u8sQOGI1f2NctdieGVbF95TlvjWpfnIC+sUfDnEo p0ayCmcW+dttfZPR/1DQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC5g6-00000002Fej-0Dq5; Tue, 28 May 2024 22:52:22 +0000 Received: from mail-dm6nam11on20701.outbound.protection.outlook.com ([2a01:111:f403:2415::701] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sC5fw-00000002FUg-1bj2 for linux-arm-kernel@lists.infradead.org; Tue, 28 May 2024 22:52:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eXJx2vEUZqiBwEfpAS03bq7RtRVBRndaX1hE98xoXyT6bRzEh96yf1eeir7RJcMF8cA8HX8pG0NiKtSi53e1CCSaTEQopBs/34WluLVQTnr8y7WemFXsw9w0J4ki06YX6qddXb7YSY/eY0l9OC+p351/upy54xn45eSrVjSagahstkZPiyNawsaHWUi4NqaQWwoEtswrjc2RaiTsjualRdmNeZNLBUvi8fZLJ2SUz2/0RD68PraMK5fqyC+s1O8HakjjyV1eNEy1N3CwMCGFvBXoI5xfRTJvL8jNReNMyzta7TegAu5c6CmhHFb7DqojlNoSrrKCMP114WeyBHBe/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XmJv2cSKgnpJLJznkdzVORDIGGwlz/8i5+s3hxBkNrk=; b=OovSpumd2wJyztJP+xiDzQ7eh1ZrBFPVfKZojhLLP9FFa7Me/dY+xlEBUbWwT/aqKSYQk+b00H2r+nzI5CvfYoH1mB0ErcKMU9ZEg6YlM+Ei9kWHpOWX0zJ1fogZFm/9RNwtrmuS8V0+I7x2KRCfGE6B+6ofy2ag7ftRxIvMbgUI4HDSF3nkyg1jKWff5gZDqrEuuZPkT1DKiKkRIrCZdkmM0zp3J2qyWSlNXNnecbVaLeilMaSE+FiXuwZM5HfVq4KSqFgxLWSx7EYMN/69x5i1hENdbxEafgd/+oDla7MwBPIdignk6Ed1dikBwDAE6Vf9pU9Qv/bmCTxOP2jm3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=phytec.com; dmarc=pass action=none header.from=phytec.com; dkim=pass header.d=phytec.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=phytec.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XmJv2cSKgnpJLJznkdzVORDIGGwlz/8i5+s3hxBkNrk=; b=fqam31vntL2CZSknLUc+Ywr7V+ymU8qWVJV/eJ98ptwSCWl9e6W+bakLzolJpuj8GNPlPJP5B5a09vc5x9MksH6I6RQEo3k8bs2kB5qlcTwzqxUTENDuESyYhr/A1nM2XviaYWDhtOs7nPfOI96lZBMX6GrYd3xaM8MpayJEFyM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=phytec.com; Received: from SA1PR22MB5636.namprd22.prod.outlook.com (2603:10b6:806:3e2::15) by LV8PR22MB5026.namprd22.prod.outlook.com (2603:10b6:408:1cb::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Tue, 28 May 2024 22:51:52 +0000 Received: from SA1PR22MB5636.namprd22.prod.outlook.com ([fe80::aaeb:2d53:9f16:db45]) by SA1PR22MB5636.namprd22.prod.outlook.com ([fe80::aaeb:2d53:9f16:db45%5]) with mapi id 15.20.7611.025; Tue, 28 May 2024 22:51:52 +0000 From: Nathan Morrisson To: nm@ti.com, vigneshr@ti.com, kristo@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, upstream@lists.phytec.de, w.egorov@phytec.de Subject: [PATCH v2 3/4] arm64: dts: ti: k3-am6xx-phycore-som: Add overlay to disable rtc Date: Tue, 28 May 2024 15:51:36 -0700 Message-Id: <20240528225137.3629698-4-nmorrisson@phytec.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240528225137.3629698-1-nmorrisson@phytec.com> References: <20240528225137.3629698-1-nmorrisson@phytec.com> X-ClientProxiedBy: CH2PR07CA0049.namprd07.prod.outlook.com (2603:10b6:610:5b::23) To SA1PR22MB5636.namprd22.prod.outlook.com (2603:10b6:806:3e2::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA1PR22MB5636:EE_|LV8PR22MB5026:EE_ X-MS-Office365-Filtering-Correlation-Id: d8979ab5-bbe3-4c20-4ae6-08dc7f68c430 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|366007|52116005|7416005|376005|1800799015|38350700005; X-Microsoft-Antispam-Message-Info: 1eWimk2K5At91TupCRG6H0q5pjOuZnA2dYxaZQDM2nX7KRgOU8ad7n2299AIvaeKE6ooQYutspplsfkwMP/HgCkFbY8B0nHTCsrEgm2PsMQyYc41FTl9D0LLzGVTysYeXpxIp/vjMlJQCTuaTHK2vIXA7fTK4/TyRDupB8bROSSDU6ZUyseQgpzPD4+ni1wfDelzNeVksMuT8au7ZCxahl6xNVw12OmFvXbDFdQYQRqLyU158BAY0RM0QWyegm2Eks2ShbR1hrhAJ/2Huboo2cs3kejKhCiUy12xX68nEynv+fzX95gi6Cvq12abg3tXITyHGLSL6jHszRRAHi+iWD4w59ZQehdQbBIy1gASwtOASiOoh3pPnQZoIKftkbPdDfXOST/qtfIMWn3F5J03axrZzSxTFZ9vDabKFa9Z+ptuvi825OFVRbmzMj1BcMeIri5G447iWgQvZ9jxQdVu59ZbZtGJt6krGHHfJf1CTLHc5JUrOijyAsoTKMEqap1BxhXP2ddRXCK5sjD48y/kEq1k/86VftpRVo8MSWkDrU/xzpK5YsRewojnBbugr1G9e6bEehpr+WxKc/s/i43+8IOr86F6M8f9bTcREkmbT4eHiCp3/NneQFZIqTAwM7xBJ02/D1QAaJU+nz9hFyf2H5Dk3IllrfwSJzgbJq1pM/5Oa39Xj12OjVng4XFoQt8BvpODtVah7kDr3xPix0IAnHFKTKJVvhTFzEx8IMy3wQUkS3G1mHZG5eWPF6QmbyzOwNEoQAkWeDrmtJMNvFRcdP7AyVIBTKZ6M8tK6mRi+RtQk9t2ejcQxUTWa6jHGfUd9EHASxKOFhtzC9676Rb+OjBDhYftGDgE6OuUU+RnVduvahRbc75QFXxhduD1zLuhTkNM4YEvJPnnCiFgzAvQlS5sMGOUQjXYoVX1DW2S2qn2gAGt2jnZUlhaVR1QW0Gl5dEGLisBG6Dyl3FOX/w+4yicC7iuAR0dQrjL/78ynOERzu3YzKjaLHL7nUj56zafsWDl/AXLJhc2QHBkupCh2GpRHSUF+lGqt6vR0R37UdK0vyB76md1uB55zov+SvLoUCweI8l0z8P1WASnorZnZpef8BsppBlCP9JLAZvrZEWFvaG/byBNsEWJBwYY2rTdLw9mOJIEYm0I6yRqbfCU/0DxRdwLkvy04HyZTkCElI52jWdjkPRlhGTKfDRTpffN28+9jdCu8C5yXqfbj/hStw7kMjaYROnYjjpVt8VBE5GFPREMgiqSxJj+S7Rg2tk+WFSQySQn/N6W8ftm86fp0X8JlLtpW2sNPvNqtPIo1GkGmBq5r2NXj2W1zazANF/eppP1kc79OUCbLUvz4P6r8w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA1PR22MB5636.namprd22.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(52116005)(7416005)(376005)(1800799015)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: xhQn+ZOlsddM3sKi1s23Zdo9yOUHU7BRkrSh9MGLJQ4Woln0Z2p1G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fYU9xtrgFSdC7/YrwWc8MUdCRO2vZWHiy4fxDfYEGXi3WjBJWFquBCNCmz7ITO7HZyVwXnE6633hI4ZkbjGmz+7SZUEEWK4v7IJAc9DdQCyyhMG3Bv4YP2wmccAVZRxzu114aV2nl3OdcThU409FYvXSnAblGEvjJNdt/z4JWdd8AoZnli9JTgoa0QODjcE+EGaBn5qkIq2E5OEPOzAbNmQEGN8W2mqlYsOdf0ctMLBe1a5eaUJum2C/cutNqHUTKWAzAPqwjaYSt7RPYceeLoiS+AGtEEvgFjPSyiyNgwP3r6YEZKiTy8QRK1QOh62X3l9IHfElSDiC9nhkNM1Tsoa4UYiMdJYHLzKfz5s5kCFY/GKTjAjGqKSbNO1tsmIHGe5nESPhZis+qhq072O5EddAQ9d7dH/kPnVujDDMiwwOM6l84jLlt9jaeoDh/ALXg78IWbyxWPjP+ X-OriginatorOrg: phytec.com X-MS-Exchange-CrossTenant-Network-Message-Id: d8979ab5-bbe3-4c20-4ae6-08dc7f68c430 X-MS-Exchange-CrossTenant-AuthSource: SA1PR22MB5636.namprd22.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2024 22:51:52.5594 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 67bcab1a-5db0-4ee8-86f4-1533d0b4b5c7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MzpobbU25NNvXMC5D1h5ayqMuLrxZ0cGnGPjOOW8x9kyGhe/KvN7fUhdaB75/ehMuSTTcqQ9CYdOzlbvemdNNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR22MB5026 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240528_155212_545813_5F9EDEFC X-CRM114-Status: GOOD ( 13.84 ) 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 an overlay to disable the rtc for all am6xx-phycore-som boards. Signed-off-by: Nathan Morrisson --- v2: - Add build time tests in makefile arch/arm64/boot/dts/ti/Makefile | 5 +++++ .../boot/dts/ti/k3-am6xx-phycore-disable-rtc.dtso | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am6xx-phycore-disable-rtc.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 320da5ea38e0..3d0e87a78e09 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -56,6 +56,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am64-tqma64xxl-mbax4xxl-wlan.dtbo # Common overlays for the phyCORE-AM6* family of boards dtb-$(CONFIG_ARCH_K3) += k3-am6xx-phycore-disable-eth-phy.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-am6xx-phycore-disable-rtc.dtbo # Boards with AM65x SoC k3-am654-gp-evm-dtbs := k3-am654-base-board.dtb \ @@ -112,6 +113,8 @@ k3-am625-beagleplay-csi2-tevi-ov5640-dtbs := k3-am625-beagleplay.dtb \ k3-am625-beagleplay-csi2-tevi-ov5640.dtbo k3-am625-phyboard-lyra-disable-eth-phy-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ k3-am6xx-phycore-disable-eth-phy.dtbo +k3-am625-phyboard-lyra-disable-rtc-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ + k3-am6xx-phycore-disable-rtc.dtbo k3-am625-phyboard-lyra-gpio-fan-dtbs := k3-am625-phyboard-lyra-rdk.dtb \ k3-am62x-phyboard-lyra-gpio-fan.dtbo k3-am625-sk-csi2-imx219-dtbs := k3-am625-sk.dtb \ @@ -139,6 +142,8 @@ k3-am642-evm-icssg1-dualemac-dtbs := \ k3-am642-evm.dtb k3-am642-evm-icssg1-dualemac.dtbo k3-am642-phyboard-electra-disable-eth-phy-dtbs := \ k3-am642-phyboard-electra-rdk.dtb k3-am6xx-phycore-disable-eth-phy.dtbo +k3-am642-phyboard-electra-disable-rtc-dtbs := \ + k3-am642-phyboard-electra-rdk.dtb k3-am6xx-phycore-disable-rtc.dtbo k3-am642-phyboard-electra-gpio-fan-dtbs := \ k3-am642-phyboard-electra-rdk.dtb k3-am642-phyboard-electra-gpio-fan.dtbo k3-am642-tqma64xxl-mbax4xxl-sdcard-dtbs := \ diff --git a/arch/arm64/boot/dts/ti/k3-am6xx-phycore-disable-rtc.dtso b/arch/arm64/boot/dts/ti/k3-am6xx-phycore-disable-rtc.dtso new file mode 100644 index 000000000000..8b24191f5948 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am6xx-phycore-disable-rtc.dtso @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0-only OR MIT +/* + * Copyright (C) 2023 PHYTEC America, LLC + * Author: Garrett Giordano + * + * Copyright (C) 2024 PHYTEC America, LLC + * Author: Nathan Morrisson + */ + +/dts-v1/; +/plugin/; + +&i2c_som_rtc { + status = "disabled"; +};