From patchwork Mon May 13 23:52:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13663722 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.208]) (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 BCE0D1F934; Mon, 13 May 2024 23:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.208 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644369; cv=none; b=mZSIjaJjvE1msMdK3kO0iPMKgmORL/+zs0JguffeUefjGVZF1C4nkiB4X/bce49zcToXHUjipD/6ZaKJqTUFd0SYJ0h2WKvu0DIGHeugtxjmybpFmdBlKM6AifLR8wmGGaxcSgdnFdB+T56g9osSktusPGqw7AeiiW1eIOR2TPI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644369; c=relaxed/simple; bh=lQIjl5hEK45jvJkbp0UsHwivkT2VE8Fl/ArGh+n9d1E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hhjJM6ZTuN7fndHajaUfqZ8MjQBgbMXgCg2zZ8okig4kwaf49gEr91b5bJQwetkyvGHVIg9n+0l/xBQ/evP1GWPEUvP8ALIqgdfzhVLbU3NA9YUbmwttGyyV2H5TJujsB9q1oB6YNrlXIt5rpOMnKrNr+/V0p4Og1gWlIU1G5Ks= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=C2qJYaB4; arc=none smtp.client-ip=192.19.144.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="C2qJYaB4" Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id EF809C0000ED; Mon, 13 May 2024 16:52:39 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com EF809C0000ED DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1715644360; bh=lQIjl5hEK45jvJkbp0UsHwivkT2VE8Fl/ArGh+n9d1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C2qJYaB4mxlvkP5y70+GCmFuzibx3q7p8lvpAHB7sezpR4/2AeUh2yr0Ujau9Kr/4 bXdw07kM3u9Nq0Rae0PtEu2AAOheuJ22sd9lfe+MI6i/MsMzYfBtYkLdo639v/mAEd EE9VldDqz68nW1Zj+3CxpAibi89o//AIhH3tc/20= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id E041218041CAC6; Mon, 13 May 2024 16:52:37 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Michael Turquette , Stephen Boyd , Jassi Brar , Bjorn Andersson , Maximilian Luz , Ard Biesheuvel , Johan Hovold , "Michael S. Tsirkin" , Sudeep Holla , Conor Dooley , Bartosz Golaszewski , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), Stefan Wahren Subject: [PATCH 1/3] mailbox: Make BCM2835_MBOX default to ARCH_BCM2835 Date: Mon, 13 May 2024 16:52:32 -0700 Message-Id: <20240513235234.1474619-2-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513235234.1474619-1-florian.fainelli@broadcom.com> References: <20240513235234.1474619-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This driver is depended on by CONFIG_FIRMWARE_RASPBERRYPI which provides a number of essential services, including but not limited to a Linux common clock framework provider. Make sure that enable CONFIG_ARCH_BCM2835 does enable the corresponding mailbox driver. Signed-off-by: Florian Fainelli --- drivers/mailbox/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig index 42940108a187..2b4cde562a90 100644 --- a/drivers/mailbox/Kconfig +++ b/drivers/mailbox/Kconfig @@ -109,6 +109,7 @@ config ALTERA_MBOX config BCM2835_MBOX tristate "BCM2835 Mailbox" depends on ARCH_BCM2835 + default ARCH_BCM2835 help An implementation of the BCM2385 Mailbox. It is used to invoke the services of the Videocore. Say Y here if you want to use the From patchwork Mon May 13 23:52:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13663720 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.207]) (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 C720E8564F; Mon, 13 May 2024 23:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.207 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644368; cv=none; b=D9fV9iWo+7QttrCsS3I2nJCcwOWD2sFb6UgCai5wYD4Q84k/Uqy0vnZgYn5cwStVfsVE6xnzni8+i4ASzEYzj5Acbv+I3ofptzRwyFnvburgXTueADEXJY3OHE7Tn1uUhW1z75xQKmoadSF+e5PTIkcW/z3/T083RpnUJzCiOKI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644368; c=relaxed/simple; bh=TJ7m5K0tasIolZHkk2fjtG/5NyKihE+J+PRepHVqxKE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lEZesG9BsTlebizbXcDOAz3nvlf3KnZq27OhgbBPfJk3t+x+p/8veU7FyLodkWDji6/B4rVe2KevnNn4cOH9SxFoCvX91VMJ2x7BlIBr2AoT+y64S1wOiDloSQjhwfjMVV7KlaLFTw2C+cf+MZK7OgyexFeJ4LMQKvDIF9B16nc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=C7xRaDfZ; arc=none smtp.client-ip=192.19.144.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="C7xRaDfZ" Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 24D8EC0000E3; Mon, 13 May 2024 16:52:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 24D8EC0000E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1715644360; bh=TJ7m5K0tasIolZHkk2fjtG/5NyKihE+J+PRepHVqxKE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=C7xRaDfZRYdEvUmRU42rRy7TR2x4HzfC9xIKMXhNlaWuJCg62hvgNIoCUQ6shr1kB y1qVbfpSX/9uHbiTKEi4lxV4/PCWsU3vysVHB1464qcYRD0MTSxgBEbJmTkaLzvtNm TVyrss2VvhaB/qUUv0Db3F/dxXhZVStti5n2UKUw= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 1AFEF18041CAC7; Mon, 13 May 2024 16:52:38 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Michael Turquette , Stephen Boyd , Jassi Brar , Bjorn Andersson , Maximilian Luz , Ard Biesheuvel , Johan Hovold , "Michael S. Tsirkin" , Sudeep Holla , Conor Dooley , Bartosz Golaszewski , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), Stefan Wahren Subject: [PATCH 2/3] firmware: Default RASPBERRYPI_FIRMWARE to ARCH_BCM2835 Date: Mon, 13 May 2024 16:52:33 -0700 Message-Id: <20240513235234.1474619-3-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513235234.1474619-1-florian.fainelli@broadcom.com> References: <20240513235234.1474619-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The firmware driver provides the communication interface for a number of other essential drivers, including a clock provider. Signed-off-by: Florian Fainelli --- drivers/firmware/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig index 71d8b26c4103..ae9b28703165 100644 --- a/drivers/firmware/Kconfig +++ b/drivers/firmware/Kconfig @@ -116,6 +116,7 @@ config ISCSI_IBFT config RASPBERRYPI_FIRMWARE tristate "Raspberry Pi Firmware Driver" depends on BCM2835_MBOX + default ARCH_BCM2835 help This option enables support for communicating with the firmware on the Raspberry Pi. From patchwork Mon May 13 23:52:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 13663721 Received: from relay.smtp-ext.broadcom.com (relay.smtp-ext.broadcom.com [192.19.144.208]) (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 BCE5184DE3; Mon, 13 May 2024 23:52:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.144.208 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644368; cv=none; b=IqeiWFPzVHTYKIQXxt7tJadobZYHfTsGlfDp9ELd5xOVBq8yOr6bZhKwo1v9AOIujimkDl/BeNMmrMOH9o6hqiM4zOAJzjT7WHXpD0lKtN07/bU8KVCxMVTDx1P+af3JC5q52OcNiN9leP0JM/tGEfhpvu3FIrzbB/vZpJ+Dbx8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715644368; c=relaxed/simple; bh=CgglF9AYIa374nzIGZ8DrZU9JTTF3trFBwVc5yQ5UBM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Q7UxJNWBTJrQo4hFqB/Y43gelNCmZwcJw1vPb0CAZ9XeWeuC/qNki4g8kr6Mi630CWfEkmKtLEkaKJ1y/9g6uKMmwgM5rqpGH05vjyh+BVlqy65b0piHjc487gMmGQ66d7EXuUh7wVqMBWnlcfterxXwdI45xyvicRPd76ZUNmM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=VUDwdl/9; arc=none smtp.client-ip=192.19.144.208 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="VUDwdl/9" Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id 58F82C0000EC; Mon, 13 May 2024 16:52:40 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com 58F82C0000EC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1715644360; bh=CgglF9AYIa374nzIGZ8DrZU9JTTF3trFBwVc5yQ5UBM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VUDwdl/90EA7fYv3NbI8V6ds10mvzUdOK6boeHWdKoCdvxYGhp9TOOON0kJyaLTef XzDkCEEPjW91dqa+7kD8H0ibulJTsxYcgOQmWwOtV52KqQ2kHg0XS2mdZ2GoAP54A0 kD1vVKAyuxAyhHpo5vGDQgzC0cl+FnGJHnbMiHWQ= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 5696A18041CAC4; Mon, 13 May 2024 16:52:38 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Michael Turquette , Stephen Boyd , Jassi Brar , Bjorn Andersson , Maximilian Luz , Ard Biesheuvel , Johan Hovold , "Michael S. Tsirkin" , Sudeep Holla , Conor Dooley , Bartosz Golaszewski , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list), Stefan Wahren Subject: [PATCH 3/3] clk: bcm: Make CLK_RASPBERRYPI default to RASPBERRYPI_FIRMWARE Date: Mon, 13 May 2024 16:52:34 -0700 Message-Id: <20240513235234.1474619-4-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240513235234.1474619-1-florian.fainelli@broadcom.com> References: <20240513235234.1474619-1-florian.fainelli@broadcom.com> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The clock driver is essential in providing clocks for UARTs and other peripherals, make it enabled by default. Signed-off-by: Florian Fainelli Acked-by: Stephen Boyd --- drivers/clk/bcm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/bcm/Kconfig b/drivers/clk/bcm/Kconfig index a972d763eb77..90e7bab851ae 100644 --- a/drivers/clk/bcm/Kconfig +++ b/drivers/clk/bcm/Kconfig @@ -106,6 +106,7 @@ config CLK_BCM_SR config CLK_RASPBERRYPI tristate "Raspberry Pi firmware based clock support" depends on RASPBERRYPI_FIRMWARE || (COMPILE_TEST && !RASPBERRYPI_FIRMWARE) + default RASPBERRYPI_FIRMWARE help Enable common clock framework support for Raspberry Pi's firmware dependent clocks