dts: support many tuners with dtbo [3/4]
authorjunchao yuan <junchao.yuan@amlogic.com>
Thu, 26 Sep 2019 09:11:57 +0000 (17:11 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 30 Sep 2019 07:51:35 +0000 (00:51 -0700)
PD#SWPL-13156

Problem:
need to support many tuners;

Solution:
support many tuners with dtbo

Verify:
local verify ok;

Change-Id: I6331b0db772b214ee6a4c404b4b9a2c673cb98c0
Signed-off-by: junchao.yuan@amlogic.com
arch/arm/boot/dts/amlogic/android_p_overlay_dt.dts
arch/arm/boot/dts/amlogic/sm1_s905x3_ac213.dts
arch/arm64/boot/dts/amlogic/android_p_overlay_dt.dts
arch/arm64/boot/dts/amlogic/sm1_s905x3_ac213.dts

index de97c56e27a13e4630463da550c3b5a2f792e92d..ab20172984f9e6f93aaa6d28c856894a660de030 100644 (file)
                        };
                };
        };
+
+       fragment@2 {
+               //target = <&some_node>;
+               target-path="/";
+               __overlay__ {
+                       dvb_avl6762 {
+                               status = "disabled";
+                       };
+               };
+       };
+
+       fragment@3 {
+               //target = <&some_node>;
+               target-path="/";
+               __overlay__ {
+                       dvb_mn88436 {
+                               status = "okay";
+                       };
+               };
+       };
 };
index d5250110635824480e92b1278b90f035348fe134..a083260099e9cb6d1d4d633ca8bc09526cf07b5e 100644 (file)
                cma_mode = <1>;
        };
 
-       dvb {
+       dvb_avl6762 {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
+               status = "disabled";
+               fe0_mode = "external";
+               fe0_demod = "Avl6762";
+               fe0_i2c_adap_id = <&i2c3>;
+               fe0_demod_i2c_addr = <0x14>;
+               fe0_ts = <0>;
+               fe0_reset_value = <0>;
+               fe0_reset_gpio = <&gpio GPIOZ_10 GPIO_ACTIVE_HIGH>;
+
+               ts0 = "serial";
+               ts0_control = <0x800>;
+               ts0_invert = <0>;
+               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";
+               pinctrl-names = "s_ts0";
+               pinctrl-0 = <&dvb_s_ts0_pins>;
+               clocks = <&clkc CLKID_DEMUX
+               &clkc CLKID_AHB_ARB0
+               &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "ahbarb0", "parser_top";
+       };
+
+       dvb_mn88436 {
+               compatible = "amlogic, dvb";
+               dev_name = "dvb";
+               status = "disabled";
 
                dtv_demod0 = "Mn88436";
                dtv_demod0_i2c_adap = <&i2c3>;
index 42efa870557ce8848ced2cdc5f2d09e74060b8e6..516c66dd7b05d583e67f7cfb1ca6c2b226cdd143 100644 (file)
                        };
                };
        };
+
+       fragment@2 {
+               //target = <&some_node>;
+               target-path="/";
+               __overlay__ {
+                       dvb_avl6762 {
+                               status = "disabled";
+                       };
+               };
+       };
+
+       fragment@3 {
+               //target = <&some_node>;
+               target-path="/";
+               __overlay__ {
+                       dvb_mn88436 {
+                               status = "okay";
+                       };
+               };
+       };
 };
index 13da80c581c900dcd4ff8d26bd3443f6120516cd..738183d5ebb4364b87168b73194a64c711d18c98 100644 (file)
                nrds-enable = <1>;
                pps-enable = <1>;
        };
-       dvb {
+
+       dvb_avl6762 {
                compatible = "amlogic, dvb";
                dev_name = "dvb";
+               status = "disabled";
+               fe0_mode = "external";
+               fe0_demod = "Avl6762";
+               fe0_i2c_adap_id = <&i2c3>;
+               fe0_demod_i2c_addr = <0x14>;
+               fe0_ts = <0>;
+               fe0_reset_value = <0>;
+               fe0_reset_gpio = <&gpio GPIOZ_10 GPIO_ACTIVE_HIGH>;
+
+               ts0 = "serial";
+               ts0_control = <0x800>;
+               ts0_invert = <0>;
+               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";
+               pinctrl-names = "s_ts0";
+               pinctrl-0 = <&dvb_s_ts0_pins>;
+               clocks = <&clkc CLKID_DEMUX
+               &clkc CLKID_AHB_ARB0
+               &clkc CLKID_DOS_PARSER>;
+               clock-names = "demux", "ahbarb0", "parser_top";
+       };
+
+       dvb_mn88436 {
+               compatible = "amlogic, dvb";
+               dev_name = "dvb";
+               status = "disabled";
 
                dtv_demod0 = "Mn88436";
                dtv_demod0_i2c_adap = <&i2c3>;