From patchwork Mon Jun 18 08:15:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10469563 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DF73D6020C for ; Mon, 18 Jun 2018 08:16:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CED6028831 for ; Mon, 18 Jun 2018 08:16:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C290A288F3; Mon, 18 Jun 2018 08:16:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3FC7228831 for ; Mon, 18 Jun 2018 08:16:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=WECLwhuXCDcxCAZOUxMf41NGh3H8r33X2i6faocjlxU=; b=PqZwWpxij33Ieb O5GBnU9HgTaFiThhZLHr9MldI4t9HBZ0PMPm0YOKlfEGB7yRWt6DBc8xcs7AvX/Q+DmOBjV2Jdbmz x/E71C/sbjerpYFiy2VUR7yN+4F92+PyG62G/+wa4RgnEKnnWiPlxAn08qy+HXES/kvbQ/TYJ4PY+ HeWe5PvvF7vo9MKawRQgoNhkjCYsYKd0F2XMPlPMib8bFbBxsSxjvwt+Dy5kE78DCcl7ecAUZ9tv9 /XHwPJHEMZcBHUspdTkoxbGYB9VcLz5YxW+1UQffYVzWjEQhg/P/yAJSNUdX5XbcuvAy7VSG6aLRa hRcnoNhdy/lP1I0cBkWw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUpKs-0000NX-Ut; Mon, 18 Jun 2018 08:16:26 +0000 Received: from mail-ve1eur01on0046.outbound.protection.outlook.com ([104.47.1.46] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fUpKp-0000M0-6k for linux-arm-kernel@lists.infradead.org; Mon, 18 Jun 2018 08:16:25 +0000 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=CkrqN/dTyWPDrRuyiaVKAETUV+ThyPNcjrDnSrffVMU=; b=dR4oOIv6N4UunNGmbNwo2yVcBpOPs2QOGhRQppiVM4YOxmeOSb0/oKrdAy6dKxQHIYdFf59ZQGSqP1zC1c7+C3C/xSt3paE6mC9xBduyGJErDwX7O1aNCVcRly/3WtBmNiyCdRWXEBF4mr2X5cL55t2skDuhyorKU82JPCv1AZw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; Received: from localhost.localdomain (95.76.156.53) by VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.19; Mon, 18 Jun 2018 08:16:07 +0000 From: Leonard Crestez To: Shawn Guo , Fabio Estevam Subject: [PATCH v2 1/2] ARM: dts: imx6qdl-sabreauto: Add sensors Date: Mon, 18 Jun 2018 11:15:44 +0300 Message-Id: <1be8dc197f842d3be31a15315594a25c8ad8f298.1529309235.git.leonard.crestez@nxp.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [95.76.156.53] X-ClientProxiedBy: AM0PR05CA0068.eurprd05.prod.outlook.com (2603:10a6:208:be::45) To VI1PR04MB4301.eurprd04.prod.outlook.com (2603:10a6:803:3f::28) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b3ff8f40-9904-4665-a356-08d5d4f3be88 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB4301; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4301; 3:g1RUtWSFC4xnBGK1k7I94nbh7rOzTNlie1IfF7nRooDxVc/3XrvoNfr10hmoRhyCz/DaH8A3btW2nUBp8DluDJGa/fvreCRmKDSYgCGeK/ODhaz2d+NC5CGRtB2XQs1yqZ+OKS8Fg6RjPi2Ssatux0UDZp+IWRhOLBvuIskf91tSefsH540lANlZatkoqn/RAgbIrwYVajdtzz9Lo6UR7Gv1BkVIGnjkSxpx9wJT69F/3rAgviwjFRiWzcQDF0bQ; 25:CvOGJ8tTU0DV/4UwFiFq0uOW1XfX/EiX420cUApwKuEaCw6a87p1zn0rSPYfb4VRgcEeFV6uWP5IYgK04NTHatzrp+z9fqPUgq2OV7lbCiceg6f+Omsh0E5MXtGEzZTXJG98UuUPDiUhQqsvSuHE/Nhyiyv9nm/U7CWMOf4oCnRPZlh47+H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LQTCe/sBGZuG0pOUs9aGhFszIA6a0fRjdpMk6YE51dVW3d8nFxo5RXDjkio+/lpVTSoPPnJ/d6Od9nKaCeB6ivKV/wiphk2Ba4KLYTZsti5fV93S84nR2J7Tuq7UrGJ1iZfLfjF3ZxmvjsvyvqJITRH/ghxw8l6/dTUf+v2MWStK0k7sN1Ff32zaJZnip0tYfk64HvB2G0s184zh/CRXGPV7njA4Rzsq7MjmcvW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:VI1PR04MB4301; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB4301; X-Forefront-PRVS: 0707248B64 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(396003)(376002)(39380400002)(346002)(39860400002)(366004)(189003)(199004)(26005)(97736004)(52116002)(5660300001)(478600001)(47776003)(7736002)(51416003)(305945005)(2906002)(6666003)(106356001)(118296001)(6506007)(110136005)(6486002)(86362001)(16586007)(575784001)(316002)(6636002)(6306002)(6512007)(54906003)(386003)(486006)(2616005)(476003)(956004)(6116002)(3846002)(48376002)(16526019)(186003)(44832011)(8676002)(50466002)(68736007)(36756003)(105586002)(66066001)(8936002)(966005)(81156014)(50226002)(4326008)(53936002)(81166006)(25786009)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB4301; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us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MbfELHc/mSfgd3fgL8BfgL0v+oqYoUvSdtqoPGUFTClXqX9Do1nijWweH+El/Qn4jPUN5YNUd8sM3eLn29MY0NnWPPYevhLrdA0sY01+sgoxQ0b8DMJ9QZIn3QgRSI290oGlYcMbKM/HpL08qeu3OLisRdjHz57CvralOBocsphJ7fn5bsVJ3MWcCsjL9Er+vnqCKYi1u96PSaqSAXq26WmWosl40dAz5T8QL4koumhqBhrWh2SbecA6Zvr7qv3E+HvAOgbKYZJhGTHUCnC0A9sk5+c4iKHB2gbQsrwxKwqtH6puozFQ7ihljj6w7QsLHkR/AbQeiiqRjCx6rsPbjUta0qBILaAe4kcyiyrB2UDNLNEi3dnLDHFA==; 5:0y6LYH9/YorRnzoOGQ48BkH2a/wVZizqjMyJsWGYAB6d9HXXIiWzGvRrXcrlX5cHrkOZLKhsZqfnnYhVgpUazQE/pZDMnYxVv+z6ZqRuEjQdHHiNYrBcvDwgv4fuAMnvyPGs0R2zyJh0sf/OAeINNUJdvMzHEZXCDipOm5AnLN8=; 24:UO2uiB1dXhBipJIyu9z115eUGBfsakp9VZJNfEszS1fuzIOyY4WL3We2zBe+Qth06y7NxQy6mktThyji/Fsvnr49foYhOAxHvPK/Du++rsQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB4301; 7:Zldj3YtoQ4IBb/wk8Kmis4wlbT5vNuEtOOX9Em7QqD8eRdv/Dx20w451oYmLmIcEcpydc6ytNzFnCqZxog7pOpg8QgF5YKLWaIGU0EGdrzzkJnPmLkAvRPBxdGZeLspQ8AJy3Al//i87Qiz0W+BcBQgLU0ajN3lITz5Pyduo6XoSmzFdJyCnPJ576ruzUa0A7YoS9BmEw/Idl6LWmV0hXpHKmHl2AKBonD8MFU0zPtDkv5ytxk4YAShbyjCOz1OY X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jun 2018 08:16:07.4965 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b3ff8f40-9904-4665-a356-08d5d4f3be88 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4301 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180618_011623_477313_B9E7B0CC X-CRM114-Status: UNSURE ( 9.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Dong Aisheng , Fugang Duan , linux-kernel@vger.kernel.org, linux-imx@nxp.com, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The following sensors are on I2C3 on the baseboard: * isil,isl29023 light sensor * fsl,mag3110 magnetometer * fsl,mma8451 accelerometer Added under i2cmux/i2c@1 because they're not otherwise accessible. These are all supported by iio with following configs: * CONFIG_SENSORS_ISL29018 * CONFIG_MAG3110 * CONFIG_MMA8452 Tested with raw reads from iio sysfs. Signed-off-by: Leonard Crestez Reviewed-by: Fabio Estevam --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) Changes since v1: * adjusted node names (Fabio) Link: https://lkml.org/lkml/2018/6/7/970 diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 0e28e36ddbb2..a59a0fd1eb02 100644 --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi @@ -153,10 +153,31 @@ compatible = "maxim,max7310"; reg = <0x34>; gpio-controller; #gpio-cells = <2>; }; + + light-sensor@44 { + compatible = "isil,isl29023"; + reg = <0x44>; + interrupt-parent = <&gpio5>; + interrupts = <17 IRQ_TYPE_EDGE_FALLING>; + }; + + magnetometer@e { + compatible = "fsl,mag3110"; + reg = <0x0e>; + interrupt-parent = <&gpio2>; + interrupts = <29 IRQ_TYPE_EDGE_RISING>; + }; + + accelerometer@1c { + compatible = "fsl,mma8451"; + reg = <0x1c>; + interrupt-parent = <&gpio6>; + interrupts = <31 IRQ_TYPE_LEVEL_LOW>; + }; }; }; }; &ipu1_csi0_from_ipu1_csi0_mux {