From patchwork Sun Mar 18 03:23:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10291065 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 CDD1060291 for ; Sun, 18 Mar 2018 07:56:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BBA4A28EAF for ; Sun, 18 Mar 2018 07:56:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF60C28FA4; Sun, 18 Mar 2018 07:56:09 +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 1AD9828EAF for ; Sun, 18 Mar 2018 07:56:08 +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=irmIL97VEskQK8/LK37AyPdXwdAWqtDJyMGyG8KXN+Y=; b=QdtW69b1MbbWSK ldNweB37k27TS2kReRmhUPKqZKEz0xx3SKzxACxU7NEAUT9qUsQQW76EPJ5YZFBmlWFsAwg6CJ8ZY 5sEeEde+t7Q/iPxfyudPslWKQs6J94F1uNqet7CEm1PPPBZPFv2Um0aycFWsIFMZyVU4HMbcO0wEF 2frVBOrFjKKy5rkuR+4dIQ8HfwkTBkFWkvzabiDO2sijuE1dRIrOAC+THvMVXEabDOVKaSuaojsKN zSMcH77HAmMZTbMShB0+FW0M9eLpQb7j3mmmf4VdkojMvL1pNYtNqIADZ/LUxsn8Bo6Q8DKrqKvOn 5eiDaqnJWXOjRxLWVLYg==; 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 1exTAe-0005kl-T5; Sun, 18 Mar 2018 07:56:00 +0000 Received: from mail-by2nam03on0076.outbound.protection.outlook.com ([104.47.42.76] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1exTAa-0005iX-S6 for linux-arm-kernel@lists.infradead.org; Sun, 18 Mar 2018 07:55:59 +0000 Received: from MWHPR03CA0013.namprd03.prod.outlook.com (2603:10b6:300:117::23) by DM2PR03MB349.namprd03.prod.outlook.com (2a01:111:e400:2417::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Sun, 18 Mar 2018 07:55:44 +0000 Received: from BY2FFO11OLC015.protection.gbl (2a01:111:f400:7c0c::193) by MWHPR03CA0013.outlook.office365.com (2603:10b6:300:117::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.588.14 via Frontend Transport; Sun, 18 Mar 2018 07: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 BY2FFO11OLC015.mail.protection.outlook.com (10.1.15.59) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.527.18 via Frontend Transport; Sun, 18 Mar 2018 07: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 w2I3QHdH021798; Sat, 17 Mar 2018 20:26:22 -0700 From: Anson Huang To: , , , , , , , , Subject: [PATCH V2 2/2] regulator: pfuze100: update voltage setting for pfuze3000 sw1a Date: Sun, 18 Mar 2018 11:23:21 +0800 Message-ID: <1521343401-3109-2-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521343401-3109-1-git-send-email-Anson.Huang@nxp.com> References: <1521343401-3109-1-git-send-email-Anson.Huang@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131658333441701145; (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)(39380400002)(39860400002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(336012)(6306002)(8676002)(26005)(47776003)(68736007)(77096007)(36756003)(4326008)(316002)(110136005)(54906003)(16586007)(81156014)(50226002)(50466002)(59450400001)(81166006)(104016004)(966005)(86362001)(106466001)(5660300001)(53936002)(356003)(8936002)(2950100002)(85426001)(15650500001)(498600001)(2906002)(26826003)(72206003)(105606002)(48376002)(107886003)(97736004)(305945005)(51416003)(2201001)(76176011)(32563001)(2101003)(357404004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB349; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC015; 1:yjXVX/CHFKbT52lx0zW9BY3jyQoYqrHttNOhXevHX8ReDmMTG+F+ARWro/Ei1gYtY2o4HtDfWhoeDsqNHnWeyRcRH6yRwLbKnfAurtCrDYJn18mYL2ny8PWw69vTWpLA MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a830b62e-e4ae-4972-2a29-08d58ca5a6e7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603328); SRVR:DM2PR03MB349; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB349; 3:NljwuBHhgsvTUUl6dnbiZt9bjLlfW7NX8v05nFkTMUyTGagLIYOoV47jTbxOh8vxYAgUQI9sI0z4U0mIhKbfuKHNmjtuCR10UXtJ6ekx4vp4YfclrKi4/qnAZASFebMoCDrdKoevlpcueunumTjoUd+LstfKOnmhed+L9tumxib0UrkzS8czG0O3ZnDaQmBJeL7ddgRpAh3M5jBsxjCyKIwwU8bMTefiVIceqhouRoVE9Bf+4LrAmhGLg8TsmkNopgT6B3oVSqHmzaP+Rq8XKQYrSJmVA7/OkuSw2tGF8/mR05+o4s0GGdMHOE9sZ7qBfonS4dhnmc1o/jBS+Kjh77Xu9IIpwRcm2bGxyYJ6n3A=; 25:C7YIij1r2h+UHA+7VcqsbAtD6x3YFnn13oKmWAz86Bqu8Wvv44iCdTB6BIkKaucrNJ6S8LBRVyrGozekuV0gMW1thpYA2ryo+j/WgC8PgSC7edIq/0HHC6GecwHD/WhKrx7ktHjt84HxlGmEsGu0dZC1UFDxwK8oDqqVTM/5n0FVCMcAEZM9U9dR48bMaIrgjBlUL1o3johrezThe1pSxeepyQ7gInz/Flp9t+OF+eIU6rhYKoZy1BGrSupP4GjMxV/jM0f5XTx6GocGURrAv4cuHoSnEuX1SrD1wCXp3hpT69BdRSOjOK26zGZFn13Q+dnUeoDBLc1iiJrOuXYS8A== X-MS-TrafficTypeDiagnostic: DM2PR03MB349: X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB349; 31:+ANARGLyAJBNOdaplXrgR6zALwzbkDSgRrcp/7+5qasNC5BYkfeMg8uLIAHraHvwAu11xf5/2M6fLiLSVPU7gfejT33HdKTzaD5ZGbuWRXWuXfgAugKkVN8D99vrtHbg9bdH643ORdgNk9GlIxG8IuwJE+YdBKnUsO7+r74qNws+bh2y6HOrZYvTIopF0lU1c0BmEENxHgTEt5DGqc2aA4/cW2AWM8NSpqvCaJSUrng=; 4:UOQ7FIHQt/GnkABJhwr93dRZ8DCnzbA5J4OCw2ZMEayiCBKZePOnjcEOy3qh4XBgHQdSt8UakqLPyxplUs0jRnXmI2mojcIxEs836YMQsSRp+rbzEL6ySqz2uBI/jP4tBonKERYgu24J2U+/0YgJDSyFy2OmaOK8Ty1V+HbrpN7pzRTxK2yhF7j2UAyASWZWEq+yvPGn7chZ4GJ4ZrOxnDZQb75780X4/hOuikJi0ZzQ7EozRo45V/mASvaR4nka9sscdO1GBKhecYeB9vK0rjKC6mlBgOPIZMXJc7qD9nLxKAofmg9XluH4+d4jKvdxZDEpCZvGMFWVnSZ/6nnICYxqY2DD8OFdc+5d2Gdl/uY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(264314650089876); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3231221)(944501244)(52105095)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123563025)(20161123556025)(20161123559100)(201703131430075)(201703131448075)(201703131433075)(201703151042153)(20161123565025)(20161123561025)(201708071742011); SRVR:DM2PR03MB349; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR03MB349; X-Forefront-PRVS: 06157D541C X-Microsoft-Exchange-Diagnostics: =?us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Md/TAGuAovgngV+XOSgE2JEdkxHHRq1ybVusHUgD5DjEVuWrzz+T9qRjxWzudQ=; 5:DPpuZiJ2zNAOVzUB9K5h48huONTFSjgnfyQGGFcjuDiSmPViZgE2N4v6BF4b4R0vYnbxF0IkYoF+a/9EKq0FkSsieOZkBIcGytcZu863Tf9IyPU1US7LhhejOEqPZu55MuKBaQ2xCHYuzYZkb43WmIAMsEOFfaEBznyGIbaje/w=; 24:VZCvJld/5qywePnSBN+e9eQL6c9eUmO3Motb8fY55UP3GRE8L0loEKb4f3VWNiZM8kO9SFrgYn/GRckt5eL6ZQrW7MRU+cTD2nrYYXNjrbA=; 7:aGd947EkdKulyPj4SLItOajS1Iwlv/E3X06yOiaQgEHjKpdr+1w0OYKlwgXFXT4YQpaiyynNL930/1LCnyNpC1RKxIhptpuSJQHEuPH7+/tpAytDBT/G+DzSgzBtbd9NJMg7rN9gFVqgb/uMKWXj682hBP01VMzHV7ac2MvTVZsu+PP5ccldpvuLuC7YMTIOLq5SjqAVZBFa0qnj0XM6WYtFkkTlcdbwaqVs+CobsV+rRItllurZSsupTTzsQihc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Mar 2018 07:55:43.2497 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a830b62e-e4ae-4972-2a29-08d58ca5a6e7 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: DM2PR03MB349 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180318_005556_925687_5302CBC2 X-CRM114-Status: UNSURE ( 7.51 ) 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 pfuze3000 datasheet(Rev.9.0) from: https://www.nxp.com/docs/en/data-sheet/PF3000.pdf 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 --- changes since V1: update the latest datasheet link and add version into commit message. 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),