Received: by 10.223.176.5 with SMTP id f5csp1969246wra; Thu, 8 Feb 2018 06:30:14 -0800 (PST) X-Google-Smtp-Source: AH8x227hKaEk5xfuZWQKXyXE9WIsaJML+nheu1PyKJ0WjcFvg6wOzQPV66cv8HeIhQCHTbh9uIhV X-Received: by 2002:a17:902:9a97:: with SMTP id w23-v6mr856085plp.100.1518100214173; Thu, 08 Feb 2018 06:30:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518100214; cv=none; d=google.com; s=arc-20160816; b=t5sSfQax83K0N9lQsDxkFlww3feD9mmelI3QW6B4aaJDy7JaRQgAUpTq4ZSSP4ftel JZE8Ya7fH4JIXzLH+6sdsWLXmMOQ03Nv5YKz0ZUV8GzUGz4c1RzSUKqb7tIqB0CLv5qx wHhQPSyrVQ/D8S4V70gDkkFETlz92iirtBXF4a+zfyWbd/6Voyg311XD0t6W+1CByfE6 cC4V//3JxjeOtThgsHe4h4qkCN5QnY6xjF+Y9J/eD7Ub2qWNowag4MYWx8lLhOInHXuD tZ60LExanTJrCZhe7W9Z8ayzlAZPEmI3dJJU9Ssd25isYvvEvLws6FMZ3XHdofrUr8TP ir2A== 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=2TkvPwNd9+HmrwbttDr03MBJQqnJpOKWsXfjw1L3abY=; b=Y84VOS0ONWjaFzQfjEA5yWNA+qZmPR6PjqBNhgscInYmUXNt9bxdhcq0ZUTgR1lNLx +G8cb7neQIoAhzsu/elSqMT580J+g08R37SHBFXuljb0vA3UHKlrLUCHdN3clzXmVne1 P9JmOqcTYFHXaa7Hqmf1Kd3qvuwGtu+p7xBH/UF2zMqBTl+UMKzMvttGSGn5J3E2CUzx mOQMQqbgloSy4k+odJElyy5sQKGXpkTYw2u1880UQDFTQo5jH5Q/yQj2+TURLCNSfSlb sQSILMuHqqpiplCzmWt7qV1M0t7Tu2w35w2jcAEQFAK7VUYPDmDDpNizgKg5k0U8c/jd UQjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 n79si18705pfa.148.2018.02.08.06.29.59; Thu, 08 Feb 2018 06:30:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752246AbeBHO3E (ORCPT + 99 others); Thu, 8 Feb 2018 09:29:04 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:37957 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751984AbeBHO2g (ORCPT ); Thu, 8 Feb 2018 09:28:36 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w18ENxGX008083; Thu, 8 Feb 2018 15:28:04 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2fw4uj2v0e-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 08 Feb 2018 15:28:04 +0100 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 52C6B31; Thu, 8 Feb 2018 14:28:03 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 26E5EA480; Thu, 8 Feb 2018 14:28:03 +0000 (GMT) Received: from SAFEX1HUBCAS22.st.com (10.75.90.92) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 8 Feb 2018 15:28:03 +0100 Received: from localhost (10.201.20.5) by Webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.352.0; Thu, 8 Feb 2018 15:28:02 +0100 From: Amelie Delaunay To: Lee Jones , Linus Walleij , Rob Herring , Mark Rutland , Russell King , "Alexandre Torgue" , Maxime Coquelin CC: , , , , "Amelie Delaunay" Subject: [PATCH 5/6] ARM: dts: stm32: add joystick support on stm32746g-eval Date: Thu, 8 Feb 2018 15:27:36 +0100 Message-ID: <1518100057-23234-6-git-send-email-amelie.delaunay@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> References: <1518100057-23234-1-git-send-email-amelie.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.20.5] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-08_08:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The joystick on stm32746g-eval uses gpios on MFX gpio expander. Signed-off-by: Amelie Delaunay --- arch/arm/boot/dts/stm32746g-eval.dts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/stm32746g-eval.dts b/arch/arm/boot/dts/stm32746g-eval.dts index 99739f7..eb5f43b 100644 --- a/arch/arm/boot/dts/stm32746g-eval.dts +++ b/arch/arm/boot/dts/stm32746g-eval.dts @@ -43,6 +43,7 @@ /dts-v1/; #include "stm32f746.dtsi" #include +#include / { model = "STMicroelectronics STM32746g-EVAL board"; @@ -98,6 +99,36 @@ }; }; + joystick { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + button@1 { + label = "JoySel"; + linux,code = ; + gpios = <&mfxgpio 0 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; + }; + button@2 { + label = "JoyDown"; + linux,code = ; + gpios = <&mfxgpio 1 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; + }; + button@3 { + label = "JoyLeft"; + linux,code = ; + gpios = <&mfxgpio 2 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; + }; + button@4 { + label = "JoyRight"; + linux,code = ; + gpios = <&mfxgpio 3 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; + }; + button@5 { + label = "JoyUp"; + linux,code = ; + gpios = <&mfxgpio 4 (GPIO_ACTIVE_LOW | GPIO_IN_PUSH_PULL | GPIO_PULL_UP)>; + }; + }; mmc_vcard: mmc_vcard { compatible = "regulator-fixed"; -- 2.7.4