Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27987028rwd; Tue, 4 Jul 2023 10:48:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlFBC2l8MONah9CKaKEfXISy/aQDl6RelJTQLIL1WE/JPBiq9/qmaDXc0oSBAeWqpoZducnk X-Received: by 2002:aa7:88cf:0:b0:678:4e9d:8fea with SMTP id k15-20020aa788cf000000b006784e9d8feamr15126080pff.15.1688492899573; Tue, 04 Jul 2023 10:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688492899; cv=none; d=google.com; s=arc-20160816; b=E8aQxVslOeI6Tk/8TgA84ySZLrRyO1sWEJWB8s9y4dftdt34rndU2BhSfNx88VCcxF ttZqlmmnvOx0uiarV0TIEnaLl3/JHQHcupzpHMoQ5RiTcLTT58hPef2f3kN4wJPolk0t 05sQK3am8Khjbpmptz2bvlmCgzDrM1D7es9sO2QWxhwbt1pc0F7BU2kypv4FzZIoKX/m uv8AWqt5ZERTt8nzrCYaiB3dg1O8qnDFrO3dcCWfnJqWyxtq6bBKupIbkx63mqzW2UG2 nTqxc5g09za5WpSRTcYL0ZHngUzzcWl+QzA3m2ALJClpg5UrUgSdpHlI0zE9yWDAsWtT eW5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=voSV3r6liSTPswELgXfBz+FbRIZzGdFTovggUY0LZ1c=; fh=XsyFObjNMMtxRovj7FVbrQ9EyaZtBUwg75F0KKcz5Is=; b=D/ublzKsU2QPNwsVjqwsHNQ22/2VSA90X9/xsHdG+JkZq5jEMainai3fmGWZi8zarm L9+2Q5ZFqj/0GwQ9jn5d+MlDMbJKZx7WMOhIerwW73gC/ei/cT6vR9gR+wBSEi1Th08x mqYVde91eKsMiknT3hh2touOB9j3zosf7gUhPbzoPDAglHt32fi5ZkQOS4Dt5J9CfINY ZLROYeaVl2ajEnpws5pwfFCJXBw80uiIgWZjoq+f4BDY28Sk2vujhggJwoiN2fcGgP64 vZc0qMKHql7c8C82y1DQnnZkNrycOcYeaFzOULHCGo3gbFwrqDhYV94gO9MmL3RNmO+m dNCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=niI9qf70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f6-20020a056a000b0600b0064f78c32b89si18433485pfu.95.2023.07.04.10.48.03; Tue, 04 Jul 2023 10:48:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=niI9qf70; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231375AbjGDRd0 (ORCPT + 99 others); Tue, 4 Jul 2023 13:33:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230259AbjGDRdZ (ORCPT ); Tue, 4 Jul 2023 13:33:25 -0400 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B58D10E3 for ; Tue, 4 Jul 2023 10:33:23 -0700 (PDT) Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-51d91e9b533so6511574a12.3 for ; Tue, 04 Jul 2023 10:33:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1688492001; x=1691084001; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=voSV3r6liSTPswELgXfBz+FbRIZzGdFTovggUY0LZ1c=; b=niI9qf70lz6ehiJfC5AEObc/h1RpkL9AWeQrbq4VstdIAjIdYtxtiE+305qWdgfmIr EGqP51lbJpROOFM446kUlZhkHSvo1czE7oDyobhSC/pEjwlgh9p1Nts6bHvMLwfiR/ll sZovZO3WkNucyZMbpVsNCxUQ6X+Tq8qiYXtFA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688492001; x=1691084001; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=voSV3r6liSTPswELgXfBz+FbRIZzGdFTovggUY0LZ1c=; b=MoIR/7gW9GDsiwFMpiPSi6UUaek52zQUlxhTLVXcMpR92REFGDpDF6SqdqsjdRaee6 MCjSDlLfYOSVmSGBSJemu4qS++9k3RztF5gpKN9DGbJyNYj5mAz4bJJDLYUl7YLSMgFq hWAZy5OFhM8E4PZWsH9a/DT2Ykc6idCY9LWEVTAofujt7hWsX9OE83BB3kieLp9pAJIz J/HqY7jUt4x42sHPuj/yzIybqczZL3k7qVojEmgFCqIa58CXHWqKXHlG3YIOyfJAj7Sy rCegR3v2+xnMbMpJG79HgPDM41vE4n5Ao2Bx0Ya0V1cML6YQlEj5Mzm7mh1XBNd50eFz kC+A== X-Gm-Message-State: ABy/qLZu+fbc0pm56ZHqWCJM7FvqX4m8kMhSl7Kipbwt3QKUoWB6Ly0y Rc+5Z1RY6ZrI+FLlCxTTOm1aeXR9Xwi+mOFxqDI= X-Received: by 2002:aa7:df85:0:b0:51e:1692:1111 with SMTP id b5-20020aa7df85000000b0051e16921111mr3710970edy.3.1688492001252; Tue, 04 Jul 2023 10:33:21 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-82-58-49-236.retail.telecomitalia.it. [82.58.49.236]) by smtp.gmail.com with ESMTPSA id p18-20020aa7d312000000b0051a2d2f82fdsm12241239edq.6.2023.07.04.10.33.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jul 2023 10:33:20 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Dario Binacchi , Alexandre Torgue , Conor Dooley , Krzysztof Kozlowski , Maxime Coquelin , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH] ARM: dts: stm32: re-add CAN support on stm32f746 Date: Tue, 4 Jul 2023 19:33:17 +0200 Message-Id: <20230704173317.590190-1-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The revert commit 36a6418bb1259 ("Revert "ARM: dts: stm32: add CAN support on stm32f746"") prevented parsing errors due to the lack of CAN3 binding. Now that the binding definition for CAN3 is available in the mainline thanks to commit 8f3ef556f8e1a ("dt-bindings: mfd: stm32f7: Add binding definition for CAN3"), we can re-add the CAN support and make the driver usable again. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/st/stm32f746.dtsi | 47 +++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/arch/arm/boot/dts/st/stm32f746.dtsi b/arch/arm/boot/dts/st/stm32f746.dtsi index d1802efd067c..bfff1a58bf3d 100644 --- a/arch/arm/boot/dts/st/stm32f746.dtsi +++ b/arch/arm/boot/dts/st/stm32f746.dtsi @@ -257,6 +257,23 @@ rtc: rtc@40002800 { status = "disabled"; }; + can3: can@40003400 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40003400 0x200>; + interrupts = <104>, <105>, <106>, <107>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F7_APB1_RESET(CAN3)>; + clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN3)>; + st,gcan = <&gcan3>; + status = "disabled"; + }; + + gcan3: gcan@40003600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40003600 0x200>; + clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN3)>; + }; + usart2: serial@40004400 { compatible = "st,stm32f7-uart"; reg = <0x40004400 0x400>; @@ -337,6 +354,36 @@ i2c4: i2c@40006000 { 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 STM32F7_APB1_RESET(CAN1)>; + clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN1)>; + st,can-primary; + st,gcan = <&gcan1>; + status = "disabled"; + }; + + gcan1: gcan@40006600 { + compatible = "st,stm32f4-gcan", "syscon"; + reg = <0x40006600 0x200>; + clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN1)>; + }; + + can2: can@40006800 { + compatible = "st,stm32f4-bxcan"; + reg = <0x40006800 0x200>; + iterrupts = <63>, <64>, <65>, <66>; + interrupt-names = "tx", "rx0", "rx1", "sce"; + resets = <&rcc STM32F7_APB1_RESET(CAN2)>; + clocks = <&rcc 0 STM32F7_APB1_CLOCK(CAN2)>; + st,can-secondary; + st,gcan = <&gcan1>; + status = "disabled"; + }; + cec: cec@40006c00 { compatible = "st,stm32-cec"; reg = <0x40006C00 0x400>; -- 2.32.0