From patchwork Fri Apr 26 12:19:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13644699 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7CEB3C04FFE for ; Fri, 26 Apr 2024 12:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=LQ3iQxRmkEhkJHsdQEaRLQdmmrT3tfTpxV03GNxSiEc=; b=Myqb7bKHa/q42d mAqy7LCDUHgTJ65lfOXaA/iGvQUiGIvtmKGoHcJc0OWnwjlqHhF8R2dLUkN6vkC2GwB9cQqXwsGri k7OoZtqsHChqz/1ga6rOmAx7lgrkx06exbtkJrkMw4NZozRVnGGQzEGwPE5lNcMCGc06vqyEtZWqx 0YoSZxZ9yxc5rPtErGdvwc+oEFxsHRrArNbBRgONDgGNwlBnpvrepqcYeZArRMbb7gV00C3L5CgWc nce3S8xuwLcF801IVzDwu+rMb1sRBKrfibRVKOlrFYhmN68idgaRVtSkbAx4rw2rDWHFLCrR4svFR ntgFNWhMrtUha7kiS84A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KZ0-0000000CRw8-1zSG; Fri, 26 Apr 2024 12:20:26 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0KYm-0000000CRqT-1lOs for linux-arm-kernel@lists.infradead.org; Fri, 26 Apr 2024 12:20:14 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-34b66f0500aso1496924f8f.3 for ; Fri, 26 Apr 2024 05:20:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714134009; x=1714738809; darn=lists.infradead.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=0PRNqalgzRJP0wdqPI5aKVM4n2lOoPrcnW5MLhVms28=; b=evmP38z02RgT5B4cfeazV1DAWZu9copF2gvch4VEIRF191b7mYXGnjgkoPwNMTiEsc w6cQWcFD56L7TJfiP4FDyzcGm+4vYBZiFp6/zZFJMTjDnOwzCutUoTE7LHWJ7Q9txv+R e8zBhxOo7VF3V4MSSekYuzgfuptSQvRyONkfcdpxY7h/htvg6XY+VA8+uHvNpKED6+Bx 922TDtmrDtWSD35lvwyVgexx0ppFaFyzjTOQ6vteU6ysQA62Kxxk5O2f2IeTvUMnbjXz V8+Rvn7yfyS5spSJycgDVCPi/OljRbfkdJRjTfpt16I2qeaJJFlZ4jVIpSRPXzWvlnpr BI1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714134009; x=1714738809; 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=0PRNqalgzRJP0wdqPI5aKVM4n2lOoPrcnW5MLhVms28=; b=Qu2Bz3sfIETWC4v+eVhOjc/66YE5xapnL8ckt/iDl4EdlLprPkxfg5Gv7WbBR1PkuY buz5H2ujJlKUes50ibI92yi9Ng6DBjr7O/zwntp1zKiV5yqDHwMdaNKgN3D9823tErQV HXCfvTOxMuOaEhLd9PXuD5C+cuit6TLsMzwimGmOsI1eZp3BT1i4AoTFjH3m3lEJeidb JOAPKnbihQc4OGGA2UKcWG81s39L/U3AQW+hBMVx9+YUKQ96rXwegKvuorV2hvsOxoVN StArhvH76vLF+731/zOo8oUFtF74dDV8y2uP4UkrlWjbkwFeWLw/ATGEvsMO/ccIR/61 pYEw== X-Forwarded-Encrypted: i=1; AJvYcCUNmvRuq9DavYp2OIgayLSITUaccOeboQi9+j9pTDTyjKHGn/BRy2PYGx970waUaa1lAvWYoA+K6ZylpaRCO6DKz50+nGGAnJ87Vczmo841StJQVC4= X-Gm-Message-State: AOJu0YxH/xowhYWLyh2cOEqnbFEiRd+dgCEA8zyJFPltZLW5Q/uDM3Ct 6V+SRfzMXFctgbCBT1YaeszcMTSJTGxcOXzZOT1I9h04go0bB8eZlMPUxz4CvXYEqP7fiZJRgGg NFRY= X-Google-Smtp-Source: AGHT+IFPRQzrJNRe0ZHJxJr9q7e3kdzOr5FITfDYCVcG12MFC0Y3BF+U9bOg8Rq12hVlpBymtvyZFw== X-Received: by 2002:adf:ed84:0:b0:34a:a836:b940 with SMTP id c4-20020adfed84000000b0034aa836b940mr1795068wro.18.1714134009627; Fri, 26 Apr 2024 05:20:09 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:63cc:9bae:f542:50e4]) by smtp.gmail.com with ESMTPSA id q2-20020adff942000000b00346bda84bf9sm22478146wrr.78.2024.04.26.05.20.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Apr 2024 05:20:09 -0700 (PDT) From: Peter Griffin To: alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com Cc: linux-scsi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, kernel-team@android.com, Peter Griffin Subject: [PATCH v3 1/6] dt-bindings: ufs: exynos-ufs: Add gs101 compatible Date: Fri, 26 Apr 2024 13:19:59 +0100 Message-ID: <20240426122004.2249178-2-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240426122004.2249178-1-peter.griffin@linaro.org> References: <20240426122004.2249178-1-peter.griffin@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240426_052012_482219_CD5FC71E X-CRM114-Status: UNSURE ( 9.68 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add dedicated google,gs101-ufs compatible for Google Tensor gs101 SoC. Signed-off-by: Peter Griffin Reviewed-by: Rob Herring (Arm) --- .../bindings/ufs/samsung,exynos-ufs.yaml | 38 +++++++++++++++++-- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml index b2b509b3944d..720879820f66 100644 --- a/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml +++ b/Documentation/devicetree/bindings/ufs/samsung,exynos-ufs.yaml @@ -12,12 +12,10 @@ maintainers: description: | Each Samsung UFS host controller instance should have its own node. -allOf: - - $ref: ufs-common.yaml - properties: compatible: enum: + - google,gs101-ufs - samsung,exynos7-ufs - samsung,exynosautov9-ufs - samsung,exynosautov9-ufs-vh @@ -38,14 +36,24 @@ properties: - const: ufsp clocks: + minItems: 2 items: - description: ufs link core clock - description: unipro main clock + - description: fmp clock + - description: ufs aclk clock + - description: ufs pclk clock + - description: sysreg clock clock-names: + minItems: 2 items: - const: core_clk - const: sclk_unipro_main + - const: fmp + - const: aclk + - const: pclk + - const: sysreg phys: maxItems: 1 @@ -72,6 +80,30 @@ required: - clocks - clock-names +allOf: + - $ref: ufs-common.yaml + - if: + properties: + compatible: + contains: + const: google,gs101-ufs + + then: + properties: + clocks: + minItems: 6 + + clock-names: + minItems: 6 + + else: + properties: + clocks: + maxItems: 2 + + clock-names: + maxItems: 2 + unevaluatedProperties: false examples: