From patchwork Fri Aug 30 17:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13785386 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 C5D6CCA0EDC for ; Fri, 30 Aug 2024 17:20:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=oU7Y9rgoKN0I/lBGj6nVMpMCGbyMF8VZWxC6PLhbawA=; b=e8uPxxHmLQ7Ty1Di7jcLFooLQB xymA5UqWbRlDsCc88xTHXPLWvMLnS1V32UaqnAu0I+ayDmYiWq3R6/rMpjFnbdDxogNTTWGcGzpGy MeT52Cd4GumUFPtFV/qg1X3I5SNJINnaFmIbE8Q9ZvL3ejDm1HI5+yeRQ2vye2FPu5s2vmczqKrmZ +USVn2njoWA0V0IJ2qBAJChR1ngyYFVf52VoDQxLIgDg+71yPFNNjsyvGPDjx5FgEYqNyTzwKK5Gj OsMR7gS6FGqKKeII+olawkNOaPuvquz9Msb/5Ut7hzk4qvtc4TYWkYZkjo8s/r420fd2KHfC2SA3B p6wm/c3Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk5IC-00000007ATF-14k6; Fri, 30 Aug 2024 17:20:12 +0000 Received: from mail-pf1-x429.google.com ([2607:f8b0:4864:20::429]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sk5H1-00000007AHE-1pUU for linux-arm-kernel@lists.infradead.org; Fri, 30 Aug 2024 17:19:00 +0000 Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-715c160e231so1773923b3a.0 for ; Fri, 30 Aug 2024 10:18:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725038339; x=1725643139; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oU7Y9rgoKN0I/lBGj6nVMpMCGbyMF8VZWxC6PLhbawA=; b=TNGAmf0Lxyd8HVU6FFCvaZGB3tW1OK40ycNJw69FUG3J8oLWhn8w0L09oLACD27bqX luULX/PLFAt+hVBo7UWs2aJ51usGONLGIblz3batY5cpfA0QVirDnUXkgBZNm90uKXnn RFBAwaHEedkx/PqmULp95ifr0f3wlYT/cACmOTFSsUcQxyTwF3KlRZ+JBafC3N0VA0BK wXtCzw74vofJXK/0pA53fgifO3aVhSPa9yBWbDGZDsPBJnPx/I1RemtevzutQQcsuG7g qP7lR0tV2a0scQ5ybCEuGJTypqOawbSVlYBT3u13V1UCEYl+MnZmj+05Ty4VFa3O6u/y p5Nw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725038339; x=1725643139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oU7Y9rgoKN0I/lBGj6nVMpMCGbyMF8VZWxC6PLhbawA=; b=hnHeh2CAODpj0qb8F5Hks2OdZHLPL2ZGHEywkx7RJE/v5VjKtmI2PBwkaR6ayUMgss Ibf1lF+aC7FnhpxpRzHs9uw348/NQzYj4gj0PlYzGhuH5edWTIzmHGIk3Ks4kq4XDOes o/pYrYT1kMDN4U0XZ1YyQ/6JaLN8Ta7GDxb/apskUL/jFHOBimdfBjJKZ3CQQbKlTVQM kosm2CthvoLhNXQEDB3XjyckDIBCZAFbqIra0L0CzPeYcnKpX365OBfIpUKObPKU3Xdb y/oBlzmhzJ6uP3Y2n7O4ysbZHjOJE/YW1OU3vRinz3MiAtVrOFeLUkoTrmd5pbxPIMpi ntqw== X-Forwarded-Encrypted: i=1; AJvYcCUwgakRHsaXVf2pV7XTNrYTBw9UOfrGdtLXW/1tylLm/2CH5wApBnMX1mMdzVRgLDJrpSoVU/hNIRV83XnzwDeN@lists.infradead.org X-Gm-Message-State: AOJu0YyKym4Q31nuRxzMc8LL+TdwZ8sTQc8LaSoblgbd0JuFBgo5wkPU x3k5HFVQeVpQks7T4BK0txzI4Zisol4SR3AQBNjWN0GkwFBMtpr1 X-Google-Smtp-Source: AGHT+IEwynOk7MmdonDrz7jfFT5a01s6rrlgZ1wLgGtw1SUwLarImqNTp7DEpZIfN9osrXq5pTf4DA== X-Received: by 2002:a05:6a00:234a:b0:714:1fc3:79f7 with SMTP id d2e1a72fcca58-715dfc506a0mr9081131b3a.17.1725038338533; Fri, 30 Aug 2024 10:18:58 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:79a1:1962:99bd:89d3]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-715e569eee3sm3015156b3a.134.2024.08.30.10.18.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 10:18:58 -0700 (PDT) From: Fabio Estevam To: broonie@kernel.org Cc: linux-spi@vger.kernel.org, otavio.salvador@ossystems.com.br, heiko@sntech.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH v2] dt-bindings: trivial-devices: Document spi-cpha and spi-cpol Date: Fri, 30 Aug 2024 14:18:49 -0300 Message-Id: <20240830171849.3750165-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240830_101859_499761_1ABB9DE9 X-CRM114-Status: GOOD ( 10.03 ) 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 There may be cases where a trivial-device needs to describe the SPI clock polarity and phase via spi-cpol and spi-cpha properties. Document these properties to fix the following dt-schema warnings: rv1108-elgin-r1.dtb: display@0: 'spi-cpha', 'spi-cpol' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Fabio Estevam --- Changes since v1: - Add spi-cpha and spi-cpol to trivial-devices.yaml. (Conor) Documentation/devicetree/bindings/trivial-devices.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/trivial-devices.yaml b/Documentation/devicetree/bindings/trivial-devices.yaml index 75a5fad08c44..f7c11eb6e5fd 100644 --- a/Documentation/devicetree/bindings/trivial-devices.yaml +++ b/Documentation/devicetree/bindings/trivial-devices.yaml @@ -24,6 +24,10 @@ properties: interrupts: maxItems: 1 + spi-cpha: true + + spi-cpol: true + spi-max-frequency: true compatible: