From patchwork Wed Feb 14 15:54:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 201003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1328187dyb; Wed, 14 Feb 2024 08:19:49 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU/+J3zHQpS8SB9WNMMdd6RpMUAHIBBEgL1KwYPA/qjxTiKxeA9Xl0avfztO4ZLP+hOoOO5r8ytU/rCP20MLcnZj8wJcQ== X-Google-Smtp-Source: AGHT+IHC37hWoby+kaOisB07oC0dZSr3T605Hy15VKuml1K7YGNd0xOHkuK8p+sSkiyAW9QvGxKo X-Received: by 2002:a17:903:26cf:b0:1d9:3bb5:2819 with SMTP id jg15-20020a17090326cf00b001d93bb52819mr2794242plb.34.1707927589145; Wed, 14 Feb 2024 08:19:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707927589; cv=pass; d=google.com; s=arc-20160816; b=CwK2lifw46VAu84qgU68EfskHLqlMS9ZfkNVQqn9xwOyH5FGMybYHuwCuz6ztquhJd 6r8HvR2juf/je3SzQRrUEVjofLlJUHiHFBZZ12Pgb9YhF1TIpy8+1XwM7h2lOTn7EtIx ASXJxD1PTzrgeEH9yebxnsJ8xXec16IirFUKXM2oHLhj8LKEPN2vzREslaeZaLxYMpFB tyrrq8MxJNt3+9e7mCxJLZS/PNvNqwAWFAZ/LbYNfdxM9u10hPAUfmo6ttpErRXS9S2R xVOAg4WAPy1W/ErcAQqC7swZtmUn2/NuCO88vCH9B8yIpQbxBWexufb/CdEU0/qvgNFs nDCg== 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=5CNcwNle4UYKgFa0WYPpjXQkq/UHsVG8FTTKT9Pm9pw=; fh=Oqxq3OlkIPPtshbARkZqNWOFG6AN2jqvYGz4kDNvcOo=; b=hkMgLKBFMWrpL3+2vv8gNM0MSzKwtuXwsymnMJGtkP9VYcqZQFu0JEhoySEYTQdqm8 RjctQOhWrecV5uFQ2XAJPhPRyXkf8PZTFspcB7+wTIpvdVPjUWRqBeXAYzCDEyfWSVqf ToAYWB/bpaIzJDKXKyNnAZXFPg7LgZM3aChvZX+Fowlg4UMfqzDCiousOqIf7a9Y5sVl mlBVZ8N+0B1AJTXRxpngPVP+jiQIr+9rR/BOTMvWn/0OAXIPQ2ytc93JVKsGse2lOFaP wKJAVn3lV1PYgmalH6p7EO2k9w0x918kn6L3hcoE6iLkmx+orim5U7xZZ/GxNYNjo9/N 6pew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VoaW9A8K; 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-65465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65465-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=2; AJvYcCW4raqoGcWVUErXl1EAZBajAT3rvICMjb61liGfcUIn4Znglf/qvs6Qw9y7qaFiHhqIlV2OOj4kOV75Gg7+mz6WDiEFYQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i18-20020a170902cf1200b001db71681d44si198661plg.187.2024.02.14.08.19.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 08:19:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VoaW9A8K; 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-65465-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65465-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1DCF3B27287 for ; Wed, 14 Feb 2024 15:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 44B4E5FF0C; Wed, 14 Feb 2024 15:54:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VoaW9A8K" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 A69DD5D910 for ; Wed, 14 Feb 2024 15:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707926096; cv=none; b=pv7DToOTtLHh2+/EifG3OK+q2wPkK/yv+gdT0HYN5UCYnpwwg9sk8W1nDag0aFp0hcHa29hrnSr6vG9HzDnLo3iojn0nX+6gukz2TCZ7DBZB8jeEfRmGh/AmkfGegVZIIqDJkDoXUvnk+RirxahrhxH/30dY/VjDPIhDNmpCZsE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707926096; c=relaxed/simple; bh=RjcmJ1gtFBwueafmepL5eB2KnvoD8u/S+qST208fcb4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PG/MP03ljuLuGKS8M4q2tw1pR6GFF6RhQLNT8K2koFjsclVBpNn1y2u/E6PXYNjVBl7wdxOHzfMRxfuMzBju+BNKGLsB6XLnI/kVG8s+Wvlrwy3m6I6d9IE/UaDUU4mZ20F59lZkxnPDQVAF58Ssub2F3wY1+4czsGnHlxAzPh0= 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=VoaW9A8K; arc=none smtp.client-ip=209.85.208.44 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-f44.google.com with SMTP id 4fb4d7f45d1cf-5620f15c3e5so1952969a12.2 for ; Wed, 14 Feb 2024 07:54:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707926093; x=1708530893; 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=5CNcwNle4UYKgFa0WYPpjXQkq/UHsVG8FTTKT9Pm9pw=; b=VoaW9A8KRuOUCwuqTJ3hpVm8yUf0Y7wr1mTmpyqMbMzRcnY5g4HKN0a7dvpT7n9hhM oAnHoSP3MHh5z8rtujc53IHppzzR86qpyv52tvEoigC6CEIbWNIZzArJC4HVHweYf/2Z 9oGC5qaXaI3PD4J91vRxS3Mc+hUMLpT9vBng5u9bvLUEW9xqRGmSQtVdGOQWFiuUjOLH leSrV9s9ngLPXl4zkp7lczAKs6fcvAf79QxHU4YQKaO7c9FIntSMJqRWkOFXyJ08lFVl 0lgl77wldIVbwx4tiFSVIY5Y0yhn91/yWVHIYhhi+6Xh/EVJPO9c8agWpE1M0Gzkk2// iR8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707926093; x=1708530893; 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=5CNcwNle4UYKgFa0WYPpjXQkq/UHsVG8FTTKT9Pm9pw=; b=FAKlxs2bYKR5woEXzUvTWj+2/9vozvFPrLWjuRGjJQ6+DkMs2nVZZDeC0H7Tcdj8q2 IXqgs3ihiN9cJ9kSxaoldZjtu7YPFbnlnC5sajTfDxSnFKBq/ErFI26DQtomIxA5Hnpp ecTzpvsoZWJlNMCo2PvvzyIGlgiyfB42O/CWIW6nTKPRCqYk/D/FzUk9Glh6lDIxYRYE 2KrzJxZQlQ49LG1RDdQDbdZXNoTVRFacOdlaow2/V05BrZtyH8iM2tVgO2QiVEzT7rna AXysFVzT/hqegC13flkW8exjg89i6LzW0wmisR7Eqe4nLF7hYbVFTMN5IrmBEQeh48yK bPug== X-Forwarded-Encrypted: i=1; AJvYcCXNgpnEmsY0m+/iEt8eslQ+YB3XDqO2I7nWLWLmdS2bWb13u+7n+mOwTJBR++DXoh0DjwJ8tqxc7Bimxp44GZpYaBXZm9VMp6MR0hHG X-Gm-Message-State: AOJu0Yw6vuIKzNaER9XeBiG/Kvib/vzEgbyYV087LAVm0HG005zOeVEl s04RehON8E6mifqZya+kyVlrEiTauEWJw43/O1d7Lj5FSkKhdNvpDT9EN4m4pEA= X-Received: by 2002:a17:906:f851:b0:a3d:303d:c6c1 with SMTP id ks17-20020a170906f85100b00a3d303dc6c1mr2110897ejb.62.1707926092979; Wed, 14 Feb 2024 07:54:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXTLMPJkqU+hvLTZTGoGdsmX+MhjOWm/jj8EcBDIUF8FHE6mDlweGOARuz/QvAFxn4tv6Cln/5v2wI1CkdcPn1/2qrGGLI6MXknF4K6NTGyghLc6DFiUl8VwRG7tSLqN+vIIcGQA++j+U0aM7XxsGBEBgCoRjXKUYrCJOIqYI+o0JFhA/1F8NhxAPo/lxwml2rmIb0Qcbb0rS4nw0mbyzqKhB4DsogUZyS3KO6SACrKijel2CKM3zSrFRVKHqIUJ0CeVbGUdnn8mOAZLRJVubcAHUo9HKcb5Bnvcg6qyhSOBwah5TljpC+khzCYrQWYDxUeEcXGSqOLra8C/8yXA45F73NGzX9OuMBD0AoXXl/2QRI4gU7uJsJKDBOphLsWbBJTwVvvskGRvX4= Received: from krzk-bin.. ([78.10.207.130]) by smtp.gmail.com with ESMTPSA id tk6-20020a170907c28600b00a38936aa08dsm2431332ejc.32.2024.02.14.07.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 07:54:52 -0800 (PST) From: Krzysztof Kozlowski To: Linus Walleij , Miguel Ojeda , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robin van der Gracht , Paul Burton , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Andy Shevchenko Subject: [PATCH v2 2/2] dt-bindings: auxdisplay: hit,hd44780: use defines for GPIO flags Date: Wed, 14 Feb 2024 16:54:38 +0100 Message-Id: <20240214155438.155139-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240214155438.155139-1-krzysztof.kozlowski@linaro.org> References: <20240214155438.155139-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790890917522789276 X-GMAIL-MSGID: 1790891879753485296 Improve example DTS readability by using known defines for GPIO flags. Cc: Andy Shevchenko Reviewed-by: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski --- Changes in v2: 1. None --- .../bindings/auxdisplay/hit,hd44780.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml index e26d61af9011..3ca0e9863d83 100644 --- a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml @@ -116,12 +116,12 @@ examples: compatible = "hit,hd44780"; display-height-chars = <2>; display-width-chars = <16>; - data-gpios = <&pcf8574 4 0>, - <&pcf8574 5 0>, - <&pcf8574 6 0>, - <&pcf8574 7 0>; - enable-gpios = <&pcf8574 2 0>; - rs-gpios = <&pcf8574 0 0>; - rw-gpios = <&pcf8574 1 0>; - backlight-gpios = <&pcf8574 3 0>; + data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>, + <&pcf8574 5 GPIO_ACTIVE_HIGH>, + <&pcf8574 6 GPIO_ACTIVE_HIGH>, + <&pcf8574 7 GPIO_ACTIVE_HIGH>; + enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>; + rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>; + rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>; + backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>; };