| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246 |
- // SPDX-License-Identifier: GPL-2.0
- /dts-v1/;
- #include "ark1668e.dtsi"
- #include "ark1668e-pinctrl.dtsi"
- //#define I2S_USE_EXTERNAL_CODEC
- //#define DYNAMIC_TRACK_DISPLAY
- / {
- i2c-gpio-0 {
- #address-cells = <1>;
- #size-cells = <0>;
- compatible = "i2c-gpio";
- gpios = <&gportf 25 0 /* SDA */
- &gportf 24 0 /* SCL */
- >;
- i2c-gpio,delay-us = <6>; /* clk freq = 500/delay KHz */
- i2c-gpio,scl-output-only;
- amp:drv_bd37033@40{
- status = "okay";
- compatible = "arkmicro,drv_bd37033";
- reg = <0x40>; /* i2c address(7 bit)*/
- flout-gain = <65>; /*min = 0 ;max = 95*/
- frout-gain = <65>; /*min = 0 ;max = 95*/
- rlout-gain = <65>; /*min = 0 ;max = 95*/
- rrout-gain = <65>; /*min = 0 ;max = 95*/
- #sound-dai-cells = <0>;
- };
- };
- i2c-gpio-1 {
- #address-cells = <1>;
- #size-cells = <0>;
- compatible = "i2c-gpio";
- gpios = <&gportf 29 0 /* SDA */
- &gportf 28 0 /* SCL */
- >;
- i2c-gpio,delay-us = <6>; /* clk freq = 500/delay KHz */
- i2c-gpio,scl-output-only;
- ark7116: ark7116@B2 {
- compatible = "arkmicro,ark7116_1668e_devb";
- reset-gpio = <&gportf 27 0>;
- reg = <0x59>; /* i2c address(7 bits) */
- default-channel = <0>;
- carback-config = <1>;
- port {
- ark7116_0: endpoint@0{
- remote-endpoint = <&itu_1>;
- };
- };
- };
- rn6752: da380@4e {
- compatible = "arkmicro,ark1668e_rn6752";
- //reset-gpio = <&gpio3 11 0>;
- reg = <0x2c>; /* i2c address(7 bits) */
- default-channel = <0>; /* 0:channel A; 1:channel B */
- camera-format = <3>; /* 0:unknown; 1:cvbs pal; 2:cvbs ntsc; 3:720p pal; 4:720p ntsc */
- port {
- rn6752_0: endpoint@0{
- remote-endpoint = <&itu_0>;
- };
- };
- };
- mclk: mclk@12K {
- #clock-cells = <0>;
- compatible = "fixed-clock";
- clock-frequency = <12288000>;
- };
- escodec: es8316@10 {
- compatible = "arkmicro,es8316";
- reg = <0x10>;
- clocks = <&mclk>;
- clock-names = "mclk";
- #sound-dai-cells = <0>;
- };
- };
- cs4334_codec: ark1668e_cs4334_codec {
- status = "okay";
- compatible = "arkmicro,ark1668e_cs4334_codec";
- clock-names = "cs4334_mclk";
- clocks = <&mclk>;
- #sound-dai-cells = <0>;
- };
- cs5343_codec: ark1668e_cs5343_codec {
- status = "okay";
- compatible = "arkmicro,ark1668e_cs5343_codec";
- clock-names = "cs5343_mclk";
- clocks = <&mclk>;
- #sound-dai-cells = <0>;
- };
- adc {
- compatible = "arkmicro,ark1668e-adc";
- reg = <0xe4500000 0x1000
- 0xe4900000 0x1000>;
- interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
- };
- };
- &lcdc {
- display = <&display0>;
- pinctrl-names = "default";
- /* set pad only to prevent gpio use */
- pinctrl-0 = <&pinctrl_lcd_dlvds>;
- display0: display@0 {
- interface-type = "DLVDS";
- lvds-con = <0x4545>;
- lvds-con2 = <0xfa000101>;
- bits-per-pixel = <32>;
- fb-buffer-nums = <3>;
- power-control-gpio = <&gportd 0 GPIO_ACTIVE_HIGH>;
- lcd-wiring-mode = "RGB";
- lcdcon-backlight;
- pwms = <&pwm0 0 50000>;
- pwm-names = "backlight";
- backlight-value = <30>;
- backlight-delay = <200>;
- display-timings {
- native-mode = <&timing0>;
- timing0: timing0 {
- clock-frequency = <40000000>;
- hactive = <1280>;
- vactive = <480>;
- hback-porch = <20>;
- hfront-porch = <45>;
- vback-porch = <5>;
- vfront-porch = <10>;
- hsync-len = <5>;
- vsync-len = <6>;
- hsync-active = <1>;
- vsync-active = <1>;
- de-active = <0>;
- pixelclk-active = <0>;
- };
- };
- };
- };
- &usb0_phy {
- compatible = "usb-nop-xceiv";
- #phy-cells = <0>;
- status = "okay";
- };
- &usb0 {
- status = "okay";
- };
- &usb1_phy {
- compatible = "usb-nop-xceiv";
- #phy-cells = <0>;
- status = "okay";
- };
- &usb1 {
- status = "okay";
- };
- #ifdef DYNAMIC_TRACK_DISPLAY
- &uart3 {
- use-in-kernel;
- use-for-mcu;
- };
- #endif
- &ituin {
- status = "okay";
- channel = <1>; //for no pinctr
- x_pos = <0>;
- y_pos = <0>;
- //width = <800>; //if this line is commented out, it is displayed in full screen
- height = <720>;
- port {
- itu_0: endpoint@0 {
- is-itu601;
- vsync-active = <1>;
- hsync-active = <1>;
- remote-endpoint = <&rn6752_0>;
- channel = <0>;
- };
- itu_1: endpoint@1 {
- remote-endpoint = <&ark7116_0>;
- channel = <1>;
- };
- };
- };
- ðernet {
- status = "okay";
- phy-handle = <ð_phy0>;
- phy-mode = "rgmii";
- //snps,reset-gpio = <&gportd 15 GPIO_ACTIVE_LOW>;
- //snps,reset-active-low;
- //snps,reset-delays-us = <0 10000 1000000>;
- mdio {
- compatible = "snps,dwmac-mdio";
- #address-cells = <1>;
- #size-cells = <0>;
- eth_phy0: ethernet-phy@0 {
- /* Realtek RTL8211F (0x001cc916) */
- reg = <1>;
- };
- };
- };
- &i2c0 {
- gt911: touchscreen@5d {
- compatible = "goodix,gt911";
- reg = <0x5d>;
- interrupt-parent = <&gportf>;
- interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
- irq-gpios = <&gportf 22 GPIO_ACTIVE_HIGH>;
- reset-gpios = <&gportf 23 GPIO_ACTIVE_HIGH>;
- //touchscreen-inverted-x;
- };
- };
- &gpu{
- shared-mem-size =<0x18000000>;
- };
- &can0{
- status = "disabled";
- };
- &can1{
- status = "disabled";
- };
|