Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp859593iog; Fri, 17 Jun 2022 15:45:06 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tR4V+sDGinOHquD9ELmn6Z+j74inA9BhCrpfCOYM+YCiu9n/876Quze3RvsgclPcCsMWcE X-Received: by 2002:a17:90a:c81:b0:1ec:7760:fcbd with SMTP id v1-20020a17090a0c8100b001ec7760fcbdmr5426461pja.208.1655505906471; Fri, 17 Jun 2022 15:45:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655505906; cv=none; d=google.com; s=arc-20160816; b=jBCMHjC1pLiB7oDv6cpbHnm9HKqsNVy84YbyRzjVCxZOgvnxI/YawMuBlgbgLDt9KW J4ChE+S88mT3TJ+++IElwb47DF7XtJNMswc2BGmf0uwt9JtKY9NRQ7gG9uNXGUZRbnWA VzBpBbV22LE0lFe9pcAD31K8Rp+GBaFHc1egD7QRu0C6jXsM9BQhWnZLIrOYMwmjqmAo aRNdORg1tDuwHjqzECq/7+OVlQn7w5oBn94G1L485BRuFsd5tLR3IpteodQCXCy/DSAR Oz0uptGcJ2y+Nnq9O3zPhW8nR9RPBY8InmCsirkFNtQDwLfQ2W3rkMe/LHXWxoPrYDv5 mIDw== 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=UuGPEPu/Xi39Lxb5/V9FXeF6REc0dK2Y0T/IN1oV72c=; b=tDaFoDBfYUqZuHTxrf5MsbGDI5wROd+BP2p4b3CaQs1mVDD9j5QDr0CMXCaeGE+ba/ Ao2dq7tVLchNcetfbTtYLbsbSDU6kvV7N9yy2hwtGjva7A5fsve540LKkip4QqhXi7NH lM87SrLyU1GlZLtuzA+22sUXDuFRpMNhAT/Fxens2x58eeqj3pytwqqMUbj17clgXT4L HJd4qjvHD5I2bIlO30Eff+hkNKJ1b3YpFxn+1V1tYrMuv3FOJzbrQArz5bn93GamSSUg qcBgR2B8E9tfrEycrnlvYl5DDuwdJ44Ea3SJTbj2GUoKSNAePtBSIfglMvzeI0hDfimh MzTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=L2L0Z+39; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il4-20020a17090b164400b001ea97b9b3fdsi13667994pjb.70.2022.06.17.15.44.55; Fri, 17 Jun 2022 15:45:06 -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=@collabora.com header.s=mail header.b=L2L0Z+39; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377857AbiFQW3i (ORCPT + 99 others); Fri, 17 Jun 2022 18:29:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245202AbiFQW33 (ORCPT ); Fri, 17 Jun 2022 18:29:29 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C79F26163E; Fri, 17 Jun 2022 15:29:28 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 1307766017C8; Fri, 17 Jun 2022 23:29:25 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655504967; bh=oVlNccAWXofCU1rOW8Wgk44NVgnvXfyJSycx5cQ756M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L2L0Z+39SRcUlLM8Q14KmtnBdkik0nW0Xwl/uqTRuD/oODMJYjJKW/aN0+vbwH+At MJFqWrpxklyeNec+W4YpaPJ3pr1+iQHLR+/QsTWniE8s9GimUvlzJx+16I9S2BEBVH Qy/zRTjf8DqVrWp8aZ8r/DGwwXmbZPZaqoBRhDLrGyzkwANIwf8RymB7wJipZhcAsP xasmWbZiOX/ADwadbDmbfRgQWNIGmc+B4O+ZFUs7uza3YtLQ1GHcC9mMaBZ9tDrAbF aASUpk76bW6CDoerCKvewSf3E4VZgHmZLNPF9ipFi7824O9Ztr9aBzXLjrO7mzibri IbbLLf9cJnuwg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Greg Kroah-Hartman , Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Chunfeng Yun , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org Subject: [PATCH 2/3] dt-bindings: usb: mtk-xhci: Allow middle optional clocks to be missing Date: Fri, 17 Jun 2022 18:29:15 -0400 Message-Id: <20220617222916.2435618-3-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220617222916.2435618-1-nfraprado@collabora.com> References: <20220617222916.2435618-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 The current clock list in the binding doesn't allow for one of the optional clocks to be missing and a subsequent clock to be present. An example where this is an issue is in mt8192.dtsi, which has "sys_ck", "ref_ck", "xhci_ck" and would cause dtbs_check warnings. Change the clock list in a way that allows the middle optional clocks to be missing, while still guaranteeing a fixed order. The "ref_ck" is kept as a const even though it is optional for simplicity, since it is present in all current dts files. Signed-off-by: NĂ­colas F. R. A. Prado --- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml index 63cbc2b62d18..99a1b233ec90 100644 --- a/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +++ b/Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml @@ -80,8 +80,13 @@ properties: items: - const: sys_ck # required, the following ones are optional - const: ref_ck - - const: mcu_ck - - const: dma_ck + - enum: + - mcu_ck + - dma_ck + - xhci_ck + - enum: + - dma_ck + - xhci_ck - const: xhci_ck assigned-clocks: -- 2.36.1