From patchwork Thu Apr 26 06:58:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10364797 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 DFED5601BE for ; Thu, 26 Apr 2018 07:05:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CCEE52904D for ; Thu, 26 Apr 2018 07:05:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE4D029068; Thu, 26 Apr 2018 07:05:06 +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 2CBDE2904D for ; Thu, 26 Apr 2018 07:05:06 +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=t7Zx2t8dmVlXH7uvXN8jLilvI+Sf2z+vpGRGOpHRpkk=; b=DVxsVrvhGVNl5O 2ZMdo0JsAdckot7yN7J4sxK7g+5Fp8XJ4Cp5qgI9QeXO3xdxWyFIgFiTc5Rg+2rKcqLSbtQRXVDkl fcZubbSjUeOX6+TIE8R5tZRQK5T1gRtgTSDnULLE+YK2uQ5p0HU9zAeyJukMszo5hD4m2woSIbf1I M0pJCsUE/1SwxViaJy1jqq41k5A/X8xLNXdKrVYR/8CLuWo7LyFJ5p9+TX1vWFSYm64gi0O6rbGf4 QmQuJZ5H4kMAVP+YLIFXNFgFdbHAXcg+G5E1cEK50lm0xNUZOB8M2DkWGTIOtpZh/RnEw+FKY2duQ luj6bH45SvaX7qHxHcvg==; 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 1fBaxa-0000ty-G5; Thu, 26 Apr 2018 07:04:54 +0000 Received: from mail-ve1eur01on0056.outbound.protection.outlook.com ([104.47.1.56] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBavt-0008TL-P6 for linux-arm-kernel@lists.infradead.org; Thu, 26 Apr 2018 07:03:15 +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=16ETm7MJnCdlp5fw80bvswDhtNGED2hW7z0QAYZhuXc=; b=sYWJuUgKa1rGijUxmT6/82bZt1cjj/dwrBXKyCS5hdHj/pw40p2JJe7bQvMvkagnqSwBJCypJytF2P3zEJJdCI69RkoNdmexfyLjaCtQSxG/oiqg/tbEFyrlFEt4E2kIapk87nifB0XreQ5/lol8VgscNPonyGwLQFsau0G4LDo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by VI1PR04MB1327.eurprd04.prod.outlook.com (2a01:111:e400:5187::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 07:02:52 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk Subject: [PATCH V5 3/6] ARM: dts: imx6sx-sabreauto: add IO expander max7310 support Date: Thu, 26 Apr 2018 14:58:15 +0800 Message-Id: <1524725898-27974-3-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1524725898-27974-1-git-send-email-Anson.Huang@nxp.com> References: <1524725898-27974-1-git-send-email-Anson.Huang@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: OSAPR01CA0162.jpnprd01.prod.outlook.com (2603:1096:604:d::30) To VI1PR04MB1327.eurprd04.prod.outlook.com (2a01:111:e400:5187::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB1327; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1327; 3:CL9HME2Xtm6+RMDpbapD3ZW3IJtPxMnzGVqjRKn7XuzmlaJd7i8Dt5s55rjY6tLXZybEASqlKFsOnj4IKhj6AXNbtikWWPppXTuLlh0xMIcU+/4AyNtdthB2yA7zNFkAMXTU8JNkWpyp7XRTBizCfv+ddEm7nGoqMaiat6Oz/L00iStdqOnVesgqlaA51UxWwYY2OSHJDZ3Bmf/yRqFuDutyHoyEruJWQXFdcpU2xXoctfadoC9J915a9ejELVu1; 25:cMGHUdAp+OBJ7l0671rUhC4WnP1Tqm2N1dAK+bJ4Shk49wl5wbU0URHuPoG9WFwBnCvFDuQZrWNsRKIs861iimgMhKe8JCK8IXmMb9e4H2M3yiIWy2fMFKR4P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32M68LrL7CwdA59ggOa6r6OYnZJxAAz2qWrtQMjNQLG4Pbbsuymk7eLAoodYTbU8yRgIG2ViTB69BTlaF1kz1hWPOCcnEji/AMJ1gMmx2LhKBBpwm7oWb/cD+3ksvnUELItS2+8dDLuTpJlhmqq6KYdhzjKzgVy2jVqAeyjnbl4l3HWCFuibwknN5+hpgFUhfg6i1NfEITNJQXaXthTsOCVSHTnduB/xIUxElFy0jD4RbB80Ozzc5KlB1Q837cDdsgom6t0u/8SYzS79fZ 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)(5005006)(8121501046)(10201501046)(3231232)(944501410)(52105095)(3002001)(93006095)(93001095)(6055026)(6041310)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011); SRVR:VI1PR04MB1327; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1327; X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(39380400002)(39860400002)(366004)(346002)(199004)(189003)(36756003)(2616005)(106356001)(8936002)(11346002)(6486002)(97736004)(956004)(50226002)(25786009)(305945005)(7736002)(8676002)(81166006)(6116002)(478600001)(81156014)(446003)(105586002)(16526019)(6666003)(51416003)(50466002)(3846002)(47776003)(52116002)(386003)(6506007)(6512007)(316002)(16586007)(76176011)(26005)(2906002)(186003)(53936002)(486006)(5660300001)(575784001)(4326008)(86362001)(48376002)(66066001)(476003)(68736007)(32563001)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1327; H:anson-OptiPlex-790.ap.freescale.net; 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-Exchange-Diagnostics: =?us-ascii?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+EK78+mquWhb+5czzunqF0CCwyziUGXv5GqtEkcUDnm8pYhL1Gc1nb1EDOoa4D+nkQsG5qHDK9uG6HCXRaSlY1IpDqYgpLtyjtwPtRh0NJwaDKP+B2yw==; 5:rbqjqmU8L8Q2E+wD7bcG2gwj1qr72/J3/q3fgcB13qkXMMEFWcK59jZ60ad15teTx2xRN/FOLhmfjeA+KvPUa9fGcPccfyJ/6ttdjRlsgYfrd1JQhoYcHgQbO7jz+8lctLH0amUHpLy/NYXOtGUkcucHnFP27cv1zQIsdB5xq8E=; 24:1GmF0nnAqPm70DYvxAmmTLdUWJq4gFX782NZPhndCfPXBzjX/572r9/MEQcFiru2lugubpYS8nwNfZsJuT9AcF9FprcnqWDun/bKGyFD2f4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB1327; 7:6hCzggbP6Or5RirGq8+LCBResNLjAnW8q2Z+wBfMlVod0jOph6OqKmxsOCPg1SflWVhbLFcsqmdHRLFV3JetRjYQUVy8mOIvARNh+NnqF4xH3tOwduKriywJq18ElLStk4pjprjD5Muw6I1P96ks/XcPmnJ68i1hiD11UEPZNn1QfSLt2x397OzIGk2CnRRwAtFizVVec4UDXShgTjpbV846JbSrcOvUkkFQQ2NxnWmkoySSnXtr2/SG+jSt8rCT X-MS-Office365-Filtering-Correlation-Id: a5a04494-57c1-4666-74ae-08d5ab43bd77 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 07:02:52.7515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5a04494-57c1-4666-74ae-08d5ab43bd77 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB1327 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180426_000309_867008_6BEE7DAD X-CRM114-Status: GOOD ( 10.82 ) 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 --- no changes since V4. 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>; + }; +};