Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp10209img; Tue, 19 Mar 2019 13:14:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqwC+/dhfrpMfK5MmMuLiMKzWGkT26fPCJLngRKYLdDx5adTazBvzLq/qkHlvUVavjXjoyiI X-Received: by 2002:a63:f802:: with SMTP id n2mr3362358pgh.83.1553026465684; Tue, 19 Mar 2019 13:14:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553026465; cv=none; d=google.com; s=arc-20160816; b=Ro7tHYFLxQSqwmhVFnsxVa9T/0yV5qVxdhkiVtD9ieE8OQZ22q8q6ZjQg4U0nA1s/2 FEYW2LyQAGpKV1h5dFkzWO0y/fMZ7I8RBWt3b+tbkxJ3VwVsrMLLxfSuDKOUdxhVjGCE lRP2pjiVZtk2HcSc+SQ+dfx0C50EMvEGJe6dLSF3W/OjfTmrrjfXN3fMG3m7fQ4tswzC BPNq2Zj6Lo76uc3sq1eYKgZ/TH9Q4KveJ9dU4i3KVZNv8Tq7fTH6zHnsIhCxyuFUlQz0 zVg09zF6PiIFyYBqW838znXExVhREpSc7h3EJKt9KZfEsG3BzFzF9OVdnKBf9jfQUMz2 QbLw== 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=pChVmqBWNHh+c9JeuJAKczvnZeuFBoIGS35tMLIUbY4=; b=CXfes8Avy4R9aTxm82d6HNb4BnQ1ZGqHwi2WsD5ZLUU/+/sEGpo8bgwSQwohvv6DJ4 07CK5ybXu2TJb2RAl5jtcNv2cOh1mzhRc/QryzLYFOKrMpvzear3xQMV7vbjWmNLhDog xup6F6+7ECOXtULNPlpJ5F0JYTuNP5T03USl+EF3NU5cvRnQKqjUffqv4nFdtIYp4IOS BcA3ajsuWZqIlsXv5lVkXnqsEOBCSQ0OdXrDQNT7NsgkU78hz+uVf7Ggi1wfxZy34wrv MEAcPC6gy0OFrJvQYFNb22opIyiVL1CmH+DEKAwgDhH5ARy/fvYMUAbOK6INsI7Yy8bj 4o7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b="cg6/9xmK"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 139si11925456pga.219.2019.03.19.13.14.09; Tue, 19 Mar 2019 13:14:25 -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=@googlemail.com header.s=20161025 header.b="cg6/9xmK"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727184AbfCSUNP (ORCPT + 99 others); Tue, 19 Mar 2019 16:13:15 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:46282 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbfCSUNO (ORCPT ); Tue, 19 Mar 2019 16:13:14 -0400 Received: by mail-oi1-f196.google.com with SMTP id x188so4848146oia.13 for ; Tue, 19 Mar 2019 13:13:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pChVmqBWNHh+c9JeuJAKczvnZeuFBoIGS35tMLIUbY4=; b=cg6/9xmKTOJ0PR1H93EhfAuEZ4Yx3/M/+JUx2Jhh/L+5BMo7PJGWBqu27eZDHs7qLS jLyZT/5z/Or1XJSu/2eMuOyycFeYtCAooQ/hQJdeKpSplJ/ht93/f+WGXH3nptplGlGE kv+oLq4RH7y/LEfh9BRzxxIaGLFTggtVdWdB26wELBilEpt8j9T1W9wRIr3socNlFnYM jE6VIevRtE+q5LeHsrMn0FPOeZPVZgi1k31kaSP4FJcUZLw9tfd44uk5PXo+yI3cGZn+ P+heNHs6CMWMlTEknaQJTuDSsyQs65XhDtftdq4MddCeQJ1snmlEQTpXxHRtpIQTipqe 19rQ== 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=pChVmqBWNHh+c9JeuJAKczvnZeuFBoIGS35tMLIUbY4=; b=Bm/DXmvbxfEUCCEs/D72AFPCfxF+6sUwf+YZ7lYed51cyzg0iX1nddWcNkznBHCeUE OBgvDUMZV5InTXx1jZMPwX9uz+3j2IZOK+Ehmqw4fgs9VgZjSouBtq5bMPudPwwcHMPI Dm5o76fVLjeHv8WiJVx2VHyMWQs5F3HkLQJw2+mUI6Q+w/cZ/8zV612Ig1kKEYviCoXy L5CpHRo/eOBBbFwCLM+vtmxadjKDNe8PDA8zvK0Vv89K8QyRGzcwXyJzTDFNXIPraW/b wm2LbeW2bnijBqA+HZeqkNmstxPr62iz3wbDAkOo0wp71+766TyjQ5O2iitHASMDjcoS T/yw== X-Gm-Message-State: APjAAAWfU2XoQl32VdX485zpn7YCj9cos6pwkbEAxrxuCtoZQLVW4c+7 94x4RTznfMzY/frfPmqzHNHeJEOUgEFOAtMGchM= X-Received: by 2002:aca:cf07:: with SMTP id f7mr2725524oig.39.1553026393798; Tue, 19 Mar 2019 13:13:13 -0700 (PDT) MIME-Version: 1.0 References: <20190318100458.5619-1-narmstrong@baylibre.com> <20190318100458.5619-7-narmstrong@baylibre.com> In-Reply-To: From: Martin Blumenstingl Date: Tue, 19 Mar 2019 21:13:02 +0100 Message-ID: Subject: Re: [PATCH v2 06/11] arm64: dts: meson-g12a-x96-max: add regulators To: Neil Armstrong Cc: khilman@baylibre.com, linux-amlogic@lists.infradead.org, Guillaume La Roque , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 Hi Neil, On Tue, Mar 19, 2019 at 9:29 AM Neil Armstrong wrote: > > On 18/03/2019 21:13, Martin Blumenstingl wrote: > > Hi Neil, > > > > On Mon, Mar 18, 2019 at 11:06 AM Neil Armstrong wrote: > >> > >> From: Guillaume La Roque > >> > >> Add system regulators for the X96 Max Set-Top-Box. > >> > >> Still missing > >> * VDD_EE (0.8V - PWM controlled) > >> * VDD_CPU (PWM controlled) > >> > >> Signed-off-by: Guillaume La Roque > >> Signed-off-by: Neil Armstrong > >> --- > >> .../boot/dts/amlogic/meson-g12a-x96-max.dts | 67 +++++++++++++++++++ > >> 1 file changed, 67 insertions(+) > >> > >> diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts > >> index 0edbd00b358f..5c37930b09e2 100644 > >> --- a/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts > >> +++ b/arch/arm64/boot/dts/amlogic/meson-g12a-x96-max.dts > > [...] > >> + vcc_5v: regulator-vcc_5v { > >> + compatible = "regulator-fixed"; > >> + regulator-name = "VCC_5V"; > >> + regulator-min-microvolt = <5000000>; > >> + regulator-max-microvolt = <5000000>; > >> + vin-supply = <&dc_in>; > >> + > >> + gpio = <&gpio GPIOH_8 GPIO_OPEN_DRAIN>; > >> + enable-active-high; > > is there any way to test whether this GPIO is the right one? > > I couldn't find a reference to a GPIOH_8 regulator in > > buildroot_openlinux_kernel_4.9_fbdev_20180706 > > The x96 is based on the U212 reference design, and the GPIOH_8 controls the 5V_EN signal, > but you are right, it's the wrong polarity here, it should be enable-active-low instead. > (FYI The SEI510 does not use this at all, 5V is always enabled) > > The schematics describes : > VCC5V_EN (GPIOH_8-Hiz OD): 5V_EN > L: Enable > Hiz: Disable thank you for this explanation! > FYI, the GPIOH_8 is Open-Drain only, this means this pin cannot pull to TTL 1, only to TTL 0 > or set as input. We need to add a way to describe this in the pinctrl driver somehow.... as far as I understand the pinctrl driver changes would result in an error when the GPIO is used with "active high" (making incompatible drivers or .dts easier to see). is this correct? > I will send a fix on v3 > > I didn't notice because I power the board using a Type-A to Type-A connector, > and the 5V from the USB port bypasses this regulator... this is good to know. I'm also powering some of my boards using a Type-A to Type-A connector. I'll need to remember this and this whether boards are still booting with the DC plug Regards Martin