From patchwork Fri Aug 7 08:43:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 505041 X-Patchwork-Delegate: p.marczak@samsung.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 10F9A140297 for ; Fri, 7 Aug 2015 18:45:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0A3F2A75F6; Fri, 7 Aug 2015 10:44:49 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d2XN25lHHbml; Fri, 7 Aug 2015 10:44:48 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 21C563A45; Fri, 7 Aug 2015 10:44:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7ECCC3A1D for ; Fri, 7 Aug 2015 10:44:29 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ylaOd5VqzSvV for ; Fri, 7 Aug 2015 10:44:29 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bn0107.outbound.protection.outlook.com [157.56.110.107]) by theia.denx.de (Postfix) with ESMTPS id 1264DA7496 for ; Fri, 7 Aug 2015 10:44:23 +0200 (CEST) Received: from DM2PR03CA0041.namprd03.prod.outlook.com (10.141.96.40) by BY2PR0301MB0679.namprd03.prod.outlook.com (10.160.63.146) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 7 Aug 2015 08:44:20 +0000 Received: from BL2FFO11OLC013.protection.gbl (2a01:111:f400:7c09::177) by DM2PR03CA0041.outlook.office365.com (2a01:111:e400:2428::40) with Microsoft SMTP Server (TLS) id 15.1.225.19 via Frontend Transport; Fri, 7 Aug 2015 08:44:20 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BL2FFO11OLC013.mail.protection.outlook.com (10.173.160.161) with Microsoft SMTP Server (TLS) id 15.1.243.9 via Frontend Transport; Fri, 7 Aug 2015 08:44:20 +0000 Received: from linux-jyl1.ap.freescale.net ([10.193.99.110]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t778hteS026998; Fri, 7 Aug 2015 01:44:17 -0700 From: Peng Fan To: , Date: Fri, 7 Aug 2015 16:43:43 +0800 Message-ID: <1438937026-8731-4-git-send-email-Peng.Fan@freescale.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1438937026-8731-1-git-send-email-Peng.Fan@freescale.com> References: <1438937026-8731-1-git-send-email-Peng.Fan@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC013; 1:0LulW2U5CdfS7n+/vIXxdemaFQO5QTsRW562UrH7MVQztSuOGuWUD2Yvcy3LbOcRAo70jukcygkLOthkaMB21bNxWZmdfoQ1mz+eFmO3sLeZY/1i/ZhekSCOAcgPAW/1exbmvK/QpIOR2wkGndVhV1d5JQeS5JpvQHid6qTLNO2w1eZ8CdVasnLdANCCpZbhuvJ+e6j24UEnfvbiGuUxM+R64J5+q1gwEjQgIY7dZYJ80qR5iaruuEnW6Z5TbeaVNMDwtoO4Axo12bTF8Dj+ald/NqJYlcjILz2kZ8WyXP2gZriEckkaanZB3ZdX5RDESSOPwTIoD391ztU/HnXXAg== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(5001860100001)(5001960100002)(4001540100001)(5003940100001)(19580405001)(81156007)(107886002)(6806004)(87936001)(86362001)(19580395003)(5001830100001)(46102003)(50466002)(48376002)(97736004)(189998001)(105606002)(5001770100001)(36756003)(106466001)(2950100001)(50226001)(77096005)(64706001)(76176999)(68736005)(47776003)(85426001)(69596002)(92566002)(77156002)(50986999)(62966003)(104016003)(229853001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB0679; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0679; 2:Jt72OAP5qs8UDLqceIKlMGpooqvCrhBraa/McV83MWqVGy5WvIg4yLb4O0diFab7Jy3KxI4rXiLYmxeW/JUZldzi3CLqCgEktyzjtYsDhxb3LbFMMmAW3aIq6svtpIkYziknm6Mc1D2wfXS9r5zCEOTC/fcsOdIB1lnr9LKmdS8=; 3:kCMkhaONVuMI0m+ZSd7DuCWpVueDNBEsfi+ZS8/qzlF/B0HQQng1LQF9BIllUzXi+grh6dP2CmC6clbrWsx6977xqX++Cs2WTQ2S3wWL4SsBRe9m4lLsmpqc+ATGSqCi8IOca5qNKVdWKQItjAOZ5bAWVun1c+bhosyYEVFEDmTyYLOR9gyK9vRz23nKxcjjk2jXbUbbgsMwu5KCa1EgVfd6f9hezpxbUtP+OS0WybU=; 25:jAU2qjvM1/TLdt78M7qdQ04ejn1zDdVeCio3MWtxlRb7CLgFlLJYwf848FcsIg7lm6bcjOcFjeDtLSA4xDDReAoNLvUZHsyhmuXMIkGomjDdw5Bs8LkHPu9d/87X2ahxfzMQAZYaDPlz/926fAFgs5HmcdrYirVB+33hqPUnfc1VO8cPhnOw9wTtu/li5BGZzNiRLUA+ER8BVS5Foq2naJDmcHZXJ1Mr/+Abok3Ewk//sdUxPvIkqB6SIKBD2fVw X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0679; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0679; 20:NGruJ0SBc39IEAcksVLSLyRcH+5LmBwp+T/o/WEF58Qvd93eHW5//tBwC8a1R/nzyTdMlqfUF13hpCDNGjLjLO6BxmycNY3OVOyKSGM2lHrsWzubiS7eC4BVtCxJewINES6hOP1kXvREMEduXpIkONVRCECdkkLLwH46lUIKYZNY44uYsDUGc8fogT0Nudy71qXfaYDc2hZ/DPlqXv5v3lekyNiNzulLR/d2guJOZB3kB6ka//gFILP2C1Gef8iUYrIrwGBqfOmJQYEF09HvlfOHESjEjPc9ObbrCKsvjNtU254zwwhwUFDH9j7z4TY2ycOAtsSloatQcs9WzJYRnh46AqpWRVMQLTA7/amlecE=; 4:8qZua7Z3KhBoU2TOiIQK65rD5HevuwtLdaUFa8vB6Uk4ACUsCVJibmzXt9qhDhuRgr+gG2Q1z3Jzf91wg7iM7nijcNgNtdzwG9Juim2ZGxkE5bHIxIlcwMXSJQI+d5JV/Le1OvWtS62fq8aYx+FzUkQTuDLgWSoBJVFlQzObc8pTQEBCSBJEJaF1RxdUXW/Fbf9E+Gi/qGi1Td1pidNO3cCkqvaiP38F5Rg4K+AQ5zJd3+OA95EaLW2mMoiCTDchZ2/nujKkyjyWqnHlUl8sGBHcrYW/OSiBTeWHBfArZWE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BY2PR0301MB0679; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB0679; X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0679; 23:y4Fvf1y99yuQOEex3NX3x/9bkL/yLjCTa8f1EHt?= =?us-ascii?Q?vSGXdSIx2w8VWj4ESNkNWDPKGz1Wra/MFBn0gDZOMdng3+8nS6clj40YfPDh?= =?us-ascii?Q?G7CRiPRgPzmO08VaCCMpr7nHak0L7xtPHdrYzqErqY9KEebJV+n9WloumNzq?= =?us-ascii?Q?vhaz/W0zkaLeYL5nNCeKATWXq34s+nW6UIcQMDAHzI1KehD1r+F83OR2Ripq?= =?us-ascii?Q?j3BkoceiDqAv5Wih1iLFAUYDbLzbm2jyJLmVs9eBh3+IIynPpkXHD7RhCi86?= =?us-ascii?Q?cUcYGpE++/WZX/jY0t6g2hBc2bnR4TED48On0aJphT3BaQwxOsRoBQuczkbz?= =?us-ascii?Q?4+UAt2VW/fRDhPil9xRI51TwlKAkSgsyxDjidqM6BhpzUxivC4d/CHPK1U8M?= =?us-ascii?Q?lwk4ueLdVlzpjpd6zt9NP4pY6OtdBBDVH5DaD0LNwhZmd0jGedaqMyhi/SQb?= =?us-ascii?Q?foIuxq7aXeEeyKdbj9QgJqco5TWca8pysQIqvJaacf0Up+J0ZNRGkmHSlwDz?= =?us-ascii?Q?sEjRIcBacTLvnTwTZAHyoqBjg//4CV7DJoa4rudUYarhlrvTwdGXJh5DitNW?= =?us-ascii?Q?UWnSlslw4VvHHR2eIFucrYtWyJ31KKIr2CBGqO0jT+n79lHIoQ//Xw1Yd7DL?= =?us-ascii?Q?mchm38On5KgUcYVLodPeEhUOgvNgAIsxT8E2E54PUoOhV13WoVzD3o0Vi4NT?= =?us-ascii?Q?BcHhvL8zbsi4o7KuiIutwOjL01J4Q60NxNyY3QpS4B6H4ibja3obS9ENoRKa?= =?us-ascii?Q?ykeMM2ra+t4sOPWFCUdJ6Z+6uhsiJD0s1mD8gs+Aq48IvehhEKNfE+18KmEj?= =?us-ascii?Q?TWu+A9FQLZOdBDzVkoYrCNMkTDPMyV8k8YmQBzG3m20YT3DAP892x9wPrU/z?= =?us-ascii?Q?r9ro5RmV9aZ0GWUOFcismFs5NCmaLauQivdokbBAzJ3tJaTYU+jB0oho96SC?= =?us-ascii?Q?3iAriTejQIULnrseil2H7O09rYa+wQBhjSlLNQskegswNnXWjU/rpLiwHZq3?= =?us-ascii?Q?VVQkrNP7EIPJIkGKtMVWwtHkHQJuIYiRakAQlJQGfuC04H9JPL14PPKLYTb+?= =?us-ascii?Q?vaXuoUCyUUWDttCY/gl8uMWX84HhUpAmW8SWCLukuSE7tg1dFPnx28jyjTF0?= =?us-ascii?Q?QU2isBJwz3kCpooaHC4qPqWtlDdjFLoV9?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0679; 5:22lekaXqTxrbYZQhjnIkJe1ps4w/Lecm7Pp0F8hINaob6fkO4w8u/swchFROzgd+WLlKpvuRwX5YbIvIyUCx//1WE0QfUOmlAXusMqbGWO3X1VRlcaOZS3NdF/yxwh+YVluSMqIjNWOkGh8BTXwJkw==; 24:m7w+HOSPXinvBA0tApRc2sS+TxpZBfeFQEs0eN+ZpNASGtr7V+EAN1BpDxuacpg+OcKZij64W9z+DVf7Ig8zTV7WyPBhquBdjnvMOA699/c=; 20:2EseoPIWJD1TEqxaxA6sXrAtg5HocBKMT+2F8heIK/YqxcZdxS9zmLb7b0Ftf9biev4/SYG/VYcv/xuo1uCIoA== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 08:44:20.0892 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB0679 Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH V3 3/6] power: regulator: update comments for regulator-name X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" We do not need that "regulator-name" property must be provided in dts. If "regulator-name" property is not provided in dts, node name will chosen for settings '.name' field of uc_pdata. Signed-off-by: Peng Fan Cc: Przemyslaw Marczak Cc: Simon Glass --- Changes v3: Keep "regulator-name = "VDD_MMC_1.8V"; (must be unique for proper bind)" addressing Przemyslaw's comments. Changes v2: New patch. Update comments for regulator-name property. doc/device-tree-bindings/regulator/regulator.txt | 19 ++++++++----------- include/power/regulator.h | 1 + 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/doc/device-tree-bindings/regulator/regulator.txt b/doc/device-tree-bindings/regulator/regulator.txt index 68b02a8..2cf4b9d 100644 --- a/doc/device-tree-bindings/regulator/regulator.txt +++ b/doc/device-tree-bindings/regulator/regulator.txt @@ -15,15 +15,8 @@ For the node name e.g.: "prefix[:alpha:]num { ... }": Example the prefix "ldo" will pass for: "ldo1", "ldo@1", "LDO1", "LDOREG@1"... -Required properties: -- regulator-name: a string, required by the regulator uclass - -Note -The "regulator-name" constraint is used for setting the device's uclass -platform data '.name' field. And the regulator device name is set from -it's node name. - Optional properties: +- regulator-name: a string, required by the regulator uclass - regulator-min-microvolt: a minimum allowed Voltage value - regulator-max-microvolt: a maximum allowed Voltage value - regulator-min-microamp: a minimum allowed Current value @@ -31,6 +24,12 @@ Optional properties: - regulator-always-on: regulator should never be disabled - regulator-boot-on: enabled by bootloader/firmware +Note +The "regulator-name" constraint is used for setting the device's uclass +platform data '.name' field. And the regulator device name is set from +it's node name. If "regulator-name" is not provided in dts, node name +is chosen for setting the device's uclass platform data '.name' field. + Other kernel-style properties, are currently not used. Note: @@ -41,10 +40,8 @@ For the regulator autoset from constraints, the framework expects that: Example: ldo0 { - /* Mandatory */ - regulator-name = "VDDQ_EMMC_1.8V"; - /* Optional */ + regulator-name = "VDDQ_EMMC_1.8V"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-min-microamp = <100000>; diff --git a/include/power/regulator.h b/include/power/regulator.h index 0152290..1a51c3f 100644 --- a/include/power/regulator.h +++ b/include/power/regulator.h @@ -46,6 +46,7 @@ * Note: For the proper operation, at least name constraint is needed, since * it can be used when calling regulator_get_by_platname(). And the mandatory * rule for this name is, that it must be globally unique for the single dts. + * If regulator-name property is not provided, node name will be chosen. * * Regulator bind: * For each regulator device, the device_bind() should be called with passed