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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 99B85C71153 for ; Sun, 3 Sep 2023 20:34:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 355F4867C3; Sun, 3 Sep 2023 22:34:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.b="M8hiD+WZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 37B8186824; Sun, 3 Sep 2023 22:34:02 +0200 (CEST) Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E9D1D867C7 for ; Sun, 3 Sep 2023 22:33:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=dario.binacchi@amarulasolutions.com Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b9c907bc68so11226411fa.2 for ; Sun, 03 Sep 2023 13:33:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1693773237; x=1694378037; darn=lists.denx.de; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Lh96Iey4yAoEHu7XCgWJfV+h34vE2+RDbtaaReeMa64=; b=M8hiD+WZws9q5cKEb66gr19a/jqWJgUE1oS8EKTRdfGyDVq51H/3RSKObgaWckytiB LI7tcwVuFuQeCLgeLkF0pSFrU56vFSXnrljnS4b22QpofzKm40TheqfqsRh8QNn8ONjN AmVr+AolYpXFiD0YePEwpAy5UcvYaD3j3Ek3w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693773237; x=1694378037; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Lh96Iey4yAoEHu7XCgWJfV+h34vE2+RDbtaaReeMa64=; b=dEERnOberIwFI9lwQQEJBi7bC6q3phykoEyGTXTXdsqZ8Cp1hQXIg+c6xuUOZUoLFT KfRBp8M5xeapZacGdFW50XwRU0R4wWPbMNRPzleGTesqogw/kKBcuVKaYxpYTe/OUXwM /QEtDx1OYC2KXntWvdYbu+fOF2Pz3Ko5yTEX2nr614+ByYnB/6vzS/3jZKX1AXfQ6lAH cyu4YGd64JyymboFrc1xWkgVptUxFEONQ6VbkHEvzxy29AR7/y5MeekVsJwLic7ezIpp PH1J+/AJaxkQOmvOWyyek5jy/dHvME1/1rSO3d3ugzN3aNBD6baDtwnRUG6PgehDUeEu bvWQ== X-Gm-Message-State: AOJu0YzOax8pGvLmwGlYKpXP3IYBrVWeKntY6uMBTgfuM2HBBgpYSKGz BjR1u0QLlS+3Bl/AOvYYmltbJbpUCj2RI+X49NuINA== X-Google-Smtp-Source: AGHT+IFfdPxJq5lkz0w02Xvm418xGGltjK4JarH5VlCRw8GX+R8/zZL3g4AJlKx9zJGD3XIeVxYlEA== X-Received: by 2002:a2e:b16e:0:b0:2bc:fd50:573a with SMTP id a14-20020a2eb16e000000b002bcfd50573amr5982198ljm.6.1693773236717; Sun, 03 Sep 2023 13:33:56 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-54-71-141.retail.telecomitalia.it. [79.54.71.141]) by smtp.gmail.com with ESMTPSA id pw9-20020a17090720a900b0098884f86e41sm5103232ejb.123.2023.09.03.13.33.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Sep 2023 13:33:56 -0700 (PDT) From: Dario Binacchi To: u-boot@lists.denx.de Cc: linux-amarula@amarulasolutions.com, Dario Binacchi , Marc Kleine-Budde , Patrice Chotard , Patrick Delaunay , Tom Rini , uboot-stm32@st-md-mailman.stormreply.com Subject: [PATCH 1/3] ARM: dts: stm32: add CAN support on stm32f429 Date: Sun, 3 Sep 2023 22:33:50 +0200 Message-Id: <20230903203352.658691-2-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230903203352.658691-1-dario.binacchi@amarulasolutions.com> References: <20230903203352.658691-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 commit 7355ad1950f41e755e6dc451834be3b94f82acd4 Linux upstream. Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the primary and CAN2 the secondary, that share some of the required logic like clock and filters. This means that the secondary CAN can't be used without the primary CAN. Signed-off-by: Dario Binacchi Link: https://lore.kernel.org/all/20230328073328.3949796-4-dario.binacchi@amarulasolutions.com Signed-off-by: Marc Kleine-Budde --- arch/arm/dts/stm32f429.dtsi | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm/dts/stm32f429.dtsi b/arch/arm/dts/stm32f429.dtsi index e5b13aca40c0..22225104fca8 100644 --- a/arch/arm/dts/stm32f429.dtsi +++ b/arch/arm/dts/stm32f429.dtsi @@ -321,6 +321,35 @@ status = "disabled"; }; + can1: can@40006400 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006400 0x200>; + interrupts = <19>, <20>, <21>, <22>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + st,can-primary; + st,gcan = <&gcan>; + status = "disabled"; + }; + + gcan: gcan@40006600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40006600 0x200>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + }; + + can2: can@40006800 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006800 0x200>; + interrupts = <63>, <64>, <65>, <66>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + st,gcan = <&gcan>; + status = "disabled"; + }; + dac: dac@40007400 { compatible = "st,stm32f4-dac-core"; reg = <0x40007400 0x400>; -- 2.34.1