From patchwork Tue Feb 7 11:29:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 53846 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2796369wrn; Tue, 7 Feb 2023 03:34:59 -0800 (PST) X-Google-Smtp-Source: AK7set+0OQ89jEpJ9c/kirayJ4feYv4SWCj1ZXkcMjAdlXzqLN0+mk7yRvqud0ynNuy1BM8N3AoN X-Received: by 2002:a17:906:2cc4:b0:878:5372:a34b with SMTP id r4-20020a1709062cc400b008785372a34bmr3055175ejr.45.1675769699297; Tue, 07 Feb 2023 03:34:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675769699; cv=none; d=google.com; s=arc-20160816; b=jIMyEtktb0sUuxsfTLhYrX9fC9ZRk8cnzQmrt7FSPBTWoAPOX2GDCTo4oHXnqCyzGD 2U+cbXkW0nDob3ZUMj5N2NzFoO1XwifAIDt9RS1nWYfLFoABAz258SPjCWdfYfCAuaBj SR5TzF1g0ipW7dJTFSQuYG+LgaypUIaSzO/tNLIW4i914q3Zvy1lyUTXr3VdP6nOWhgb Fwtz6tFSz/Y01OEDK5AxZ5nXCIM7Tl8dTl5Q/Na+xKeCY5ibfV1nTIjWPemIqgQZxc63 Dh2bnImpM9wIeiFZzHPF2WTlcYzHTYmLWYI7b8SYg/d349FQRjK/CezHi9ZTh1jV4xNK Ehgw== 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=pYbXBlnpoS34l8klLGQLBBpQU4E4emK6fBBIMXILYYAvAwds5/ex/ED4R4y0b4goco s1v7tC36k0kFPLg4vLHB72BY3OX1SaDKX/XDFrFsHkwMNrslE0AY1AIQt9X/BrIAZr5N 731ooTmp5ooOgcQewCttlpPySPzeu9fpDzwoGuoPSLHao9T+OAxZAmBQCT27U5JzEPgA Y5GNK9EfVbtYfTIPZl0owhqmjHomoZmdKiMMfFoNIbB3SR7Y4eoCnVFdFW9MP/Rtz7Bv mNzvBCSGJDw5nkIhEWcdRlHBp/TdInOAM1iME63ZAgqJrpa6UmJfv2QkfW6Y4kVh1gVb PjdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=PmQjSqc2; 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 mz14-20020a1709071b8e00b008778ad3ca00si15765113ejc.234.2023.02.07.03.34.36; Tue, 07 Feb 2023 03:34:59 -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=PmQjSqc2; 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 S231893AbjBGLad (ORCPT + 99 others); Tue, 7 Feb 2023 06:30:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbjBGLaS (ORCPT ); Tue, 7 Feb 2023 06:30:18 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FCC78A7E for ; Tue, 7 Feb 2023 03:30:02 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id j32-20020a05600c1c2000b003dc4fd6e61dso12917671wms.5 for ; Tue, 07 Feb 2023 03:30:02 -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=PmQjSqc2eo0bO85LD0FWqEcnKXTUWseHi0CKZvgjE3BxNv8yr81bHxTNHFuWjcvj5G LrWP+BZZqWwC9XT6hH3SefMuhhMax5ThFQQLAH+2ymUgSvot0FNl6b5QvJAo+s9rhNys ovaq0vtOPc8vr12TUIFYy73lxwOFH0gCpOGbc= 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=RS7+i8TfUel1e3oUf9/Jz1MAaCOa1BIM0LgOYMAcoJe1EnXjG+b5p3W+wnxJYmgyAi qKnnV26EUDfFBLLFW6wF6AOjuJUINiBvaymeqRfwWwXfbbnK94L30IF5wXXQoPnuRZNg bcJAXcuct+o8ZUMW3e/imoA4nzydZ62zaODQE20M9OKztJA0dMLXnkNCdgyyqGkCi913 +DbjYFFJJSEkbBIiSiUL6Z1FpGlYMC5kASOqe084E/CMRIURXNKUGGq89l4ZyKMAFAeJ LEn4t7WurKG0irnS18u5/2/HxCZkzplm1pDjKkkPdkhMEoomzaEsev7Xgzzfr/CyIGB4 Xx1A== X-Gm-Message-State: AO0yUKUTM7FzA543guum0qP/VvuMZcMDahcYDhdwzwr7vHTkJLmyu49T ssvJXkH02k+eeqUQQz51rnV0EBxlyYIjXNfxBW4= X-Received: by 2002:a05:600c:4485:b0:3db:887:8c8c with SMTP id e5-20020a05600c448500b003db08878c8cmr2882940wmo.27.1675769400595; Tue, 07 Feb 2023 03:30:00 -0800 (PST) Received: from dario-ThinkPad-T14s-Gen-2i.amarulasolutions.com (mob-5-90-193-20.net.vodafone.it. [5.90.193.20]) by smtp.gmail.com with ESMTPSA id bi5-20020a05600c3d8500b003db012d49b7sm2020827wmb.2.2023.02.07.03.29.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 03:30:00 -0800 (PST) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Marc Kleine-Budde , Alexandre Torgue , michael@amarulasolutions.com, Krzysztof Kozlowski , Vincent Mailhol , Rob Herring , Amarula patchwork , 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 PATCH v7 4/5] ARM: dts: stm32: add pin map for CAN controller on stm32f4 Date: Tue, 7 Feb 2023 12:29:25 +0100 Message-Id: <20230207112926.664773-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230207112926.664773-1-dario.binacchi@amarulasolutions.com> References: <20230207112926.664773-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?1757171887737840779?= X-GMAIL-MSGID: =?utf-8?q?1757171887737840779?= 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; + }; + }; }; }; };