Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10166429imu; Wed, 5 Dec 2018 17:43:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/XYUzhZ1wRpoRI2iR6kDZUNVKP0ZkFjBuRcOuTyCv8WJlSUs497rEgsl06f1DoL5OXHWkkf X-Received: by 2002:a62:6cc8:: with SMTP id h191mr27661546pfc.89.1544060616646; Wed, 05 Dec 2018 17:43:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544060616; cv=none; d=google.com; s=arc-20160816; b=ZtKhRnfaZqguV50ecRZQePouPLc7nu6GYNwoz2uBmMnPW3cY8pSyd0+pUEmQkQhGDn PCrTIOOV91ZsZg5tnFnZcTS6qEUoc0Qpi1DrxYtasnFaM3Yxjyb6xxKQ4F4y4RnmX+RJ p5f0bKB00hLTTYILpqQgm1QdyRcP31GrB+QRt1iNirvf/NAjOVM0VuXM5tTXagSqyFTN f/1LuRjtuaRja+0Q3gQsm3ObF2natPojRAyVmI5xWbAyjS7wa+A0kE9FFjLh8Yuax3xj IVlkjrsnPjGiwshw2/tVCO+dCd21ZevjKOfWqLtM2DJDnujaLqu2F6pbl5H5JRy0SW+L A4Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=U+oI3Hz/+iLd6Cqyj84jcC0zczbqzskFcHtazE4TMBY=; b=YeEIuGlPBQgoN8hWuIm09k0OhNfMVuS6Ud5ES+PKpHK0W+bi5H8aOSfDz/iHeNFRA2 9uuJDgnrRGKEvpIv94PmooS4ip2ISYlIInBic1ZPtJTlVyFhKJMpGkoPXKtSGtqjkDih rEFBJlMrnVwUMtWO7n3LrdqOVK9+qsWzJsWovdbh4OTFm1M/ImDKrfbBHFW9bYCAvxrI b5bHBaq3BUICewLvdpxuQlVa2NeN2LE+7++k/tvD1IlqN0kNBAv44YmJvwHYWafR93og ZVYRNlb97/k7QIrrRBkthxxg+CbuG0/TyE+e4lBZ96tHAPQpDp4vhQks151nKWoQX/Im 1ixA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=LQBzc8lQ; 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=pass (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 3si21482905plq.138.2018.12.05.17.43.21; Wed, 05 Dec 2018 17:43:36 -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; dkim=pass header.i=@nxp.com header.s=selector1 header.b=LQBzc8lQ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728871AbeLFBmk (ORCPT + 99 others); Wed, 5 Dec 2018 20:42:40 -0500 Received: from mail-eopbgr00044.outbound.protection.outlook.com ([40.107.0.44]:23680 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727794AbeLFBmi (ORCPT ); Wed, 5 Dec 2018 20:42:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=U+oI3Hz/+iLd6Cqyj84jcC0zczbqzskFcHtazE4TMBY=; b=LQBzc8lQeTi0kYX8E6THYP2AAbIaggAyERgN7/0PAGP7WKj7INBaudW+IoYcilDMkg8YJC+azNV4QAbtQwOo+SqaUMpVMDTNfUTbCDw5r+qdudGoP1NELzXNBm/YAhmAgE0Z/vIJrMYXetFmJ2r0fBZ2P6nzU9t93LeZV7RxH0g= Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com (52.134.72.18) by DB3PR0402MB3947.eurprd04.prod.outlook.com (52.134.67.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.22; Thu, 6 Dec 2018 01:42:34 +0000 Received: from DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd]) by DB3PR0402MB3916.eurprd04.prod.outlook.com ([fe80::adf8:f49d:deb4:58fd%3]) with mapi id 15.20.1382.023; Thu, 6 Dec 2018 01:42:34 +0000 From: Anson Huang To: "shawnguo@kernel.org" , "s.hauer@pengutronix.de" , "kernel@pengutronix.de" , Fabio Estevam , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: dl-linux-imx Subject: [PATCH V2 2/4] ARM: dts: imx6qdl-sabresd: add light sensor support Thread-Topic: [PATCH V2 2/4] ARM: dts: imx6qdl-sabresd: add light sensor support Thread-Index: AQHUjQT10rOFzOGhuUqcihFcwbvhiA== Date: Thu, 6 Dec 2018 01:42:34 +0000 Message-ID: <1544060203-22163-2-git-send-email-Anson.Huang@nxp.com> References: <1544060203-22163-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: <1544060203-22163-1-git-send-email-Anson.Huang@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK2PR04CA0051.apcprd04.prod.outlook.com (2603:1096:202:14::19) To DB3PR0402MB3916.eurprd04.prod.outlook.com (2603:10a6:8:10::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB3PR0402MB3947;6:wmkU0TSBR5EW/o/0NGmTOdM0TfElvjcvPMyagciEt2z827cZwXA14IhIV35YNw0zv1B+/8YlTyVHHartOhoWX3eS4w1j/dNNHqQ5xrARa0vYf/zGfzeMXJslNQ3ExqDvDD1B8BsLnZU1gLBwH9Z+kwWggcP565EIWQUxWnC0oP45XPUElRZu83mXI3X484gh5lYcaOvxv2v12hxtZioHz3emAO5maV4CMeuY/JwpvzO10aZ9+ydfMAVip3EB5znHde16m8ExYqkXzCKTSCXPVo+Jm3urtu4GVDM6DLVDBErf7ep4oSgfOlXq1aR4Qh15WLucmP40zEwvkYpXYWSTf2qzmxVCvShOMDfd0arrCmSXXVb93XQ+ipTcY5lirZ9SfawUKFKohHMt/YQINeqrlR85Fsbv+rSOtBUdtydtqquBthxrn3ZDbSKMrUx9x+LZI2QIYgTMbA4Ta0ymj/XFng==;5:CiXqGJ7XyUPSUX0oFe25zvchFXX93ZWgrxsLMB6I0hPn5jNcrH8NLvJKvB3NIH7r7GVCKlLTSLZdGYPrWOzxjJ5V8ZDPJf7YkPqedHzeEzFcBh1obNWELkE1rhsIBvKj6NORtWZ0jir4JtaphgjNmVYbmxIiaAnueMJm5D20HCI=;7:+PtwYpGd0Pn2LtXULD5Z1uSZeOKhIMXyZyZo6AtrjHIT+WezKqD6htaQOUj+Oon5TGILtF2MtLlRHG9Cr2xfQmHfB4BnCGB5XEuUGwjmBvb3ctb6oVIIZ0opZSwKhzArHOD9AU7ofMjMYKY0hxFUMA== x-ms-office365-filtering-correlation-id: 012d45c5-29d5-492c-2fa0-08d65b1c1839 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3947; x-ms-traffictypediagnostic: DB3PR0402MB3947: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231455)(999002)(944501520)(52105112)(93006095)(93001095)(10201501046)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201708071742011)(7699051)(76991095);SRVR:DB3PR0402MB3947;BCL:0;PCL:0;RULEID:;SRVR:DB3PR0402MB3947; x-forefront-prvs: 087894CD3C x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(366004)(39860400002)(376002)(396003)(346002)(136003)(199004)(189003)(102836004)(86362001)(2501003)(76176011)(11346002)(6486002)(97736004)(386003)(52116002)(6506007)(99286004)(3846002)(476003)(6436002)(575784001)(256004)(2906002)(26005)(446003)(486006)(6116002)(186003)(110136005)(106356001)(2616005)(14454004)(2201001)(105586002)(305945005)(478600001)(7736002)(4326008)(66066001)(25786009)(8936002)(50226002)(81166006)(81156014)(71190400001)(71200400001)(5660300001)(6512007)(68736007)(53936002)(36756003)(8676002)(316002)(32563001)(473944003);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3947;H:DB3PR0402MB3916.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: CDTtaavNew9SIgMCQLiBoLn4q9TnbNPIKmqnaWeEO6NWIWec5PcDy+WJ8CWZr1VdRyJEkvYuHLJpjMZPbvEj+3HLqNCNJs7GyUaM5zNnTzIS5yRvMVm7EPAMCcyiNlit00j7T27lWy9c+gctHpyQSVEyA7NEUp07tD5LKSoONPz39uLfCqr43zpGb/QUGLABjZWtZUh/8P9uCNOugGgrUbrZFXNg/doYCWBCe4mFyU/Cr8VRqLUBIrHDEZJNH4bHBLL3qO3QmnOZdfA0xBmIpAMXbz05YwEhfg9FVod7hhBstZ11S/uW4yY+rLIf0ENmWrwzwNhxx4BvtrbcH31sSAfRsbwlduYq4YGaYiGXIFs= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 012d45c5-29d5-492c-2fa0-08d65b1c1839 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Dec 2018 01:42:34.5438 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3947 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add isl29023 light sensor support on i2c3 bus, the light sensor's power is controlled by a fixed regulator, since the isl29023 driver and most of other sensors on same board like mag3110 and mma8451 do NOT support regulator operation currently, they are all controlled by this regulator, so this patch also adds the fixed regulator support and make it always on. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl-sabresd.dtsi | 33 ++++++++++++++++++++++++++++++= +++ 1 file changed, 33 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi b/arch/arm/boot/dts/imx= 6qdl-sabresd.dtsi index 66972e8..d07c250 100644 --- a/arch/arm/boot/dts/imx6qdl-sabresd.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabresd.dtsi @@ -54,6 +54,18 @@ enable-active-high; }; =20 + reg_sensors: regulator-sensors { + compatible =3D "regulator-fixed"; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_sensors_reg>; + regulator-name =3D "sensors-supply"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + gpio =3D <&gpio2 31 GPIO_ACTIVE_HIGH>; + enable-active-high; + regulator-always-on; + }; + gpio-keys { compatible =3D "gpio-keys"; pinctrl-names =3D "default"; @@ -410,6 +422,15 @@ interrupts =3D <7 2>; wakeup-gpios =3D <&gpio6 7 0>; }; + + light-sensor@44 { + compatible =3D "isil,isl29023"; + reg =3D <0x44>; + pinctrl-names =3D "default"; + pinctrl-0 =3D <&pinctrl_i2c3_isl29023_int>; + interrupt-parent =3D <&gpio3>; + interrupts =3D <9 IRQ_TYPE_EDGE_FALLING>; + }; }; =20 &iomuxc { @@ -511,6 +532,12 @@ >; }; =20 + pinctrl_i2c3_isl29023_int: i2c3isl29023intgrp { + fsl,pins =3D < + MX6QDL_PAD_EIM_DA9__GPIO3_IO09 0xb0b1 + >; + }; + pinctrl_ipu1_csi0: ipu1csi0grp { fsl,pins =3D < MX6QDL_PAD_CSI0_DAT12__IPU1_CSI0_DATA12 0x1b0b0 @@ -559,6 +586,12 @@ >; }; =20 + pinctrl_sensors_reg: sensorsreggrp { + fsl,pins =3D < + MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x1b0b0 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins =3D < MX6QDL_PAD_CSI0_DAT10__UART1_TX_DATA 0x1b0b1 --=20 2.7.4