From patchwork Sun May 6 06:28:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10382585 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 3306460353 for ; Sun, 6 May 2018 06:32:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F98128B83 for ; Sun, 6 May 2018 06:32:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1396C28B87; Sun, 6 May 2018 06:32:11 +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=unavailable 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 30DA428B83 for ; Sun, 6 May 2018 06:32:09 +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=rVW6GbWrkCL38qpxw5U5lMWQrb0znGbH2sv9Z9G8byc=; b=AysTEn2m6/nmrs lfLDzVUQAw+Q/YaJA7TRh47KlQxPCnTUVAgZ9OAUwMA3ry/Fdlo9+wnrqM93+S2SIHCGqadDPtJje /S652j92ZP2jOTa5qPnJAy1l7nOEwILskegRy97285PyMvLb17u2B3sUAXXRBE2R5Sg7PA6TxeAYh T3xxHPl/ojJTbd7yRGPbaJZgQWGsvzt4smhQy5LLzsgy9xjwWeNu3xBk8bFtL1309a8fbVub/lolg 9xsjUBuOhOZReMM5qiBTRysiXNKNxPfYRHNw4IUxsHh+tJlXjSnANR2gs/ehbviUXD+G0BXbTST5x JQGFYDX8EoVnGVT3QWWw==; 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 1fFDDH-0006m8-7l; Sun, 06 May 2018 06:32:03 +0000 Received: from mail-ve1eur01on0078.outbound.protection.outlook.com ([104.47.1.78] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fFDDC-0006je-0A for linux-arm-kernel@lists.infradead.org; Sun, 06 May 2018 06:31:59 +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=xN3m+8b+KGBJWBHh+PMm3bSIH+Gn9P4HD96qIpQdQx4=; b=f6zTTD5fgyajmi8lm+1TiPM3ZLqMATfkhF39zNHKw0sLqicdtoQUi1R7dYncJoYM3SLC7qFp99DoiM+M0NhXyX4kC7mRAZvxKxGFnUK0Ciy8Cr5XdqBLDMbnnWusPw9fxuf8SFq5JZCVPQgT7HFBtu6RsUTgKDHVqfPb95F0v+E= 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 HE1PR04MB1323.eurprd04.prod.outlook.com (2a01:111:e400:5889::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Sun, 6 May 2018 06:31:33 +0000 From: Anson Huang To: shawnguo@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, fugang.duan@nxp.com, haibo.chen@nxp.com, yibin.gong@nxp.com, aisheng.dong@nxp.com Subject: [PATCH V7 1/7] ARM: dts: imx6sx-sabreauto: add PMIC support Date: Sun, 6 May 2018 14:28:07 +0800 Message-Id: <1525588093-29994-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: KAXPR01CA0043.jpnprd01.prod.outlook.com (2603:1096:402:1a::29) To HE1PR04MB1323.eurprd04.prod.outlook.com (2a01:111:e400:5889::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:HE1PR04MB1323; X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1323; 3:++ZAKpc2DPXJ1Kkkwg15QGWjbmLgRmAPIMywvLA59DjR+sIxtxF5/L/KLDzjoos5jz1RFLI62QKX47smwM6IPrD5XKjOnardApih1y6TURdrMhD7C63cAWcFYxRnKWBq0epO9Nw3mWwJFsI8ugW/l++iTgbk4LQyMqcQPAQbdIIAHydlS63A7SFnRi+37nzJ8hbjp6O0MRIS7X/Q9tXIX+9ERb5IYVy8j1eUq30G1AlbtTv5dQfvn0Z0TlpDcE20; 25:Xq5mnT/vVTx2GHhOeeQErcgu7bozKkL85z5FnxUyjExYwTp0o5oSS2DcDW30DvE59CZ9vNaKg7KMN52IHIGDS88RDFYueBmsQF/FUDPBh4045C46U9TE9wTfkMF+vsHKDsWJDi/dh+ep9VD/KHO/oP7YfZwy9W9hFJqSvQi7ImAE1wDnp3iz2OW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WzpHGJfNL5Hpi8Flozfwf+zTp1unQkwPrzpp0/4gjQdz+odI042Rt+Bs6hD9EPTgM9Q7qw74Lu7j3OhIWB4Eh/uv2mVvKaMsTgBY7Gr5IVY/0q/rZhqXkfQ/0rO6w1Ijb0nDwMbESdrJmTVpd2DGViUH2fwB6HPKlRabzTxKPWkhru9xa05sK5q4hBCllACKckvJOF0skkqm21wsf0VX9pyLkWO/ZEQwAm9 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)(93006095)(93001095)(3231254)(944501410)(52105095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:HE1PR04MB1323; BCL:0; PCL:0; RULEID:; SRVR:HE1PR04MB1323; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(39860400002)(376002)(39380400002)(346002)(396003)(189003)(199004)(6486002)(16586007)(6636002)(6666003)(81156014)(8676002)(50466002)(25786009)(81166006)(47776003)(66066001)(575784001)(5660300001)(486006)(86362001)(316002)(68736007)(6512007)(36756003)(4326008)(2906002)(956004)(186003)(16526019)(2616005)(26005)(476003)(106356001)(53936002)(105586002)(48376002)(6506007)(386003)(8936002)(50226002)(6116002)(3846002)(51416003)(305945005)(97736004)(478600001)(52116002)(7736002)(32563001)(473944003)(357404004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1323; H:anson-OptiPlex-790.ap.freescale.net; 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-ascii?Q?1; HE1PR04MB1323; 23:I8QOZnpy9FowDGI96olZTus0b2PZ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fXxTAivMVVABEX6BtECYnaO2AS8aP04xiKQLUjWQcyUbQHBtia2O60FPTf2iIvZISnfcL/uKxam1bG6LByxe4KycsFg==; 5:ooRHnVLR7EdUCFBDG4MmMWtsQkvuPO2RT/6Py+RZWlv7w46xv+jZVCuh68kdQt+0wyxExcEbSpfb1LFX9aC/7307EImpJGP3cNi2ekY38lWjp1zjyDQNvG8+3iPBkCPEggaWuiNuJMYAzjBqOEU60/N/KQDSbzIJ9ZzbYoNAAH0=; 24:Ym0e1d2MMZ0UaRx09yIOdgxc3MHQJUzHqjAWy1Jo8uy9xHfz9wCrtBNHs6EtkXfCIzqfK3wniH3pUFBR3TXbxZiOTkk4zNgwkV202PcMAVU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1323; 7:iN8PQUG5HoAjUEp1U8QoJ/jseGbrxG34txIXhxknoIcpzfC3bBICUWjkdUb/8LF2HBZXoZLz9TKGV6RoGDJd4a6IDolfVx9jH5BNNwEu8tMrs4aLKK2IOeTAtqPcRkLE8U2G3I2qyoa3jpeu5I4OXH8Pgh4OGwuzh3wvft4F5r87jUUWOCaeBXOji6j0ybU/rwPVN/H51A0JW2l4I3ErF4ETzHU4UMuukMyA24GgMLaMJzg7QPJolT5C7SDUGBCt X-MS-Office365-Filtering-Correlation-Id: 69320865-b575-4464-889f-08d5b31b0617 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:31:33.8610 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 69320865-b575-4464-889f-08d5b31b0617 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB1323 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180505_233158_237769_5B7104FA X-CRM114-Status: GOOD ( 10.93 ) 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 Add pfuze100 support on i.MX6SX Sabre Auto board. Signed-off-by: Anson Huang Reviewed-by: Fabio Estevam --- changes since V6: remove unnecessary sign-off. arch/arm/boot/dts/imx6sx-sabreauto.dts | 116 +++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 87ffe2c..1d8cf0f 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -66,6 +66,13 @@ }; &iomuxc { + pinctrl_i2c2: i2c2grp { + fsl,pins = < + MX6SX_PAD_GPIO1_IO03__I2C2_SDA 0x4001b8b1 + MX6SX_PAD_GPIO1_IO02__I2C2_SCL 0x4001b8b1 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1 @@ -139,3 +146,112 @@ >; }; }; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2>; + status = "okay"; + + pfuze100: pmic@8 { + compatible = "fsl,pfuze100"; + reg = <0x08>; + + regulators { + sw1a_reg: sw1ab { + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1875000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + }; + + sw1c_reg: sw1c { + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1875000>; + regulator-boot-on; + regulator-always-on; + regulator-ramp-delay = <6250>; + }; + + sw2_reg: sw2 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-boot-on; + regulator-always-on; + }; + + sw3a_reg: sw3a { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1975000>; + regulator-boot-on; + regulator-always-on; + }; + + sw3b_reg: sw3b { + regulator-min-microvolt = <400000>; + regulator-max-microvolt = <1975000>; + regulator-boot-on; + regulator-always-on; + }; + + sw4_reg: sw4 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + swbst_reg: swbst { + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5150000>; + }; + + snvs_reg: vsnvs { + regulator-min-microvolt = <1000000>; + regulator-max-microvolt = <3000000>; + regulator-boot-on; + regulator-always-on; + }; + + vref_reg: vrefddr { + regulator-boot-on; + regulator-always-on; + }; + + vgen1_reg: vgen1 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + }; + + vgen2_reg: vgen2 { + regulator-min-microvolt = <800000>; + regulator-max-microvolt = <1550000>; + }; + + vgen3_reg: vgen3 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen4_reg: vgen4 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen5_reg: vgen5 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + + vgen6_reg: vgen6 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + }; +};