From patchwork Tue Dec 11 21:24:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 153518 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp1111416ljp; Tue, 11 Dec 2018 13:26:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wvl67Kb7DHtYAKfOcYat8tiuSxuaOKG7ubA7f6+K25pcUeDKuLkL3yean0JGt2L5Jtkcwk X-Received: by 2002:a63:2507:: with SMTP id l7mr15435465pgl.22.1544563597430; Tue, 11 Dec 2018 13:26:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544563597; cv=none; d=google.com; s=arc-20160816; b=VVUyFS/WWeDPUICi8A+Hq6MDaRBor+scBsVM8kqvTSYPZ8bDj6zw7H8VR6u/Qq/ytl 7s3YnaQK3xnrRnAQKqmKMKWHe8g929fbViWZzvGJZ5T8yixbP7a3PWIbFyajvlgw+UUR E4qCA/rEWjXFcGs/wARBNPmgIIyvgsZ77ga+ZZSyyKwUTEhZeoJzqojB7gY0O1COp1yF MrD8bkjw0HwC44ibwHcA7bjv+JScar90CVa1fmr3Ip1ZmogWs15sDdVg0VBICtQqKMUP EHFVZQijavmtzN2nk+43pw+wxUvctBBwoTs/j2OQLkGJEkwK7D6gNi2M26bUCLCTISc9 s9dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=lvWHCEFXqlZumAoP7ka9IcoWHn0Q5//NZSQXcynDaMA=; b=GLaM7PQvoWmhxNYZqmkc5z3lg/Q57CvyUXFt3T7dAcJ3aw0Ofc1oEJ166JUkavU7ls AroyCic6P1Qv8BJN6OmZSvjmLW9yZh4YSY7rkG85FFDCHIrJIzwmYJXe/r8AUjw6SJuH JF/vRS6E5OQPPtcmuHM9EspZ3ny30Gt/+eQRy9MVSzHppQTj2h5N2gBRAwhldxRa0ERP q+cFXG6AaHQfIlMJeBflvMly4q1VnCAdtWJpq9mLtXcIo2h61R6Pc5eA3l6vjChcgZA/ 28LlM+GlLK/QIXujwVilveE003s7zAlgCn+S56Sk4NM3ppXNoocFig3GjPu/1bIaQHVA CIoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D0y+UpMF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si10183276pga.328.2018.12.11.13.26.37; Tue, 11 Dec 2018 13:26:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D0y+UpMF; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbeLKV0f (ORCPT + 31 others); Tue, 11 Dec 2018 16:26:35 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:47059 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726134AbeLKV0e (ORCPT ); Tue, 11 Dec 2018 16:26:34 -0500 Received: by mail-lf1-f67.google.com with SMTP id f23so11873771lfc.13 for ; Tue, 11 Dec 2018 13:26:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lvWHCEFXqlZumAoP7ka9IcoWHn0Q5//NZSQXcynDaMA=; b=D0y+UpMFpRjwZScjg9E10AB+NLzLVG6oec3tmSHPn3P+UNRmD9FJUFkeFOAIsLikej CaPEmW7YxGCcBDnTt436hgZ+7jyklTvORKfX6rpxirCqJw7Rlsm7gOIykYv7yIwNTbIR HF7O5CmFbV5dXudMMXzd2TSzVuygRprJn0Apo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=lvWHCEFXqlZumAoP7ka9IcoWHn0Q5//NZSQXcynDaMA=; b=XGsnXWLrrE8UBnVGmLzNV3g7acXIFyBwDLkcqyF7UGaEJV6ku9/Hh7iaO+VRUTessq krWzJgI//MhohLM8dP5Ux+PwU4a18e1TMbBFnnieUFFd6fT4pECA1YPDbtiOmrCeLLYS WrBLTTZ8pux6reLeQDQv2AHXE6Jf9+tUtDW17fg1UeakM4Y7upvKWRxbzojSgJzo2oEF E71fKb/d6CBjrFk4mmGAOAmvjaT+4GV2/Q7ZZlUZ7toCROBKldWsY20Hwcuyh2JqbrgL 2YdajEjSAwZDBuTMiWUL5yX5V26r0M8Cu+WV0YUy12k9ItJFh6a/v965G+x51+LGjvlQ gi7A== X-Gm-Message-State: AA+aEWZ25e/XGeOHnlS4Ot8mriyyy3Q05BgXlTe1pNS3BrdLX6s9P8pv yNYkHxhis5GU9soogcguRvrm4Q== X-Received: by 2002:a19:9dd1:: with SMTP id g200mr9888009lfe.127.1544563592399; Tue, 11 Dec 2018 13:26:32 -0800 (PST) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id y11-v6sm2873870ljc.85.2018.12.11.13.26.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 11 Dec 2018 13:26:31 -0800 (PST) From: Linus Walleij To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Charles Keepax , Bartosz Golaszewski , Marek Szyprowski , Linus Walleij Subject: [PATCH 0/5 v8] Regulator GPIO descriptors endgame Date: Tue, 11 Dec 2018 22:24:23 +0100 Message-Id: <20181211212428.28327-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.19.2 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These five patches finalize the regulator GPIO descriptor migration and wipes up the debris. - Migrate the GPIO regulator driver to use descriptors, switch the few board files using it over in the process. - Update the device tree bindings for the GPIO regulator. (This is kind of an independent patch, but a side effect of using the gpiolib DT parsing code.) - Pull all inversion and open drain handling into gpiolib by just passing the right flags in the GPIO descriptor tables and deleting the local inversion implementation. - As the GPIO regulator was the last user of the global GPIO numberspace, we can finally delete the non-descriptor handling in the regulator core. Linus Walleij (5): regulator: gpio: Convert to use descriptors regulator: fixed/gpio: Pull inversion/OD into gpiolib regulator: fixed/gpio: Update device tree bindings regulator: gpio: Simplify probe path regulator: core: Only support passing enable GPIO descriptors .../bindings/regulator/fixed-regulator.txt | 13 +- .../bindings/regulator/gpio-regulator.txt | 4 + arch/arm/mach-imx/mach-mx21ads.c | 1 - arch/arm/mach-imx/mach-mx27ads.c | 2 +- arch/arm/mach-mmp/brownstone.c | 1 - arch/arm/mach-omap1/board-ams-delta.c | 2 - arch/arm/mach-omap2/pdata-quirks.c | 1 - arch/arm/mach-pxa/em-x270.c | 1 - arch/arm/mach-pxa/ezx.c | 3 +- arch/arm/mach-pxa/hx4700.c | 23 ++- arch/arm/mach-pxa/magician.c | 23 ++- arch/arm/mach-pxa/raumfeld.c | 1 - arch/arm/mach-pxa/zeus.c | 3 +- arch/arm/mach-sa1100/assabet.c | 1 - arch/sh/boards/mach-ecovec24/setup.c | 2 - .../intel-mid/device_libs/platform_bcm43xx.c | 1 - drivers/regulator/core.c | 40 +--- drivers/regulator/da9055-regulator.c | 1 - drivers/regulator/fixed.c | 35 +--- drivers/regulator/gpio-regulator.c | 189 +++++++----------- include/linux/regulator/driver.h | 12 +- include/linux/regulator/fixed.h | 10 - include/linux/regulator/gpio-regulator.h | 18 +- 23 files changed, 143 insertions(+), 244 deletions(-) -- 2.19.2