Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2974543rwi; Fri, 28 Oct 2022 13:58:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4rhF8X/L9MQRrYAAODTmCPxwh1nUCu7kNf/0rFM7ttB0CyTLKP8/MbAGL4TSFSgPIb5ghV X-Received: by 2002:a17:902:db0e:b0:186:9b38:ad26 with SMTP id m14-20020a170902db0e00b001869b38ad26mr916163plx.43.1666990735680; Fri, 28 Oct 2022 13:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990735; cv=none; d=google.com; s=arc-20160816; b=gPjy5hcmOKw/s/gVOFeTrW8HJNsY8sanfXgmCblqYXar5PH1DTvDNLZpPjADVgiuL1 mXI6mywPvirzEl6wE2hGltRRn7dO8JdU2RWXJNf6eY2v34+KFvL8/lmj1sDjXPSjB/CA jfhb+DcGs7SENWMxF1m8A3oIWxY3ggmHSf+mhLoiA//yXbhehFp0NGuF1eWdPYIhRWnc VCsZ+DdiDKbtv7vCFfyZWvrf9OLroXNsUS9Skp7MiWiRTc7YPlDtK9Lip2jWM2gQMaBn CCvngbFfecg9GTkQxMXWCLnNy7BL1ha4kKmEbcjKfW3uPV+Fmky5uwptg/BK++Aw3G9F WgSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IN/QrI8F5VO0FMIFUwQVcbkATtijIb3TWo63OACQOZA=; b=OUHpmcazzMKd+w+C1Fz0qauQIfK5MGrRKRoQ82FZ2qLGnvehWj/PpdVa3ys93GzYBu S3USiZ9IuaCQPn0LuCsS6N3ELPJkF8wckdmKTykfvstgwLMwW+ehiWJxFPApoU15t2yH kZeK+v4SFxtLBWPPkw+CHObnHSefPq7Jv+jBCMxtdRAqa0uOvgZi7I9PQUBi64D2E3dm bQT/NA+6sNVMLFH1tlGj66vDOfVbp8hLecmUv68ZigsU9FgzbUz6o33Hn/+sc5J41bgF jB7oZj4eSA6DnpK/xWQicxE1C97btQG1r1ojIX3JTBCopIMWOt6bSB0CY5Qwz4554SBU zhAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Be5H31LH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g5-20020a056a001a0500b0053f52794b23si7554253pfv.88.2022.10.28.13.58.43; Fri, 28 Oct 2022 13:58:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Be5H31LH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230113AbiJ1U4G (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230013AbiJ1Uz4 (ORCPT ); Fri, 28 Oct 2022 16:55:56 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8924E1DDDFF; Fri, 28 Oct 2022 13:55:54 -0700 (PDT) Received: from notapiano.myfiosgateway.com (zone.collabora.co.uk [167.235.23.81]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 877906602940; Fri, 28 Oct 2022 21:55:51 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990553; bh=r1qaS5ViUxHsg1AZWvTvqTeEqXfMJSJaHVFIn2x377M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Be5H31LH2WXgTiryfnYQhUfs1ziaP8O4tktnP6GMZ9lHvDHyDw2tANpsISZUTjfkq OcI8IdOUoPhFlnB3qhBKE+zTOFr8qvc6PGHUIHAF/tihmeyKrhB1OVbew/pCENPxhR leaM04Iv+RZx14OV/Nmu1BEDuiKsqYU3yFZn1zGc04GgfsNi/nqNwIuv1gANRlFMwA jryI7hRCxCgixD9PKbC/dQfE6IqYOk/SrDVapZBOtEoJBDvARQQcJI9ipqohMCMm9K ShWaLByQEudq5HXvmL7kzSonT2c3WSyQ8NanSXY5N5YFwdQbujlpjvNySmzHTMKBk+ BcKXmrXvDlLhg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/8] ASoC: dt-bindings: rt5682: Add AVDD, MICVDD and VBAT supplies Date: Fri, 28 Oct 2022 16:55:35 -0400 Message-Id: <20221028205540.3197304-4-nfraprado@collabora.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221028205540.3197304-1-nfraprado@collabora.com> References: <20221028205540.3197304-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The rt5682 codec has three supplies - AVDD, MICVDD and VBAT - which are already used by sc7180-trogdor.dtsi. Document them in the binding. Acked-by: Krzysztof Kozlowski Signed-off-by: NĂ­colas F. R. A. Prado --- Commit adapted from [1], changes: - Made supplies required - Improved supplies descriptions [1] https://lore.kernel.org/all/20221024220015.1759428-5-nfraprado@collabora.com Documentation/devicetree/bindings/sound/rt5682.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt index 6b87db68337c..89e6245b870e 100644 --- a/Documentation/devicetree/bindings/sound/rt5682.txt +++ b/Documentation/devicetree/bindings/sound/rt5682.txt @@ -8,6 +8,15 @@ Required properties: - reg : The I2C address of the device. +- AVDD-supply: phandle to the regulator supplying analog power through the + AVDD pin + +- MICVDD-supply: phandle to the regulator supplying power for the microphone + bias through the MICVDD pin. Either MICVDD or VBAT should be present. + +- VBAT-supply: phandle to the regulator supplying battery power through the + VBAT pin. Either MICVDD or VBAT should be present. + Optional properties: - interrupts : The CODEC's interrupt output. @@ -75,4 +84,7 @@ rt5682 { clocks = <&osc>; clock-names = "mclk"; + + AVDD-supply = <&avdd_reg>; + MICVDD-supply = <&micvdd_reg>; }; -- 2.38.1