demux: add demux irq for txlx
authorChuangcheng Peng <chuangcheng.peng@amlogic.com>
Sun, 29 Apr 2018 07:43:55 +0000 (15:43 +0800)
committerChuangcheng Peng <chuangcheng.peng@amlogic.com>
Mon, 7 May 2018 03:29:25 +0000 (11:29 +0800)
PD#165368: add demux irq for txlx

Change-Id: I165a524cd5e161b22ee21318d9379bb139622e2f
Signed-off-by: Chuangcheng Peng <chuangcheng.peng@amlogic.com>
arch/arm64/boot/dts/amlogic/txlx_t962e_r321.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_1g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_2g.dts
arch/arm64/boot/dts/amlogic/txlx_t962x_r311_720p.dts

index c031611..24cb6e7 100644 (file)
        };
        /* end of AUDIO board specific */
 
-       dvb {
-               compatible = "amlogic, dvb";
-               dev_name = "dvb";
-               status = "disabled";
-               /*"parallel","serial","disable"*/
-               ts2 = "parallel";
-               ts2_control = <0>;
-               ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
-       };
-
        aml_sensor0: aml-sensor@0 {
                compatible = "amlogic, aml-thermal";
                device_name = "thermal";
        dvb {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
-               status = "disabled";
+               status = "okay";
+               demod = "internal";
+               tuner0 = "si2151_tuner";
+               tuner0_i2c_adap_id = <&i2c1>;
+               tuner0_i2c_addr = <0x60>;
                /*"parallel","serial","disable"*/
                ts2 = "parallel";
                ts2_control = <0>;
                ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
+               interrupts = <0 23 1
+                                       0 5 1
+                                       0 21 1
+                                       0 19 1
+                                       0 25 1
+                                       0 18 1
+                                       0 24 1>;
+               interrupt-names = "demux0_irq",
+                                               "demux1_irq",
+                                               "demux2_irq",
+                                               "dvr0_irq",
+                                               "dvr1_irq",
+                                               "dvrfill0_fill",
+                                               "dvrfill1_flush";
+               clocks = <&clkc CLKID_DEMUX
+                       &clkc CLKID_ASYNC_FIFO
+                       &clkc CLKID_AHB_ARB0
+                       &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
        };
        aml_dtv_demod {
                compatible = "amlogic, ddemod-txlx";
                dev_name = "aml_dtv_demod";
-               status = "disable";
+               status = "okay";
 
                //pinctrl-names="dtvdemod_agc";
                //pinctrl-0=<&dtvdemod_agc>;
 
-
                clocks = <&clkc CLKID_DAC_CLK>;
                clock-names = "vdac_clk_gate";
 
-
                reg = <0x0 0xff644000 0x0 0x2000        /*dtv demod base*/
                           0x0 0xff63c000 0x0 0x2000    /*hiu reg base*/
                           0x0 0xff800000 0x0 0x1000    /*io_aobus_base*/
index dd090f9..9b63e48 100644 (file)
        };
        /* end of AUDIO board specific */
 
-       dvb {
-               compatible = "amlogic, dvb";
-               dev_name = "dvb";
-               status = "disabled";
-               /*"parallel","serial","disable"*/
-               ts2 = "parallel";
-               ts2_control = <0>;
-               ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
-       };
 
        aml_sensor0: aml-sensor@0 {
                compatible = "amlogic, aml-thermal";
        dvb {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
-               status = "disabled";
+               status = "okay";
+               demod = "internal";
+               tuner0 = "si2151_tuner";
+               tuner0_i2c_adap_id = <&i2c1>;
+               tuner0_i2c_addr = <0x60>;
                /*"parallel","serial","disable"*/
                ts2 = "parallel";
                ts2_control = <0>;
                ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
+               interrupts = <0 23 1
+                                       0 5 1
+                                       0 21 1
+                                       0 19 1
+                                       0 25 1
+                                       0 18 1
+                                       0 24 1>;
+               interrupt-names = "demux0_irq",
+                                               "demux1_irq",
+                                               "demux2_irq",
+                                               "dvr0_irq",
+                                               "dvr1_irq",
+                                               "dvrfill0_fill",
+                                               "dvrfill1_flush";
+               clocks = <&clkc CLKID_DEMUX
+                       &clkc CLKID_ASYNC_FIFO
+                       &clkc CLKID_AHB_ARB0
+                       &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
        };
        aml_dtv_demod {
                compatible = "amlogic, ddemod-txlx";
                dev_name = "aml_dtv_demod";
-               status = "disable";
+               status = "okay";
 
                //pinctrl-names="dtvdemod_agc";
                //pinctrl-0=<&dtvdemod_agc>;
index 4b326c2..3e8542a 100644 (file)
        };
        /* end of AUDIO board specific */
 
-       dvb {
-               compatible = "amlogic, dvb";
-               dev_name = "dvb";
-               status = "disabled";
-               /*"parallel","serial","disable"*/
-               ts2 = "parallel";
-               ts2_control = <0>;
-               ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
-       };
-
        aml_sensor0: aml-sensor@0 {
                compatible = "amlogic, aml-thermal";
                device_name = "thermal";
        dvb {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
-               status = "disabled";
+               status = "okay";
+               demod = "internal";
+               tuner0 = "si2151_tuner";
+               tuner0_i2c_adap_id = <&i2c1>;
+               tuner0_i2c_addr = <0x60>;
                /*"parallel","serial","disable"*/
                ts2 = "parallel";
                ts2_control = <0>;
                ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
+               interrupts = <0 23 1
+                                       0 5 1
+                                       0 21 1
+                                       0 19 1
+                                       0 25 1
+                                       0 18 1
+                                       0 24 1>;
+               interrupt-names = "demux0_irq",
+                                               "demux1_irq",
+                                               "demux2_irq",
+                                               "dvr0_irq",
+                                               "dvr1_irq",
+                                               "dvrfill0_fill",
+                                               "dvrfill1_flush";
+               clocks = <&clkc CLKID_DEMUX
+                       &clkc CLKID_ASYNC_FIFO
+                       &clkc CLKID_AHB_ARB0
+                       &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
        };
        aml_dtv_demod {
                compatible = "amlogic, ddemod-txlx";
                dev_name = "aml_dtv_demod";
-               status = "disable";
+               status = "okay";
 
                //pinctrl-names="dtvdemod_agc";
                //pinctrl-0=<&dtvdemod_agc>;
index 0348d96..0c90ab3 100644 (file)
        };
        /* end of AUDIO board specific */
 
-       dvb {
-               compatible = "amlogic, dvb";
-               dev_name = "dvb";
-               status = "disabled";
-               /*"parallel","serial","disable"*/
-               ts2 = "parallel";
-               ts2_control = <0>;
-               ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
-       };
-
        aml_sensor0: aml-sensor@0 {
                compatible = "amlogic, aml-thermal";
                device_name = "thermal";
        dvb {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
-               status = "disabled";
+               status = "okay";
+               demod = "internal";
+               tuner0 = "si2151_tuner";
+               tuner0_i2c_adap_id = <&i2c1>;
+               tuner0_i2c_addr = <0x60>;
                /*"parallel","serial","disable"*/
                ts2 = "parallel";
                ts2_control = <0>;
                ts2_invert = <0>;
-               //resets = <&clock GCLK_IDX_DEMUX
-               //              &clock GCLK_IDX_ASYNC_FIFO
-               //              &clock GCLK_IDX_AHB_ARB0
-               //              &clock GCLK_IDX_U_PARSER_TOP>;
-               //reset-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
+               interrupts = <0 23 1
+                                       0 5 1
+                                       0 21 1
+                                       0 19 1
+                                       0 25 1
+                                       0 18 1
+                                       0 24 1>;
+               interrupt-names = "demux0_irq",
+                                               "demux1_irq",
+                                               "demux2_irq",
+                                               "dvr0_irq",
+                                               "dvr1_irq",
+                                               "dvrfill0_fill",
+                                               "dvrfill1_flush";
+               clocks = <&clkc CLKID_DEMUX
+                       &clkc CLKID_ASYNC_FIFO
+                       &clkc CLKID_AHB_ARB0
+                       &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "asyncfifo", "ahbarb0", "uparsertop";
        };
        aml_dtv_demod {
                compatible = "amlogic, ddemod-txlx";
                dev_name = "aml_dtv_demod";
-               status = "disable";
+               status = "okay";
 
                //pinctrl-names="dtvdemod_agc";
                //pinctrl-0=<&dtvdemod_agc>;