Frieder Schrempf | 199dfd9 | 2021-09-29 16:42:42 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
| 2 | /* |
| 3 | * Copyright (C) 2019 Kontron Electronics GmbH |
| 4 | */ |
| 5 | |
| 6 | #include "imx8mm-kontron-n801x-s.dts" |
| 7 | |
| 8 | / { |
| 9 | model = "Kontron i.MX8MM N801X S LVDS"; |
| 10 | compatible = "kontron,imx8mm-n801x-s-lvds", "fsl,imx8mm"; |
| 11 | |
| 12 | backlight: backlight { |
| 13 | compatible = "pwm-backlight"; |
| 14 | pwms = <&pwm1 0 50000>; /* period = 5000000 ns => f = 200 Hz */ |
| 15 | power-supply = <®_vdd_24v>; |
| 16 | brightness-levels = <0 100>; |
| 17 | num-interpolated-steps = <100>; |
| 18 | default-brightness-level = <100>; |
| 19 | status = "okay"; |
| 20 | }; |
| 21 | |
| 22 | reg_panel_pwr: regpanel-pwr { |
| 23 | compatible = "regulator-fixed"; |
| 24 | regulator-name = "reg_panel_pwr"; |
| 25 | regulator-always-on; |
| 26 | gpio = <&gpio3 19 GPIO_ACTIVE_HIGH>; |
| 27 | enable-active-high; |
| 28 | }; |
| 29 | |
| 30 | reg_panel_rst: regpanel-rst { |
| 31 | compatible = "regulator-fixed"; |
| 32 | regulator-name = "reg_panel_rst"; |
| 33 | regulator-always-on; |
| 34 | gpio = <&gpio3 20 GPIO_ACTIVE_HIGH>; |
| 35 | enable-active-high; |
| 36 | }; |
| 37 | |
| 38 | reg_panel_stby: regpanel-stby { |
| 39 | compatible = "regulator-fixed"; |
| 40 | regulator-name = "reg_panel_stby"; |
| 41 | regulator-always-on; |
| 42 | gpio = <&gpio3 21 GPIO_ACTIVE_HIGH>; |
| 43 | enable-active-high; |
| 44 | }; |
| 45 | |
| 46 | reg_panel_hinv: regpanel-hinv { |
| 47 | compatible = "regulator-fixed"; |
| 48 | regulator-name = "reg_panel_hinv"; |
| 49 | regulator-always-on; |
| 50 | gpio = <&gpio3 24 GPIO_ACTIVE_HIGH>; |
| 51 | enable-active-high; |
| 52 | }; |
| 53 | |
| 54 | reg_panel_vinv: regpanel-vinv { |
| 55 | compatible = "regulator-fixed"; |
| 56 | regulator-name = "reg_panel_vinv"; |
| 57 | gpio = <&gpio3 25 GPIO_ACTIVE_HIGH>; |
| 58 | enable-active-high; |
| 59 | }; |
| 60 | |
| 61 | reg_vdd_24v: regulator-24v { |
| 62 | compatible = "regulator-fixed"; |
| 63 | regulator-name = "reg-vdd-24v"; |
| 64 | regulator-min-microvolt = <24000000>; |
| 65 | regulator-max-microvolt = <24000000>; |
| 66 | regulator-boot-on; |
| 67 | regulator-always-on; |
| 68 | status = "okay"; |
| 69 | }; |
| 70 | }; |
| 71 | |
| 72 | &i2c2 { |
| 73 | status = "okay"; |
| 74 | |
| 75 | gt911@5d { |
| 76 | compatible = "goodix,gt928"; |
| 77 | reg = <0x5d>; |
| 78 | pinctrl-names = "default"; |
| 79 | pinctrl-0 = <&pinctrl_touch>; |
| 80 | interrupt-parent = <&gpio3>; |
| 81 | interrupts = <22 8>; |
| 82 | reset-gpios = <&gpio3 23 0>; |
| 83 | irq-gpios = <&gpio3 22 0>; |
| 84 | }; |
| 85 | }; |
| 86 | |
| 87 | &pwm1 { |
| 88 | pinctrl-names = "default"; |
| 89 | pinctrl-0 = <&pinctrl_pwm1>; |
| 90 | status = "okay"; |
| 91 | }; |
| 92 | |
| 93 | &iomuxc { |
| 94 | pinctrl_panel: panelgrp { |
| 95 | fsl,pins = < |
| 96 | MX8MM_IOMUXC_SAI5_RXFS_GPIO3_IO19 0x19 /* TFT-PWR - family */ |
| 97 | MX8MM_IOMUXC_SAI5_RXC_GPIO3_IO20 0x19 /* RESET family */ |
| 98 | MX8MM_IOMUXC_SAI5_RXD0_GPIO3_IO21 0x19 /* STBY family */ |
| 99 | MX8MM_IOMUXC_SAI5_RXD3_GPIO3_IO24 0x19 /* HINV panel */ |
| 100 | MX8MM_IOMUXC_SAI5_MCLK_GPIO3_IO25 0x19 /* VINV panel */ |
| 101 | >; |
| 102 | }; |
| 103 | |
| 104 | pinctrl_pwm1: pwm1grp { |
| 105 | fsl,pins = < |
| 106 | MX8MM_IOMUXC_SPDIF_EXT_CLK_PWM1_OUT 0x6 |
| 107 | >; |
| 108 | }; |
| 109 | |
| 110 | pinctrl_touch: touchgrp { |
| 111 | fsl,pins = < |
| 112 | MX8MM_IOMUXC_SAI5_RXD1_GPIO3_IO22 0x19 /* Touch Interrupt */ |
| 113 | MX8MM_IOMUXC_SAI5_RXD2_GPIO3_IO23 0x19 /* Touch Reset */ |
| 114 | >; |
| 115 | }; |
| 116 | }; |