Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp185005imn; Fri, 1 Jul 2022 12:42:43 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uJ38PvEq0gaal1vylhixK4hUX/jSKthZs/TGC4RvVstvAWBFiXn3kZX37ny7VRMhgUimwR X-Received: by 2002:a17:906:49:b0:6f3:bb5e:54a8 with SMTP id 9-20020a170906004900b006f3bb5e54a8mr15244504ejg.534.1656704563222; Fri, 01 Jul 2022 12:42:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656704563; cv=none; d=google.com; s=arc-20160816; b=UHVa00W6Nf/f5huQ18ZrEVLz/cx78fMxmLVJnWe2qG007YQJ8KWuYWVfYxqsxHTa9j rR0e+99a2dulV+1xu8EfkAhUaqpVNXzTVkZ9qWYtjEFdz6msle9RtVTeiwSNL3TP0YML cIizU8rA7ahhpPcK2wh46KNoULmFni43lTRzn9RcYHcw15oC25Q+NFZHc1xSqnMyweRS bn96RQx8vZScpUhbRi0Px2mUhYfSokk8uQYpiYqM0ndul+DKYLaFZI4FpvFFW6/DAh0R 4o1jxucmt2HSjSablLQmvccsgtTXX6It06YAjGBkphab5bjxyM/bNW2dxP2QPa0OawAK sS9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=I3BjWvucdRFvohacwJ3jYd8p0VPrMYvEd2khIu7aHRc=; b=fjxcmFntl5MuuHZ2OYyfxs+/ut1aXkaWB93/gHNBHcAJADYUhtGWkdli6Gaxk9nECI ztfxRwdl4+O3/JkOsR+ZGLC1ZxLjyC+H3XCORiWSiuHDesTfxKTyT64LrcYKniMTCQ2S xIX6b4KOIH8LjytxV9GNsXL5fzeJ5H8yRwrLu3bPk+AbmrbYHj6qtXRPtg0yzr7RDPa8 QVJOGzrZnIPu7/A1aHcpPBRH9aEPz+86JyPv8pw9w/v/set/2KyuzdRBu8IaS/5XuhGW qDnQ9ATihL30kbP6Y22akGo6YNJNAxgpriLu/Cn08cKgK9urDSF9LnB3o8bsnGNFzJvn 7q9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LGEFwfaz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u23-20020a1709060b1700b007269f7adbadsi7249905ejg.670.2022.07.01.12.42.07; Fri, 01 Jul 2022 12:42:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LGEFwfaz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230308AbiGATXp (ORCPT + 99 others); Fri, 1 Jul 2022 15:23:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229534AbiGATXn (ORCPT ); Fri, 1 Jul 2022 15:23:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D814913F7B; Fri, 1 Jul 2022 12:23:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 7335F61F5A; Fri, 1 Jul 2022 19:23:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28B5AC341CF; Fri, 1 Jul 2022 19:23:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656703421; bh=1yg6g6Dt75IP1Wz+MvEhKMC/hFgjUrx+vobCiTAxcA0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LGEFwfazLXWdnjF7RfZu70c+iyAMNhheupFJDlre0rMUFX7dgNHtIyrKzW0qbgjrP JD4dj8j8Jr9h1lyw7bXiA7krq0lPFTJybbSiz00+BHkPGLU7LH4effDGs3223Rq29k 9vP8iw1sy2jXyx9bdjH+5ym1oQ9gKiNMvnYJjkJJrE3HsihQOWKscB6lftTFkMkK4f seaPjeUJMiO5EVvE+HjLNATOJ7kwwOhr37S6dd3DlyghozH0wBRd6eNUJumyA/1qow iAJ6zxAOMlbJflV/t+AAKihjgWPjg8tkvPz9vJkFAFuw6LCDXdD/1j5tP68epptPtr mssqwzdKe+niQ== From: Conor Dooley To: David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Thierry Reding , Sam Ravnborg , Eugeniy Paltsev , Vinod Koul , Liam Girdwood , Mark Brown , Serge Semin , Daniel Lezcano , Palmer Dabbelt , Palmer Dabbelt Cc: Paul Walmsley , Albert Ou , Conor Dooley , Masahiro Yamada , Damien Le Moal , Geert Uytterhoeven , Niklas Cassel , Dillon Min , Jose Abreu , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dmaengine@vger.kernel.org, alsa-devel@alsa-project.org, linux-riscv@lists.infradead.org, Rob Herring Subject: [PATCH v4 01/14] dt-bindings: display: convert ilitek,ili9341.txt to dt-schema Date: Fri, 1 Jul 2022 20:22:47 +0100 Message-Id: <20220701192300.2293643-2-conor@kernel.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220701192300.2293643-1-conor@kernel.org> References: <20220701192300.2293643-1-conor@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Conor Dooley A dt-schema binding for the Ilitek ili9341 was created as panel/ilitek,ili9341.yaml but the txt binding was ignored in the process. Move the remaining items in the txt binding to the yaml one & delete it. The example in the txt binding has a spi-max-frequency which disagrees with the yaml replacement (and its own documentation) so change that to conform with the binding. There are no users in tree of the Adafruit yx240qv29 to check against. Link: https://cdn-learn.adafruit.com/assets/assets/000/046/879/original/SPEC-YX240QV29-T_Rev.A__1_.pdf Reviewed-by: Rob Herring Signed-off-by: Conor Dooley --- .../bindings/display/ilitek,ili9341.txt | 27 ----------- .../display/panel/ilitek,ili9341.yaml | 48 +++++++++++++------ 2 files changed, 34 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/ilitek,ili9341.txt diff --git a/Documentation/devicetree/bindings/display/ilitek,ili9341.txt b/Documentation/devicetree/bindings/display/ilitek,ili9341.txt deleted file mode 100644 index 169b32e4ee4e..000000000000 --- a/Documentation/devicetree/bindings/display/ilitek,ili9341.txt +++ /dev/null @@ -1,27 +0,0 @@ -Ilitek ILI9341 display panels - -This binding is for display panels using an Ilitek ILI9341 controller in SPI -mode. - -Required properties: -- compatible: "adafruit,yx240qv29", "ilitek,ili9341" -- dc-gpios: D/C pin -- reset-gpios: Reset pin - -The node for this driver must be a child node of a SPI controller, hence -all mandatory properties described in ../spi/spi-bus.txt must be specified. - -Optional properties: -- rotation: panel rotation in degrees counter clockwise (0,90,180,270) -- backlight: phandle of the backlight device attached to the panel - -Example: - display@0{ - compatible = "adafruit,yx240qv29", "ilitek,ili9341"; - reg = <0>; - spi-max-frequency = <32000000>; - dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; - reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; - rotation = <270>; - backlight = <&backlight>; - }; diff --git a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml index 6058948a9764..c5571391ca28 100644 --- a/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml +++ b/Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml @@ -21,6 +21,7 @@ properties: compatible: items: - enum: + - adafruit,yx240qv29 # ili9341 240*320 Color on stm32f429-disco board - st,sf-tc240t-9370-t - const: ilitek,ili9341 @@ -47,31 +48,50 @@ properties: vddi-led-supply: description: Voltage supply for the LED driver (1.65 .. 3.3 V) -additionalProperties: false +unevaluatedProperties: false required: - compatible - reg - dc-gpios - - port + +if: + properties: + compatible: + contains: + enum: + - st,sf-tc240t-9370-t +then: + required: + - port examples: - |+ + #include spi { #address-cells = <1>; #size-cells = <0>; panel: display@0 { - compatible = "st,sf-tc240t-9370-t", - "ilitek,ili9341"; - reg = <0>; - spi-3wire; - spi-max-frequency = <10000000>; - dc-gpios = <&gpiod 13 0>; - port { - panel_in: endpoint { - remote-endpoint = <&display_out>; - }; - }; - }; + compatible = "st,sf-tc240t-9370-t", + "ilitek,ili9341"; + reg = <0>; + spi-3wire; + spi-max-frequency = <10000000>; + dc-gpios = <&gpiod 13 0>; + port { + panel_in: endpoint { + remote-endpoint = <&display_out>; + }; + }; + }; + display@1{ + compatible = "adafruit,yx240qv29", "ilitek,ili9341"; + reg = <1>; + spi-max-frequency = <10000000>; + dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; + reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; + rotation = <270>; + backlight = <&backlight>; }; + }; ... -- 2.37.0