From patchwork Tue May 15 12:23:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erwan Le Ray X-Patchwork-Id: 135873 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp945221lji; Tue, 15 May 2018 05:24:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqFJkOGHiHndozrRBn75QGN7yF+lgT9ky3esB2ndcKcsxes3fXXMVxEHUjVxUeKUJYFHce2 X-Received: by 2002:a62:991:: with SMTP id 17-v6mr15018350pfj.34.1526387089743; Tue, 15 May 2018 05:24:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526387089; cv=none; d=google.com; s=arc-20160816; b=Hr2iy0KPqbvYN6qtSFcZanlPFID5zi3OGt+udvZW94Ra6hNms5GcFlJraJqDL/mGRf aYtv22mHbQhdVk6ousW70JcSXtbDNO3HtzIDcBjcQupcSm5btpyllXV888KdVov2FVat GzKBwr+LrnElZXNBgKtborW7h2rnB60CDRRw1LtMdWgGii8OJ1YXZpi4a5EIbdwXCQoK V1k9vH4HZArHcyrQBeCLNvRQtEx+VCoeNQELQDQFb21/2loavHG/5Gc0gE5awi0G9Xag J5KJ15rCbOuhENPXNx9eHnGeiOsdbRFz13LEz5NpxBy6/44qW+6PWxJwRjpF+Vi8gBp7 ChCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=20bQS3d4MBQc0UsSbFesKQCdE4Ye+HdY0b/RxZFag10=; b=UydYP6qT8V6MuyCZQDEQDRRp3XRqLepGd25KmXXycsxvfV2s3mLDJV/XA3ko6CcM7x bTIevO4gVNg/pDHx8yNDClrXMRo4mE5tX7YFXR9sOr1b55ZoqyoMMo7hdsz6KHgXtcSF UQ+M7eARrAlWO/E0O6ajnT0aA/KP9ZDm+BbE5Ebkx0n6F9AtBVh2ct16JmxDl2O65dgy ydC4yB5NLzmtpQfAHRHU2V+/Y991pJOW1Rad1yzLwtSRble/LcJNCrRBgAXRcJFNIohS f2JHgvD6YMrLweXNsq4PvHPmIUAaFAuryMiylSdVBvZUOaktMBvq1enrilyhg+MRa1T3 j5EA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c7-v6si11286190plr.145.2018.05.15.05.24.49; Tue, 15 May 2018 05:24:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753322AbeEOMYr (ORCPT + 5 others); Tue, 15 May 2018 08:24:47 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:38794 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753323AbeEOMYo (ORCPT ); Tue, 15 May 2018 08:24:44 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w4FCOL1d021033; Tue, 15 May 2018 14:24:28 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2hys0qa5k6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 15 May 2018 14:24:28 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 252C938; Tue, 15 May 2018 12:24:28 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas24.st.com [10.75.90.94]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0CB882CCD; Tue, 15 May 2018 12:24:28 +0000 (GMT) Received: from SAFEX1HUBCAS21.st.com (10.75.90.44) by Safex1hubcas24.st.com (10.75.90.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 15 May 2018 14:24:27 +0200 Received: from localhost (10.48.1.164) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 15 May 2018 14:24:27 +0200 From: Erwan Le Ray To: Maxime Coquelin , , , , CC: , , Alexandre Torgue , , Subject: [PATCH 2/2] ARM: dts: stm32: m_can activation on stm32mp157c-ev1 Date: Tue, 15 May 2018 14:23:59 +0200 Message-ID: <1526387039-14813-3-git-send-email-erwan.leray@st.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526387039-14813-1-git-send-email-erwan.leray@st.com> References: <1526387039-14813-1-git-send-email-erwan.leray@st.com> MIME-Version: 1.0 X-Originating-IP: [10.48.1.164] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-05-15_03:, , signatures=0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add activation of the Controller Area Network m_can on stm32mp157c-ev1 board. Signed-off-by: Bich Hemon Signed-off-by: Erwan Le Ray -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi index 88e9133..2e4c5e3 100644 --- a/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi +++ b/arch/arm/boot/dts/stm32mp157-pinctrl.dtsi @@ -185,6 +185,19 @@ }; }; + m_can1_pins_a: m_can1-0 { + pins1 { + pinmux = ; /* CAN1_TX */ + slew-rate = <1>; + drive-push-pull; + bias-disable; + }; + pins2 { + pinmux = ; /* CAN1_RX */ + bias-disable; + }; + }; + pwm2_pins_a: pwm2-0 { pins { pinmux = ; /* TIM2_CH4 */ diff --git a/arch/arm/boot/dts/stm32mp157c-ev1.dts b/arch/arm/boot/dts/stm32mp157c-ev1.dts index 9382d80..3be73d2 100644 --- a/arch/arm/boot/dts/stm32mp157c-ev1.dts +++ b/arch/arm/boot/dts/stm32mp157c-ev1.dts @@ -42,6 +42,12 @@ status = "okay"; }; +&m_can1 { + pinctrl-names = "default"; + pinctrl-0 = <&m_can1_pins_a>; + status = "okay"; +}; + &qspi { pinctrl-names = "default"; pinctrl-0 = <&qspi_clk_pins_a &qspi_bk1_pins_a &qspi_bk2_pins_a>;