Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp801787imm; Fri, 12 Oct 2018 07:00:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV63L38Mm2zKFinYMi1cUV2jsidglOv/lX2YVc13gJUEYXmtGymBSTODzk9xhBexP4s7honjT X-Received: by 2002:a63:480e:: with SMTP id v14-v6mr5626676pga.308.1539352848452; Fri, 12 Oct 2018 07:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539352848; cv=none; d=google.com; s=arc-20160816; b=vTrZymdSgkfXPna4AR1H9huxtQvj2qwI1XCkqW/oKr0y54rJUiy1U3f0Rf6HZNKQjl 8z9UW3ZRWep69oX3jCINWUG24jijwjVfa+eruRNrMnZmSkA1RbyfWpdOa9liun8Sxcj8 wE2c5uPlF+asoBhT5YYEnU4BQCPGMNRt+5NMdxCplkq4QrnqNEi+hs8Ft6HaHLeQ85aN V4IuCAruNCtoXDxgFWobr1ASVcvj1OIfy3K9GXAUel69WAwpb+jx/fNdiDPsxa0j+q3S GC3iE2L1EJ1BudAz+/zZvDgqhOjENgRJZoOtTL8DPBHc6mroPtoUtmBXKfB/LDxPKYrm a8NA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dwIDfMoO5x+BincI0WTcYxeasn706BRHFShHFWqdj/I=; b=bwdI21WVDD8ZgAnCIt7TWupEF8CZebJ34r4BnygmJjU9idG9nuaatRdvZyV1z6Hv+B Zv7lr9YYbVljJE2ykMuEPYH6xiDquEsJNbUsLgBL7R4LI0JiL2zK8abeaqQ5b2URnX4O D3hFl3qmVNmkpeMvnr8LMc0YKm6YwEQ43W3LKUeP4dedGCqq/Cd4Vwj2s0OScEdBUrtG 8teTSRa+PCGiFVXaVMK621/XzYeC48bhThauqmvYpo20qChatm3lswC8iFir5uOdgwfL PV8iywT88Kb/kygLh0z5cXyrVci5Fx6d/Aed7mO+Qo0/+zU4vQHXnSB7THG3k5/4aWcs ShUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=dYdVoDvJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a28-v6si1351731pfc.106.2018.10.12.07.00.32; Fri, 12 Oct 2018 07:00:48 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=dYdVoDvJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728715AbeJLVb0 (ORCPT + 99 others); Fri, 12 Oct 2018 17:31:26 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:39951 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728527AbeJLVb0 (ORCPT ); Fri, 12 Oct 2018 17:31:26 -0400 Received: by mail-qt1-f196.google.com with SMTP id b4-v6so13877274qtc.7; Fri, 12 Oct 2018 06:58:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dwIDfMoO5x+BincI0WTcYxeasn706BRHFShHFWqdj/I=; b=dYdVoDvJj74kJDJSRvjubzMhk6yZNbHRakkqRLjkE+IcuT3dwZrYmDh8teu3XaDj9/ iPXnx535aSqpt7C3RhZNUZcdCLfsxvVAiepEZ8Zu9A4ayGiWWbintX9+UzlPNaZ6/BpO +C01Megnk5iWVhQiDSaEtt4rTuYPY71sZPpR0ajZG1C0ry1zRK8yMazx1RRkSDYjsQd8 jQtunO7b0PqkSPhuxmeqS8LC+3ERRnlH3TeSq835YK/f4eUfwHA+MNWFSPS2+bMopK0b P+20ReHdcRsMNt1LboJ+DHBwRlDTUmAz14+Dh4Bf0N43IFCm34xk8C+wkb25g+SakzBM DLdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dwIDfMoO5x+BincI0WTcYxeasn706BRHFShHFWqdj/I=; b=Uz+/jQ+/NI05lvk1Nh25DIS3+viE0YBow/+7etx1lYh2BzPqpuVZXFSI5U6UkD+3mD CzBolhFnasH3O5oD/2S0E/Qea/N6xnUjuEHkio8/m+wBhnMM/QBFQNrmD04P9mtcarz3 7yptiNkd8WHjjqW5dYkNVtAmp/r6lMIQuzViVSlatZY6jzHkPSP5plZ6gwX97BvCqdD9 m2rJXYReettEGM5vZhvygb/25KK1SayKd5bdPv8S0kjDdiuGwihwqq8azd62MP547oI5 hRmbBrqn84KcuzB8ZUh3B2H84QinjIdFyn9mbi0HsfjaPE4v5/boJ8EujCuRXFWONqbs i6mA== X-Gm-Message-State: ABuFfohZckqH4sGrFf7/CvloxT8QHEZU34u3TtGCRyTxA1ZQBHoVkBdK sFdfFnfRrw0ZHNiWqkPyQLV0c8MmI2LV8SN/Pjk= X-Received: by 2002:ac8:6784:: with SMTP id b4-v6mr5819980qtp.373.1539352730925; Fri, 12 Oct 2018 06:58:50 -0700 (PDT) MIME-Version: 1.0 References: <20180906122436.25610-1-linus.walleij@linaro.org> <20181011090112eucas1p286d8c1edfc1a2a207d8a11c5ad7eb20e~cglSx9qcr2394623946eucas1p2y@eucas1p2.samsung.com> <1539272073.18645.12.camel@toradex.com> <1539337415.30485.21.camel@toradex.com> <20181012104338.GS30658@n2100.armlinux.org.uk> In-Reply-To: <20181012104338.GS30658@n2100.armlinux.org.uk> From: Andy Shevchenko Date: Fri, 12 Oct 2018 16:58:38 +0300 Message-ID: Subject: Re: [PATCH v7] regulator: fixed: Convert to use GPIO descriptor only To: Russell King - ARM Linux Cc: Jon Hunter , Marcel Ziswiler , Linus Walleij , Linux Kernel Mailing List , Robert Jarzmik , Aaro Koskinen , jmondi , Marek Szyprowski , Mark Brown , Alexander Shiyan , Haojian Zhuang , Liam Girdwood , Mike Rapoport , Daniel Mack , Marc Zyngier , philipp.zabel@gmail.com, linux-tegra@vger.kernel.org, Janusz Krzysztofik , Geert Uytterhoeven Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 12, 2018 at 1:45 PM Russell King - ARM Linux wrote: > > On Fri, Oct 12, 2018 at 11:39:15AM +0100, Jon Hunter wrote: > > We had the same situation for Tegra124 Jetson TK1 but I don't think that > > adding a pseudo intermediate regulator is cleaner. If the GPIO controls > > more than one regulator, I don't see why is it necessary to change the > > DT. There are several other people reporting the same problem with > > various different boards. So this does seem to be a common usage. > > Given that DT describes the hardware, not the software implementation, > it must not change just because we move from GPIO numbers to GPIO > descriptors. > > The existing DT description is reasonable, and introducing ficticious > regulators in DT to work around the implementation is not reasonable. If there is no way to detect shared use of GPIO line for regulators (*) from current DT description, DT description should be updated to reflect, yes, hardware. (*) Not familiar with the guts of DT descriptive language, don't know if there are some ways to do a such without additional flags or so. -- With Best Regards, Andy Shevchenko