Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2831013ybg; Thu, 24 Oct 2019 16:11:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqz3mXX9mPg9Oo/BNZjOCg6K/YDDTcqj5ta0QILUTgaPsY9nf0tOjqTWZrFK1k6Eqw+qnKnf X-Received: by 2002:a05:6402:1816:: with SMTP id g22mr770688edy.76.1571958716064; Thu, 24 Oct 2019 16:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571958716; cv=none; d=google.com; s=arc-20160816; b=g/6QntkEfxfuEpIkeM0vHSCirtg6IP06juRJsI+ZbgeU9z7Tw9BAqKE7wLYUh9vGRq WQYL6ITLlxie6OCncdqFyummPjlweIaQpEP00jnAx2AAKJA3oNTDT1GBlujhxbJRFJEg SbweUOPLMs4s584MxZZnXpw3Zn6NqE5Z372m/iVu2z1snWZjbJojzntHdgFjd2GjAxEg V/+JNnArA6Q0CGrumSzRMrd5YBUCUTOaMMIeb07oj2Mp2kcUoZU2/DBjXlsOd+Y993R7 8Vp9fPl6dcEmgBnhAR5mq+W+gU49JC7MddNcnYUPEtg2+pd+Ymx0IxDxrTdoLc5uqBUm fKdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Lbb6pZx3ZTowOsvOxDZoEaUnZkeNq+gMBTK7+I7TWhY=; b=VOPGFNLQCo8yNRTBAvBjCgK8LYX4n44wpWbahUVjNT0LfEoLcS58vTiJrLxNBuuePN 1sxX73j+n1/0GTSkHEMKYsKJVEe9E5I8LQ9kC60+/SQoHBiYhKJSu4HWPqQG3im6fSKt pGKrXuV4hqr/Lj5eDLZ86yKQnRSMbB0NBY65ANPcD7VSwT2Nym8j5lNkgvRrCZ6RggFj 1MibNMspnnxKchBNIeNIygRGWLeJCCU+Ez/DWNTy9ByWQuUe9sVjMw27BwDJ22m5jHPS SWfXJfOM2KK18YU3gCyS2Yy29wE3BPwYSczgEtyq22wrzT/XwunjMsQw+kbwf1Nzj8SE ygdQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ly18si125824ejb.374.2019.10.24.16.11.31; Thu, 24 Oct 2019 16:11:56 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438451AbfJXIvt (ORCPT + 99 others); Thu, 24 Oct 2019 04:51:49 -0400 Received: from inva020.nxp.com ([92.121.34.13]:56520 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438424AbfJXIvs (ORCPT ); Thu, 24 Oct 2019 04:51:48 -0400 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8FAA71A037E; Thu, 24 Oct 2019 10:51:46 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 0FCB31A0B59; Thu, 24 Oct 2019 10:51:42 +0200 (CEST) Received: from localhost.localdomain (shlinux2.ap.freescale.net [10.192.224.44]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 2F1B7402D3; Thu, 24 Oct 2019 16:51:36 +0800 (SGT) From: Anson Huang To: robh+dt@kernel.org, mark.rutland@arm.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH 1/3] ARM: dts: imx6ul-14x14-evk: Add sensors' GPIO regulator Date: Thu, 24 Oct 2019 16:48:38 +0800 Message-Id: <1571906920-29966-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On i.MX6UL 14x14 EVK board, sensors' power are controlled by GPIO5_IO02, add GPIO regulator for sensors to manage their power. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6ul-14x14-evk.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi index c2a9dd5..4074570 100644 --- a/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi +++ b/arch/arm/boot/dts/imx6ul-14x14-evk.dtsi @@ -30,6 +30,16 @@ enable-active-high; }; + reg_sensors: regulator-sensors { + compatible = "regulator-fixed"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_sensors_reg>; + regulator-name = "sensors-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&gpio5 2 GPIO_ACTIVE_LOW>; + }; + reg_can_3v3: regulator-can-3v3 { compatible = "regulator-fixed"; regulator-name = "can-3v3"; @@ -448,6 +458,12 @@ >; }; + pinctrl_sensors_reg: sensorsreggrp { + fsl,pins = < + MX6UL_PAD_SNVS_TAMPER2__GPIO5_IO02 0x1b0b0 + >; + }; + pinctrl_pwm1: pwm1grp { fsl,pins = < MX6UL_PAD_GPIO1_IO08__PWM1_OUT 0x110b0 -- 2.7.4