From patchwork Fri Oct 28 20:55:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12548 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039174wru; Fri, 28 Oct 2022 13:58:37 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6ScoGpKeUdnSlAPXZPZ+6eA3Ve+dG4F0fwCJOe/n4bfccHk3k2dYJryAghGLEaZGqx166j X-Received: by 2002:a17:907:31c4:b0:78d:9b2f:4e1a with SMTP id xf4-20020a17090731c400b0078d9b2f4e1amr1111065ejb.306.1666990717216; Fri, 28 Oct 2022 13:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990717; cv=none; d=google.com; s=arc-20160816; b=BEoiRIZEM4nWXX58av/c6PBiMrbyhUDRHWywqhaRkaG62JB3YV75hWwvweABQhuhpa sHdZj6EtA+kpS+op1Im7B0Fbq6rt4FyQsszarbH6A4KGIg6aWDA7b5mtA87h1eSU0+g/ oRI3OKjy38Z+vIfWpa5rg8d40U9XjdwyLvi+Zzul0k/DNJc/OmxGFcPaZipnQ2VAi/nL Plt8Y7pjLfZuqEw+e7XkuL5bOEfJcT7oucDWoRMZsuEjF1f9wiRPQ5H/p/j1JwOeNmQy FlLLOtJAlAeelRHApRosudoXUmr5NdJBzukpHrd9EjaKixtk4shmFxMxEvj1c020nMj+ G2tA== 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=nBcfLjESmq8DWp09oTubHL2Z8Z/EiDwKY0BCP5KbkYU=; b=Vne6TS9MaFuhtRUiZwXsuhygkPjWjYAq5dIuoa2SeEbrzyR5dLGBNzaxRYpFa1uhdI rFq/Z4B3WhGlcJWn7Kl1yEPmd95NwUOCL59pDuxmLdkfofEMRcwZhTgdVvpuqwCAzGDF OqAAhdH81PWw6YjZSJKnRD5iz0463PQcVmClloEk3JWugIqxajJfEqxVSwJmqXO4xtQK bDnbzYfJ8Kcutp85iVhnB0rlm+gJ/tSlqJonT9vwgseGsndZmx1AjquVZndMIZ8twh04 vuANblMGtNTULZwSWCf0w4CfPADPOpxDi4NKrD5n7W6MpUCsxvHNXyLYnsKjka4Op+L4 qzrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=TnrQ1htk; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt5-20020a170906ee8500b007982c5e6ec8si2157778ejb.89.2022.10.28.13.58.12; Fri, 28 Oct 2022 13:58:37 -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=TnrQ1htk; 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 S230041AbiJ1U4A (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229997AbiJ1Uzx (ORCPT ); Fri, 28 Oct 2022 16:55:53 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C20A1D1009; Fri, 28 Oct 2022 13:55:50 -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 18D78660293A; Fri, 28 Oct 2022 21:55:46 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990548; bh=/xWER+x0oIFofm2IpHy5fUUgY7g0hKyTCznvNF7+CqA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TnrQ1htkoHEWLyVfQvnS1zDqwnVJLfaspdiMRoVtYHz6yeWXdJimx7MDgfuvbG2x9 On+v13qBR8Bbq7mbl6dYsbLnoCQdhFdD7vmVXGdVfOOnvNdCTpzrIR9an02sCDaOyR zrOexNFlp61rZ/ekhsw1QswkvJZvROGorR+j6DHE997IjpOBpsPM+KrCs6KI0h8PT4 IQBzoVzkTtndgGiY2HE3lzEWtiuAXrR3/27AH1DPOMQ1J8oqFyLSnlGLadRvfVEcMe F3VA/UrlLhlXi+lRx1PH35hgPxG69uddO1xdYrLXl3HX7vcaQxLz7HO1WsRGdq16+N I2DFlrcDgoziA== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Derek Fang , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/8] ASoC: dt-bindings: realtek,rt5682s: Add AVDD and MICVDD supplies Date: Fri, 28 Oct 2022 16:55:33 -0400 Message-Id: <20221028205540.3197304-2-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966458382217516?= X-GMAIL-MSGID: =?utf-8?q?1747966458382217516?= The rt5682s codec has two supplies - AVDD and MICVDD - which are already used by sc7180-trogdor-kingoftown.dtsi. Document them in the binding. Acked-by: Krzysztof Kozlowski Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- Commit adapted from [1], changes: - Made supplies required - Added description for supplies [1] https://lore.kernel.org/all/20221024220015.1759428-3-nfraprado@collabora.com .../devicetree/bindings/sound/realtek,rt5682s.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml index 1c0b06d82369..b7338bfc0f5a 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml @@ -90,11 +90,20 @@ properties: "#sound-dai-cells": const: 1 + AVDD-supply: + description: Regulator supplying analog power through the AVDD pin. + + MICVDD-supply: + description: Regulator supplying power for the microphone bias through the + MICVDD pin. + additionalProperties: false required: - compatible - reg + - AVDD-supply + - MICVDD-supply examples: - | @@ -120,5 +129,8 @@ examples: clocks = <&osc>; clock-names = "mclk"; + + AVDD-supply = <&avdd_reg>; + MICVDD-supply = <&micvdd_reg>; }; }; From patchwork Fri Oct 28 20:55:34 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12549 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039178wru; Fri, 28 Oct 2022 13:58:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5zf/hRe4A4fMVqDDrXLrGYkLFaeWyLSkVL9KrP/T8psEJ6bo6qN7t21DF18PJm93cnrivc X-Received: by 2002:a05:6402:26cc:b0:462:2426:4953 with SMTP id x12-20020a05640226cc00b0046224264953mr1280762edd.13.1666990717864; Fri, 28 Oct 2022 13:58:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990717; cv=none; d=google.com; s=arc-20160816; b=1K2u4V2pMQ/vGjJD2aO2NNy0ISduyj2mN+8/YCARDal1X0rGCt2vLDHB1NEc2a319S EzXaqZ212azKz4EuyQtwC6ZEsPrdl2oridB4ZXR/vp33eE0ed4/dgoJQE64iAiqPx/yB keS51B6KTvwDtE5Aik5EnEtplgqrBFGS6NxithTcdeQtQ09MN419exHZDa4M4CJDnkoq WwDh38on3W5IEZyZkhbr6mXubJ280CI8vsPPAwuBFGkGxKTYfKe/tD5N6z4FA5SF+QQk k5ixlNSOu4KhBsFU1E23vJRYHRU6ojG73UVgRn00gz1yxiQWytmyqs2sHdiBiJvf1366 jyQA== 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=ayM8oAtN3B2erL8byRDFxhqpBgX5e+sxd8Pn44/5mvU=; b=Ciw7DGN98m3KttVXjvFZ2QpdgwCxROLhqdT1Q9SbdxgcvO0w9MfudVsoUShg8fxdSZ HxbyYUD1bQExJ6BAt2TEynnavrBv2CPbdwrmtNkbL3dAPymZP1gHDV1t+tHNY1fnO8nF hTEuz94n4NDIa6gDoELrMNQvKe0GeYpSn8obWfH7AZDDdmO5CPD9E0nXg8jD1UuqVAgj 9ijAgL1TP/t4we9FWa5kJpNvIIwc8NxVq6ea8upIuKTevBBa7O0rPzfBiivbxWOJz/7g x5VoUkdl4WrcBij5n4YtEqQaJk9Jb0h1UXuEJVZDFpiEzaOREQEmrN8l4dBXJ/BjFC18 Agdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=oaRdgjik; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s5-20020a056402520500b004619253a760si6987029edd.312.2022.10.28.13.58.14; Fri, 28 Oct 2022 13:58:37 -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=oaRdgjik; 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 S230063AbiJ1U4D (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbiJ1Uzz (ORCPT ); Fri, 28 Oct 2022 16:55:55 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46CA11D2B6D; Fri, 28 Oct 2022 13:55:52 -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 511DE6602942; Fri, 28 Oct 2022 21:55:49 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990551; bh=dgNVES+PG7HYw90A/f6Jhk6U5cFEmEyu1X+wMPSSjEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oaRdgjikT/hfU/s0FaK1hkwIVF9Y1l3kfEWLM3nrpKFDOtkGCt4iiQhaNF5w0vWVU zIdCEi74XlLewBLxA31M+O93kT6m6IHkaOqnJQBYeULCbVEfEui8tcb+9PyppGF/Qf SqiT6TbpVrmc/4K1bPbOy33UnzjCgqiEKisZpp6WhYqtPjE3Ojyk/tEewx+fMb2SgK QtwcSj+Nc1Pj0FNTvGETnpg2g7ADwR5RT0hg68udxeztOW5gIgbM+oX8TMFZ1xCKLJ eBHJAO0I3Ox7tEZ3VT5jxjTUjO2WYyLgBPGRPxHoff+zoCgJLI9eqKtF0NS+Kcqw89 zfJ+AeGsHwAcQ== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Derek Fang , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] ASoC: dt-bindings: realtek,rt5682s: Add dbvdd and ldo1-in supplies Date: Fri, 28 Oct 2022 16:55:34 -0400 Message-Id: <20221028205540.3197304-3-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966459036679846?= X-GMAIL-MSGID: =?utf-8?q?1747966459036679846?= The rt5682s codec has two additional power supply pins, DBVDD and LDO1_IN, that aren't currently described in the binding. Add them. Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno Acked-by: Krzysztof Kozlowski --- .../devicetree/bindings/sound/realtek,rt5682s.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml index b7338bfc0f5a..5b2bbf6f9156 100644 --- a/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml +++ b/Documentation/devicetree/bindings/sound/realtek,rt5682s.yaml @@ -97,6 +97,13 @@ properties: description: Regulator supplying power for the microphone bias through the MICVDD pin. + dbvdd-supply: + description: Regulator supplying I/O power through the DBVDD pin. + + ldo1-in-supply: + description: Regulator supplying power to the digital core and charge pump + through the LDO1_IN pin. + additionalProperties: false required: @@ -104,6 +111,8 @@ required: - reg - AVDD-supply - MICVDD-supply + - dbvdd-supply + - ldo1-in-supply examples: - | @@ -132,5 +141,7 @@ examples: AVDD-supply = <&avdd_reg>; MICVDD-supply = <&micvdd_reg>; + dbvdd-supply = <&dbvdd_reg>; + ldo1-in-supply = <&ldo1_in_reg>; }; }; From patchwork Fri Oct 28 20:55:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12547 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039118wru; Fri, 28 Oct 2022 13:58:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7WBOUkB6gZPbkfeKvTFphv3t+BUTLeGegVdxtvaLGjqlm1NcmOSLO5du8Dl9g24yULd32b X-Received: by 2002:a17:902:c944:b0:186:a7d7:c3b with SMTP id i4-20020a170902c94400b00186a7d70c3bmr886702pla.55.1666990711246; Fri, 28 Oct 2022 13:58:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990711; cv=none; d=google.com; s=arc-20160816; b=HtaLYeNvRVmOo/bZwyj3nMuN23dQcBFJTeIUd1KJRhZ8gMN2Ifn1hHXN3B5A1SNwXO kiCQIj+cD3ifX54yM4ELPDY7jnXylT0Y1s3II5BUYUHUBn07Frr+bJDkqbypkLjH+mCL JW6eAYvZyKM0h3CGBWdG8mY0s6KtHh9QorzyzVRZHb4V+mRIPBff6bHLHGHSTVi6HBzn HG7llti/NpDyvHSRjc6JdUY9jXkv6DFVwvEYc473BpHV+OhgRqc2xPu9p+2vzdqQC21y VSwwhxPl6tbFh4jQq5vCDha0tVMQ4JCjk7vN4OR7+MkxgyWhSIeG6PoLpiaiPmp/bEW0 6s9Q== 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 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.18; Fri, 28 Oct 2022 13:58:31 -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?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966451968862741?= X-GMAIL-MSGID: =?utf-8?q?1747966451968862741?= 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>; }; From patchwork Fri Oct 28 20:55:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12550 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039205wru; Fri, 28 Oct 2022 13:58:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kAr6YowPr01spyTi/VorusHP0WcN+fKsfopuiS8T6FaUB/6QoTxOqS6t/TS4gJWh54cZq X-Received: by 2002:a17:902:c94a:b0:186:e68a:9aad with SMTP id i10-20020a170902c94a00b00186e68a9aadmr917768pla.72.1666990722157; Fri, 28 Oct 2022 13:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990722; cv=none; d=google.com; s=arc-20160816; b=pzhmnx/tKENDczQlZQYdGRKaeLyXvF5BF6kszrsyvFWVIxtSmkU7G173pg5Ij/tv0a fv8TKr20NHtqGTgyhJn6+lQaqgtPN5A6cGLKKW/iVroKinMWb+VcuUI4ktvTGkGbAgz7 rNf1+3VXmhQizoGSaoxy0qdzAJL08LRee5nUboR6Bau+VZfg9zXOfcpcXn9Jsc6hh4hr x9h1cfDc/uF+627Oj/xY7S67KMCSATCvVR2WwGnYDiEjCNmy74O94vsHvyMSqZNAeXEn 8uWCab/7xbDg8nA7/3e5SsDo5rYErux7FTjQtY2Ir2w0LFkmGCfKKgcn27wrhALirw6N SiSg== 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=y4Z6XfoySKWNGUd/ecy5w4FZBco6u296xIoQsZMLdBc=; b=hMOQPnN8jTc6K7BsQgKGDkh/T1jzdgi994pud4kqUIwU5GgPk0aNaJocsAjgQEwihJ PdXgitoVBTAaRxglJ/G5DUoVUd3MIjqbaENEixtWKOYflyAOh8cgevNDW8L+EkEne4uq 1fS3hdqQayJqVvOBpevh4YYpNrx+tfhKA61ieJmUXT7/cCRzmQHK7foV/5bfsTCRB/Kf R4SCMHFroTl8kObp4OPtzDPZkml7cJIwzcRQHURdlTgoXigxKPpWUpERFONm6v89ZcB0 yWl49Pyi8ooUGA+zkOFK1IdUxujgm/tzhSbgL647QCc0e7NKhY4z9Wn3kA8/7VLDGgGp aYAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=gVADpfkI; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n16-20020a170903111000b00178b88d40ebsi7480518plh.51.2022.10.28.13.58.29; Fri, 28 Oct 2022 13:58:42 -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=gVADpfkI; 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 S230128AbiJ1U4K (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230010AbiJ1Uz6 (ORCPT ); Fri, 28 Oct 2022 16:55:58 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75F591EA541; Fri, 28 Oct 2022 13:55:56 -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 9DDD76602946; Fri, 28 Oct 2022 21:55:53 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990555; bh=kjJv2wI4r1COdPJDLysFujzo37yIvD0eiCbT/D7WY8Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gVADpfkI9YN8wvlcRgrsvTvdm8VyxolhpHN7+2z3ao+LKiotKKSHsYNVuoUFAh/X5 ncUKhS0W2QJK0rnAK9M2Sp2D6+GfW+EtzDfDgpQyywPigP79gyWm1kGgGYzFhydyMP kjYlMenwb/GMAlTOrL1tgeoPOoLr7LMJPPIu4xH9IvcsHqDk6AXdcxs5SI4Mgc0OOw xxUN+QMiWsSbzESkpU+7viNdCpv1BUrC0GXVNOezS/xbb2CyuLjhaisxxTmgBgDqqc /M8/Awa1tJIQTDSnYKD1ENE4fwv8exUmDkeFZPoln8BPcQ5AFYuMIrp8nO2cb/Z/3n WH75CERAEuSFA== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Krzysztof Kozlowski , Liam Girdwood , Rob Herring , alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/8] ASoC: dt-bindings: rt5682: Add dbvdd and ldo1-in supplies Date: Fri, 28 Oct 2022 16:55:36 -0400 Message-Id: <20221028205540.3197304-5-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966463737381587?= X-GMAIL-MSGID: =?utf-8?q?1747966463737381587?= The rt5682 codec has two additional power supply pins, DBVDD and LDO1_IN, that aren't currently described in the binding. Add them. Signed-off-by: Nícolas F. R. A. Prado Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/sound/rt5682.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/rt5682.txt b/Documentation/devicetree/bindings/sound/rt5682.txt index 89e6245b870e..948109ff0db3 100644 --- a/Documentation/devicetree/bindings/sound/rt5682.txt +++ b/Documentation/devicetree/bindings/sound/rt5682.txt @@ -17,6 +17,12 @@ Required properties: - VBAT-supply: phandle to the regulator supplying battery power through the VBAT pin. Either MICVDD or VBAT should be present. +- dbvdd-supply: phandle to the regulator supplying I/O power through the DBVDD + pin. + +- ldo1-in-supply: phandle to the regulator supplying power to the digital core + and charge pump through the LDO1_IN pin. + Optional properties: - interrupts : The CODEC's interrupt output. @@ -87,4 +93,6 @@ rt5682 { AVDD-supply = <&avdd_reg>; MICVDD-supply = <&micvdd_reg>; + dbvdd-supply = <&dbvdd_reg>; + ldo1-in-supply = <&ldo1_in_reg>; }; From patchwork Fri Oct 28 20:55:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12551 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039399wru; Fri, 28 Oct 2022 13:59:19 -0700 (PDT) X-Google-Smtp-Source: AMsMyM492oGxE8fuKmhM8qGrer28uem2axc0bHR+N1bCuca41OilbeCq3QYXH36KF0qNmDaOa6xS X-Received: by 2002:a05:6402:1497:b0:462:c929:7e89 with SMTP id e23-20020a056402149700b00462c9297e89mr1285812edv.149.1666990758804; Fri, 28 Oct 2022 13:59:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990758; cv=none; d=google.com; s=arc-20160816; b=sjabg5maFTbC1X8c6BUtG6qFTvdKjeImfrR1q2jyqRIDfrO7nflEm/keK1tx3hYjrV RrdIULEGX1+mdaFmefcZQ8bO8l7qZIrSR9V8X1bxe5XjtT8IsFjYXk5bo4MFv/g6dM96 y+M60zTPmiWcGY2HD6v8IIo94kfkJAvmkbuOLC0Hgpw4VRWPi4XY1jir27fD/2AmIB2b NSwTQwymvUmxUiMo+bt2LfvGSbCmdraVyAplcP1zNNiOYERxEGBnO2/lYdqjK2DAN9xX pfuMDapUeKHNK+/b1MTSJfouOO7Zd9S4MXPxl2U8YhvCDFj6z7/ib4ooH9BPOwXA3T0U Fllw== 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=dsS6x0E2QIMkEbRYZ7+ZzXlZ7OVLfgu4GHpnI9OwK+k=; b=XpeyRBigqP3j2KNBAUvcwYZd8ViWHge++oiB4C+H6klzck/tn4MH0WkzVQ0JWjMww8 +gLoSSqbi2M5AzCvzlP4xROQQI5vwVePwE6sMoi49eAwfDltNiZYWdbl3vwUqYmok7AG afUtjYige9MdnW0Xm1300lspBLfy+wB12TWNZI0TDdyD5upuI8exyuPBzJwpJ1lr4E4U 1cHBsL5bNEuhS4s7mKVyJLDZV7g9RoST05YV7mLKYLf5mt+13fHf7yW8QfbyntWJgt8S YITBXdVwYxQnaIZ2//5TCo6racVzrknUW1gdo5oZ/MuJ/EUGdwk3qJopsdqi4F1LUuwn qr0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UrmysWN2; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg5-20020a17090705c500b0073cd848ae8asi6382442ejb.321.2022.10.28.13.58.55; Fri, 28 Oct 2022 13:59:18 -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=UrmysWN2; 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 S230133AbiJ1U4N (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbiJ1U4C (ORCPT ); Fri, 28 Oct 2022 16:56:02 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BADF5226E7E for ; Fri, 28 Oct 2022 13:55:58 -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 B45B7660294B; Fri, 28 Oct 2022 21:55:55 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990557; bh=fWR6lgaHeOPHW1FSsPg4QG/1KgRcjLHEyF+Wsu51etk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UrmysWN2I9Qqpva8V2G9/hL5C9jyElZSwIVdheQjvOtBk3gQCViqJgDYmils7P/pZ eOWqWMsy2u2qZ/kU8sKUykuSbFvINlb1MgLt+qy0rx0njLcGBNxdic9cGyX1zzYe1W WWiZU+htGxfrXsql80TI6Vx+TUyljCwi1ysLqfm159j9awR5ENR17JpW6ICMdiAh53 bponcNnEUG+c/bCRIQ42WjekH5YQgEn9JLJDz0biUcGsLcB0KhSBN5Qnp8P8qF78WQ 6Wj8FC3Hq2N0DZRFiKk0zRShwOhwXL9xV+plvKI7i5zZiFIt8YhZndIZXF1lVh/V+R xEKm5UboxXncg== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] ASoC: rt5682s: Support dbvdd and ldo1-in supplies Date: Fri, 28 Oct 2022 16:55:37 -0400 Message-Id: <20221028205540.3197304-6-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966501617900972?= X-GMAIL-MSGID: =?utf-8?q?1747966501617900972?= Add support for the dbvdd and ldo1-in supplies. Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- sound/soc/codecs/rt5682s.c | 22 ++++++++++++++++++++++ sound/soc/codecs/rt5682s.h | 2 ++ 2 files changed, 24 insertions(+) diff --git a/sound/soc/codecs/rt5682s.c b/sound/soc/codecs/rt5682s.c index 80c673aa14db..de686004e504 100644 --- a/sound/soc/codecs/rt5682s.c +++ b/sound/soc/codecs/rt5682s.c @@ -44,6 +44,8 @@ static const struct rt5682s_platform_data i2s_default_platform_data = { static const char *rt5682s_supply_names[RT5682S_NUM_SUPPLIES] = { [RT5682S_SUPPLY_AVDD] = "AVDD", [RT5682S_SUPPLY_MICVDD] = "MICVDD", + [RT5682S_SUPPLY_DBVDD] = "dbvdd", + [RT5682S_SUPPLY_LDO1_IN] = "ldo1-in", }; static const struct reg_sequence patch_list[] = { @@ -3089,6 +3091,14 @@ static void rt5682s_i2c_disable_regulators(void *data) if (ret) dev_err(dev, "Failed to disable supply AVDD: %d\n", ret); + ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_DBVDD].consumer); + if (ret) + dev_err(dev, "Failed to disable supply dbvdd: %d\n", ret); + + ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_LDO1_IN].consumer); + if (ret) + dev_err(dev, "Failed to disable supply ldo1-in: %d\n", ret); + usleep_range(1000, 1500); ret = regulator_disable(rt5682s->supplies[RT5682S_SUPPLY_MICVDD].consumer); @@ -3150,6 +3160,18 @@ static int rt5682s_i2c_probe(struct i2c_client *i2c) return ret; } + ret = regulator_enable(rt5682s->supplies[RT5682S_SUPPLY_DBVDD].consumer); + if (ret) { + dev_err(&i2c->dev, "Failed to enable supply dbvdd: %d\n", ret); + return ret; + } + + ret = regulator_enable(rt5682s->supplies[RT5682S_SUPPLY_LDO1_IN].consumer); + if (ret) { + dev_err(&i2c->dev, "Failed to enable supply ldo1-in: %d\n", ret); + return ret; + } + if (gpio_is_valid(rt5682s->pdata.ldo1_en)) { if (devm_gpio_request_one(&i2c->dev, rt5682s->pdata.ldo1_en, GPIOF_OUT_INIT_HIGH, "rt5682s")) diff --git a/sound/soc/codecs/rt5682s.h b/sound/soc/codecs/rt5682s.h index 45464a041765..67f86a38a1cc 100644 --- a/sound/soc/codecs/rt5682s.h +++ b/sound/soc/codecs/rt5682s.h @@ -1438,6 +1438,8 @@ struct pll_calc_map { enum { RT5682S_SUPPLY_AVDD, RT5682S_SUPPLY_MICVDD, + RT5682S_SUPPLY_DBVDD, + RT5682S_SUPPLY_LDO1_IN, RT5682S_NUM_SUPPLIES, }; From patchwork Fri Oct 28 20:55:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12552 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039564wru; Fri, 28 Oct 2022 13:59:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6PugoiiKtFe8eEp+plFE3cJ2RixHywfoVOOPfDmhmfVyI4m38eBv3rzASC477YXwG9Fjys X-Received: by 2002:a17:906:730f:b0:791:9b75:2ca1 with SMTP id di15-20020a170906730f00b007919b752ca1mr1065269ejc.140.1666990792365; Fri, 28 Oct 2022 13:59:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990792; cv=none; d=google.com; s=arc-20160816; b=0xWqrrM2HTeSGqkGXTDecgS0Fjk1Vg81fss2WaN5mNu1yDlKSh4/ehrI+tIKEvQdnu 7vNyCj26Rdo/2E1OieGsyhG6j+OfkcES6T48n16npp2txTXqDH13AEHXVYxrQarf8AXX +9Zcn+UpDvu3r2GBeqKdYtRgstwks2GQilS1x6USctJs1aEPPirV+KjUKegI2r1F7Nyx FZbV7+502qTrt0OyfVGy0A7JDm1gKEtcoOaa5obMYFIYvyDMuY/wEJILgo8ytScMoHH8 x45q0dpLjDRBJGyjE2Hisqsw8OwMSSSMiR1Q5F8FIy9jdTxWoG5JJtq3mhWWlhMpoLw9 867w== 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=rYa5pMjNhAFPhI5ihBUVVDJVKvw/GJeYpPF//wR/A4Q=; b=w2G6FvBBAqjEG/srPeWMeh/4+RXMHfn6J2kbFrqqGI1V484JPKApN9H6vFQJPMfh0l DOLCzaLqPQuK3q+fx6LwHbnL8Gyrgyydl3ntwFuJdZghRSRZM0mMjPk00KD4CNecy6jq gzqx9GxdGouoieLw3xrKTcgfrByhqxOb9FrPie0Qa2Il8C4Hk0WAeH7LHSPz8H7PNDKM 963jMmsQZaY2Yz303rfBlEpbXCgnrO03oGzwKug3xLEf+C2Ct9KFZlpQ1ERP/G3D7VSR Xe6s6Wrx8oE/HKH6x+0H9Gz/RXsl+Jm9mVclC55J5NAeN/Mn06hBSWG+fYNTbEOMVWjV IdXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="Dr/5K/hx"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id va16-20020a17090711d000b007826de24087si4157710ejb.228.2022.10.28.13.59.28; Fri, 28 Oct 2022 13:59:52 -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="Dr/5K/hx"; 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 S229738AbiJ1U4T (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230070AbiJ1U4D (ORCPT ); Fri, 28 Oct 2022 16:56:03 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CCC522D59C for ; Fri, 28 Oct 2022 13:56:00 -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 CD1676602943; Fri, 28 Oct 2022 21:55:57 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990559; bh=k0ciXJ9TnsI96EclJ+3I0qJrPTH22yg0wvdKWox0Yts=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Dr/5K/hxbGJrVT4XPuyjGzz/3Uum/9Fd9mrf8EQhK/6ZcWFGej3jAAgOHmJK//bUU TQ5J3NxsnHW67K1TKUI6HCXxr6VYdZNYNkXy6U3Mi7Q2Or18yPfN+v1v5XDd6c5lt1 QwaBjBwtRR4uwm9gcArc0HucMg1BUNbGteR9UQEtJzbgGpk1P+dMokd3vbreQuEZ6u ceUiW+a+fnsAAT+As/738oHDRssJPvywt3jXdgwz+vNUYCQkAdrUG9p49oIXFdM8MR P++AX6xwtUG1mvI5Ro4y/msZiEOpqecj3RnAKuER9ICKw2cU0wjSEbrRiXLioin/47 3BIwOoyt9X33g== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Jaroslav Kysela , Liam Girdwood , Oder Chiou , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] ASoC: rt5682: Support dbvdd and ldo1-in supplies Date: Fri, 28 Oct 2022 16:55:38 -0400 Message-Id: <20221028205540.3197304-7-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966537122325081?= X-GMAIL-MSGID: =?utf-8?q?1747966537122325081?= Add support for the dbvdd and ldo1-in supplies. Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- sound/soc/codecs/rt5682.c | 2 ++ sound/soc/codecs/rt5682.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sound/soc/codecs/rt5682.c b/sound/soc/codecs/rt5682.c index 2df95e792900..f0a400285dcf 100644 --- a/sound/soc/codecs/rt5682.c +++ b/sound/soc/codecs/rt5682.c @@ -35,6 +35,8 @@ const char *rt5682_supply_names[RT5682_NUM_SUPPLIES] = { "AVDD", "MICVDD", "VBAT", + "dbvdd", + "ldo1-in", }; EXPORT_SYMBOL_GPL(rt5682_supply_names); diff --git a/sound/soc/codecs/rt5682.h b/sound/soc/codecs/rt5682.h index 52ff0d9c36c5..d568c6993c33 100644 --- a/sound/soc/codecs/rt5682.h +++ b/sound/soc/codecs/rt5682.h @@ -1424,7 +1424,7 @@ enum { RT5682_CLK_SEL_I2S2_ASRC, }; -#define RT5682_NUM_SUPPLIES 3 +#define RT5682_NUM_SUPPLIES 5 struct rt5682_priv { struct snd_soc_component *component; From patchwork Fri Oct 28 20:55:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12553 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039769wru; Fri, 28 Oct 2022 14:00:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7FgHPMNSnzde3UbSxpXNw+2nx3lRHOLowHo7k0jQJvSSiqy1KBNFbtdHlgwHz4Q87wXIps X-Received: by 2002:a17:907:782:b0:740:7120:c6e7 with SMTP id xd2-20020a170907078200b007407120c6e7mr1076427ejb.313.1666990818433; Fri, 28 Oct 2022 14:00:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990818; cv=none; d=google.com; s=arc-20160816; b=WuZ4dexmTwBqusGgQR/OkpNpEwtl298H07kczVxsNwX6PDLF8NjzzXx2V0oxjurNYA euSyYyvG2mPnJM2fzhnxlIZVx3RgV/c8C51h7DDqXWNzKBXA7no7LBE2a3KFxITew4wX /oXbG6Mwq4xQtbx5nLYzmKwBQOYeT9Z+Z5YvOzQFH6erhtO6eHSfM310FtcceafsK8FU 8hPP98HBy56/TTvdowp4QD9q1YySXsxRHcRFnCZ0MP2w3okBK1LGQctc2xvpb2z9vS1T SJxBv6LaaQea3fkWC91PnjIfPyfPgw0gGXjJpt13sozlnF/yGxLGkyWgUUfVqaGzKEy3 rzpQ== 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=aVsydfwid7fHWtGd3d5g5S6P8mmS+ee5uUHzGB0YEIA=; b=Ari1rPp693EBrmjfkNn5cHLAwhi8S1N1NQSwV2tjV9BqpcwsHR0xJkbRCrqpGqVNqe vpb04B/KYCIQ7iK6A9I0BEtaxSwKioAOjzaZtP58FRlrbZ6nk2N6AvNCmMzV3QJgl5KV +3QwGyM3DEmM2/8AvLkPIZ/ngNn5GlkeyjQ31wsMuO3Q1pATf92QIMOf4pXbW6bGyo6k Oy5MnI8R+/EGuS4euvKPRFAeTOxuhkrJX6vk37qKhSPIkWX+sVnAek/XS4Re7ja7B2Zb 1eNhZrt3FfhGFvekSKr1EwZ6eeNMyMFF7QNjb0uHvElCQPqLGwcdVYuBLwefmJElp5Uz A+OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CatTo8nt; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k19-20020a508ad3000000b004599fc7f310si4983865edk.140.2022.10.28.13.59.54; Fri, 28 Oct 2022 14:00:18 -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=CatTo8nt; 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 S229835AbiJ1U4Y (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230081AbiJ1U4E (ORCPT ); Fri, 28 Oct 2022 16:56:04 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BF8B2413D7; Fri, 28 Oct 2022 13:56:02 -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 E34E06602944; Fri, 28 Oct 2022 21:55:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990561; bh=qWdkIlb4uY0ldwod8O1L1+MBmgoTBnCHuEAzyFzvduk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CatTo8ntRCB35RCQqr7MIKSSx49eqvxGewJ+wINf+RK1+ORKjUX9Jor0ULSHiw3du 078Gf8xZKL8H2a42ftkNkxwapfbRuBgz+naGO1Fqj/+yejaSKFbODdUlgyLK6/bBuM QnVAmZ6WZdyzTi3RgW1t15Idv734HsfKlIJy8uT11CaKLrVyTN3baPzMTWjvyffsFA f75fckeGkna97+EeEwgZKv7ftpnpRDVf26MS00Tj+vfRT0a4jZ4gvlINr8bl0aAA0I GJW8AoaH3p+WmY6SO5gqw5a+bRjwTKrThJaewc40QRwSUNPov0GUEfj1wyA6VsMBcq x/Xfbo/bpB24Q== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/8] arm64: dts: qcom: sc7180-trogdor: Add missing supplies for rt5682 Date: Fri, 28 Oct 2022 16:55:39 -0400 Message-Id: <20221028205540.3197304-8-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966564689444872?= X-GMAIL-MSGID: =?utf-8?q?1747966564689444872?= The dbvdd and ldo1-in supplies for rt5682 are required but are missing. They are supplied by the same power rail as AVDD. Add them. Signed-off-by: Nícolas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno --- arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi index 1a1c346d619c..1df507ffb267 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi @@ -768,6 +768,8 @@ alc5682: codec@1a { interrupts = <28 IRQ_TYPE_EDGE_BOTH>; AVDD-supply = <&pp1800_alc5682>; + dbvdd-supply = <&pp1800_alc5682>; + ldo1-in-supply = <&pp1800_alc5682>; MICVDD-supply = <&pp3300_codec>; VBAT-supply = <&pp3300_audio>; From patchwork Fri Oct 28 20:55:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= X-Patchwork-Id: 12554 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp1039832wru; Fri, 28 Oct 2022 14:00:26 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6gYhTlgoexchc0Srl4YNc8FglHNgaBv9iqyGuzLjxi/SeUcvgdypKdZwWGMJHdlJ62wm/I X-Received: by 2002:a17:907:78a:b0:78d:9ac7:b697 with SMTP id xd10-20020a170907078a00b0078d9ac7b697mr1094075ejb.457.1666990826344; Fri, 28 Oct 2022 14:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666990826; cv=none; d=google.com; s=arc-20160816; b=avfzCvdCTsWvzsN6QYTaNu8iQQ3CHyIOO89TCEfj4cJdZvNnaWnfE3hiunwbi49qta UQ2Ag2h1IsUPKeabLfNzpVje+d6U5/FJndjS2VXzWvP/R2WCa45qFQXkqezR6Eyzb/Gc UCZKKE/ORKnnD/1B3W6SCYLbwJeWwPwxkSmStorWeZVXcqpJU/JC1bdxaYcTB40jSDBS hEEJrq+WpGsnUdBLRcN3UH2IqRKwXMijkhUOVxCqeWzrdcJpGmKhSx9tKTIH4cpq/+D2 65JQJW0FrLFBoWlmC74OzNzONz7BG4lLNzJ5Umtz8W5WdAzdyW1U3AEfal6ZDiyGkMHm 2nZw== 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=MT09B8YWTgxr0oTNel2rNkasfBjtOBS2j4GHiozqnAs=; b=OIuHV6TMOkQf8h5VuMWrTP84uWHThaMOJkiGtJUWMQQs/O7Oc9Uw4DssglzqhAIlrS fyHas/jlOh6nekGfNkXL0qUQYKuJMOBzVkfs2vhnvkCzkZsVgwvrFjXoihR8F2RLoj3W VpVEUxVj3v4PeX0cQb2FVE3hfcEd4uZEO4njZTrMfayD/U2BvCLW3esrutxtj6bJHSiH Pnh4Qd8IU78axcnj9gg1ARUO8jpZFRdEWGbac4qh6tYBGtvIuvZA+mkNHMY5j7LfTZ5G pypgXbeeF6SxMnUDWriYo2pY2uELoRlUNjIWc7YeJMWw1jJATUQGZ9Cnzq8MWPpK9iEM w7Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=Uz2gH1d5; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ml21-20020a170906cc1500b0077bf109acb5si3384741ejb.116.2022.10.28.13.59.59; Fri, 28 Oct 2022 14:00:26 -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=Uz2gH1d5; 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 S229727AbiJ1U4e (ORCPT + 99 others); Fri, 28 Oct 2022 16:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230057AbiJ1U4G (ORCPT ); Fri, 28 Oct 2022 16:56:06 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56D4B241B06; Fri, 28 Oct 2022 13:56:05 -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 2A4DC660293F; Fri, 28 Oct 2022 21:56:02 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1666990564; bh=N8cgOi4X/bGXGpJD1NivnBMWo59PYqBzjXyEcn5g/c4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Uz2gH1d5rmELMS/Cg98cAiOnfzWrfm5ZTh5bTWtLXZs9ilO5PTxCUudUwAnTebvYI 0hBv2FVkqhdFqHPMvJPLzNW11qU/6rkuO8xjiEu9QgUW5NaWg6oCH9dycm6vb4WkEH MkOiZj7rxyGa21PYU4VqaMkbN15EdkbVx72ATKkvy8kvpcFA+1IZ0P2pZVnCh8luhH wur8lMjO8lh1t3Iv5rLSchm61qFS2fC2X4Yow3/p80NROqi1a/fCgEQda/vbU2Ru7M hYPbN5Uazx9qqpSO7IyXF3jg137UjjnJ6Btij0r5v5xuWpFb7ebvbHKRtPjxmbDjQW hAVChXCXP7tWA== From: =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= To: Mark Brown , Bjorn Andersson Cc: kernel@collabora.com, AngeloGioacchino Del Regno , =?utf-8?b?TsOtY29sYXMgRi4gUi4gQS4gUHJhZG8=?= , Andy Gross , Konrad Dybcio , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 8/8] arm64: dts: qcom: sc7180-trogdor: Remove VBAT supply from rt5682s Date: Fri, 28 Oct 2022 16:55:40 -0400 Message-Id: <20221028205540.3197304-9-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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747966572605491653?= X-GMAIL-MSGID: =?utf-8?q?1747966572605491653?= These devicetrees override a rt5682 node to use the rt5682s compatible, however, unlike rt5682, rt5682s doesn't have a VBAT supply. Remove the inexistent supply in the rt5682s nodes. Signed-off-by: Nícolas F. R. A. Prado --- arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi | 1 + .../dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts | 1 + .../dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi b/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi index 74f0e07ea5cf..e0fb83a9a0b1 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-kingoftown.dtsi @@ -11,6 +11,7 @@ &alc5682 { compatible = "realtek,rt5682s"; + /delete-property/ VBAT-supply; realtek,dmic1-clk-pin = <2>; realtek,dmic-clk-rate-hz = <2048000>; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts index aa605885c371..6225ab8329c3 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-boe-rt5682s.dts @@ -19,6 +19,7 @@ / { &alc5682 { compatible = "realtek,rt5682s"; + /delete-property/ VBAT-supply; realtek,dmic1-clk-pin = <2>; realtek,dmic-clk-rate-hz = <2048000>; }; diff --git a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts index 7116c44c8d85..b40b068dad6a 100644 --- a/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts +++ b/arch/arm64/boot/dts/qcom/sc7180-trogdor-wormdingler-rev1-inx-rt5682s.dts @@ -19,6 +19,7 @@ / { &alc5682 { compatible = "realtek,rt5682s"; + /delete-property/ VBAT-supply; realtek,dmic1-clk-pin = <2>; realtek,dmic-clk-rate-hz = <2048000>; };