From patchwork Sat Mar 17 06:57:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10290785 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 43E8F601BE for ; Sat, 17 Mar 2018 11:56:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30D8C290F9 for ; Sat, 17 Mar 2018 11:56:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2366829123; Sat, 17 Mar 2018 11:56:16 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID 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 75CB3290F9 for ; Sat, 17 Mar 2018 11:56:15 +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=f9mv7o+8tMJQp5lw4zYyrHXap21/Jjsfi7o4Cj/Uo3U=; b=brirWndRK27jIo am9HMQI8kG1ggRrULqUygb8qHVecKYnhxtiutMU7QCB5YDqu/JJVX9th33fYvCtzSaYBRM67XN55T 7FupiRahpaVwYSLdbhbWDx53aafjOcC+F6bps4IBnV+lt3wBq+GnTJhpx7KxW3l//NQRU54QCvyBX wD4s5o+Pk0su7uQjxZNdAMl76DHEoHgud51jtZWAxhQJpJgAdrY/nphr4ed7e5w3ejmtJCI2J8W58 xZyfppUzeCK05EUt6ZtzA74nTItVLFcw2kkyJU5i29H/HPVSZYZ+Ypn+akhm73sYpu+AQHbxGJc94 s3mDpN5ym6IA69zO3+ug==; 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 1exARN-0001OA-1O; Sat, 17 Mar 2018 11:56:01 +0000 Received: from mail-by2nam01on0041.outbound.protection.outlook.com ([104.47.34.41] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1exARI-0001Mq-Hu for linux-arm-kernel@lists.infradead.org; Sat, 17 Mar 2018 11:55:59 +0000 Received: from CY1PR03CA0019.namprd03.prod.outlook.com (2603:10b6:600::29) by MWHPR03MB3374.namprd03.prod.outlook.com (2603:10b6:301:43::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Sat, 17 Mar 2018 11:55:44 +0000 Received: from BY2FFO11OLC003.protection.gbl (2a01:111:f400:7c0c::197) by CY1PR03CA0019.outlook.office365.com (2603:10b6:600::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.588.14 via Frontend Transport; Sat, 17 Mar 2018 11:55:44 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC003.mail.protection.outlook.com (10.1.15.183) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.527.18 via Frontend Transport; Sat, 17 Mar 2018 11:55:43 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w2H704wZ024994; Sat, 17 Mar 2018 00:00:10 -0700 From: Anson Huang To: , , , , , , , , Subject: [PATCH 2/2] regulator: pfuze100: update voltage setting for pfuze3000 sw1a Date: Sat, 17 Mar 2018 14:57:08 +0800 Message-ID: <1521269828-8874-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521269828-8874-1-git-send-email-Anson.Huang@nxp.com> References: <1521269828-8874-1-git-send-email-Anson.Huang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131657613440969464; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(396003)(39380400002)(39860400002)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(47776003)(48376002)(51416003)(50466002)(106466001)(76176011)(85426001)(97736004)(498600001)(107886003)(72206003)(16586007)(316002)(110136005)(105606002)(54906003)(2950100002)(86362001)(2201001)(966005)(7110500001)(26826003)(5660300001)(104016004)(77096007)(6306002)(26005)(81166006)(81156014)(4326008)(53936002)(356003)(2906002)(2420400007)(10710500007)(336012)(305945005)(50226002)(15650500001)(8936002)(68736007)(59450400001)(36756003)(8676002)(32563001)(2101003)(357404004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB3374; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC003; 1:GTOakzhReICSUwwtmWUhEWh824nzTsUtVzQCmd33C89LaK1wCzZotBWRJlgGh2mboZorR1mgYa6NXcvx/Ask9qe6do2YETlC+rx7M+FxCVn8mDZXehK/uBNTlE2stCK9 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dc19e8f3-8822-4fcb-e018-08d58bfe0383 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603328); SRVR:MWHPR03MB3374; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3374; 3:4j9vFEbCanPW1scWQVGHeJGSywAw4enBE318rAsw+QrCPQx2qmAQzvmO/+dh5MRHtAE136v2dPuc8qi4szWIP88yBrovxT3jvLOoq0A2VxmyK4h+D0xG9JOKChPX23nC5OUAuAfg5/pskIfLMacJAXMr3rEaxbweuPWFAJFgGaTscrIKRsUxDz2jr+vusOLnICRj9Nl32S6ytPagsaW+KAL/UzRKvzFURCWvfo5SZZkwPlvzcC8SaS7CcCWwOs9QAPFDO9cbwFFHGfmsLMzqTPzqTdH97jqnHnaGdtsfMU9qd9Ul1jAfHKzf/1Ak1CeekQHqKQ6iQodHT9cPZfWIJxBYpwiTLp+wf8FjhLPiOjk=; 25:RfnULvVD/FG8kJEssbccxumPDVQGDypB4YsaC1P1GT+bg29HIvbMEcOwEeL3mL9OXdTopZJX5vR6Cl9fvyagvJK3iuameVwhwRijRRJN0RJt2w9fDUZtUS+1yulpuGtNAuRkqE2rcZGuo6SRoasH4mdH8Y6ru13VlH+6m8boSEEISUZA1CI/CTMS9UqifUQvVtQBNE4mibbh6mjbV2U2L0fdG8iqkGqVFu0cmvgk969IcAgYBT/DfhQT2+gNGc2SjQ53G69sP3uCZGveC/jxe5YY6xlVQDonF7tqLsAiOEnWEDZAv0zMj1XhQfShSgFypWhWxwBHv+mbzu+Nsa6ekA== X-MS-TrafficTypeDiagnostic: MWHPR03MB3374: X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB3374; 31:rSbW+qrKOm3CBLQ6uN/9Z0lNX4CBR6kcH1Ej72ICVk7zJS9VLr+4J41f9d1s4Bsz05raJ3kDvzRjatEvUjeDLPDm+juWpAmvsBFdOsBjQy+SFAhFMvXcqJ7j7PKvfRAJ12rMcecBcCLYu3qDsBm/gXruv6Nq+Q1hK2QD4+OwA2Z5L42jz+tHVSAMMIr3IQa0WQXRXgkSNhu8ab8+N3iB/VHWQIveoxMM1Q8Mmb1+59c=; 4:1cCyeg02HAvMuunbsllDCLDPwH5/s2CLjb44xs3QvumP4d1mZDbvAeJjiehjz6f8DnrEI32YcpS0Ln2bOKNSR+GRikRx7ay3GHsdqxJ9L15zMnFfFUz/7hHVEOCtD6f+hSeL1XkwdKi8zQK86CjikVr7mKWjD1eKp07Ecgec8DjPi4WZurn1VmpWz6eOWmG3Jzx1UP+EdnPzCf3Qqj8Izj919vZjvZmrFiasQVu+dmI9B/uGQ1HJjSvU3Z0ZVY0fsBBkGwmQkaeuMpAlxp4dTQwKRFxvOuMuDZOG9hDn84AO3FeO1giPLevwyC4QBiDtc0XDUGhHlvN/c7Pu7+Cvv+PD4S50tg5WVQ6WYw0OJck= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231221)(944501244)(52105095)(6055026)(6096035)(20161123565025)(20161123556025)(20161123561025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123563025)(201708071742011); SRVR:MWHPR03MB3374; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB3374; X-Forefront-PRVS: 06141B80DC X-Microsoft-Exchange-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YYNwOYgwIvsZQhKdcCk+Gphx6wewg/Vr2tAVQPj/darB/AjYZ1XwZ1pmYSFtkP3j1nwZ0cV8k2Y1obDytQ5pImZxsmHiOvsefROHSiHJxN5rJlDT8IEorqOerhKzTS42OQCR3G+sw9e79Jd3YyMI/K3jp7PgPCvE6Asc2JqekXVF07jsLA/SFNA=; 5:hcBc8ZazRFkAzk6nfFufNKj6s2QJv5qj+lDE6dYhvr0TrU+P+gTGBXjNYldAjBLeMdxlOvtOynNaXJSivcVuNPtOlc0j9lPSsLL5tnj77DmNFVtwGBph0h/NpdObAubdjRnTCCav2Wt3acv/6iFeFM4R1TyY2jPjBt0S6UUnqvU=; 24:TZjh/SdNhA+kkpQe+DNoHMHQEqIh4eDc6UvMDLVtCw7harcdvkHiHR2mk80ZSsxI0fBN+BKZ0UjLwn1WyF3nXrxc/U7Rz1sA/g0FI3R6p2U=; 7:pWAzG72EuJCHkyzOmccnZCoF1C935hZVbP7jPnz8PGDvIHOc8C7aCVicYLVKZGRrCWSLxQZIkS96v2WAWq9X5Dr8ISiZ/fxIz4tT0xY6NwNlVZoCEwW/bTXBD9RxmN69YB30ohc/bK1vBq8uCIUNOqkG7DiDgKxiQOeXifqpH8Ijn/rF9i8qpv8YSjHNOR9+wSl7kDNsIL3ULCfN568ar0bE5pt0IO3WTc1hDHgbirfp2wOPoghT7JNtFtJ1Xtn3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2018 11:55:43.1765 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dc19e8f3-8822-4fcb-e018-08d58bfe0383 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB3374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180317_045556_611478_8B40063C X-CRM114-Status: UNSURE ( 6.48 ) 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 Latest pfuze3000 datasheet from: http://cache.freescale.com/files/analog/doc/data_sheet/PF3000.pdf?fsrch=1&sr=1&pageNum=1 updates sw1a's voltage range, the settings for 1.450V and 1.475V are replaced with 1.8V and 3.3V: 5b'11110 1.450 (SW1B), 1.8 (SW1A/SW1AB) 5b'11111 1.475 (SW1B), 3.3 (SW1A/SW1AB) the voltage calculation using steps is NOT available for sw1a now, use voltage table instead. Signed-off-by: Anson Huang Signed-off-by: Robin Gong --- drivers/regulator/pfuze100-regulator.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 63922a2..680f076 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -86,6 +86,13 @@ static const int pfuze100_coin[] = { 2500000, 2700000, 2800000, 2900000, 3000000, 3100000, 3200000, 3300000, }; +static const int pfuze3000_sw1a[] = { + 700000, 725000, 750000, 775000, 800000, 825000, 850000, 875000, + 900000, 925000, 950000, 975000, 1000000, 1025000, 1050000, 1075000, + 1100000, 1125000, 1150000, 1175000, 1200000, 1225000, 1250000, 1275000, + 1300000, 1325000, 1350000, 1375000, 1400000, 1425000, 1800000, 3300000, +}; + static const int pfuze3000_sw2lo[] = { 1500000, 1550000, 1600000, 1650000, 1700000, 1750000, 1800000, 1850000, }; @@ -343,7 +350,7 @@ static struct pfuze_regulator pfuze200_regulators[] = { }; static struct pfuze_regulator pfuze3000_regulators[] = { - PFUZE100_SW_REG(PFUZE3000, SW1A, PFUZE100_SW1ABVOL, 700000, 1475000, 25000), + PFUZE100_SWB_REG(PFUZE3000, SW1A, PFUZE100_SW1ABVOL, 0x1f, pfuze3000_sw1a), PFUZE100_SW_REG(PFUZE3000, SW1B, PFUZE100_SW1CVOL, 700000, 1475000, 25000), PFUZE100_SWB_REG(PFUZE3000, SW2, PFUZE100_SW2VOL, 0x7, pfuze3000_sw2lo), PFUZE3000_SW3_REG(PFUZE3000, SW3, PFUZE100_SW3AVOL, 900000, 1650000, 50000),