Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3502366lqp; Tue, 26 Mar 2024 10:46:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHm/QsfzRm2xikCTOp7GK+zYf22+P6+Vz8+qGDDqJ6UqJJWGQTDJCQ7a+qUs78fk1Gin5qWGqnDrYjFSGgoucV997LY61pJOtcrtY34A== X-Google-Smtp-Source: AGHT+IH8azL/i3MiyuVEm1XyxUwSJOSPIYdhk7nTOdQ/B0JCpk2miENX8oJGkvJ4XN8FvTsT+PP1 X-Received: by 2002:a17:90b:90f:b0:29e:343:76c4 with SMTP id bo15-20020a17090b090f00b0029e034376c4mr3222769pjb.4.1711475217400; Tue, 26 Mar 2024 10:46:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711475217; cv=pass; d=google.com; s=arc-20160816; b=imresRnK7UVJBjDfA2fSbaAueCF24jj1qUBz0q8P0/2Jyvj8MM6ExRKB8KxTAS8D47 af/q8wScr/nyLtXoTqG+9Y6nSR/cUqK2YC0umGVQvSX4X37s4HHdc3E41DI1K+4EVPY/ ju0EMhP9FYX5KzZdBRyyHg6bfiwYY3nZq9d3Bl87Lp/AXGw+L4JZaCbRo2WOf3ZaNpd+ xVV6o0dlyHQx4WIje5zFus2qVonrGI8GIwwYM98mILy8j7WNK8M+h2P6IKGva94IIesi 87DcciX+vPCYcH6y1U9vamarJ9z+BpFgCpXBjhhes4cJXhWX3xP1UkX/zEPO8fVLKn4F 6cPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=rMq/Chsdogq+cfRuHXND3ep8x+cn4B09GRV/ht38i7U=; fh=a3cLs5nTeIsNvjSuVYZd+LHCyRAH8yfYAViHtAK6Ttw=; b=o/vubV3kJ6vUbCCRjyzq5KUb/YFQvuoFD6WspgkJKQWQgp1nPud0MOWbeyo3SCdnLZ tAhSv5DIpRCzj5ViF7M1TbuES0uTpHJqn6ns8u7R2YQSkSKgB658FU+qjTsKqj4SpY6U 6e9O4rs+BLSNocysH+x1YBSUOgGP6WWqSUj9wu3iKU6sKKZcVoPbPzQw/GUL538DeQ+7 nPzdVVz6nAZaY3PGkSwApW3Tblg087WUKBiwc1hztf8UWSTAPh4aziSMSlT4/Kv4i6mD JVOtaWzOpfvG6RWtWRKMOAVH7M9RerGFtTWfUo5MscYX4cSxmT7n4ILHklQNsQCGAc+y Wlug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eS1Kh0c/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id hv15-20020a17090ae40f00b002a03fca83e0si661904pjb.24.2024.03.26.10.46.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 10:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="eS1Kh0c/"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-119619-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119619-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 16656308394 for ; Tue, 26 Mar 2024 17:46:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 040696FE1A; Tue, 26 Mar 2024 17:46:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="eS1Kh0c/" Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4F1E61F934 for ; Tue, 26 Mar 2024 17:46:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475201; cv=none; b=pU59B4mJcZihFreaWTBKVlYFwp99Kr4EyTjZJgl1jK1qurcKn8qKv4z2Ig9fFpzGo3o08ALX03rGgRThbzdEaHOBaEHIM+Q1IscF2kOPivlhcvkpH2Eg/fenGrXji6ShCq3G5KKnZ1ukpi2Xsxjz15KjnUOw6ekcUoEbYy2qK3c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711475201; c=relaxed/simple; bh=Az76Er8yXjZV/tqoHhSzJRIVBRn0rXo06jGlOz2rx8Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fvgciX+MuZs5xIUT/hjezBjlreRnngB7ZxuZkmMeoaJMkLpjDLvD51Zp5AdYw0RZXWxWC0j9lDqAM7v+/mz7fXqgQMGxm556jSKwSjIhiDf6OiPryeB0ivoPyrz6Ndg4l0ATcyw7/X8gGruD3LOFTyNHYESVzJC+CCtoPfHQYqo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=eS1Kh0c/; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-56c2b4850d2so1163344a12.2 for ; Tue, 26 Mar 2024 10:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711475197; x=1712079997; darn=vger.kernel.org; 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=rMq/Chsdogq+cfRuHXND3ep8x+cn4B09GRV/ht38i7U=; b=eS1Kh0c/FOy5NJYA0S6xP7LpznhK0XAGKYzfH0H58he3fORWd8LHvqTDk1wnbl4TXn VpfFCL4d/N/LIQv0lBpyeRaX9lGfaYTuKLyL6VYXHRIZf+dedj7uLKMQXwBVFMQtHu4G ceqPBEmFYxse/yi33Sc1Ht6R2IRtB5+80fyuDw6OFSYPmaitvBcYRvUD3TSON7S50gDE LBgdbyM/aeD7Kmu4p1gNDOtQKd8AVj11eIvdS1nepohMTMGnhGLo3NwBcdioYy+z2P96 jX9Z2JelKmm38dIyrxm9tW/Jm1UmqHIiU9h10VvcS40//raXva/y0DCAaiZE7sRNSd6q UcZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711475197; x=1712079997; 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=rMq/Chsdogq+cfRuHXND3ep8x+cn4B09GRV/ht38i7U=; b=QLmtf2CWdosXSuyaxXjSNmqHXcuyHyiR+GIVYmplPqrM/nH4rGbdQ5mS/V7l8PDOnH L/HW2jBUomJWIrfGDK/19lvwyy+YSj7F5O63yFk3RWRUdLygUFX/CgnA+NEMPMgQQtrX QQg8GXkfODWJUh76nEIy0hWG5vuI80+ZmZIPcwd9gPKztUiwU5QA4mDZLBP4K3YN23+E yT2nmpCXH9D0dbRiWg8DzBdvzgEbKPhlbuOEBFwWnq2mb0n3cOu4gj1w3WLnZ9kZxC0G mN5qIxB9RRx4okmXt80RC9KRpN1mWDjsv7Cxn7CEkrJDNwSp9vO20lDoSHCb1QBtu/fr SP6Q== X-Forwarded-Encrypted: i=1; AJvYcCVUXFBJfCNH3Wu6jaHINqxuPnmUTo0Ess76smS98gCIQj0iTj4IicIS6foNbo0DkygNIx9l7Loje0foYQJ1aU34KNzMFSTS3ExFEy7T X-Gm-Message-State: AOJu0Yzvv8mda4gssvutS6Z1QfYED8j5z27wZA4rRXaVYub5C9gDmViR Dae2jCF3UfxUtojLRKB4lrIVrQj7CU7zxBjaxvT0IQH0l67GuYmaBbTVRZ215N4= X-Received: by 2002:a17:906:d10d:b0:a47:16d1:113f with SMTP id b13-20020a170906d10d00b00a4716d1113fmr2580119ejz.47.1711475197572; Tue, 26 Mar 2024 10:46:37 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.44]) by smtp.gmail.com with ESMTPSA id l19-20020a17090612d300b00a46cffe6d06sm4451438ejb.42.2024.03.26.10.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 10:46:37 -0700 (PDT) From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] dt-bindings: ufs: qcom: document SC7180 UFS Date: Tue, 26 Mar 2024 18:46:31 +0100 Message-Id: <20240326174632.209745-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240326174632.209745-1-krzysztof.kozlowski@linaro.org> References: <20240326174632.209745-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Document already upstreamed and used Qualcomm SC7180 UFS host controller to fix dtbs_check warnings like: sc7180-idp.dtb: ufshc@1d84000: compatible:0: 'qcom,sc7180-ufshc' is not one of ... sc7180-idp.dtb: ufshc@1d84000: clocks: [[39, 99], [39, 7], [39, 98], [39, 107], [36, 0], [39, 106], [39, 105]] is too short sc7180-idp.dtb: ufshc@1d84000: clock-names: ['core_clk', 'bus_aggr_clk', 'iface_clk', 'core_clk_unipro', ...] is too short Signed-off-by: Krzysztof Kozlowski --- .../devicetree/bindings/ufs/qcom,ufs.yaml | 34 ++++++++++++++++--- 1 file changed, 30 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml index 1ab3d16917ac..7e6d442545ad 100644 --- a/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/qcom,ufs.yaml @@ -27,6 +27,7 @@ properties: - qcom,msm8996-ufshc - qcom,msm8998-ufshc - qcom,sa8775p-ufshc + - qcom,sc7180-ufshc - qcom,sc7280-ufshc - qcom,sc8180x-ufshc - qcom,sc8280xp-ufshc @@ -43,11 +44,11 @@ properties: - const: jedec,ufs-2.0 clocks: - minItems: 8 + minItems: 7 maxItems: 11 clock-names: - minItems: 8 + minItems: 7 maxItems: 11 dma-coherent: true @@ -113,6 +114,31 @@ required: allOf: - $ref: ufs-common.yaml + - if: + properties: + compatible: + contains: + enum: + - qcom,sc7180-ufshc + then: + properties: + clocks: + minItems: 7 + maxItems: 7 + clock-names: + items: + - const: core_clk + - const: bus_aggr_clk + - const: iface_clk + - const: core_clk_unipro + - const: ref_clk + - const: tx_lane0_sync_clk + - const: rx_lane0_sync_clk + reg: + maxItems: 1 + reg-names: + maxItems: 1 + - if: properties: compatible: @@ -250,7 +276,7 @@ allOf: reg: maxItems: 1 clocks: - minItems: 8 + minItems: 7 maxItems: 8 else: properties: @@ -258,7 +284,7 @@ allOf: minItems: 1 maxItems: 2 clocks: - minItems: 8 + minItems: 7 maxItems: 11 unevaluatedProperties: false -- 2.34.1