From patchwork Mon Apr 23 03:46:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10356119 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 8E08760209 for ; Mon, 23 Apr 2018 03:51:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E48C2899B for ; Mon, 23 Apr 2018 03:51:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71F742899E; Mon, 23 Apr 2018 03:51:42 +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 EE2422899B for ; Mon, 23 Apr 2018 03:51:41 +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=ie123Wh9A1MxUMrJF2cDWRyCGahxqIEJqaRnLcwa2OM=; b=V0USDhQRQfF2r2 Ke79SHUnX8mMq6lT8RvTonPeWuR42W5H252qFV1Yp8TOe6ANv4NwUZOeDPS6/ptIEAb6kcUFUwEnz uSJQdgko/3avFeSig0lh+7uqXHmyRkdC/V/O4goeR57Q959EadgGnjZ4tD5H0DmALJl54gT+BEKVC 0HCIaxhO3WTatJxPNFoMH9ciofN1K6IvXq35e1O+riWWbg0ibVBaHJNFjZ+Hx12A8GIVCRyL2S1Ow CqxZh4vyiz/7dLsi4w/Bsx/iwYJMDweCy6jHXTnfg2nL/XaETHm5LNBc2/k6VreA7r40nSyyCHppA vrcKoRzPMPUC101tTY5A==; 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 1fASVt-0007se-3b; Mon, 23 Apr 2018 03:51:37 +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 1fASVn-0007Ul-Kc for linux-arm-kernel@lists.infradead.org; Mon, 23 Apr 2018 03:51:33 +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=sEwGKAUIAzaxbx52iiLC1eVLisjCyIlEwAJ37Jz6hnU=; b=V/9QlUZ5cojMZKWb+XALDZQlQzoUSBROmzZHxmrbugGvk8rIZ6X/vbgo+gU8Zx29QVdNHinVwZs2SdjxD9a4UvoLpbfUdrII5fitQLj61Ls4T9AXAK1KcgeMcOo9/fGLQykASVdqECyMvh5cvRYHcPa2/v1bgZFVI7NQ1FmDqQQ= 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 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:11 +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 1/5] ARM: dts: imx6sx-sabreauto: add PMIC support Date: Mon, 23 Apr 2018 11:46:55 +0800 Message-Id: <1524455219-6736-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: 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:cpF2L0VIeenmx0hOkWvUSNlSuWh6xGSrcWOwmfNz5SJP9Cx4UR395TU/B1ZQX4lqKi/QUQK4BZ/Vnu/Iumk4mT1Myu6l5XZlw7lP1yHVI9SoMDaZZzIrZvMkynCh7UKPHpS1VFMw2LpI/JV59EGjl7JGuNEwgHMibR4KBu5nj2iI7vS0bqelZLrV26sDijS5VW7awyqgYjejAKahTZgZkA7iXnGO4mLPZaUZniabCyl4hh+OjsUWofAkYvS0QeHq; 25:gDztSgHdC6J4/YouilSWe1UQK7WujqyVbQ5oMb1fLh1d7icQxxHzGPrdTWks6ZoD9HcOyQ1A/KL0xFCwV5vUCLkiY2sqYEHm/ugd38m2/2lD0k0x0Pzl3QOeUeFfvOeAL+pwUzg2v2Nh3WNxND+uVcu/DRbUNaQmwyxpLf4JWQ+5DAcCKaEKG2tufXfYw6RF4FxEbAepb7gS22Ans2crUAIl72k5y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zbNeKHFjOMqaIcfIxzqxWGcW/YBlhJ8tIYbMIOaOgq9YjZJds4KA8uJmYzpCnuPSIf1UYGHWNW5OSIN18aqp1wcw5f0urB4S7Zxo4jLmDgDHuYiQ3oxDgodIynK4WWrTZWXhivNIsNLrWoz5t7/OcL+jsAO65BdecWEoKiwIp7AhlP6xMsULSQj9EJAlejdoYUjP 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)(52116002)(51416003)(25786009)(4326008)(575784001)(86362001)(36756003)(50466002)(6512007)(53936002)(956004)(2616005)(3846002)(6116002)(47776003)(476003)(50226002)(305945005)(5660300001)(81166006)(8676002)(66066001)(48376002)(32563001)(473944003)(357404004); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR04MB1324; H:anson-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:nov; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR04MB1324; 23:O5k1T5SLqklkGEcjEgrt+qTeQHG8JjtdKlFqDWW7Z?= =?us-ascii?Q?zawP9bfPxiZiYtsVTfVDofEW6rJnFxylVwQhS29LRxGbxcQYOZ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ZjwMTB1j04GER6bsPZheGnPEO4rGqaBznVubG1sCXiRXX0qy24guI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR04MB1324; 7:NASUu8aPEb1UR8YdcF+0m0+Bl9hnvmHa6+ZoE077osCKDCclQ5WRC8uVPLrlJfB5KmahYOTw2pR+cK2gpvj7oUcx4ZFvLnBTf+rlBguCkjHd9JqmtX145EutqHsAFVgr9G6V18ygfsvDUxJncleownp4gPd2t3gv3JZ2o8X5hxihtY83sPpx8CdI9okvsl4HKYl4iNhUTcGMIsMWEmm/G27/XSDKtibzrj5HaxQg2wkMS0GBxyLmdnIeT9O15jRi X-MS-Office365-Filtering-Correlation-Id: 2c3b07fa-d612-47d0-257e-08d5a8cd75e7 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Apr 2018 03:51:11.2793 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c3b07fa-d612-47d0-257e-08d5a8cd75e7 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_205131_872716_23A7D077 X-CRM114-Status: GOOD ( 10.11 ) 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 --- arch/arm/boot/dts/imx6sx-sabreauto.dts | 117 +++++++++++++++++++++++++++++++++ 1 file changed, 117 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index 57d1ea0..2caca934 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -74,6 +74,14 @@ &iomuxc { imx6x-sabreauto { + + pinctrl_i2c2_1: i2c2grp-1 { + 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 @@ -148,3 +156,112 @@ }; }; }; + +&i2c2 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c2_1>; + status = "okay"; + + pmic: pfuze100@08 { + 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; + }; + }; + }; +};