From patchwork Mon Jan 9 18:23:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 41055 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2308120wrt; Mon, 9 Jan 2023 10:28:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXvJDxe1d86+52ixhZ2/LXpTiORwYS54kP+bRIH3Te4mbpG9n9P0lMOo+rCu5gWKJaOQVfY2 X-Received: by 2002:a05:6a20:ad89:b0:a4:bd66:6201 with SMTP id dd9-20020a056a20ad8900b000a4bd666201mr72076725pzb.59.1673288890156; Mon, 09 Jan 2023 10:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673288890; cv=none; d=google.com; s=arc-20160816; b=YjqNNE5yp/ceK0m5Vau79ZWmuGFUZAT1+XGZuEDJ62zFOhmkgT5EBbYTs6tkUbgwyI 1C5hg9+6mARtn0aOI25gCF8qHg1ZiZ64pfSSZ7g4q1oKhG4W5pDQnXYC/MjX5R1vx9Yc K2Ox0kBhVePIQlP1str44zUFeaV63DRBsj0TbODYtMTynf0+JoMriJiofH2/Few/jh2N QvneDTlnrk14HP/rqngw33PmsdCYGKEqc6xGsNlMRkTVuQpM4fIHsnRr7xWRzoeTtV0X 76XSKVzQ/f4OCIo5gqsH8RZagxBVXksZ/TLcfcxervV0V+C0HnOEOeTb81Vv3b+cvMrg XTRw== 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=0rs4/RsOq9pWCsRzVHNoESp+BTbLpFbSfTXfeGio2ea24a45jMRkhk3ohs9jvNtpY6 iGEgNOad0XNDH8SX0sjs3wpltJVb+4e69K0XTu7CZFXcc1BTQE/UejnhmFh9Ny4qqblS RkXWV78lAtMxOZjwJI8f1bzrr3umQG6R1+NfdbbnkA4Kl8T5B1cT8eTfnkpu2/F3ha+i XF+33CG+deOAfiYW0H4KOwIS7lbbzxRk0QHJqa5jtNB+yIZvX2NIuWUIb79gIYblVZPV TPdL0CtLNAj9GQti3/HvLZ4WcefZTMfNQEQxsT5YjFEltfE0MZnjgq0rWumFqFomEzDM mXfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=keYgJ2y3; 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 t14-20020a63eb0e000000b0046f4696a544si10691190pgh.128.2023.01.09.10.27.57; Mon, 09 Jan 2023 10:28:10 -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=keYgJ2y3; 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 S237668AbjAIS1U (ORCPT + 99 others); Mon, 9 Jan 2023 13:27:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237459AbjAIS0e (ORCPT ); Mon, 9 Jan 2023 13:26:34 -0500 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34BA017E21 for ; Mon, 9 Jan 2023 10:24:08 -0800 (PST) Received: by mail-ej1-x633.google.com with SMTP id hw16so10457806ejc.10 for ; Mon, 09 Jan 2023 10:24:08 -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=keYgJ2y3nl5URethgnUoaSGHv3Qr1qCaZizWzyh3ecUHLBUFAOR+b0RCOE0XQ/QD0X dhlXZZ4fBWTRdK5q3Ef7VW5Cs9igbU9BkjasBP0WiF2ebvrFYvw9xBJe/tyRlKNdendY mN1/SXhIEecvDAHuF1wycidjyRVeJ3uPadn2s= 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=yWYQZOinLZZN81jzT31UTxOHYO+dmiQepm8WaWKeVVfKUns/lnkbzGGifnML3Zeupl VDtYhjUgKz65chgCax0W8EQnvmDhSkZ7Vt8SrPUU9UmKCWffOwyJj4LZjKzizRrB+Ntb izReI1Zsl54f2Btn5F6x/7ZSx1ScbnS3rDEzc/hBJ/hTTdqF0uYeD7iYe0YkVvbyO5gg 3I7NSS5v9TvwPowZuCJMABP+f+lSIhZCREPDVn9GyTO/9T47VxWCcKxDQcsPaYlmpKn2 i7IWaNPzMGdDEpdnaLp4CKzk787DSDsD+xkx6zyQa3Os9t9psFkjweims5XwW0mB7P+v iHag== X-Gm-Message-State: AFqh2krzC9gOBvhfH+UpASrV3eQCa1mThsIyyqqdAAqDLmm37Ow6lzxV mVESjefCe1+IibXMzFEm0Q1ceEXAfow+CTf0bOU= X-Received: by 2002:a17:907:2113:b0:84d:4b39:1448 with SMTP id qn19-20020a170907211300b0084d4b391448mr3081519ejb.67.1673288647150; Mon, 09 Jan 2023 10:24:07 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.pdxnet.pdxeng.ch (host-80-180-23-57.retail.telecomitalia.it. [80.180.23.57]) by smtp.gmail.com with ESMTPSA id kz22-20020a17090777d600b007c1633cea13sm4093653ejc.12.2023.01.09.10.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Jan 2023 10:24:06 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Vincent Mailhol , Amarula patchwork , Marc Kleine-Budde , Alexandre Torgue , michael@amarulasolutions.com, Krzysztof Kozlowski , Rob Herring , 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 v6 4/5] ARM: dts: stm32: add pin map for CAN controller on stm32f4 Date: Mon, 9 Jan 2023 19:23:54 +0100 Message-Id: <20230109182356.141849-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230109182356.141849-1-dario.binacchi@amarulasolutions.com> References: <20230109182356.141849-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=ham 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?1754570571155251062?= X-GMAIL-MSGID: =?utf-8?q?1754570571155251062?= 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; + }; + }; }; }; };