From patchwork Tue Apr 23 20:49:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Griffin X-Patchwork-Id: 13640651 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 88B50C10F15 for ; Tue, 23 Apr 2024 20:50:57 +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=RImPIhOHvJAG0eexXTFMSElimATE86Gc5hnro3D7jCw=; b=vdYVriXuOfnpVK ruTJ2W8U7VqXlRuhcdacOuYhgnMEwpG3VWeAP3CjI8Ifdi/UnIBQjLlv17JGhe/i3i4o/Yiq1DHHM n340xfwVJc9oqmv7GsiHe2l/IuYA4CfH3cigRrCIryzOHsrpvAgEdfJMaTcEkm8a2rY8qaguTV6Br DeU6ufK7Ua6vGRLhaUyYXEFF5mNcROyuRLGPdfTQKzGsH36wkhBEx/IWoyI3J4B+ALpgQE1cJ+VTZ LDmvB/O8etd2wivFhb5i9x76P203XbHyBls0mXT7E1Nkrs3/8hrilkFkv1CY5giplFyjkdAzqHRgQ YqIcBOZldHNomiFNu0YA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzN6C-00000001Swm-3nOq; Tue, 23 Apr 2024 20:50:44 +0000 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rzN5n-00000001Sf3-1v6N for linux-arm-kernel@lists.infradead.org; Tue, 23 Apr 2024 20:50:20 +0000 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41a5b68eceeso20029485e9.3 for ; Tue, 23 Apr 2024 13:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713905417; x=1714510217; 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=7YDoEtxb3WAccXiFYU++BdYy9LiGKO7VakM6fMKLsd0=; b=fNEzyS8jvmHaTs88DZ4ZSfoPEeiM5sBBQN6grGi3uLvrj6lfS+i3ai8ddMkOCIuZfp CeMwPxsSfs0xoDeUSpyvPKf/c55mVPeOjd3njZzarEb/h6kiA4lnrrqZKe9vhBFlQJpf RTIECH3gtE7sHqWBExWVMXcB8ctcNnGwrStkodWQiKlVE3aqGfYwBic5l9TdqpqFaaBv oK7h33hcYCc0EuWZUYj56JZcqnVIJwdFOKFxHKy0tkeyOcu4+GoyL2mNxQ/7HPwiCBsA k8OVgspqARK0NWZQL/dwP5/owrK/PnOfgjCyFEPScbYCaNXPS2CRSyCUtDMGzm7SIVdA 2wXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713905417; x=1714510217; 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=7YDoEtxb3WAccXiFYU++BdYy9LiGKO7VakM6fMKLsd0=; b=i7ItZleu2CLsY5NR4OakjCpVZ6n+o6kbwtIMPAlyWisJ3exOegXmAsahWvFxuE4KcA 1mt+BLWdnZkR67iWI02Z7bDSrxy5oUJi3pbmxcQQH0lG1VaS4y1r1bC93BbC+Mupc4rx z4EBTOOISIkJ7IOtmjW2C5eMFb4WJzxof9dsTg2fIIvTzCon1L21ClZ78+Zb+V5xSvru D7zbRcUDhjdLgeCtYtX1ys79qWj6Sdg4hr7NGMDvrhAKGYIkrUu1NJK6OHawlf0p8xyP ktRU2Vn501VAd/GpzkBT32qpNzT52magvHBJNgFa1HDA8Fr4hEnXz6lnu5b36RtV6q/v YS2w== X-Forwarded-Encrypted: i=1; AJvYcCWThZ8drcJoT6szVo75OWHhy7X5TCW4lyDXwrkTGbpoAx9avNUp0TB55kXdki5jHWUTyyhvMofGfvzp9ptw8xrgfFpehjKDJEibo4fu/NTxxjn6xZM= X-Gm-Message-State: AOJu0Yyxkw+pZa0x8JU0BMYHf4umRSNf8s7TNt2Pcgi4Nz2lC3drf7EO DufXtgD6D6MT7yo8e9h5l6h63DVp6RDmu519mtlgQIMAMkKViz1fHypSLDi6nlU= X-Google-Smtp-Source: AGHT+IG67KylFXiAI0/BsAFLR1B8wx1LOJwe93ySSY8NQpxdP8gGTGPG7VdGHrq1rWe4qptsIIR9aA== X-Received: by 2002:a05:600c:310a:b0:418:5e80:a6fa with SMTP id g10-20020a05600c310a00b004185e80a6famr337401wmo.14.1713905417453; Tue, 23 Apr 2024 13:50:17 -0700 (PDT) Received: from gpeter-l.lan ([2a0d:3344:2e8:8510:4269:2542:5a09:9ca1]) by smtp.gmail.com with ESMTPSA id bg5-20020a05600c3c8500b00419f419236fsm13065443wmb.41.2024.04.23.13.50.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Apr 2024 13:50:17 -0700 (PDT) From: Peter Griffin To: mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, vkoul@kernel.org, kishon@kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, bvanassche@acm.org, s.nawrocki@samsung.com, cw00.choi@samsung.com, jejb@linux.ibm.com, martin.petersen@oracle.com, James.Bottomley@HansenPartnership.com, ebiggers@kernel.org Cc: linux-scsi@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tudor.ambarus@linaro.org, andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.com, Peter Griffin Subject: [PATCH v2 03/14] dt-bindings: ufs: exynos-ufs: Add gs101 compatible Date: Tue, 23 Apr 2024 21:49:55 +0100 Message-ID: <20240423205006.1785138-4-peter.griffin@linaro.org> X-Mailer: git-send-email 2.44.0.769.g3c40516874-goog In-Reply-To: <20240423205006.1785138-1-peter.griffin@linaro.org> References: <20240423205006.1785138-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-20240423_135019_562859_A27297E7 X-CRM114-Status: UNSURE ( 9.71 ) 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 --- .../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..1179527d29d1 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: ufs_aclk + - const: ufs_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: