Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp4013498imm; Mon, 8 Oct 2018 13:20:32 -0700 (PDT) X-Google-Smtp-Source: ACcGV63O7+z4rndyhajixX3Sc0iE75mS12HPdi58e7kkUmCOSRIxWvBP4HbYer/skbVCuh/MlcVf X-Received: by 2002:a62:9554:: with SMTP id p81-v6mr26742821pfd.222.1539030032666; Mon, 08 Oct 2018 13:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539030032; cv=none; d=google.com; s=arc-20160816; b=wS+xNTQOU1hO2F8wTfxnltV1JnPZrnQwMTUOHTo0F90j3kFZ1CJFI2ckFJE2vQNuRg UPLKTZIuafT0udsWuViTgNCxccnKJ84n3g6vF8zsCwZh/8s+FV1VA8mGJm+tw/OVc2Wt hYAlGur3koLC4bPyL63a1k4q/G9dN8V74lmlyxzftn1wSi9QZrqEGMFfFXSC0d5HnZsK 2PHYYljTgeqKFANQ67x2NYCV31vu2k6gS4UtpF2BziEgOJx0vXAAtMTktO0sMyF2b5tH H+xnEeOL/4diozopoTZNO4jsrvXv+VGAH2sFrV7Y28wLF4XA1bDa+SsTTcHjearYdAkN 6Q0Q== 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 :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=ZLUygApNRTysg135u6LGjLidSTbvk4z837zgG+gf3/E=; b=UqNcNOu5u6oNyf0fCa6Nc/1sHpYHbv6VSwKfrAMZzAPMIOD+lRWt4W+JO3qTDHhhwf uR20U30RvopSYS/G5k77fIW2q4MjBe17jN3+YJyvWaqa/zOGN2v2CXleoVoUV24l4VLy IiQ17uy0qw0i1oSCjwc2p/Ni+xLkgb0GB2iQNVdNx63AxnNn6m9uA7QT5ES/NCSTJL0L DN6aRoUTWu8gjzOengLX1DoG7tMEhnvV1Z+mgMoh9QKPeJFQhwzsv/74UKtoJFUzefto dwcuOf4xTOw3hw1ESG4D4YQLAu15do2EVogSS+I0wguLY+MBfhndZh0HJ0ImAMsKolNP +iDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="o7DkD5B/"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g5-v6si14192682pgl.419.2018.10.08.13.20.17; Mon, 08 Oct 2018 13:20:32 -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=@kernel.org header.s=default header.b="o7DkD5B/"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727033AbeJIDdJ (ORCPT + 99 others); Mon, 8 Oct 2018 23:33:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:49418 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbeJIDdJ (ORCPT ); Mon, 8 Oct 2018 23:33:09 -0400 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6917620C0A; Mon, 8 Oct 2018 20:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1539029978; bh=jdaFC+XMm8RRUIw4lcVuSJboAWKZ2pawuSgM9hePSFc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=o7DkD5B/TWHYQufLGDreorxDV+5bqteRNEhhU45lVHn6HIOABaTrtFdLgt4n6KiNG zen/9+7bQv5GytBxnrwB9WTcdeDGKmFjRI8Ex5D6A/H8Z1UOlBGBctkkhzzdiH9Y+e MXq8ZShj6af8Vgk8Ez8dKv1bPfgcy3bgT+DaciqU= Date: Mon, 8 Oct 2018 21:19:32 +0100 From: Jonathan Cameron To: Oskari Lemmela Cc: Maxime Ripard , Sebastian Reichel , Chen-Yu Tsai , Mark Rutland , Rob Herring , Linus Walleij , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Lee Jones , Quentin Schulz , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/4] dt-bindings: add compatibles for AXP803 AC and battery power supplies Message-ID: <20181008211932.16a51643@archlinux> In-Reply-To: <20181004193410.7265-2-oskari@lemmela.net> References: <20181004193410.7265-1-oskari@lemmela.net> <20181004193410.7265-2-oskari@lemmela.net> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 4 Oct 2018 22:34:07 +0300 Oskari Lemmela wrote: > AXP803 PMIC is register compatible with AXP813. > > AXP803/AXP813 are capable to limit input current and supply voltage. > > Signed-off-by: Oskari Lemmela Hi Oskari, It would be better to split this up as different aspects are going to ideally be applied through different kernel trees. I know that already got commented on for the later patch but just wanted to point out it applies here as well. One comment inline about avoiding wildcards given the propensity of hardware manufacturers to confuse us on their naming schemes. Jonathan > --- > Documentation/devicetree/bindings/gpio/gpio-axp209.txt | 3 ++- > Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt | 3 ++- > .../devicetree/bindings/power/supply/axp20x_ac_power.txt | 4 ++++ > .../devicetree/bindings/power/supply/axp20x_battery.txt | 1 + > 4 files changed, 9 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt > index fc42b2caa06d..da3c0efb5e76 100644 > --- a/Documentation/devicetree/bindings/gpio/gpio-axp209.txt > +++ b/Documentation/devicetree/bindings/gpio/gpio-axp209.txt > @@ -11,6 +11,7 @@ This driver employs the per-pin muxing pattern. > Required properties: > - compatible: Should be one of: > - "x-powers,axp209-gpio" > + - "x-powers,axp803-gpio" > - "x-powers,axp813-gpio" > - #gpio-cells: Should be two. The first cell is the pin number and the > second is the GPIO flags. > @@ -67,7 +68,7 @@ GPIO0 | gpio_in, gpio_out, ldo, adc > GPIO1 | gpio_in, gpio_out, ldo, adc > GPIO2 | gpio_in, gpio_out > > -axp813 > +axp8x3 Avoid wild cards like this. It if far too common to have a hardware manufacturer not keep to what seems like an established naming convention and introduce something entirely different in the middle of an existing series of names. > ------ > GPIO | Functions > ------------------------ > diff --git a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt > index 7a6313913923..247616099171 100644 > --- a/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt > +++ b/Documentation/devicetree/bindings/iio/adc/axp20x_adc.txt > @@ -4,6 +4,7 @@ Required properties: > - compatible: should be one of: > - "x-powers,axp209-adc", > - "x-powers,axp221-adc", > + - "x-powers,axp803-adc", > - "x-powers,axp813-adc", > - #io-channel-cells: should be 1, > > @@ -39,7 +40,7 @@ AXP22x > 2 | batt_chrg_i > 3 | batt_dischrg_i > > -AXP813 > +AXP8x3 > ------ > 0 | pmic_temp > 1 | gpio0_v > diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt > index 826e8a879121..97276a71e961 100644 > --- a/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt > +++ b/Documentation/devicetree/bindings/power/supply/axp20x_ac_power.txt > @@ -4,6 +4,8 @@ Required Properties: > - compatible: One of: > "x-powers,axp202-ac-power-supply" > "x-powers,axp221-ac-power-supply" > + "x-powers,axp803-ac-power-supply" > + "x-powers,axp813-ac-power-supply" > > This node is a subnode of the axp20x PMIC. > > @@ -13,6 +15,8 @@ reading ADC channels from the AXP20X ADC. > The AXP22X is only able to tell if an AC power supply is present and > usable. > > +The AXP8X3 is able to limit current and supply voltage > + > Example: > > &axp209 { > diff --git a/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt b/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt > index 41916f69902c..780ebd7e3b84 100644 > --- a/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt > +++ b/Documentation/devicetree/bindings/power/supply/axp20x_battery.txt > @@ -4,6 +4,7 @@ Required Properties: > - compatible, one of: > "x-powers,axp209-battery-power-supply" > "x-powers,axp221-battery-power-supply" > + "x-powers,axp803-battery-power-supply" > "x-powers,axp813-battery-power-supply" > > This node is a subnode of its respective PMIC DT node.