From patchwork Mon Mar 27 13:22:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 75441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1518987vqo; Mon, 27 Mar 2023 06:38:50 -0700 (PDT) X-Google-Smtp-Source: AKy350bG8Mec4zmvIMHqq5x5J9RLfudaYdp40VHfgr6Ly2MbF+fkHucjNAbq/9CsZOKeESKqcRCy X-Received: by 2002:a05:6402:194:b0:4fe:9bba:1d65 with SMTP id r20-20020a056402019400b004fe9bba1d65mr14983293edv.21.1679924330089; Mon, 27 Mar 2023 06:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679924330; cv=none; d=google.com; s=arc-20160816; b=Sz/5N5BMJ6dQA8GpEX+I2wLvU697kpcZG0foY+dc8fSOt6bQxkrnq3383kK54voIDx AkVpzHSCpYOuDAdgqwFhCH6VZc1Jp4jV7AwjeO2ypzKUyeslTQa66UAYnsrf+QhmbuSg qN8YQC+lBmDczopv138fM4mA8y19ZfO8ZuWFf/TsuVWdaLqDIksat6L/MRhc6iY67TOY UyRkwTTD5t6zbw3Yssz08yG4NTD4enS/c4i2DqdyB7G/K9DxJPN2syahLE+0gOTmjPMT 8JBNapavX2FUX7v/gLH0uwma8QUXXg5McpUL6EbVuu0TQ8BljQlUzDEOxs8g1EJ5Z4Cp ODbQ== 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=zotVF1vk8cf0n9qfIQsldz0TvwmtvVtz6i/QGqtiNB4=; b=DrjCHsc/mNUUulFEld4disZALmMjjJ8u13hr7IomMhOnVtFmlIUo+Q/Y/qFROP9G09 ZFizo1uRDFyOIEtTEuxvfGNr485wxsQbECj8bAzNUSx5IXvM7fazeaEOF1MzMdGqK3kg yRwspRPAyA38M6tQG3v90QDFlyqYXv5QHFUsEd6Az5TXSq6cEn4IhdcQl74DKpNjr2cW 0p3koxEODIMFUkSy44wWBAxv/+U5Y+wHN6zVkBm1eRnwKyCWWPH1nmVKAoqznaeMagN9 pNKaWZdkq8JdaB4k6tRvXyD7HkFkrujOmTjVpiLYY8wcEgZaveTppEsbfrGFYV2iVqgb ZO1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RZXlVVY9; 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 lv9-20020a170906bc8900b0093118f34390si12237902ejb.769.2023.03.27.06.38.26; Mon, 27 Mar 2023 06:38:50 -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=@linaro.org header.s=google header.b=RZXlVVY9; 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 S232635AbjC0NYQ (ORCPT + 99 others); Mon, 27 Mar 2023 09:24:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232548AbjC0NXd (ORCPT ); Mon, 27 Mar 2023 09:23:33 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F3FF5272 for ; Mon, 27 Mar 2023 06:23:19 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id b20so36240503edd.1 for ; Mon, 27 Mar 2023 06:23:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679923397; 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=zotVF1vk8cf0n9qfIQsldz0TvwmtvVtz6i/QGqtiNB4=; b=RZXlVVY98CsmmymWEux1eeEzaPJtEOhvQlMjtFdXkZtQ4onrGSqLLbfamI0HRVVgLo v979bUvbkaqVz/L/BQGQZSJYVdziptnr/49Qz6COvrMrnpMJNYmO7oMIjYHaWdlO86Z9 0f301yUxSS2uft4YvFAS48KOqRqhyZHDmivfTgBUFqjwD76pQhFFvTPynSnVv7a+VjHf 24O1KlUGmOaeQJBwrQGZhuG7vhRib6LyQmpIas9P2DwAGy4FNSuiP6mM1L8O75OBEYEI FpRTDPgEwVbWa9pyH2+02TZa/naht7LdL0AHIgQG3qTqGOzqafzNQzW24lubkL1U9UZm VIxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679923397; 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=zotVF1vk8cf0n9qfIQsldz0TvwmtvVtz6i/QGqtiNB4=; b=uTjyBuKARLRp5RUmdKlPojv02capWjMZQy7OIl5fXzug8pMxcxt9rr1ZncaPrkIbHg qmqhn1wd5C3th+k45S18UG/DsREFSFTJmOIcVkskf+5dADw/7lpzgkceG2Rjl4wTmKR3 nkKC0VQzBcC0Xphunb7ZremLe/DaApqwxhBAJq8JLIA/hL1bP6Co9P4DYk5EVcjf9kfI WoiZ8cFO1Oaz0MwRni+Ku6jV+2Y7jYWi9tyviMd0BRbkgWogoflDxaPFBBN5czRDY/tw PjZtFz9fifCNn8P16EQbIVVpgHib1vNMgN7W8r6XvXnlIRZC1L6kHOSoJexr4qCuCcmn Q6QA== X-Gm-Message-State: AAQBX9ftPud9olwCW2bJ3i3Ht+Qx66CROYCOsMHWIfhR8WDm2MVTZXV5 yLVsb8sOMD4wT2lgFK3wRWYn4A== X-Received: by 2002:a17:906:1c19:b0:92b:f118:ef32 with SMTP id k25-20020a1709061c1900b0092bf118ef32mr12168020ejg.48.1679923397571; Mon, 27 Mar 2023 06:23:17 -0700 (PDT) Received: from krzk-bin.. ([2a02:810d:15c0:828:581e:789c:7616:5ee]) by smtp.gmail.com with ESMTPSA id gy24-20020a170906f25800b00930445428acsm14286814ejb.14.2023.03.27.06.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 06:23:17 -0700 (PDT) From: Krzysztof Kozlowski To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Lai , Krzysztof Kozlowski Subject: [PATCH v3 07/10] ASoC: dt-bindings: qcom,lpass-va-macro: Add missing NPL clock Date: Mon, 27 Mar 2023 15:22:51 +0200 Message-Id: <20230327132254.147975-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327132254.147975-1-krzysztof.kozlowski@linaro.org> References: <20230327132254.147975-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=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?1761528334312628459?= X-GMAIL-MSGID: =?utf-8?q?1761528334312628459?= Several devices (e.g. SC8280XP and SM8450) expect a NPL (Near Pad Logic) clock. Add the clock and customize allowed clocks per each variant. The clocks are also required by ADSP in all variants. Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch. --- .../bindings/sound/qcom,lpass-va-macro.yaml | 68 ++++++++++++++++--- 1 file changed, 57 insertions(+), 11 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml index 61cdfc265b0f..528b677a439c 100644 --- a/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml +++ b/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml @@ -9,9 +9,6 @@ title: LPASS(Low Power Audio Subsystem) VA Macro audio codec maintainers: - Srinivas Kandagatla -allOf: - - $ref: dai-common.yaml# - properties: compatible: enum: @@ -30,16 +27,12 @@ properties: const: 0 clocks: - maxItems: 3 + minItems: 1 + maxItems: 4 clock-names: - oneOf: - - items: # for ADSP based platforms - - const: mclk - - const: macro - - const: dcodec - - items: # for ADSP bypass based platforms - - const: mclk + minItems: 1 + maxItems: 4 clock-output-names: maxItems: 1 @@ -63,6 +56,59 @@ required: - compatible - reg - "#sound-dai-cells" + - clock-names + - clocks + +allOf: + - $ref: dai-common.yaml# + + - 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: macro + - 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: macro + - const: dcodec + - const: npl unevaluatedProperties: false