From patchwork Mon Feb 12 08:34:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13552791 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 A72A5C48297 for ; Mon, 12 Feb 2024 08:34:48 +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=Y1WII0fDtbwvcY22qXQo2S7Bc/boWCEhERrfm6uc8F4=; b=Nob6Wte7XqqRtG aFYmEzfgWFUciFxaSCtWh+g7JAODa2d1GmZwX1ACpCHaqq8lC2Q9PHqyYYwUdHobTXD8VAi/1OsLu VIKuBDWhVqowVWICUcynnhVadvXplyD8t1XfdMyaglw6EVt5F6CQvzCPzeYNTfc5bMi9dVDNz2wtA uIM+k5pKVtdM44f8qAbUaRCeJYj8cioDv53kgle71PLEGYK2TbVZjUr9eenNH36nzzRcEyNp0XQUV +OLoc4oJTdcTuckyJmw0SEit3XRwwfK9u3nS9cNdZiyJAKJzrwaqfx1Qgkb03JQgoooUt/B6ZmatK bsencw1UuNvNTVJGgQSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZRlu-00000004dNw-0q5o; Mon, 12 Feb 2024 08:34:38 +0000 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZRlp-00000004dLH-3LuM for linux-arm-kernel@lists.infradead.org; Mon, 12 Feb 2024 08:34:35 +0000 Received: by mail-wr1-x433.google.com with SMTP id ffacd0b85a97d-33b7e136a48so498288f8f.0 for ; Mon, 12 Feb 2024 00:34:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707726871; x=1708331671; 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=n00h9GUfOjmdouhiAceBbh8Ez7j7mnB3Royxt1AWIfw=; b=q2YFp+aEqJHZuIVPSC2GVSNee5vBeXszu6Ya1p7/Qz6gxEh+b29Y+cluo/prnzysZv WfQBYrvejtaSK50kELaduqN5EaJSFpTkNd2pBaIu/JzPWXA8/HNjGImdqzsYmKwPVyC5 RmW3bFEB8dm4RFhaF6fY6LlBr4nO+y3BTwg0R0B3y197I+XebFlFJO3BMIHWDuAXYwXE vKUQXXkDTxApH1v2pqMhPkm/gPCjDREnf9szAO3S80yG2Nb0YL37EMM1IQ81KLbykKc5 6mxz/xuWrSSQls8Yok6iii41iaQnx/x3QuGWRPJueJcZJbIMWKJ/aQ83NLA4jGO+niEH eEhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707726871; x=1708331671; 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=n00h9GUfOjmdouhiAceBbh8Ez7j7mnB3Royxt1AWIfw=; b=ddknaHE4Awu9QsKdaFyiq0cQvqE5xL7vO9SCBwj/UQJC9EIRCQ4YbHIOQb4CyboIDl 1+2yYCfsDvVvJDvhSHLL+OCgligDT/cUCVfb8ctGfKrkocLoN0FHYLLvAflD7LYWpeFn 0Jk8ZTGczuMBpEdQunbyeOCzk7FXd51gZ7DK/hl9xi2Jug2CnqEcjdrSy0eO8yxyEmjI y4GDW/y+NKfdK8/OCS2dJRBUxXOPx+WPIHzE2J3UyX3grKu7po1RHW6aCuxdF1OddOq1 dwIalVg5iWeout+2EiBAMVrumGB5Wm+26KQdQsrgp/SnPkJIKzpuIXySBrj1uFy3OKEr 17Kw== X-Gm-Message-State: AOJu0YwUW6T4gZuSvhZdGf3GEsRHeYj3LnYDLwJRzXkrZ/pkBQfEM+7t OEnu3sJnhqoH8rCdd8jSc2sepRxCCfd0fPIgnsJikUCnFtuVMiy2aa4M1DOppys= X-Google-Smtp-Source: AGHT+IGuASWV6pU/NjalZ9asEei4Dq9uO9jA7EJJuK93dN3gaO8t45e4ckwP1vCBenvpeW0kBEEIXA== X-Received: by 2002:adf:ffcc:0:b0:33b:72f2:2283 with SMTP id x12-20020adfffcc000000b0033b72f22283mr3898515wrs.17.1707726871337; Mon, 12 Feb 2024 00:34:31 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWIMPGbPGKj/ISTNTpZQ5sl+ZSeRI5+lO+VSwkznpnFqPHBMRhMJOWz/d+js7L9/KYpGTXAG7BTK/aCsHZfd4LlTrCbcifFKOL4weDCk2KgCjrTMssGtDgsi4ViMi4QnA8zkJ46f+XrHkMNVVR2XozK+PS/NTBD0DGWjdMz8uUcI+MMYe8naqzALQRlgn1gmgs6B/s8IikEtiSroDkNDBjh/XFWj4iM2dPGoxC8L8CYpi+63Hb2YSX7ap+F7ro+O4q4KtcfZxdjzYPl2CmEvFvLKsTrOzv4vGE1b/pcdKEqVrDozwwhJFTDFi9cF+L4TSIM7tN8GSqa4jRCNJcRW+H9AH+sBCjYjY80iYz2e3Tw8tNmaUifylSR1g4coXGoFG61bogPUEA9J7XmJDo= Received: from krzk-bin.. ([178.197.223.6]) by smtp.gmail.com with ESMTPSA id y12-20020a056000108c00b0033b40a3f92asm6111024wrw.25.2024.02.12.00.34.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 00:34:30 -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 2/3] dt-bindings: auxdisplay: adjust example indentation and use generic node names Date: Mon, 12 Feb 2024 09:34:25 +0100 Message-Id: <20240212083426.26757-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240212083426.26757-1-krzysztof.kozlowski@linaro.org> References: <20240212083426.26757-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240212_003433_871342_4E8486E4 X-CRM114-Status: GOOD ( 13.82 ) 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 The example DTS should be indented with two or four (preferred) spaces, as mentioned in Writing Schema document. While re-indenting, change the node names to somehow generic names, as expected by Devicetree specification. Cc: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski Reviewed-by: Andy Shevchenko --- .../auxdisplay/arm,versatile-lcd.yaml | 4 +- .../bindings/auxdisplay/hit,hd44780.yaml | 44 ++++++++-------- .../bindings/auxdisplay/holtek,ht16k33.yaml | 50 +++++++++---------- .../bindings/auxdisplay/img,ascii-lcd.yaml | 4 +- 4 files changed, 51 insertions(+), 51 deletions(-) diff --git a/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml b/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml index 5d02bd032a85..439f7b811a94 100644 --- a/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml @@ -39,6 +39,6 @@ additionalProperties: false examples: - | lcd@10008000 { - compatible = "arm,versatile-lcd"; - reg = <0x10008000 0x1000>; + compatible = "arm,versatile-lcd"; + reg = <0x10008000 0x1000>; }; diff --git a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml index 73d07f2cb303..1c7fd29bbcc7 100644 --- a/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/hit,hd44780.yaml @@ -84,32 +84,32 @@ additionalProperties: false examples: - | #include - auxdisplay { - compatible = "hit,hd44780"; + display-controller { + compatible = "hit,hd44780"; - data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, - <&hc595 1 GPIO_ACTIVE_HIGH>, - <&hc595 2 GPIO_ACTIVE_HIGH>, - <&hc595 3 GPIO_ACTIVE_HIGH>; - enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; - rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; + data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>, + <&hc595 1 GPIO_ACTIVE_HIGH>, + <&hc595 2 GPIO_ACTIVE_HIGH>, + <&hc595 3 GPIO_ACTIVE_HIGH>; + enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>; + rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>; - display-height-chars = <2>; - display-width-chars = <16>; + display-height-chars = <2>; + display-width-chars = <16>; }; - | #include - hd44780 { - 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>; + display-controller { + 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>; }; diff --git a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml index be95f6b97b41..b90eec2077b4 100644 --- a/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml @@ -74,31 +74,31 @@ examples: #include #include i2c { - #address-cells = <1>; - #size-cells = <0>; + #address-cells = <1>; + #size-cells = <0>; - ht16k33: ht16k33@70 { - compatible = "holtek,ht16k33"; - reg = <0x70>; - refresh-rate-hz = <20>; - interrupt-parent = <&gpio4>; - interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; - debounce-delay-ms = <50>; - linux,keymap = , - , - , - , - , - , - , - , - , - ; + display-controller@70 { + compatible = "holtek,ht16k33"; + reg = <0x70>; + refresh-rate-hz = <20>; + interrupt-parent = <&gpio4>; + interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; + debounce-delay-ms = <50>; + linux,keymap = , + , + , + , + , + , + , + , + , + ; - led { - color = ; - function = LED_FUNCTION_BACKLIGHT; - linux,default-trigger = "backlight"; - }; + led { + color = ; + function = LED_FUNCTION_BACKLIGHT; + linux,default-trigger = "backlight"; }; - }; + }; + }; diff --git a/Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml b/Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml index 1899b23de7d1..55e9831b3f67 100644 --- a/Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml +++ b/Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml @@ -50,6 +50,6 @@ additionalProperties: false examples: - | lcd: lcd@17fff000 { - compatible = "img,boston-lcd"; - reg = <0x17fff000 0x8>; + compatible = "img,boston-lcd"; + reg = <0x17fff000 0x8>; };