From patchwork Mon Jan 16 17:51:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 44286 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1328939wrn; Mon, 16 Jan 2023 10:09:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXtLrFkkdb7MTzWWbevjAUwtfKbgbGXI+xU8pnAd21e5AGdQ4b6i6vBPxfwEsJUwRSr+gSeD X-Received: by 2002:a05:6402:27cf:b0:499:c332:3b50 with SMTP id c15-20020a05640227cf00b00499c3323b50mr160186ede.39.1673892557275; Mon, 16 Jan 2023 10:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673892557; cv=none; d=google.com; s=arc-20160816; b=rjP3A+h90p++cOsoCOvfQ/APhiSZTU/T/dvfmW0Y4Ut06kifRoM5PdeFQQqm1lbv4V owYb2RxGwnW3VD+Ze/N+jgp+q0nagpVk4cTYSMIe1P0SQkZoV5JtjvBTMSSi1nHZ3g4M kb2yBbfTHuqNBIElizBGdldzmCIekUqNv8Rmev/7b6zypG0CSCFkF7HyyUe/rToYi/BO tEeYriqkxjpkTJzVNJ0FOr3/LmY3oCNEz/2hWp4QQ8j1klkn2gY/0TkAMrsvrDU57osM fBJppmCWXYkFEgdqBQGz+NV98hmvh7qSffiASMeOz09ZCk6oXxXeu7VoT/iyskCL/O58 8bag== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jfErmyZAWFClEhl0ayKENaiIcOOkglWFws7K0nbLI8s=; b=r+ziDffAZIaEAeD7cQ1lQKD3EKglkQHbF0bu4BXIfT9ZlMF998DwHmgawZaTviv21v oSyqLPgycJKOOsbNOHdM6Bix+jptM/tdUoX3flRawZsH/AscQSLxUltmsD30rvYvYrv8 5Gnqpw1TvfwvWKLI6RN8Nus5Xqfx4DW487vb2rsdELLPxiwyA2u6uknTHGQer2HW8nXi OMzyfYORRUip+CQkg1S/uagKa8dCaCSMyzm2ZIzsCwEzOVq3gKWSv2jFUVw4Gk9Kppmx klsfMl9VTyVEUAHCMEW4Ziwrzgdbq04eTIhulfbG+wtAHiPZdZ1D7nPhWJ41JcX3zyUo zjqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CiZDRrup; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho11-20020a1709070e8b00b0082372aef3bcsi7754382ejc.583.2023.01.16.10.08.54; Mon, 16 Jan 2023 10:09:17 -0800 (PST) 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=CiZDRrup; 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 S233048AbjAPSGD (ORCPT + 99 others); Mon, 16 Jan 2023 13:06:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232838AbjAPSFX (ORCPT ); Mon, 16 Jan 2023 13:05:23 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F072E0EF for ; Mon, 16 Jan 2023 09:52:12 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id bk15so12328609ejb.9 for ; Mon, 16 Jan 2023 09:52:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; 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=jfErmyZAWFClEhl0ayKENaiIcOOkglWFws7K0nbLI8s=; b=CiZDRrup74sgUxRVU6m1gLeEbwHwbulx2ngc8VyZ9sGs5XEKXQbDgMycQM7zOa3nBU TxmnS1YBlX44zfqBABDkM4kQBhkFaKjSNGH0XDKCt0ob4HEhX0IS/+yi6DT10yJkk32T Oauww02NGbHbMvSiZpCcZsbGRMP1ICMU1VlKc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=jfErmyZAWFClEhl0ayKENaiIcOOkglWFws7K0nbLI8s=; b=ToqDPZ8BtUWE/GY6zQAwLDj1zRh4BGhANJSzYj5wXHRhVF2YNDnqHkg2MmFNRKXV57 r2qsFoqv5m/KxV9ZvX02NMcTsX4634HWAfMyuqllC76L/yYmgl5XmoxonX6wJweQ/v80 0nCtbcBxT6maUoIDuj5CfibyFDEUKvRhNGZo2x/A04w7ImU6gB1Mh7/qcWxZv7l3OXn4 RPkPW8Lld5mMu03BnjQrp9EsQg8AeZQ3uGzHVkJxEc+zm0NmBpYJ6sI+6WZkAf16bojq Ovz1cERtbhjT/O7jKX6xtc6k2/PU/HJkbm8psz6nFfB/WIv+H/tEHSA33n+S7T/47EcQ Lyww== X-Gm-Message-State: AFqh2ko95ODnq0p8gdCOsOTab37pYsOxlrEouU4wT9dTU0tNnL2YcYE7 KloqBPOBDUHChWwvpy8spsMyt854Lv6mSjdf X-Received: by 2002:a17:906:1dcd:b0:84c:c121:dc53 with SMTP id v13-20020a1709061dcd00b0084cc121dc53mr46331606ejh.34.1673891531473; Mon, 16 Jan 2023 09:52:11 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.. (mob-5-90-75-145.net.vodafone.it. [5.90.75.145]) by smtp.gmail.com with ESMTPSA id fd7-20020a056402388700b00483dd234ac6sm11490723edb.96.2023.01.16.09.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Jan 2023 09:52:11 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Vincent Mailhol , Amarula patchwork , Krzysztof Kozlowski , michael@amarulasolutions.com, Rob Herring , Alexandre Torgue , Marc Kleine-Budde , 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: [PATCH v7 4/5] ARM: dts: stm32: add pin map for CAN controller on stm32f4 Date: Mon, 16 Jan 2023 18:51:51 +0100 Message-Id: <20230116175152.2839455-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230116175152.2839455-1-dario.binacchi@amarulasolutions.com> References: <20230116175152.2839455-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755203561642782787?= X-GMAIL-MSGID: =?utf-8?q?1755203561642782787?= Add pin configurations for using CAN controller on stm32f469-disco board. They are located on the Arduino compatible connector CN5 (CAN1) and on the extension connector CN12 (CAN2). Signed-off-by: Dario Binacchi --- (no changes since v3) Changes in v3: - Remove 'Dario Binacchi ' SOB. - Remove a blank line. Changes in v2: - Remove a blank line. arch/arm/boot/dts/stm32f4-pinctrl.dtsi | 30 ++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi b/arch/arm/boot/dts/stm32f4-pinctrl.dtsi index 500bcc302d42..8a4d51f97248 100644 --- a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32f4-pinctrl.dtsi @@ -448,6 +448,36 @@ pins2 { slew-rate = <2>; }; }; + + can1_pins_a: can1-0 { + pins1 { + pinmux = ; /* CAN1_TX */ + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can2_pins_a: can2-0 { + pins1 { + pinmux = ; /* CAN2_TX */ + }; + pins2 { + pinmux = ; /* CAN2_RX */ + bias-pull-up; + }; + }; + + can2_pins_b: can2-1 { + pins1 { + pinmux = ; /* CAN2_TX */ + }; + pins2 { + pinmux = ; /* CAN2_RX */ + bias-pull-up; + }; + }; }; }; };