Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1182492pxm; Thu, 3 Mar 2022 12:00:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZJSaRKvH/tj1HS6jM/ZhlNyXXhZ/AcN+hxhXBAFwS7FeEXbmSP7tPiafmrfSJXGRkJnJz X-Received: by 2002:a17:906:1e13:b0:6ce:e50c:2a9c with SMTP id g19-20020a1709061e1300b006cee50c2a9cmr28486441ejj.546.1646337607625; Thu, 03 Mar 2022 12:00:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646337607; cv=none; d=google.com; s=arc-20160816; b=TkY72NHqqtbEIEC4lxt0etjHSjNqL9Wxx/E9KeDxbPQPjIGKldojXgvXEUzq7tu5oT 3yPMxhgtBsLenW9a72OdDBvKpiwHybpHl/7XZUl5d6E1nhjLh9FOFUvZePZ04PTukfXI HvMZvBcbfEoAupLl0GvVE6uTc+RMOiIuvt/VAXgIV6yI04u3rS40Jx+wB3MSKq5TdzF4 rbTsPApWRmq18HgIUTwkp3FREvmYlp4XOg2c9GtOWzHA9YmfFwUlna+y+tYz8UCKDZxK NbZ+qWeSb6xi4B1AnO62YpVNKB5dLyaqPtZUzhHEt8m/7ffp4JCNYrCfnyFqSVyKbThK N3lA== 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=z2fc2suZ+MHtbqH3QN+bDHATpXXT3tY9Afoe8H+gZ68=; b=Ucl0OadYtLfmkoT1HxpVJiFe0CpC4cgzH1LgKtkwtwwkgDEg/x/upXGUhgsDVdyk9R ADbIzu8axJAymmRFAyuruOxDR10ztetZJMCgUQneptVGaXM1xq5SxGuVE7j6JzgfAwD2 ZmPDbpfVxhBlTnQ4zVi2U/zE9l7sB7B8/AW/XF0nW09ZhRDxb7e3UzsrFRn6P4qdpv5V mJGUvY0tjDp6zVyK7jeu32gNH5gk2iGcPc9XvstkDMXsmKzaG4yPu3H301hwqdfnZVpB kZ4GQh/CivSldbiwdQ+TJRLE1MRqKS8Rk0ujTbEL4WtkaC13QC/53UExaRrXbJZq4HMC 0QOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=g+OQFWkv; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f8-20020a056402354800b00415926cc7b5si2001470edd.188.2022.03.03.11.59.44; Thu, 03 Mar 2022 12:00:07 -0800 (PST) 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=@cirrus.com header.s=PODMain02222019 header.b=g+OQFWkv; 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=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235682AbiCCRc6 (ORCPT + 99 others); Thu, 3 Mar 2022 12:32:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235436AbiCCRcK (ORCPT ); Thu, 3 Mar 2022 12:32:10 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4806B19E0B5; Thu, 3 Mar 2022 09:31:21 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 223509TC013880; Thu, 3 Mar 2022 11:31:13 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=z2fc2suZ+MHtbqH3QN+bDHATpXXT3tY9Afoe8H+gZ68=; b=g+OQFWkvuqSvjoavSKb4vnyMnpqgnjQMJkl1VFIaSzcww2qJ0XThNxzduxWUpyYw+gHC jR3gHP/fMxW06P2ig0pcuz05VSL9NZ4hq6uUPuSmys4MKYUIxwSdPqGVRidpa7bzfxZL rFa8Ml65cVmI1KnhITVeYE7b7KzkyXm1c5jx0Q0A2LIFCPeT6sy12HiYV3GqqC3f32QS kEyfC31V2ub+EYTle57XdVjBnzY70mjuqjxHs4rA8PnfxoWsrY223Rd/Adr40GOR9/vu KkLk0rWaEO16S7ttvTvUyS4SPyVnF56aRMyec6wzTjTX3d9arZ7pZNuLcY5ipBe7tpWW Xg== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3ejncq8ybn-11 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 03 Mar 2022 11:31:13 -0600 Received: from EDIEX01.ad.cirrus.com (198.61.84.80) by EDIEX02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.18; Thu, 3 Mar 2022 17:31:09 +0000 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by EDIEX01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.1.2375.18 via Frontend Transport; Thu, 3 Mar 2022 17:31:09 +0000 Received: from aryzen.ad.cirrus.com (unknown [198.61.65.198]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 655877C; Thu, 3 Mar 2022 17:31:09 +0000 (UTC) From: Lucas Tanure To: Liam Girdwood , Mark Brown , "Rob Herring" , Jaroslav Kysela , Takashi Iwai CC: , , , , David Rhodes Subject: [PATCH 20/20] Documentation: devicetree: CS35l41 External Boost Date: Thu, 3 Mar 2022 17:30:59 +0000 Message-ID: <20220303173059.269657-21-tanureal@opensource.cirrus.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220303173059.269657-1-tanureal@opensource.cirrus.com> References: <20220303173059.269657-1-tanureal@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: acrCWVnMzuspv1OFGQKuo6DOKsawI3RB X-Proofpoint-GUID: acrCWVnMzuspv1OFGQKuo6DOKsawI3RB X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 From: David Rhodes Document external boost feature on CS35L41 Signed-off-by: David Rhodes --- .../bindings/sound/cirrus,cs35l41.yaml | 42 +++++++++++++++++-- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml index 3235702ce402..51b5d86661d5 100644 --- a/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml +++ b/Documentation/devicetree/bindings/sound/cirrus,cs35l41.yaml @@ -75,6 +75,19 @@ properties: maximum: 3 default: 2 + cirrus,boost-type: + description: + Configures the type of Boost being used. + Internal boost requires boost-peak-milliamp, boost-ind-nanohenry and + boost-cap-microfarad. + External Boost must have GPIO1 as GPIO output. GPIO1 will be set high to + enable boost voltage. + 0 = Internal Boost + 1 = External Boost + $ref: "/schemas/types.yaml#/definitions/uint32" + minimum: 0 + maximum: 1 + cirrus,gpio1-polarity-invert: description: Boolean which specifies whether the GPIO1 @@ -131,9 +144,32 @@ required: - compatible - reg - "#sound-dai-cells" - - cirrus,boost-peak-milliamp - - cirrus,boost-ind-nanohenry - - cirrus,boost-cap-microfarad + +allOf: + - if: + properties: + cirrus,boost-type: + contains: + const: 0 + + then: + required: + - cirrus,boost-peak-milliamp + - cirrus,boost-ind-nanohenry + - cirrus,boost-cap-microfarad + + - if: + properties: + cirrus,boost-type: + contains: + const: 1 + + then: + required: + - cirrus,gpio1-output-enable + properties: + cirrus,gpio1-src-select: + const: 1 additionalProperties: false -- 2.35.1