From patchwork Tue Jun 15 13:13:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Ricardo_Ca=C3=B1uelo?= X-Patchwork-Id: 12322141 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB41EC48BE8 for ; Tue, 15 Jun 2021 15:19:18 +0000 (UTC) Received: from bombadil.infradead.org (unknown [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7E2666115C for ; Tue, 15 Jun 2021 15:19:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E2666115C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=cT2AT37zQD8NB7fDIjBwTfkx1E9A0Sg+7CVjU28N6to=; b=gvYkNetXHWYpRp 8xxrlpZjS1KL30yhnivFGjFAMi4XWzJvuV6e4kIXPP7MmgkL2ttqwndVf8UPNR7Gu+xclMLQe4wSg EEBPAPxo4ZLfoOMuUb/MvcgZYrLLEQYHt5CjGjl9aOIWIWKA3Hk56CeQ2A/6V73lu3lonKH/0/0O7 vapk7s6GxkWX70FvmTtI5/rattF3pQCN+qv8k80VpunwZcYRHwEvFzR1FDPNg34ujhAd4MQXheYsh 51FwIfsDzuFsa+M9Y5P/I/QJpvOgX21TCP3jzNPHgrYLw6Ao52JAhka59TEEkihiWQti7F7WQvWuJ XYsdUbj3VQzu+3k85HDA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltAjl-000s6f-L4; Tue, 15 Jun 2021 15:12:22 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt9CA-000ByJ-J1 for linux-arm-kernel@bombadil.infradead.org; Tue, 15 Jun 2021 13:33:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=YGoed8zCh7OEoYGpEE9NERRHzoLG+acfEZg+TnIXo3s=; b=Ot30rfQHP+L0oP6uLJc5DYhNHS GiN+YIVDW/NhuixWPSVGQDbkppxh/9/rymzLOyLbOfrWAN7IDuU0BHnQWpM1j+wKz/vqDj7LwIBS/ OIohVfyK1u/avYeIPGPBq84v2ug2Kf0EvsHtk/2TyfFeNXntr0pder8DK5BOLAiIrAT5z72USPvo/ HAtKSBEKEBdxQnZoNYz81k3img3RdGeggBE83ZfwOK+5nZQ149lgmkDwk+XVBvygq8pZ2L/X9X9G5 4vQwpeLM1QoUNYf8u0l8bthvU4qzDWM5LhoO7gXWRwE5W21LQ4BF3z1Ou5GtXpsBfX5fcJdpkj0Q4 CWcVYSgA==; Received: from bhuna.collabora.co.uk ([46.235.227.227]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lt8t3-007uU6-W8 for linux-arm-kernel@lists.infradead.org; Tue, 15 Jun 2021 13:14:02 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: rcn) with ESMTPSA id DE0661F42ECE From: =?utf-8?q?Ricardo_Ca=C3=B1uelo?= To: airlied@linux.ie, daniel@ffwll.ch, michal.simek@xilinx.com, alexandre.torgue@foss.st.com, laurent.pinchart@ideasonboard.com Cc: kernel@collabora.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, xuwei5@hisilicon.com, mcoquelin.stm32@gmail.com, marex@denx.de Subject: [RESEND PATCH v4 0/3] Convert adi,adv7511.txt DT bindings to yaml Date: Tue, 15 Jun 2021 15:13:30 +0200 Message-Id: <20210615131333.2272473-1-ricardo.canuelo@collabora.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210615_141356_961675_4897706A X-CRM114-Status: GOOD ( 19.52 ) 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 Hi all, I'm rescuing and resending this patch series again, as it got reviewed but parts of it didn't make it to mainline. The previous version can be found in https://lore.kernel.org/linux-devicetree/20200601063308.13045-1-ricardo.canuelo@collabora.com/ This series convert the adi,adv7511.txt DT bindings to json-schema. As a result of the conversion some dts files needed to be updated. The changes to the dts files are of three types: - Reordering of the I2C slave addresses list of the ADV75xx node. The addresses in the 'reg' property and the matching names in 'reg-names' for an I2C slave don't need to be in any particular order, but the DT schema defines these properties as a cell array and a string array respectively, which are ordered, so the definitions in the dts files must match the order in the binding. - Filling the minimum binding requirements. Most of the time this means creating a 'ports' node in the boards that don't define them. Note, however, that the purpose of this is simply to make the definition compliant with the binding. I didn't define any endpoints for the ports. - Removing unneeded properties. About the binding conversion: - The original binding covered five different devices: ADV7511, ADV7511W, ADV7513, ADV7533 and ADV7535. They all share a common set of properties but ADV7533 and ADV7535 have enough differences from the rest to warrant their own binding file. In v1 I modelled all the properties constraints for all five devices in a single file but it turned out a bit too complex. Splitting the binding into one for ADV7511/11W/13 and another for ADV7533/35 makes them much easier to read and maintain. Patches 1/4 to 3/4 contain the dts changes. Patch 4/4 contains the binding conversion. NOTE: the bindings have been tested with: make dt_binding_check ARCH= DT_SCHEMA_FILES=<...adi,adv7511.yaml> make dt_binding_check ARCH= DT_SCHEMA_FILES=<...adi,adv7533.yaml> make dtbs_check ARCH= DT_SCHEMA_FILES=<...adi,adv7511.yaml> make dtbs_check ARCH= DT_SCHEMA_FILES=<...adi,adv7533.yaml> for = arm and arm64. dts changes haven't been tested in hardware. Some existing DTs are expected to fail after this conversion. Changes in v4: - Removed from the patch series (already in mainline): - arm64: dts: hisilicon: hikey: fixes to comply with adi,adv7533 DT binding. - Update binding examples to comply with the current schema checks. - Update the license in the binding files. Ricardo CaƱuelo (3): ARM: dts: zynq: add port definitions to hdmi-tx@39 ARM: dts: stm32: make hdmi-transmitter node compliant with DT bindings dt-bindings: drm: bridge: adi,adv7511.txt: convert to yaml .../bindings/display/bridge/adi,adv7511.txt | 143 ----------- .../bindings/display/bridge/adi,adv7511.yaml | 241 ++++++++++++++++++ .../bindings/display/bridge/adi,adv7533.yaml | 184 +++++++++++++ .../boot/dts/stm32mp15xx-dhcor-avenger96.dtsi | 6 +- arch/arm/boot/dts/zynq-zc702.dts | 10 + arch/arm/boot/dts/zynq-zc706.dts | 10 + 6 files changed, 447 insertions(+), 147 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/bridge/adi,adv7511.txt create mode 100644 Documentation/devicetree/bindings/display/bridge/adi,adv7511.yaml create mode 100644 Documentation/devicetree/bindings/display/bridge/adi,adv7533.yaml