From patchwork Fri Nov 11 11:35:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1509 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp688038wru; Fri, 11 Nov 2022 03:37:49 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OtXKcRfHYpxlfSS47F5jXUnoyLXSf0BoMS48zdfC5V7SGd8rxEOHfeIA+ens3HxOaX2T+ X-Received: by 2002:a05:6a00:cd0:b0:56c:f412:6e33 with SMTP id b16-20020a056a000cd000b0056cf4126e33mr2392356pfv.9.1668166669219; Fri, 11 Nov 2022 03:37:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668166669; cv=none; d=google.com; s=arc-20160816; b=B+MpLEuNd8hrlLq2b1UgTNdElrhEdkVnZT56I2LDkR/taGViaC6m2r87Hv6wdSsKyF VYGm7UYXkUd59KZ3Dq6YDbYgAMDj8BchPSdPkxM7xgP4VvezGA70EnAQmAaxXBecbxHp O2yhhHV8lskex9eWpVOgzmgfuqrHYiDrLjGzUGGWm1lGCpMyLrocZEisdCUwvfu4MYNn ee+f+oVZYAFFUYEiGZg7JH/pqf6IpXBo/9dIfqcHT7mrw17ZPNxOvBXe3fuIMEQcm54S /EtkdwvQUnqDMut2MAyjDLgKQzdDUBpkmifSTWqCJ8a2ZmeYok1pOOuK448p1pRzsBDx oIwg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=8+lo+EYchQIrutfVK7r/d71O1gZIvEmM22KyAmAwjKs=; b=QC/v0J/hMFVCRI1cic+RmA9KR/fvPX+PMPXR1QrWwo0vWELW98Rfyy1AtxMC9YgSdN ZLxaPkHrHvDB/FIT44Ke0D+BKFTDlEZwhR05Oee/n+FDii5pUjbYC/j/6tRtiQ7Siji2 KMJxZeh24b5H/CRZpqlJdlODcl5UQ3Dl7le9XYNHmkvaCJT7d5+B+cl7o/ZuRQd1qWPn qgymWU1zko9ou9y0dpZUGws3m2KPLEZt70FnKmebTLaUeDujRCX2NFNyw4TGQQerLTgr RqjUpUOARb46gVOaEhPk1nqy75U9dN1bwjXM6hh96OhkABZ7sEbtLLFoBCZAMwoiuWv4 UwtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zqzPwf0V; 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 nn1-20020a17090b38c100b001fb23f3f238si2471125pjb.71.2022.11.11.03.37.36; Fri, 11 Nov 2022 03:37:49 -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=zqzPwf0V; 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 S232341AbiKKLgN (ORCPT + 99 others); Fri, 11 Nov 2022 06:36:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbiKKLgL (ORCPT ); Fri, 11 Nov 2022 06:36:11 -0500 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A03FDE84 for ; Fri, 11 Nov 2022 03:36:10 -0800 (PST) Received: by mail-lj1-x22e.google.com with SMTP id x21so4199993ljg.10 for ; Fri, 11 Nov 2022 03:36:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=8+lo+EYchQIrutfVK7r/d71O1gZIvEmM22KyAmAwjKs=; b=zqzPwf0VhpEKqnCJQeB0cnMdP0hokvV0Xjbk46zcHBaH/WGMkK0ilcn5ZTjIoEjERy R+fU8Ifo5B5st2HNnfBFhjhkdVUcahN9cnzJaFzXWQZ/qBD8erQsfNDYiuZv2infQ/2N FFWRDmTX+5xIafMQpS5yIKM0Iw0zBUF4U62f5eLnlkO6HaT18V2lBXUNRJ9miqTJUcf/ JBakGu05Diiy1F6bjHIS2+PSoa4zRdL6a3idwVYdgF4wIhrzSHpuz/Hy5XI6wkR+rLC+ WwFppQTw8eTdo7P5I4hysvzkWWWwzXLvyXaajXneXiGLptSWzl47/ZerTddPm+9fFVz1 WYRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=8+lo+EYchQIrutfVK7r/d71O1gZIvEmM22KyAmAwjKs=; b=73f1AV7JrPaNQDFa/2HcvgOSO6Y/pNaInOXMEO54xrtcuXMwEngZW4rme1SfNX5HE9 VGHQz8pcn/MuU3eZVeWb0IuFBfG0KTVrQPSCOLcw0eNskN5zHAnQZ/vVtZghiFji8GCZ V3+GwM3SkO4sCS6UvVBSdZJPS2VhVH+MIjOYlhjS8q1BJDf04tTp1NB2QeWyDkV1DBny XbHMO5VBwqIyqGGXlPTJsSGSHvH/OQg1C5z3J/mEvqhnFQo8/YS54N85a+p+pgAkeUWJ /olyT0YBZ4ZKB39uVnuZQ8cNbmKJ6dlj1MKpo+ipJo6LDgqcV+Jhuy1VUKH8QF6Qeh7k AO2w== X-Gm-Message-State: ANoB5pnv1RMFnAIEbk1npY4IzA0/oUJqkqM8DiXtmHuslZBu40RljAgT T1JouVY5zRJWGAGcM7EWqvvHLA== X-Received: by 2002:a2e:960c:0:b0:278:eab6:7542 with SMTP id v12-20020a2e960c000000b00278eab67542mr300253ljh.400.1668166568655; Fri, 11 Nov 2022 03:36:08 -0800 (PST) Received: from krzk-bin.NAT.warszawa.vectranet.pl (088156142199.dynamic-2-waw-k-3-2-0.vectranet.pl. [88.156.142.199]) by smtp.gmail.com with ESMTPSA id bi30-20020a0565120e9e00b004acb2adfa1fsm274970lfb.307.2022.11.11.03.36.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Nov 2022 03:36:08 -0800 (PST) From: Krzysztof Kozlowski To: Srinivas Kandagatla , Banajit Goswami , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Patrick Lai , Srinivasa Rao Mandadapu , Krzysztof Kozlowski Subject: [PATCH 00/10] ASoC: dt-bindings: Rework Qualcomm APR/GPR Sound nodes for SM8450 Date: Fri, 11 Nov 2022 12:35:37 +0100 Message-Id: <20221111113547.100442-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 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=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?1749199533369394779?= X-GMAIL-MSGID: =?utf-8?q?1749199533369394779?= Adding sound support for Qualcomm SM8450 SoC (and later for SC8280XP) brought some changes to APR/GPR services bindings. These bindings are part of qcom,apr.yaml: apr-or-gpr-device-node <- qcom,apr.yaml apr-gpr-service@[0-9] <- qcom,apr.yaml service-specific-components <- /schemas/sound/qcom,q6*.yaml The schema for services (apr-gpr-service@[0-9]) already grows considerably and is still quite not specific. It allows several incorrect combinations, like adding a clock-controller to a APM device. Restricting it would complicate the schema even more. Bringing new support for sound on Qualcomm SM8450 and SC8280XP SoC would grow it as well. Refactor the bindings before extending them for Qualcomm SM8450 SoC. Best regards, Krzysztof Krzysztof Kozlowski (10): ASoC: dt-bindings: qcom,apr: Add GLINK channel name for SM8450 ASoC: dt-bindings: qcom,apr: Split services to shared schema ASoC: dt-bindings: qcom,q6afe: Split to separate schema ASoC: dt-bindings: qcom,q6apm: Split to separate schema ASoC: dt-bindings: qcom,q6adm: Split to separate schema ASoC: dt-bindings: qcom,q6asm: Split to separate schema ASoC: dt-bindings: qcom,q6prm: Split to separate schema ASoC: dt-bindings: qcom,q6core: Split to separate schema ASoC: dt-bindings: qcom,q6apm-lpass-dais: Split to separate schema ASoC: dt-bindings: qcom,q6apm: Add SM8450 bedais node .../bindings/soc/qcom/qcom,apr-services.yaml | 54 ++++++++ .../bindings/soc/qcom/qcom,apr.yaml | 119 ++---------------- .../bindings/sound/qcom,q6adm-routing.yaml | 22 +--- .../devicetree/bindings/sound/qcom,q6adm.yaml | 51 ++++++++ .../devicetree/bindings/sound/qcom,q6afe.yaml | 69 ++++++++++ .../bindings/sound/qcom,q6apm-dai.yaml | 19 +-- .../bindings/sound/qcom,q6apm-lpass-dais.yaml | 32 +++++ .../devicetree/bindings/sound/qcom,q6apm.yaml | 67 ++++++++++ .../bindings/sound/qcom,q6asm-dais.yaml | 48 +++---- .../devicetree/bindings/sound/qcom,q6asm.yaml | 68 ++++++++++ .../bindings/sound/qcom,q6core.yaml | 39 ++++++ .../sound/qcom,q6dsp-lpass-clocks.yaml | 40 +----- .../sound/qcom,q6dsp-lpass-ports.yaml | 57 ++------- .../devicetree/bindings/sound/qcom,q6prm.yaml | 50 ++++++++ MAINTAINERS | 2 +- 15 files changed, 477 insertions(+), 260 deletions(-) create mode 100644 Documentation/devicetree/bindings/soc/qcom/qcom,apr-services.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6adm.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6afe.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm-lpass-dais.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6apm.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6asm.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6core.yaml create mode 100644 Documentation/devicetree/bindings/sound/qcom,q6prm.yaml