Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1300069pxb; Sat, 16 Oct 2021 06:35:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3a5V7861nF4FrojuJfdQ0ZMdW9FFE0sMkqnUVOiGTIdjpJHEyTLqY+GqzxsGkRLiy5gd6 X-Received: by 2002:a65:5382:: with SMTP id x2mr13827038pgq.176.1634391322273; Sat, 16 Oct 2021 06:35:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634391322; cv=none; d=google.com; s=arc-20160816; b=O2DbW7c0IYDxsFA1m/tyWCY9angeuhiNVb2BbbCknya8p6nJxtAlbCdsAxK6DfgE1V AeXDrnJD8OUrFtemuZIeqiYxyXftjZTQMirqP8ndDLeTU2OwqPHW9/bn2eWv6qo9+PX3 nLcNfAiTtFRyW4720xvi23A4jV0mmKbSxil3EObndDF/4QtbCpEq9yzNQwCX5mJFvg7I wGCInQcZ4lPlIVXMaLZIhXWdwnMc4xwpilTuTIM4RAcdD6lWhuLN/xxy7EexAzAxcH3K 1Ss5Kvn5cJAhiHr057rf/DsBuOTgXeLw9hHo4ahYw57ZutmxeVW2EDcLKZo+KkRy6oMc x47w== 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=BOWkhXmRLradAC/GQ4VVcC6Y/gPQpSI6S5P1Mpfnvk8=; b=g7fp59FwWUdPRPb5ZvNVYKrzvjVxrY9urqdi4pJeO+l8/NkAhdSWj/vzHm5JyMPJi9 rDxb2PtXutVzar6vIAltMAY8Tolf0+N9pE8dNGFaIYdDwMnR6D1SKP7NyMxXCtc+aFJF A9oumlMtz9Su1iSe5jd3/NY01KbXWfcLuI9KEEzs9JABzvAoloxTUE+i93IIkQ9O3tdV aU/K23MAL45v5f7ER/0iA5dajtm1h1xPIe2Tm9SNJn84Ag7EXENO/8zkAOTs+ejJpYC3 JIpP8RR69iI5E0mqBZT0l2w5dOO+3yZSI31z5qLnbV8hTO/SOwF82CLzydeufVUWD35F GCEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pmwrGi06; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p19si9906740plp.376.2021.10.16.06.34.52; Sat, 16 Oct 2021 06:35:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pmwrGi06; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240311AbhJOOds (ORCPT + 99 others); Fri, 15 Oct 2021 10:33:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240258AbhJOOds (ORCPT ); Fri, 15 Oct 2021 10:33:48 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE9BFC061570; Fri, 15 Oct 2021 07:31:41 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id x192so7586641lff.12; Fri, 15 Oct 2021 07:31:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BOWkhXmRLradAC/GQ4VVcC6Y/gPQpSI6S5P1Mpfnvk8=; b=pmwrGi0629rfj6pWJFXZmdRQx60ZnAi+RezuMqoV9xHr0Moh8bpARW9ZsUFfEyEAy+ xJCN1guTGVbG4ldgdiJKnYfCOJtkEw/BcPhS02+uRpuAkG8+ALUSU0EgLfApGqvjoIC7 RFOcJMVZtsvKkdmsFFW8zJiKahdSun5IF2BDzPrV7W3uvcdH+2/Cy9o99gjZ/blLOpMh D+XqGp/jW6uiSobidR9H2P3P7xK8yiS7MOtgDCvbDe9mQfmozxiq3CLLQle5G9e1BNQf jb6/qumiVxrHnvaqVm0fN9p0sLgZbT8Tecsmv4p9WcbWUuQvSMs1atN0bApMvJWpPgr/ tVLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=BOWkhXmRLradAC/GQ4VVcC6Y/gPQpSI6S5P1Mpfnvk8=; b=hXYP4HehtTFc3vDEuTAG+wnYCeSnFApfBrbB80eRJWKr1YD39qD9la3w9L5f4ID73o M85FhCWxLKFE/Z8lNo323gVMe41eO+EaJ5Rr9ehMEYgXW2vKwf/ZgL3hx05KBtnMNHUi xXPi8SVdpyjdpbPmVnqS09QIlDcwXq3XN1ie+8gyUAskcGNCqJZJYNf0dZvASwNyFBSe PdEIQqOL2aKU+WkYQqHtGPfszlu1J0BvBXfA33Cc3JjEZ2tGMZvSieG+RyqlxRdQdv8S CiRb7vWUdjyAm5sVbTnM31+6/1FkvTUQYrp8kW6WFD0JZt4x+f8/ezF2Cnm0GRCAEMte M7vQ== X-Gm-Message-State: AOAM533wZGv6MucObWuapbE8C36hJm9Lp+YGEU9S6Ftxc/VZkIuz8J/h 6g6MA9UFhYh2hJ+2YXoRtSOKHxr2xos= X-Received: by 2002:a2e:7605:: with SMTP id r5mr1552093ljc.301.1634308300111; Fri, 15 Oct 2021 07:31:40 -0700 (PDT) Received: from localhost.localdomain (84-72-105-84.dclient.hispeed.ch. [84.72.105.84]) by smtp.gmail.com with ESMTPSA id b18sm616475lji.99.2021.10.15.07.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Oct 2021 07:31:39 -0700 (PDT) From: Nicolas Frattaroli To: Nicolas Frattaroli , Liam Girdwood , Mark Brown , Rob Herring , Heiko Stuebner Cc: Rob Herring , linux-rockchip@lists.infradead.org, alsa-devel@alsa-project.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: dt-bindings: rockchip: i2s-tdm: fix rockchip,cru requirement Date: Fri, 15 Oct 2021 16:31:14 +0200 Message-Id: <20211015143115.1445707-1-frattaroli.nicolas@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The behaviour described in the bindings is exactly the opposite of what it should be, so this patch fixes the description and adjusts the if conditions for adding rockchip,cru to required. Fixes: 510f1c133aed ("ASoC: dt-bindings: rockchip: add i2s-tdm bindings") Signed-off-by: Nicolas Frattaroli --- .../devicetree/bindings/sound/rockchip,i2s-tdm.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml index ce3e18b50230..93f5221e9381 100644 --- a/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml +++ b/Documentation/devicetree/bindings/sound/rockchip,i2s-tdm.yaml @@ -86,7 +86,7 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: The phandle of the cru. - Required if neither trcm-sync-tx-only nor trcm-sync-rx-only are specified. + Required if either trcm-sync-tx-only or trcm-sync-rx-only are specified. rockchip,grf: $ref: /schemas/types.yaml#/definitions/phandle @@ -147,8 +147,13 @@ required: allOf: - if: properties: - rockchip,trcm-sync-tx-only: false - rockchip,trcm-sync-rx-only: false + rockchip,trcm-sync-tx-only: true + then: + required: + - rockchip,cru + - if: + properties: + rockchip,trcm-sync-rx-only: true then: required: - rockchip,cru -- 2.33.0