From patchwork Tue May 3 09:41:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Dessenne X-Patchwork-Id: 12835482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 714F7C433F5 for ; Tue, 3 May 2022 09:46:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6V6fUCXeZUTXhZzF4n48KlcLmK7Uyek1qHmPV80DKgA=; b=TFr5s19U7MeaKz KMPU4HC9R5YFieaYbz6NHfe+37lg8dD/Lem6PF/XpSMs3VZU1IEv53dfTk9QGyBDpYpKYdZFKFEN+ jfZUGg9k8RwQqQDtQaTRNdufPngLx0Cz2eaRBBRHKAbxGjF61M3VbtgtVRKyLLknGWA+2pwKZSzvZ 10cBhQw6b34Bo9vsSIPW4WhMhYfTIAG9XNbH/+1stOx4slrBoWl78NE5PHCT/rLt7HBbmk9tyuHlj or/LLDkOpUHarRs054s//MtCrzSilsIozcinBLgKoLox5myiOw3WHVz/ru5DZIfgWlCPszW6N5OOq M0JuvMaRk9cusBJmnaOA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlp66-004u7r-Kq; Tue, 03 May 2022 09:45:36 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlp2F-004rqT-GL for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 09:41:37 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2434gpKd023329; Tue, 3 May 2022 11:41:29 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=KtBi0bALfEZJ6PQMsbUtfysms3YLQRmfgj7UlOPq0hk=; b=PUAr2Q7EfoXFm8Lc4uTFRWghK4eiPObCkAE+tPkKFC/FgNNAcFENuocVCZ4BI/NfoyzF 8HsAHAdQ1B3C8y0OIprOzHg2IcxpGddW9fBGkFHJN9heeQR5VpQ3KNZAlUD02kz6Vbny kvoITw8WGVd2AsgNi98OpXeUqMzK7tHb0h2iQ10S2Qe319JT5j5m+cO+l4IcSSmYBZWW Yr8RQEOUHT07Jc8ztNbBrnrj3u03k6GugKkORTg488G3Tby8/vOGfrxUR3GjJpKrIOG3 Wc4G00BqXNQH2lgfy1CPY/BPHjf9LSvNCjO2iYb6Lgzq9nBEJ2vqQvb42xtwYrQk9ZFN sg== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3frthjnf9t-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 May 2022 11:41:29 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E734710002A; Tue, 3 May 2022 11:41:28 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id DF36C21514F; Tue, 3 May 2022 11:41:28 +0200 (CEST) Received: from localhost (10.75.127.47) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 3 May 2022 11:41:28 +0200 From: Fabien Dessenne To: Rob Herring , Maxime Coquelin , Alexandre Torgue , , , , CC: Fabien Dessenne Subject: [PATCH 1/2] ARM: dts: stm32: add blue led (Linux heartbeat) on stm32mp135f-dk Date: Tue, 3 May 2022 11:41:24 +0200 Message-ID: <20220503094124.502416-1-fabien.dessenne@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.47] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-03_03,2022-05-02_03,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_024135_883035_28586345 X-CRM114-Status: GOOD ( 14.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The blue led (Linux heartbeat) is connected to the PA14 pin of the stm32mp135f-dk board. Signed-off-by: Fabien Dessenne --- arch/arm/boot/dts/stm32mp135f-dk.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index aefa25ee897d..65acee0f68b7 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -6,6 +6,8 @@ /dts-v1/; +#include +#include #include "stm32mp135.dtsi" #include "stm32mp13xf.dtsi" #include "stm32mp13-pinctrl.dtsi" @@ -23,6 +25,18 @@ memory@c0000000 { reg = <0xc0000000 0x20000000>; }; + leds { + compatible = "gpio-leds"; + + led-blue { + function = LED_FUNCTION_HEARTBEAT; + color = ; + gpios = <&gpioa 14 GPIO_ACTIVE_LOW>; + linux,default-trigger = "heartbeat"; + default-state = "off"; + }; + }; + vdd_sd: vdd-sd { compatible = "regulator-fixed"; regulator-name = "vdd_sd"; From patchwork Tue May 3 09:41:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Dessenne X-Patchwork-Id: 12835483 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AAE06C433F5 for ; Tue, 3 May 2022 09:47:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=M2dxpurs0CW11JAB6VBptXQVay08n3xQK0fwHFSCGak=; b=zK7m06krBWx2Ox 8aPyZep3eJ76wY/h7lag21DSvGbCUWLzVbrEFvoYBAlXTP8ngfxBf6qgYNOPiubEEhFZGDIWthtjx eoQ0YEXcMhlnMtgN66IRPPMLSbToy4cxMzzMvcMeOiZ88CyYop1/4oAiP8FQhaI7Kcbr5ua5dacVH AcifqMijNQ78l5QV3L5aii23M/MoTUUWG1mea3eBZZIPaqY6jsouC0uEba2FpvX0ejxBJ1JAPrvej SDgEtMH+7UxAdQVyS1Gkl59dNH0rV2Ut51RS2JPMiWhF5m8tJ2zuaFDcRZ2eDHNK84bJ5kq7zzdyQ ixY4gc8cg85FCep7lTLg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlp6s-004uXK-Dc; Tue, 03 May 2022 09:46:23 +0000 Received: from mx07-00178001.pphosted.com ([185.132.182.106]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlp3M-004sXG-3j for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 09:42:45 +0000 Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 2439Y1Ei023012; Tue, 3 May 2022 11:42:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=selector1; bh=7Nkxzy9ejVE88iqdIEQy4ubNXjRNBVGQlHfPM8YGZwM=; b=p+rFu3bN9opwlMHzQ0C8eiqY7+BYdN17BkLJKDjUcnwZj1/xS7J8mW74oWZRKoyrKCqn nsqbNNlpUV68sjicyUOUPrzVMR4jJOT2n/SeL0vjIkea8IW0JQ22OH9t5q5QQYhgvfKs x9g546oDJt9rVUSEBnBFN1TKmgtjrJ7plKDBPPzU/XAaMmBJiYm1xa8jgHFUaicgL5dP CMQmCJ1s6B89M/UGMSrCpR5BFBQWUlM1QDn4sQHtwjO9sHC1O5i0tw8w+GTrVWNEdRd+ 4yal0s4tLpxfnyzxoyqhiQdfB/+VR1fgmSRjcNJZfDNa0c+5Frvjz91dFzVQiDPFxy4U BA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3frthjnfhq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 03 May 2022 11:42:38 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 4C45110002A; Tue, 3 May 2022 11:42:38 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 45AEA215153; Tue, 3 May 2022 11:42:38 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Tue, 3 May 2022 11:41:35 +0200 From: Fabien Dessenne To: Rob Herring , Maxime Coquelin , Alexandre Torgue , , , , CC: Fabien Dessenne Subject: [PATCH 2/2] ARM: dts: stm32: add UserPA13 button on stm32mp135f-dk Date: Tue, 3 May 2022 11:41:33 +0200 Message-ID: <20220503094133.502487-1-fabien.dessenne@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG2NODE2.st.com (10.75.127.5) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-03_03,2022-05-02_03,2022-02-23_01 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_024244_487777_F342144E X-CRM114-Status: GOOD ( 15.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The PA13 user button is connected to the PA13 pin of the stm32mp135f-dk board. It requires an internal pull-up configuration. Signed-off-by: Fabien Dessenne --- arch/arm/boot/dts/stm32mp135f-dk.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/stm32mp135f-dk.dts b/arch/arm/boot/dts/stm32mp135f-dk.dts index 65acee0f68b7..09d6226d598f 100644 --- a/arch/arm/boot/dts/stm32mp135f-dk.dts +++ b/arch/arm/boot/dts/stm32mp135f-dk.dts @@ -7,6 +7,7 @@ /dts-v1/; #include +#include #include #include "stm32mp135.dtsi" #include "stm32mp13xf.dtsi" @@ -25,6 +26,16 @@ memory@c0000000 { reg = <0xc0000000 0x20000000>; }; + gpio-keys { + compatible = "gpio-keys"; + + user-pa13 { + label = "User-PA13"; + linux,code = ; + gpios = <&gpioa 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; + }; + }; + leds { compatible = "gpio-leds";