From patchwork Fri Nov 18 07:18:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 22153 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp42753wrr; Thu, 17 Nov 2022 23:22:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf72Hw04g2R+kEy2L7X/KOsWGRGhM/U5pDPyauwpdEvWpXc++8LVfb5CiS9XPw5d4qSpap7R X-Received: by 2002:aa7:c9c3:0:b0:461:8f21:5f12 with SMTP id i3-20020aa7c9c3000000b004618f215f12mr5150105edt.54.1668756122584; Thu, 17 Nov 2022 23:22:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668756122; cv=none; d=google.com; s=arc-20160816; b=mdFBQJb7SN1Suvs3OF5NVPECfkZpsX10DTwuylAuWvB/Lo4Ex1TIKFt0kGdpXc4dLw FP+oHYrYAsCNrHJtzk9R/ozADPcOS9pHFtkrdgYSR9NBBZr0Nm7Cf/kPs8aI56doZ0qX 7y47TjQ2vsBThSsqkdTE5GS3INurjdKyLoh10KSXs/EpIfyX5kGxNsmVwB3IybAMM7OY z1gjzRMT7agsT1N6bmKcetEBcTskdZVD/It9I89dXZKHpfXFzREji3b4UQHcPL1BPQhp aX49+H7zuAoyEQ7wsADTSwXUmvctBZEVXZ/yr2E4lsOVu9A5QvY5jonwtvabf7OgMvo1 UUPg== 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=MFo0v4KNc4REjP1ZSh0NPt20T7LaZ0hO2WW0XyMGjCg=; b=PCJniVaiGjnMLQYg0JzSsGHkvgVGDvbaZ8EcW+d1pvyVxYsFaGLxTujtxqQ7O6/9Lq n8npmVTKZjucuiuPr/c3MaAFYRggg0W9nR8i01B53RIvq8cTb1HyhneursuHh8xvaBDW MnlJfC63ctfwPWd9aWb0F6q7zTjPSY5PApc7vXnCNQkqvH/Iagoij5Ju8Lx9FJRHS420 mwPTg2D7vxYAAlYpE0ZX4rdJVRNNCMa+FAtl5d25cL/ncxmQkYVG7JI0drL2Qu6E4nFO xxzy1SQkS0h5mPfD0HMJffmUDxL1IXrZHyrZFL32UztGVA2Jle7vb89lWxY4tDiFxfrF cUgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KmXkPxIl; 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=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wy4-20020a170906fe0400b0078cc8a2cf4bsi2361676ejb.614.2022.11.17.23.21.37; Thu, 17 Nov 2022 23:22:02 -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=@linaro.org header.s=google header.b=KmXkPxIl; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241091AbiKRHTA (ORCPT + 99 others); Fri, 18 Nov 2022 02:19:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42600 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241002AbiKRHS6 (ORCPT ); Fri, 18 Nov 2022 02:18:58 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C3D872098 for ; Thu, 17 Nov 2022 23:18:57 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id d9so7855398wrm.13 for ; Thu, 17 Nov 2022 23:18:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MFo0v4KNc4REjP1ZSh0NPt20T7LaZ0hO2WW0XyMGjCg=; b=KmXkPxIl/R8/F5oT/7mZUORqHKj+sPJXa6wgeXYfzNCuIV3LmB7HVmcOkGGU/c0cRD 3fIcb1nlL7aSReeophpnLQ7Jf9GQuIi+pqe30bdcJd3958HEL7rc00d1aplmHfOZY+ap Mrf2+Ctb23p2TPN4djwVuN2895OKzbemmvUNtZCrV7og7Gdiu67etBGb/GP6hsTgXn9I YC1tbNpZwwXvopbmtmC9+Kq9uuSGXtwngoPN62HXj5pQyHzy2UIw8K0X6nb9otZa6/xS obOyxsMXkQuCwjyyCBakPosvCrQsJz5Ko+4gHrMMrMWxykn0s7YKclL7nkLdS1WfbFvx Qr+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MFo0v4KNc4REjP1ZSh0NPt20T7LaZ0hO2WW0XyMGjCg=; b=kWKPDl/JKB/0QerXsPTVWgtt66eKLYzH5+yE5eMOZABSnZduOlSp8sBz1bf0ZiZUR8 QXrhKdwow+90HeJiu0V5oVhIFhyMj5sVGW3v5ceZbiV1gv0Lt1JlkzBPBu2RCCcuCBXf TcLnRiZYGxMI0WtDkzBvTa8NcJwq/8eA1rZerz+gACzEoLta3G44dVmeWYcFW5uOpH+q uOUpXbRGeZH3nDarmTowRFfFXJU2wnbqOo74dBvI1AGBI5ZRGSZ2stdbc1C4BDLCwtq1 mQpBKOdixkCsrAIeTw39r0Paskffjypw/3vtTOy+rLgNjINPg7NFEJCvYMQ4e5EwCrYm 7FwA== X-Gm-Message-State: ANoB5pl2g+jpyAmcU46h90DRIRAxysvQa6FBVohF2BqzcXm8Q4Ru8lmO db3unDVkN4zddi2uD6xW7mJoKw== X-Received: by 2002:a05:6000:1c4:b0:241:792f:a914 with SMTP id t4-20020a05600001c400b00241792fa914mr3478420wrx.117.1668755935610; Thu, 17 Nov 2022 23:18:55 -0800 (PST) Received: from localhost.localdomain ([167.98.215.174]) by smtp.gmail.com with ESMTPSA id j16-20020adff010000000b002302dc43d77sm2754349wro.115.2022.11.17.23.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Nov 2022 23:18:55 -0800 (PST) From: Srinivas Kandagatla To: broonie@kernel.org Cc: alsa-devel@alsa-project.org, lgirdwood@gmail.com, perex@perex.cz, tiwai@suse.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH v2 1/2] ASoC: dt-bindings: lpass-va: add npl clock for new VA macro Date: Fri, 18 Nov 2022 07:18:48 +0000 Message-Id: <20221118071849.25506-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221118071849.25506-1-srinivas.kandagatla@linaro.org> References: <20221118071849.25506-1-srinivas.kandagatla@linaro.org> 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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?1749817619912447124?= X-GMAIL-MSGID: =?utf-8?q?1749817619912447124?= LPASS VA Macro now has soundwire master to deal with access to analog mic in low power island use cases. This also means that VA macro now needs to get hold of the npl clock too. Add clock bindings required for this. As part of adding this bindings, also update bindings to be able to specific and associate the clock names specific to the SoC. Signed-off-by: Srinivas Kandagatla Reviewed-by: Krzysztof Kozlowski --- .../bindings/sound/qcom,lpass-va-macro.yaml | 63 ++++++++++++++++--- 1 file changed, 55 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml index c36caf90b837..288a1d5ad585 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml @@ -27,16 +27,12 @@ properties: const: 0 clocks: - maxItems: 3 + minItems: 1 + maxItems: 4 clock-names: - oneOf: - - items: #for ADSP based platforms - - const: mclk - - const: core - - const: dcodec - - items: #for ADSP bypass based platforms - - const: mclk + minItems: 1 + maxItems: 4 clock-output-names: maxItems: 1 @@ -60,6 +56,57 @@ required: - compatible - reg - "#sound-dai-cells" + - clock-names + - clocks + +allOf: + - if: + properties: + compatible: + contains: + const: qcom,sc7280-lpass-va-macro + then: + properties: + clocks: + maxItems: 1 + clock-names: + items: + - const: mclk + + - if: + properties: + compatible: + contains: + const: qcom,sm8250-lpass-va-macro + then: + properties: + clocks: + minItems: 3 + maxItems: 3 + clock-names: + items: + - const: mclk + - const: core + - const: dcodec + + - if: + properties: + compatible: + contains: + enum: + - qcom,sc8280xp-lpass-va-macro + - qcom,sm8450-lpass-va-macro + then: + properties: + clocks: + minItems: 4 + maxItems: 4 + clock-names: + items: + - const: mclk + - const: core + - const: dcodec + - const: npl additionalProperties: false