From patchwork Sat Feb 22 13:05:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 236722 List-Id: U-Boot discussion From: dariobin at libero.it (Dario Binacchi) Date: Sat, 22 Feb 2020 14:05:36 +0100 Subject: [PATCH v3 00/13] Add DM/DTS support for omap video driver Message-ID: <20200222130549.25565-1-dariobin@libero.it> Changes: - Fix coding style - Refactor some parts of the driver - Add support for driver model and device-tree - Update the boards device-tree - Add device-tree binding documentation Changes in v3: - Add panel to the root node so that the dts linux file of the board does not need to be updated. Changes in v2: - Use GENMASK macro too - Use GENMASK macro - Use GENMASK macro for clock divisor mask - Move clock enabling sequence to arch/arm/mach-omap2/ - Create a Kconfig symbol for CONFIG_AM335X_LCD - Change subject line in: arm: dts: am335x: - Move 'u-boot,dm-pre-reloc' property in *-u-boot.dtsi files for boards tha support Linux Dario Binacchi (13): video: omap: use BIT() and GENMASK() macros video: omap: add missing bitfield masks video: omap: fix coding style on use of spaces video: omap: fix bitfields order video: omap: rename LCD controller registers video: omap: fix debug message video: omap: add loop exit conditions to the dpll setup video: omap: create two routines to set the pixel clock rate video: omap: add support for DM/DTS arm: dts: am335x: add 'u-boot,dm-pre-reloc' to panel fdt: video: omap: add framebuffer and panel bindings video: omap: fix pixel-per-line bitfield setting board: brxre1: fix building errors arch/arm/dts/am335x-brppt1-mmc.dts | 2 + arch/arm/dts/am335x-brppt1-nand.dts | 2 + arch/arm/dts/am335x-brppt1-spi.dts | 2 + arch/arm/dts/am335x-brsmarc1.dts | 1 + arch/arm/dts/am335x-brxre1.dts | 2 + arch/arm/dts/am335x-evm-u-boot.dtsi | 6 + arch/arm/dts/am335x-evmsk-u-boot.dtsi | 12 + arch/arm/dts/am335x-guardian-u-boot.dtsi | 4 + arch/arm/dts/am335x-pdu001-u-boot.dtsi | 4 + arch/arm/dts/am335x-pxm50-u-boot.dtsi | 12 + arch/arm/dts/am335x-rut-u-boot.dtsi | 12 + arch/arm/dts/da850-evm-u-boot.dtsi | 4 + arch/arm/mach-omap2/am33xx/clock_am33xx.c | 4 + board/BuR/common/br_resetc.c | 2 +- board/BuR/common/bur_common.h | 3 + board/BuR/common/common.c | 2 +- .../video/tilcdc/panel.txt | 66 ++ .../video/tilcdc/tilcdc.txt | 82 +++ drivers/video/Kconfig | 6 + drivers/video/am335x-fb.c | 567 +++++++++++++++--- drivers/video/am335x-fb.h | 16 +- include/configs/brxre1.h | 2 + 22 files changed, 713 insertions(+), 100 deletions(-) create mode 100644 arch/arm/dts/am335x-evmsk-u-boot.dtsi create mode 100644 arch/arm/dts/am335x-pxm50-u-boot.dtsi create mode 100644 arch/arm/dts/am335x-rut-u-boot.dtsi create mode 100644 doc/device-tree-bindings/video/tilcdc/panel.txt create mode 100644 doc/device-tree-bindings/video/tilcdc/tilcdc.txt