Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3196778imu; Fri, 23 Nov 2018 23:52:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wecnah5pFHFea5tHjGhJemNKKN3+6QItCM237lKYm/l+9e3NB+P0zqQCemkxv64VityYyh X-Received: by 2002:a63:c447:: with SMTP id m7mr17000243pgg.27.1543045966051; Fri, 23 Nov 2018 23:52:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543045966; cv=none; d=google.com; s=arc-20160816; b=aZNhyTIjKHNlGGWDaZ/K06jrVY5ejVa2e8bba84oOknLr16m0+zXacIpOmb8CzQx9k KMJNzUnmlIlv5okCKOsbF1sd//u/KkK4jMwGURskURnBAjrFwlfs8+aBHxljo5SdwI7w Nd7kcAeumUk+0LWk5lnIcJI8r30zgjPYNBrDF6KIYotELGKGx64htwE1Yj7yALkdWHh/ lcrmTU4A5JLCL7SX0kZgpaoCICoQ8o7W6DZWNg3k181cHOmDcF2z45X3DJVlBPWMWEHx nWofKV3DHa656akaiEjqI39joviVcQJyfGHchc4lqxCuz28ivK5NJVaPS1nwD3E+IVPL gvow== 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; bh=qGCz31pgZFlYojE1pveQ5VbetAHfVJaLcPcB8wPuU+o=; b=WIi32iSr4rhMZRpdgNriIQULiUVhXWhXs2JO/R/hs7zgVfoBKA+8EpIcP5bS3+DSfb nwm+tXNAWBCe14uV8azwgLoEq0n+PGieNKgI+k+KuwkeFvJg78uqAag3uKrn38KDWQvA sqTg1WoUPRCZwLorQSza1XyXgL8srz7fVKUT30c7soiOb0Lz0/0HCVDeb60B+Pfjl21w dHIBa/ZoT2RiuY6M30BX6keGB0PInRZ2Co9D0lB5+igsnPNEIz68o7GRt0V84RX6ZwJA DanFikHnB9NDR4Zqlvh+ezFWOPRgW7pTYYlCqcbM9ryRNhnAwVkdQx7e+rT0ycVzO9tj 05mQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si9279620pld.398.2018.11.23.23.52.32; Fri, 23 Nov 2018 23:52:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2439389AbeKWMyM (ORCPT + 99 others); Fri, 23 Nov 2018 07:54:12 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46225 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733249AbeKWMyM (ORCPT ); Fri, 23 Nov 2018 07:54:12 -0500 Received: by mail-ed1-f66.google.com with SMTP id o10so9031078edt.13; Thu, 22 Nov 2018 18:11:59 -0800 (PST) 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=qGCz31pgZFlYojE1pveQ5VbetAHfVJaLcPcB8wPuU+o=; b=g8kJU/cEl153GzNO3nUPmiB5DwqqyO0QtqXWZar0A5Vs7OL64MuZu20v9CTz0SfWi4 XLFedjuLwIVprTBaySMREQ+3PUnjOQ/7iXWLHTh44FGxOWPI7PrVwf/oAWoQudKlwhTT N33HhIqU1kjeEw9Sm6wzu+N7JT8QvI636un4ZsCkdzhUZ4vYs+TAzpdaw9oKmUnEhRTY aFcl5ZvWxQ+REg8NW4q2C4ZTHa6wX88BtV7oOTWeEdtr1bxWYZctMXy6a03Kb7TlYAcS i5UvqrZXXrkqC4JWprL38SMyYmVwE41QWUf8jgbP+eDAgdKH2wW5IubkUsQBmw7uak8m EqZg== X-Gm-Message-State: AGRZ1gL1TiogZxn35S8m6LTLIJ1Hxxmpve0VOAvsMx9SZopwroA4pQXt AL1ysPCLxsjcOE66PWwxGPFG+x20N0E= X-Received: by 2002:a17:906:4c94:: with SMTP id q20-v6mr9902476eju.26.1542939118847; Thu, 22 Nov 2018 18:11:58 -0800 (PST) Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com. [209.85.221.49]) by smtp.gmail.com with ESMTPSA id p1-v6sm7842705ejo.49.2018.11.22.18.11.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Nov 2018 18:11:58 -0800 (PST) Received: by mail-wr1-f49.google.com with SMTP id p4so10862640wrt.7; Thu, 22 Nov 2018 18:11:58 -0800 (PST) X-Received: by 2002:adf:a599:: with SMTP id g25-v6mr12312770wrc.188.1542939117741; Thu, 22 Nov 2018 18:11:57 -0800 (PST) MIME-Version: 1.0 References: <20181122102325.29495-1-wens@csie.org> <20181122102325.29495-2-wens@csie.org> <20181122153241.lzrwhkewg5q4hy2c@flea> <20181122154819.powgbwwqpljqvjty@flea> In-Reply-To: <20181122154819.powgbwwqpljqvjty@flea> From: Chen-Yu Tsai Date: Fri, 23 Nov 2018 10:11:45 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v9 1/8] ASoC: dt-bindings: sun50i-codec-analog: Add headphone amp regulator supply To: Maxime Ripard Cc: Mark Brown , Liam Girdwood , Rob Herring , Mark Rutland , devicetree , Linux-ALSA , linux-arm-kernel , linux-kernel , linux-sunxi@googlegroups.com, Vasily Khoruzhick 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 Thu, Nov 22, 2018 at 11:48 PM Maxime Ripard wrote: > > On Thu, Nov 22, 2018 at 11:41:57PM +0800, Chen-Yu Tsai wrote: > > On Thu, Nov 22, 2018 at 11:33 PM Maxime Ripard > > wrote: > > > > > > On Thu, Nov 22, 2018 at 06:23:18PM +0800, Chen-Yu Tsai wrote: > > > > On the Allwinner A64 SoC, the audio codec has a built-in headphone > > > > amplifier. This amplifier has a power supply separate from the rest of > > > > the analog audio circuitry. > > > > > > > > Add a regulator supply property to handle this. > > > > > > > > Signed-off-by: Chen-Yu Tsai > > > > --- > > > > Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt | 2 ++ > > > > 1 file changed, 2 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt b/Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt > > > > index 4f8ad0e04d20..056a098495cc 100644 > > > > --- a/Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt > > > > +++ b/Documentation/devicetree/bindings/sound/sun50i-codec-analog.txt > > > > @@ -4,9 +4,11 @@ Required properties: > > > > - compatible: must be one of the following compatibles: > > > > - "allwinner,sun50i-a64-codec-analog" > > > > - reg: must contain the registers location and length > > > > +- cpvdd-supply: Regulator supply for the headphone amplifier > > > > > > I guess we should make this optional, since even if it's missing, it's > > > going to create a dummy regulator. and that allows to have backward > > > compatibility. > > > > > > For the rest of the series, > > > Acked-by: Maxime Ripard > > > > This one (not sun8i-codec-analog) is new for the next release, so there's > > no backward compatibility to consider. Plus none of the device tree changes > > for A64 have been merged. > > Ok, that works for me then. Well, I misspoke. The driver was introduced in 4.20-rc1, and these changes will end up in 4.21. But again, since we don't have any device tree changes already merged, we should be fine. Implementation wise, there really isn't a "required" variant of the regulator API. The API will use the dummy regulator if it's missing. ChenYu