From patchwork Mon Apr 23 03:46:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10356129 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 EC61C60225 for ; Mon, 23 Apr 2018 03:53:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC8572899B for ; Mon, 23 Apr 2018 03:53:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D15C62899E; Mon, 23 Apr 2018 03:53:24 +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 26CC62899B for ; Mon, 23 Apr 2018 03:53:24 +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:References:In-Reply-To: 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: List-Owner; bh=GkOYLVydee9j0K2PZhM5wn2xnimSV7FZpItYt9n0ZkE=; b=Zlh39JV1rxNkVg iPHsu8WS9keBgYuII1wH86KjUlQv7hHLb+hKztUYXW4+9skj4DjDYplwb3O4D0qv987N+ISTtk3rj RU8mC78bbO+S7+FJh33InlkH+k/+ihAqlUWIRUTupndDXrtwK3ZV+ffXjg+TOh4Qp8f6wWC5yarva w8ly7N98wtZx3ZOTNl6rio8wBuPGhGF2+ePbsuw4L4K9H7JclF+OTBaPxToWWXq9bKPoRsWepi0QY KvO+WZuW4dg08A6BPBgHPbXogwHTxBpYepMXVyn05t40u4r/xmOxWNKiosVRMnm52Q47BbAHDgoMF 73VRXR4y7sLqJH//liLg==; 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 1fASXU-0000eK-TX; Mon, 23 Apr 2018 03:53:16 +0000 Received: from mail-eopbgr40067.outbound.protection.outlook.com ([40.107.4.67] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fASVr-0007Ul-TR for linux-arm-kernel@lists.infradead.org; Mon, 23 Apr 2018 03:51:37 +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; bh=RSWZYY4OKEy5WQPVfSEpHPzdtzzBPu2rkbJebC29Ehk=; b=pxmtLZV/ky3IIuXYH5FkM1ei3QSkoVlNfSUOwKPg2RXdxIcHq8Rz7+VYQhNS/Y4j5zoCVQB93EG3gaq0+cOQNgviPN6MQykJbsLP3T62LDuZODgLM7M2qr5WQgtm8FpFPDwSQ2aV3PboHCTPRVSVHaSlEJefuqlHzVp6R0qqdRc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by HE1PR04MB1324.eurprd04.prod.outlook.com (2a01:111:e400:588a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.15; Mon, 23 Apr 2018 03:51:18 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com Subject: [PATCH 3/5] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Date: Mon, 23 Apr 2018 11:46:57 +0800 Message-Id: <1524455219-6736-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524455219-6736-1-git-send-email-Anson.Huang@nxp.com> References: <1524455219-6736-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR04CA0088.apcprd04.prod.outlook.com (2603:1096:202:15::32) To HE1PR04MB1324.eurprd04.prod.outlook.com (2a01:111:e400:588a::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1324; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 3:YZ1UgbiEAfv8Pge1GXRMwQgnli7KZhycSnLEMf6zWaLnfon4Yfmtj9kD15PBMreB7QjD2D8pMOjoDK+I5uJHxDhC50mVI9bnHgkUU9l7Sya7aayjlVCyyN1lA27LiDSixqxeSvJF3LbRQMCqGsQQHhhEwoC9QrpEkHMg+zGGeigeMW30NpXNqDcvJxkpOnYkzT5QdOc5cwjJ2YksKRsX7PFi9IhDsa56s085lcgS8ub8kbuOVKkT6YVP7QzPEwI/; 25:GgbSe8Tu9w3NzOaXZeWdLpFevVsjpND2y/bzllntPCJSlz/zv0zYib9Pe54AkGMJrTECHAJe3KobaWGyGVBKhpum7R88fojigEkT+oH1YyvOnm5aRSYzXLJIZHjxhMz7lQV51jqyv/2MdH1lMJ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Y1zGHbG9BwxieqIYDvLp79LTHPTqdA23zZBLGqBkb5rzBH6XR+PhLPepFEU1OOG8AP8O7Dl7ruQ5Tviga7sW3QLj3s50U7iQvOEQsBBXTEle8BfLSoPQAs5wqeQ1iAM5i4uBzt6sb9IbPQoyzSHKuK34CyS2UO+YlcbK7pkjf5x4qsFU+YYu3OwMQlPzVC9E2+GKYZDm79CgxrxXr4UVsdvK026gDdG1hl72Adq0EtMV/ovcBbqON8sVFtnrINKdsrlhUKhnZVkRpe2U X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231232)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:HE1PR04MB1324; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1324; X-Forefront-PRVS: 06515DA04B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(376002)(346002)(396003)(366004)(8936002)(6666003)(26005)(186003)(16526019)(386003)(7736002)(6506007)(6486002)(2906002)(316002)(16586007)(478600001)(76176011)(52116002)(25786009)(4326008)(575784001)(86362001)(36756003)(50466002)(6512007)(53936002)(446003)(11346002)(956004)(2616005)(3846002)(6116002)(47776003)(476003)(50226002)(305945005)(5660300001)(81166006)(8676002)(66066001)(48376002)(32563001)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1324; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:sfv; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1324; 23:dQlkWqrcSpxy62a8kccvtJja9wMhcAjV22QdAPeae?= =?us-ascii?Q?T+NuayL85lZkgGyd/rE4DhmhE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VVK2bR+7H6M1v6bR8QB+fKoE1I0ThmjAYpdJHgGIGWKG0RLzdg0n1NIU5SlwzHHYqNQRJlXVbq6j5T/41XFSQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 7:zsl1dx+sr1Ftpj0JAMJbX0tYbFY7+LhCFnmH3pQ4kxOMHlMVOVt1qOgtnkvhKtjxTq3Ug+PRlpg9+2feA5Ki+GMJzM+ZS/WhatiPYPjxgy/ouBUzyXqFinnOIevgdcQxuARAUOOLcGbRt1z/CchWD401EwdqHd+19HjqAFsDBTxVlihXkMBgrqxe2OBhPU4ZyN7TxMWYU2hA4TZnzcQLx88fQ1k7QV73kQljMhrVDeBikVRygjVW5ytisO1q3Z6c X-MS-Office365-Filtering-Correlation-Id: 8ea300bf-371e-4866-d161-08d5a8cd7a5a X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 03:51:18.4826 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8ea300bf-371e-4866-d161-08d5a8cd7a5a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1324 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180422_205136_000924_6352A0CA X-CRM114-Status: UNSURE ( 9.80 ) 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: devicetree@vger.kernel.org, Linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.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 i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add support for them. Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index d59084f..812f40b 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -82,6 +82,13 @@ >; }; + pinctrl_i2c3_2: i2c3grp-2 { + fsl,pins = < + MX6SX_PAD_KEY_ROW4__I2C3_SDA 0x4001b8b1 + MX6SX_PAD_KEY_COL4__I2C3_SCL 0x4001b8b1 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1 @@ -272,3 +279,24 @@ }; }; }; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3_2>; + status = "okay"; + + max7310_a: gpio@30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_b: gpio@32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; +};