From patchwork Wed Aug 17 14:35:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2300 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-ed1-f71.google.com (mail-ed1-f71.google.com [209.85.208.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id DC9213F03E for ; Wed, 17 Aug 2022 16:36:38 +0200 (CEST) Received: by mail-ed1-f71.google.com with SMTP id y14-20020a056402440e00b0044301c7ccd9sf8851766eda.19 for ; Wed, 17 Aug 2022 07:36:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660746998; cv=pass; d=google.com; s=arc-20160816; b=j1MvSPixRyqfutfQSBOLml9Vn+8ULfD7WkgkV2haWu6dVOny+nNB3XN1cIIxGjpeYB Wt6sfQdKRacPwlQ+a11RW6hrzEkD61Y7s7JR73cbsi2v7jsjT19HKOWuv32p9eYj5zba 7SDQpkDTNw7xIfdvbdYUSc6VLlsWN22mq1oLyI+WbdpmMYcs6v1xQTOL7i59GgeNtVKE 5tZCCFm/m4u0BiFgpzrJhC3RTaYx1JdukgpGSDb48L0OnUGu+xpJN4AmrXBTZtacMLEq 0BqpOc1M/Jnb1jPh+QmUwcRykydUE/0TE+4RAQhw56s2R8q/tjR0TJmRo7fvkB7mA8a3 VdLQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=r7Xf/8kx30ehIDnWRLEQxHSawnXLWq+dbWHmCFHjKEI=; b=jzWZna3nNKCu1Blqp58AcH+uewumMzQzaDeT52X2wIkg4FQDuuRqdBD5zU5lDPPk/j 7LjDLnqL/rcnKFBaWpqi0OyOaZ8o3TDDFMouqdfQtc820AExlaTGH2C5Q4XMVh8IfCi6 bPqbUsuFlVhjtADuHob3GA59bAyCTXWeBXZTDSVfQrtIv4wM/foByha61J4PPZXRMouo tPNmGvvGgahYo+7gKbSDZD743sSUrm/jHj+sF/3cs8O9GyRBhMhOfxrb4Mf6PdJBx8e9 m30iO/X8/aPUYjXGY83XYxbAI1zHLHrSq2GXxVWiCwdAm5kbErnyWpOEIBhO/YeulISb 6lWQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNgAFIpe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc; bh=r7Xf/8kx30ehIDnWRLEQxHSawnXLWq+dbWHmCFHjKEI=; b=QoiGkRdza97hmttaIOYaAsINNWwqN+BX7TrkV1JbUlFle0Rb+NHN28bYZHdMPDmML2 TEOtxgF+IUrvIj3IaFC8UKndShYvBX1CfL+9umrDenmpAauOHcLBHKjvGvug2fA5ZBla hYMn8Hh8kSnhVZvBN5Zew0YAxVdxAPGy08baA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc; bh=r7Xf/8kx30ehIDnWRLEQxHSawnXLWq+dbWHmCFHjKEI=; b=ZgclXKVFUeOCEe2zHP+0cJnCuwwJBgCstRzuxsl/R9GQw4kXl6GCYf7faYdmNxLjN1 nlODh5PFMRNZF2HdIFfHGZDSlk/mK7u5n+9sy+f1HVehJph0jYi7TeUYYIvHlVY0+Ul1 iYSLWXUgcNIy2TreoHTfodlGc/WFBMS1LeaqokEkls1DzTpf9GAkUT6nDrOVV4dlTac/ 6q8efX8gRKYqYZ/83Ui85/dJ1SX1OJ2Tpd67XfG8+nbU45tiSeCocLCIVU6M++LRAhtn xfcXZa2TgY374FoLm+ZJWJK1WVONa7TIiAJqwvbv6xmr56T9SmhBWpcXGpzxFm34VcRD AapQ== X-Gm-Message-State: ACgBeo20C3LHQ44U8xNaWkCIidjgBX1ipRmuajhyc1qQ8Gg0+xiXOtBU 3vEBvehVmIw8OKfq5pf1k8s4a2xp X-Google-Smtp-Source: AA6agR56LKMqa7y2EcLLUEpxnwWVyLkt7abrnyVWu5aEz1aBNSsG3Pm5vhxrCGi4Zg4MpSZVGH6waA== X-Received: by 2002:a17:907:3e86:b0:6f5:917:10cc with SMTP id hs6-20020a1709073e8600b006f5091710ccmr17214292ejc.53.1660746998508; Wed, 17 Aug 2022 07:36:38 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:6402:27ce:b0:43d:2444:3c5c with SMTP id c14-20020a05640227ce00b0043d24443c5cls2339010ede.0.-pod-prod-gmail; Wed, 17 Aug 2022 07:36:37 -0700 (PDT) X-Received: by 2002:a05:6402:4515:b0:443:7833:3d7b with SMTP id ez21-20020a056402451500b0044378333d7bmr17263521edb.151.1660746997400; Wed, 17 Aug 2022 07:36:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660746997; cv=none; d=google.com; s=arc-20160816; b=JgTybLjFPLRaw4TaAP97XEH/T8qQY9NrqF+IFJGfXev1syUDbp1DV9QDxaoTlDxNRG iJWoPjL5FDZCrZVgEOFZr/5A+esbPp2l+AW5/EtpelqozcxcKny/ewsH5pyiR3yzBpyB HltNdYQqt8f1qO/RkStn6lngHoJujP+0wVlu1j9Y0JX9tftQ6/KInfOtN7W0W912KTnR 4SoBXMFZ24DTNhI/FnDFtaDXpK2DQTiD0RbCkjm1h1EjTW5JYsgUQi1rob+VK7g6T0KO 9UhOx/MXM/Jzw4OisSGepci58vRV/1UFW21/FRrYkFUAs/5NE3TKly9iXicri7xAyxzC cLhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=44iy7ssOSOFDHgG+aTzhL/TF56VP+7fbMIq0O0tw95M=; b=uYInuLwhlcwANUyeYC3cPKYm0AuqpKEibutF4uno5XVl5u2Aq78c+fgHGFe7TttuOr lPjLyDUN6LaDFN3f88P3B3A8ereVNX4/qXDLTT4GLKDUs/Lw7/FvKYYKAiDwYJb/FFKX kmzxVTQgzGJt6hi1VL7i0U8dIdBOPmWbnHcXaCGmpAYbRu07oAcJs6Ol3kd8lGscxM/G 80eGJ6Q6odJ5mGYqhdVOFnfuDh/KqVLz76VUp509M2Nthr2ySRgJHI0CRUVWcUe2Upte SbWKItFIptgBNb6LSWgpbyXjn+wGITTp2ySCH+STs83WArh4ekp2m9S1GyI9kKnrMqVO colw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNgAFIpe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n1-20020a05640205c100b0043bb71e93fbsor7262475edx.41.2022.08.17.07.36.37 for (Google Transport Security); Wed, 17 Aug 2022 07:36:37 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a05:6402:10d2:b0:445:d9ee:fc19 with SMTP id p18-20020a05640210d200b00445d9eefc19mr2920832edu.81.1660746997217; Wed, 17 Aug 2022 07:36:37 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-79-31-31-9.retail.telecomitalia.it. [79.31.31.9]) by smtp.gmail.com with ESMTPSA id o9-20020aa7c7c9000000b0043cab10f702sm10711982eds.90.2022.08.17.07.36.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 07:36:36 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Alexandre Torgue , Amarula patchwork , michael@amarulasolutions.com, Marc Kleine-Budde , Dario Binacchi , Dario Binacchi , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [RFC PATCH 2/4] ARM: dts: stm32: add CAN support on stm32f429 Date: Wed, 17 Aug 2022 16:35:27 +0200 Message-Id: <20220817143529.257908-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220817143529.257908-1-dario.binacchi@amarulasolutions.com> References: <20220817143529.257908-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=kNgAFIpe; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for bxcan (Basic eXtended CAN controller) to STM32F429. The chip contains two CAN peripherals, CAN1 the master and CAN2 the slave, that share some of the required logic like clock and filters. This means that the slave CAN can't be used without the master CAN. Signed-off-by: Dario Binacchi Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/stm32f429.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/stm32f429.dtsi b/arch/arm/boot/dts/stm32f429.dtsi index c31ceb821231..28db387ad5e8 100644 --- a/arch/arm/boot/dts/stm32f429.dtsi +++ b/arch/arm/boot/dts/stm32f429.dtsi @@ -362,6 +362,36 @@ i2c3: i2c@40005c00 { status = "disabled"; }; + can: can@40006400 { + compatible = "st,stm32-bxcan-core"; + reg = <0x40006400 0x800>; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN1)>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + can1: can@0 { + compatible = "st,stm32-bxcan"; + reg = <0x0>; + interrupts = <19>, <20>, <21>, <22>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN1)>; + master; + status = "disabled"; + }; + + can2: can@400 { + compatible = "st,stm32-bxcan"; + reg = <0x400>; + interrupts = <63>, <64>, <65>, <66>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F4_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F4_APB1_CLOCK(CAN2)>; + status = "disabled"; + }; + }; + dac: dac@40007400 { compatible = "st,stm32f4-dac-core"; reg = <0x40007400 0x400>;