15956d97fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 25956d97fSEmmanuel Vadot%YAML 1.2 35956d97fSEmmanuel Vadot--- 45956d97fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/panel/samsung,lms397kf04.yaml# 55956d97fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 65956d97fSEmmanuel Vadot 75956d97fSEmmanuel Vadottitle: Samsung LMS397KF04 display panel 85956d97fSEmmanuel Vadot 95956d97fSEmmanuel Vadotdescription: The datasheet claims this is based around a display controller 105956d97fSEmmanuel Vadot named DB7430 with a separate backlight controller. 115956d97fSEmmanuel Vadot 125956d97fSEmmanuel Vadotmaintainers: 135956d97fSEmmanuel Vadot - Linus Walleij <linus.walleij@linaro.org> 145956d97fSEmmanuel Vadot 155956d97fSEmmanuel VadotallOf: 165956d97fSEmmanuel Vadot - $ref: panel-common.yaml# 17*8bab661aSEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 185956d97fSEmmanuel Vadot 195956d97fSEmmanuel Vadotproperties: 205956d97fSEmmanuel Vadot compatible: 215956d97fSEmmanuel Vadot const: samsung,lms397kf04 225956d97fSEmmanuel Vadot 235956d97fSEmmanuel Vadot reg: true 245956d97fSEmmanuel Vadot 255956d97fSEmmanuel Vadot reset-gpios: true 265956d97fSEmmanuel Vadot 275956d97fSEmmanuel Vadot vci-supply: 285956d97fSEmmanuel Vadot description: regulator that supplies the VCI analog voltage 295956d97fSEmmanuel Vadot usually around 3.0 V 305956d97fSEmmanuel Vadot 315956d97fSEmmanuel Vadot vccio-supply: 325956d97fSEmmanuel Vadot description: regulator that supplies the VCCIO voltage usually 335956d97fSEmmanuel Vadot around 1.8 V 345956d97fSEmmanuel Vadot 355956d97fSEmmanuel Vadot backlight: true 365956d97fSEmmanuel Vadot 37354d7675SEmmanuel Vadot spi-cpha: true 38354d7675SEmmanuel Vadot 39354d7675SEmmanuel Vadot spi-cpol: true 40354d7675SEmmanuel Vadot 415956d97fSEmmanuel Vadot spi-max-frequency: 425956d97fSEmmanuel Vadot description: inherited as a SPI client node, the datasheet specifies 435956d97fSEmmanuel Vadot maximum 300 ns minimum cycle which gives around 3 MHz max frequency 445956d97fSEmmanuel Vadot maximum: 3000000 455956d97fSEmmanuel Vadot 465956d97fSEmmanuel Vadot port: true 475956d97fSEmmanuel Vadot 485956d97fSEmmanuel Vadotrequired: 495956d97fSEmmanuel Vadot - compatible 505956d97fSEmmanuel Vadot - reg 51354d7675SEmmanuel Vadot - spi-cpha 52354d7675SEmmanuel Vadot - spi-cpol 53354d7675SEmmanuel Vadot - port 545956d97fSEmmanuel Vadot 55*8bab661aSEmmanuel VadotunevaluatedProperties: false 565956d97fSEmmanuel Vadot 575956d97fSEmmanuel Vadotexamples: 585956d97fSEmmanuel Vadot - | 595956d97fSEmmanuel Vadot #include <dt-bindings/gpio/gpio.h> 605956d97fSEmmanuel Vadot 615956d97fSEmmanuel Vadot spi { 62354d7675SEmmanuel Vadot compatible = "spi-gpio"; 63354d7675SEmmanuel Vadot sck-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 64354d7675SEmmanuel Vadot miso-gpios = <&gpio 1 GPIO_ACTIVE_HIGH>; 65354d7675SEmmanuel Vadot mosi-gpios = <&gpio 2 GPIO_ACTIVE_HIGH>; 66354d7675SEmmanuel Vadot cs-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>; 67354d7675SEmmanuel Vadot num-chipselects = <1>; 685956d97fSEmmanuel Vadot #address-cells = <1>; 695956d97fSEmmanuel Vadot #size-cells = <0>; 705956d97fSEmmanuel Vadot panel@0 { 715956d97fSEmmanuel Vadot compatible = "samsung,lms397kf04"; 725956d97fSEmmanuel Vadot spi-max-frequency = <3000000>; 73354d7675SEmmanuel Vadot spi-cpha; 74354d7675SEmmanuel Vadot spi-cpol; 755956d97fSEmmanuel Vadot reg = <0>; 765956d97fSEmmanuel Vadot vci-supply = <&lcd_3v0_reg>; 775956d97fSEmmanuel Vadot vccio-supply = <&lcd_1v8_reg>; 78354d7675SEmmanuel Vadot reset-gpios = <&gpio 4 GPIO_ACTIVE_LOW>; 795956d97fSEmmanuel Vadot backlight = <&ktd259>; 805956d97fSEmmanuel Vadot 815956d97fSEmmanuel Vadot port { 825956d97fSEmmanuel Vadot panel_in: endpoint { 835956d97fSEmmanuel Vadot remote-endpoint = <&display_out>; 845956d97fSEmmanuel Vadot }; 855956d97fSEmmanuel Vadot }; 865956d97fSEmmanuel Vadot }; 875956d97fSEmmanuel Vadot }; 885956d97fSEmmanuel Vadot 895956d97fSEmmanuel Vadot... 90