From patchwork Sun Jan 8 16:25:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 40523 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp1768604wrt; Sun, 8 Jan 2023 08:29:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXurgcap0P7RHxnCog3ktNeZYb2hJgrtw8+Jxj3p4Whx7PSc6Y8X6BacNbrW2WiWnogiPkrf X-Received: by 2002:a17:90b:703:b0:225:c902:c86a with SMTP id s3-20020a17090b070300b00225c902c86amr54315020pjz.28.1673195369118; Sun, 08 Jan 2023 08:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673195369; cv=none; d=google.com; s=arc-20160816; b=WQTbiHcB+1EzYcKM4T+ApuehIiv7LmmrY0OnLQHRw6jhBDj4+fmJnyq1RTzZKxb2i9 1SQfgQ3+CxVHdcxVLefohlogdEULytKb6GxHudQ/1+NV0pJNngDvrqSQawKHjKNTt7dB M9nG4Vf1fVYwxIkpsc46/oEM9Km7on+/+EsHHC+hRx7COmY8D6Civ5SNhyulciTxQS/h XapRei0wljGiXCw6G29oW/5Sb7uJ513BfrOInJqocie8HT6Jsow81fKMwi9u/g87pJdA Ypga+0Z0DDbB6DX/hzSXJ5X5i7Uqb2pjq+KqlC0H3eJMnKVRskkGJ5LdawFSFbWeZIPi TfBA== 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=WxbxAVfRngaMqrMXJVa+Q5xp8zclP28KgRTggiK/utLPJzC6pwvEE9QCLiTsX5VyGb 4ddZ2whxX7yk7mshoynyjM8ruQW9lrIP3qxUx3h0OpmDBPfQrNiW5j0LOFBnU1cM5ol4 7+V2AbjpTHdV/Oo21uhpYs5nlL4CdtlSHCCFtOrg7urD7gOVNkdH6F10g5J6bbcsQUnq fUE4VmXmrZbNL/XvElLxoIcZNwcTy/br8h6/KCmu2jsIRRoZnL97gxC+e65Bxcxyf6Ax EUuMEK+JbmQ1noD/92AHcFEIshJ4c+EKbcBlLB5kDcdNK8OTu2388xSm5RVLKFgWN6vr Y3qQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=YSC3OP4T; 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 oo16-20020a17090b1c9000b00219b5765ff9si11652333pjb.105.2023.01.08.08.29.17; Sun, 08 Jan 2023 08:29:29 -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=YSC3OP4T; 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 S234500AbjAHQ0Z (ORCPT + 99 others); Sun, 8 Jan 2023 11:26:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbjAHQ0G (ORCPT ); Sun, 8 Jan 2023 11:26:06 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1385A9FE0 for ; Sun, 8 Jan 2023 08:26:06 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id c34so9284822edf.0 for ; Sun, 08 Jan 2023 08:26:05 -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=YSC3OP4TGn1VPvfygj0by5L4sf/6V9LnPq9OUQ8JOfL5ruwSYj3wXY1+xejQnk5f+j Hx7h0Jc9hPrOGPjrvaBVujgJZVLD/rargrN3b9zZvQcjjPHrj2HQ8PccN78orzy2TffZ gr23AF/OflooX70a36NEie4LyAUBvKqSlpBD0= 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=g/jgEEq3U9zGPkf3ug9e8STuFlfnzgZXyPxLebU1dUA7wU5miRfZcivT2jwcgtwMYJ OoI7cPaWUiis8PQW2lljPUl8XhOD0UUvEVpzVNn4/6VILxAd/47k0vfqX0wwUzHRoFuN Lf/7Kf+CqSJYnjrUhVX4cn7psInZaJfIf09cI4bG4LEI9NzYKIHM/YFUsmiPNAqQ8flF HJ98di6rjz8dkB6aO8cRlC6JOY9rhbi1ScLxn6iwQE8ygemIR1TMzW+ULQjaKE0Y+R5R 5GblZvVnTtwgSFIMfax7nffcCG1yaHRFQGdBql8fgKmvOIeQM4OJ6RTL6Q1PIfBdyFrg knjQ== X-Gm-Message-State: AFqh2koxJOcgrqfclqtgCkMN8HYRqwe94z+jDFo+uK7hfPdbJHWO+luE bgDZFkP0AP8U8bvgP/QR5pDQejRlUD/UKvGmaFI= X-Received: by 2002:a05:6402:5296:b0:461:dd11:c688 with SMTP id en22-20020a056402529600b00461dd11c688mr57289681edb.9.1673195164404; Sun, 08 Jan 2023 08:26:04 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-180-23-57.pool80180.interbusiness.it. [80.180.23.57]) by smtp.gmail.com with ESMTPSA id n3-20020aa7c443000000b00486074b4ce4sm2659614edr.68.2023.01.08.08.26.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Jan 2023 08:26:04 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Vincent Mailhol , Amarula patchwork , Alexandre Torgue , Marc Kleine-Budde , Krzysztof Kozlowski , Rob Herring , michael@amarulasolutions.com, 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: [RESEND RFC PATCH v5 4/5] ARM: dts: stm32: add pin map for CAN controller on stm32f4 Date: Sun, 8 Jan 2023 17:25:53 +0100 Message-Id: <20230108162554.8375-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230108162554.8375-1-dario.binacchi@amarulasolutions.com> References: <20230108162554.8375-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?1754472507473902739?= X-GMAIL-MSGID: =?utf-8?q?1754472507473902739?= 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; + }; + }; }; }; };