From patchwork Wed Mar 15 21:10:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 70465 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp135681wrt; Wed, 15 Mar 2023 14:34:46 -0700 (PDT) X-Google-Smtp-Source: AK7set+x3tCK/EfTYaTndhAapGI5UzvfYRkYQvZDQi5mWR1ymbJHPRhfTimqY860fX+GeiER4/pL X-Received: by 2002:a17:902:da92:b0:19e:b38c:860b with SMTP id j18-20020a170902da9200b0019eb38c860bmr1226467plx.24.1678916085937; Wed, 15 Mar 2023 14:34:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1678916085; cv=none; d=google.com; s=arc-20160816; b=KOmQh2r/qV3Ra0F2qCRraw1h+d1yGDIn/KMmd4gOOf9EczvfEOk2m87ODK6W2UmdO2 M7I4uU16wPS7QkEN17z1NLsGKIUncxgxolwc0raPzRLXeskyxzTsLe0Q2b3GoPxhXZBH w4kHTunKGriqNFm7b6VAysFMSQ0ryFLBKakv2TE2HUtheOpvxkYTbUM6NEH2/L3OleCy 5H7psnaQisWAItV1/Uyw/6mWRH7UxVadNmisBn/THs2CbbQwNpsJytMxE6hkrHsOdDRx 2OAxQsvzALJYanllvxQRN4VvVH1IzuslxrLvoV2qgCR1KzwiW6juLQjIY4v1lFVR3B3k nZPw== 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=QV3iGa8KiUlr1LClhXl1D1BGw0maVF3hcUmABXx2qKM=; b=sVqgtrGVBZLXKb+oT+BDohOTstYJepojBwXuDQYgDnxmTOF1VbMBcoSnAayndMBGQN pcXDIbxyQ7cUiqoEg53NqPsK8lOusqnH3t7PwRWCx1uxvq3TCo5xqGwZQljksHm+VLF/ QCIG+6egen178CKtCO1hCAUNcAva2/UhpKT+xySgbEf1aIU5sTodq5HiGPAR84DqQ8Vu NRsE5riv69/cZH2yA0wY4xTi9rmgEniA1vaJzVKzLrUAUTSJjiumu9FKKHygm0fIlJn+ T3zoiF98SSd3a9BeowLTBniL4lZdUZnY22xx3JoaWVcYqjaEF0sW9Ko8p3baoP7v2tUM B9MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=ohOAJfTr; 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 ld13-20020a170902facd00b00195f4f578fasi6311752plb.564.2023.03.15.14.34.33; Wed, 15 Mar 2023 14:34:45 -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=ohOAJfTr; 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 S232941AbjCOVLW (ORCPT + 99 others); Wed, 15 Mar 2023 17:11:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232938AbjCOVLR (ORCPT ); Wed, 15 Mar 2023 17:11:17 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23ED43866C for ; Wed, 15 Mar 2023 14:11:06 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id z21so15379432edb.4 for ; Wed, 15 Mar 2023 14:11:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1678914666; 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=QV3iGa8KiUlr1LClhXl1D1BGw0maVF3hcUmABXx2qKM=; b=ohOAJfTr7KdZGoWacsyDi1q2g6iQWcxDkyS31OPkkLXWzu65VmmNVOAW2rrfOba+OK nZKj634RL1nZLy3BUnbpqDGxSIiO1KiFLIoFwqDfXRBVtiG3pbeoJW5R341asYxjydba HbJ/YHH9KBOMgap+SHjm8iAaiFMqZ+Ufz8pPw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678914666; 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=QV3iGa8KiUlr1LClhXl1D1BGw0maVF3hcUmABXx2qKM=; b=UUazPx2mR93xbZv1maCIozlTTPgpvvRz0QdQfLdCVckDUpVxTzSYYKp7gOxesWmu5z x0CM4CGV0CAae6HV5vmF2TG8Y8NVHmZmlDEvXHwUCzXjcic4RmALzy3Db+1T/bph+XCk No6J/HQoQOpUj2RXxAdirMzCUecfmEoom3MNs4NQqg7Ec4n1LL63fsOxhTcMIzZK6bxC uZTC3F44nm8HZTGqp7fI5OFrIBWZ0/p7M2/OvihAQ1Lj9Z+KhvaabLZpybN286GZYJey tJK1HRusFBDz+CzNX1zaUIu24gKkMWxCRpou9NDxT8HGLUsrhm55N1DwBflDNTSd63ek kR8A== X-Gm-Message-State: AO0yUKXbNIAlUOLmzuzpa6kmBzf6/eVcUAoRW+DIuB/FFOnIr6C9Pk13 i0GiPUub1hLl2kQatap/9hZimM+1QK88vaVjGvbw2g== X-Received: by 2002:a17:907:b021:b0:92f:b8d0:746c with SMTP id fu33-20020a170907b02100b0092fb8d0746cmr1467931ejc.20.1678914666235; Wed, 15 Mar 2023 14:11:06 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-87-0-96-89.retail.telecomitalia.it. [87.0.96.89]) by smtp.gmail.com with ESMTPSA id o15-20020a170906600f00b0092b5384d6desm2965366ejj.153.2023.03.15.14.11.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 14:11:06 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Amarula patchwork , Vincent Mailhol , Alexandre Torgue , michael@amarulasolutions.com, Rob Herring , 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: [RESEND PATCH v7 4/5] ARM: dts: stm32: add pin map for CAN controller on stm32f4 Date: Wed, 15 Mar 2023 22:10:39 +0100 Message-Id: <20230315211040.2455855-5-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230315211040.2455855-1-dario.binacchi@amarulasolutions.com> References: <20230315211040.2455855-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,URIBL_BLOCKED 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?1760471113855726609?= X-GMAIL-MSGID: =?utf-8?q?1760471113855726609?= 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 4523c63475e4..3bb812d6399e 100644 --- a/arch/arm/boot/dts/stm32f4-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32f4-pinctrl.dtsi @@ -447,6 +447,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; + }; + }; }; }; };