From patchwork Sun Apr 23 17:25:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 2869 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id A36EF3F259 for ; Sun, 23 Apr 2023 19:25:45 +0200 (CEST) Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-3f195c06507sf17537835e9.1 for ; Sun, 23 Apr 2023 10:25:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682270745; cv=pass; d=google.com; s=arc-20160816; b=Fpf46B0z3yDZ1ZXWfQ4K3tP7+U+TLklhpP7RcjgP3gJCG7Eltcr0G7htZFxu4cHJ8k SI9Uv0ZpDJZJ1eH8b89c4gnwHMAwmSpVAh5tj0IiPARFJoMD6tX8qzl1F6hUDRM/YEyY Ozx1L1AZaQU1S8Gi3eW9W5KAkE0rWO5oM1pA2/B4h2ynKV1xbfovGbitzdgjwKViBXio sJyXY0NX9N53AngmGWsfGyW12WeNNwjV8dOy8EY7ojzkCPRJ3FyBkkob3ItTzs52PRxR Gt0mFRXGNGKhhY5jhj8iLd/RRj9WHxxhSLOoFuyOXjM73E0T1z2OkhmbV3Vj/msC18ZK l1rQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=jYHz8eDwFF9yqqUN2lJ/iMc4WsWdNajzbskf93qf/jg=; b=OnvQG0ur+WePVTT+SSN/dMWpBFhTrZzjTpMf+5y7HJPoCHt3Xv/x4bc5Awkrzf+rbj kKITkoEsIgIBh//qBpqv247jABDRAF9dWexYwIWuS0RF4AByjgHnHRF25jTRhQC47nTi QMn3VzTLk/H69js2A/aJSWOgC4YTjf2GcaYV5F2K0AGHRU9cjlkoWa+sal1OEObzRY7T j4eUq7iq+ACakdDRPy1xgr3ZpivkxT7+PFoXewskRykOZezCKqWXf8g7svMPGxqt0UFv IjDfxfSReRx4gyiHi44+x1oYB/trL2Rwy/SF+D8/hJIErhbv7S5Yd+fzmOOv9N2wE3AK QTng== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cg0qM4kM; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1682270745; x=1684862745; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=jYHz8eDwFF9yqqUN2lJ/iMc4WsWdNajzbskf93qf/jg=; b=pgKzTU2bpiy8UoF/fiS14FnLDM6GkM2uOHwK3qWxIgd4vUV+/bxEJLiEDhdK/8AUA8 8jrn1U61fdPLhsqxIUiYy5tn8M+8vNWFoFgy3KE/Pw4gwj8/wkWTt/8yd+/iGFQt4oSJ oxRleZ5MBfsAIjXTxq3iCX/Qb+KOrJBZHb22Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682270745; x=1684862745; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-beenthere:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jYHz8eDwFF9yqqUN2lJ/iMc4WsWdNajzbskf93qf/jg=; b=hM/IJHp7hS5y00dHQH934LLGDjT6WHvl53IkgzKXEZCWbqlLVjicO1eX9qr3+0jiPS JkWwatSOnA7AUghtGaXHGLeTpjrIItXJpaktqT7fiqj9YZIC2O6hW/BDvsnc1pX6C1u2 rXuowWyrtE/mvzQzZmvbbh8danhByY6WkEhp71+MEIIx7W0fkFHgVW4RSq2NMp1Qnj3U 65slj+1bE8USlnSwcbYNLB3h7pWugY//jGaJmuHdNUxu7USgX/zeJ6rC0r12zX/tfCIJ 5jS5+C7p+7vbr8mcMXFpRVetf4DAYijCzEvG+lKUOCkmxKdImzq5fSV4GYWgLjSwK9Xq LjWg== X-Gm-Message-State: AAQBX9cMtTR57inu1Z8N30X6nxhutmmzcBPmdsEWA8fvUHNCd7OvjdOX pgDh7SyPUcZGsl3Ubay91e4LhgcU X-Google-Smtp-Source: AKy350YrM6+udFVf0jPuFVZRISXMsjuzvlUKy5jcVKQOLckCAb0q0r6USsoynx2SpqUACflVH5w9Lw== X-Received: by 2002:a05:600c:190e:b0:3f1:7013:45fe with SMTP id j14-20020a05600c190e00b003f1701345femr2230427wmq.1.1682270745376; Sun, 23 Apr 2023 10:25:45 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a05:600c:3b93:b0:3f1:70ff:9ecf with SMTP id n19-20020a05600c3b9300b003f170ff9ecfls6197153wms.2.-pod-canary-gmail; Sun, 23 Apr 2023 10:25:44 -0700 (PDT) X-Received: by 2002:a1c:f715:0:b0:3f0:5887:bea3 with SMTP id v21-20020a1cf715000000b003f05887bea3mr6345122wmh.27.1682270743970; Sun, 23 Apr 2023 10:25:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682270743; cv=none; d=google.com; s=arc-20160816; b=PZUpUy7Oy5BP4a9OavWS9kyPQHPy35eVu2gI3wktbHfZmzGzYRzX4668u6/Mt+EfH6 QuyBISYryVKkcB1zI03DTbLJUmMRoKAS9SlMIZyHYFbOsFZ1p+IZarnuafZWOpbeRR0M YNxXvmgTwqa7t0Xgjj3V05C3c4mjEfQcVRlsLALwJqZEL5xfsp3PNyrzLB/VSjUoIbTc ERhPC3thrJAT7AwDkFDyDWDEKCX57JpwRYzG9sfOIjnSfz0+4hEEmIK5tNRxNignn/td aGPceG1u7sjGhzD2fCkCpEbpNgGdg9X2r9jr4YUACAHvtpVNFURvIx30KjUlMHcsdScZ gDlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=0FeM+sCDaiJjgHIKAN9KA5DToVUgObUF0WlB1aYKrng=; b=RE7Ga8ZNM7c47dKxfYE8CgmbVRMGMAaqlfzVAiM3MzsWvH56i1tFKXRtpoa3uCgChD ppnGCKIrM7wTMsFOlqNoSZH5jB/8CE6tsGc1t0QPOcQorRWLNO/KMtVncXMrhzuC136/ KrTazhtBrbora4Pj08hF59pgSWzCCsBToTdOWNbcwhtdVkya4GYnS6yb1aS/1HuWYi7J MAKfudpnR2xuD3Jei9axsxBQ1L09jDGkYJ8viE20Hvtmhrkh32c6J02WuruZqkuQ3QrL Grr7sx1OnSGRaMlPSXcnDsPIeYZXyCJQbYkWqL+VFjN56TFsrn+OVG+Gypt9V8KEObAl UVXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cg0qM4kM; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id j7-20020a5d6187000000b002f29555990dsor3314449wru.23.2023.04.23.10.25.43 for (Google Transport Security); Sun, 23 Apr 2023 10:25:43 -0700 (PDT) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a5d:5272:0:b0:2f4:de63:a0b5 with SMTP id l18-20020a5d5272000000b002f4de63a0b5mr8057660wrc.69.1682270743681; Sun, 23 Apr 2023 10:25:43 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.. ([37.159.119.249]) by smtp.gmail.com with ESMTPSA id j32-20020a05600c1c2000b003f173987ec2sm13511653wms.22.2023.04.23.10.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Apr 2023 10:25:43 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: Amarula patchwork , michael@amarulasolutions.com, Dario Binacchi , Alexandre Torgue , 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 3/4] ARM: dts: stm32: add pin map for CAN controller on stm32f7 Date: Sun, 23 Apr 2023 19:25:27 +0200 Message-Id: <20230423172528.1398158-4-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20230423172528.1398158-1-dario.binacchi@amarulasolutions.com> References: <20230423172528.1398158-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Cg0qM4kM; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add pin configurations for using CAN controller on stm32f7. Signed-off-by: Dario Binacchi --- arch/arm/boot/dts/stm32f7-pinctrl.dtsi | 82 ++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) diff --git a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi index c8e6c52fb248..9f65403295ca 100644 --- a/arch/arm/boot/dts/stm32f7-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32f7-pinctrl.dtsi @@ -283,6 +283,88 @@ pins2 { slew-rate = <2>; }; }; + + can1_pins_a: can1-0 { + pins1 { + pinmux = ; /* CAN1_TX */ + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can1_pins_b: can1-1 { + pins1 { + pinmux = ; /* CAN1_TX */ + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-pull-up; + }; + }; + + can1_pins_c: can1-2 { + pins1 { + pinmux = ; /* CAN1_TX */ + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-pull-up; + + }; + }; + + can1_pins_d: can1-3 { + 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; + }; + }; + + can3_pins_a: can3-0 { + pins1 { + pinmux = ; /* CAN3_TX */ + }; + pins2 { + pinmux = ; /* CAN3_RX */ + bias-pull-up; + }; + }; + + can3_pins_b: can3-1 { + pins1 { + pinmux = ; /* CAN3_TX */ + }; + pins2 { + pinmux = ; /* CAN3_RX */ + bias-pull-up; + }; + }; }; }; };