From: deadman96385 Date: Thu, 1 Jul 2021 22:48:53 +0000 (-0700) Subject: arm64: dts: sti6130d3x0: Apply dopinder/wade's stock DTS changes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f557532fc0661495aa9dc19ad6d984e135f04c3d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git arm64: dts: sti6130d3x0: Apply dopinder/wade's stock DTS changes * Dummy-Charger/Battery added to main DTB instead of DTBO. * IR Remote disabled in main DTS, enabled in Wade DTBO. Change-Id: I9ae1d2a56596e5f3c3ed4d3d08fda6b8b45efe8b --- diff --git a/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_sti6130d3x0.dts b/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_sti6130d3x0.dts index da1867bb2bdc..39a7c49072bd 100644 --- a/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_sti6130d3x0.dts +++ b/arch/arm64/boot/dts/amlogic/g12a_s905x2_u212_sti6130d3x0.dts @@ -17,8 +17,8 @@ /dts-v1/; -#include "mesong12a.dtsi" -#include "partition_mbox_normal_dynamic.dtsi" +#include "mesong12a_sti6130d3x0.dtsi" +#include "partition_mbox_dynamic_sti6130d3x0.dtsi" / { model = "Amlogic"; @@ -56,9 +56,9 @@ ramoops@0x07400000 { compatible = "ramoops"; reg = <0x0 0x07400000 0x0 0x00100000>; - record-size = <0x20000>; - console-size = <0x40000>; - ftrace-size = <0x80000>; + record-size = <0x8000>; + console-size = <0x8000>; + ftrace-size = <0x40000>; pmsg-size = <0x20000>; }; @@ -101,7 +101,6 @@ /*di CMA pool */ di_cma_reserved:linux,di_cma { compatible = "shared-dma-pool"; - status = "disable"; reusable; /* buffer_size = 3621952(yuv422 8bit) * | 4736064(yuv422 10bit) @@ -111,7 +110,7 @@ * 10x4074560=40M(0x28) support 10bit */ //size = <0x0 0x0B000000>; - size = <0x0 0x0>; + size = <0x0 0xb000000>; alignment = <0x0 0x400000>; }; /* POST PROCESS MANAGER */ @@ -125,7 +124,7 @@ reusable; /* ion_codec_mm max can alloc size 80M*/ //size = <0x0 0x16400000>; - size = <0x0 0x1b000000>;/*ary*/ + size = <0x0 0x16400000>;/*ary*/ alignment = <0x0 0x400000>; linux,contiguous-region; }; @@ -148,21 +147,14 @@ }; }; - cma_shrinker { - compatible = "amlogic, cma-shrinker"; - status = "okay"; - adj = <0 100 200 250 900 950>; - free = <8192 12288 16384 24576 28672 32768>; - }; - amlogic_battery:dummy-battery { compatible = "amlogic, dummy-battery"; - status = "disabled"; + status = "okay"; }; amlogic_charger:dummy-charger { compatible = "amlogic, dummy-charger"; - status = "disabled"; + status = "okay"; }; gpioleds { @@ -198,7 +190,7 @@ cvbsout { compatible = "amlogic, cvbsout-g12a"; dev_name = "cvbsout"; - status = "okay"; + status = "disabled"; clocks = <&clkc CLKID_VCLK2_ENCI &clkc CLKID_VCLK2_VENCI0 &clkc CLKID_VCLK2_VENCI1 @@ -423,7 +415,7 @@ unifykey{ compatible = "amlogic, unifykey"; status = "ok"; - unifykey-num = <19>; + unifykey-num = <22>; unifykey-index-0 = <&keysn_0>; unifykey-index-1 = <&keysn_1>; unifykey-index-2 = <&keysn_2>; @@ -443,6 +435,10 @@ unifykey-index-16= <&keysn_16>; unifykey-index-17= <&keysn_17>; unifykey-index-18= <&keysn_18>; + unifykey-index-19= <&keysn_19>; + unifykey-index-20= <&keysn_20>; + unifykey-index-21= <&keysn_21>; + unifykey-index-22= <&keysn_22>; keysn_0: key_0{ key-name = "usid"; @@ -542,6 +538,26 @@ key-device = "provision"; key-permit = "read","write","del"; }; + keysn_19:key_19{ + key-name = "wifi_country_abbrev"; + key-device = "normal"; + key-permit = "read","write","del"; + }; + keysn_20:key_20{ + key-name = "wifi_ccode"; + key-device = "normal"; + key-permit = "read","write","del"; + }; + keysn_21:key_21{ + key-name = "wifi_regrev"; + key-device = "normal"; + key-permit = "read","write","del"; + }; + keysn_22:key_22{ + key-name = "wifi_disable_5g_band"; + key-device = "normal"; + key-permit = "read","write","del"; + }; };//End unifykey efusekey:efusekey{ @@ -1016,13 +1032,17 @@ aml_tdmc: tdmc { compatible = "amlogic, g12a-snd-tdmc"; #sound-dai-cells = <0>; - dai-tdm-lane-slot-mask-out = <1 1 1 1>; + dai-tdm-lane-slot-mask-in = <0 1 0 0>; + #dai-tdm-lane-slot-mask-out = <1 0 1 1>; + #dai-tdm-lane-oe-slot-mask-in = <0 0 0 0>; + dai-tdm-lane-oe-slot-mask-out = <1 0 0 0>; dai-tdm-clk-sel = <2>; clocks = <&clkaudio CLKID_AUDIO_MCLK_C &clkc CLKID_MPLL2>; clock-names = "mclk", "clk_srcpll"; - /* indicate this tdm is only for HDMI multi-channel */ - i2s2hdmi = <1>; + pinctrl-names = "tdm_pins"; + pinctrl-0 = <&tdmc_mclk &tdmout_c &tdmin_c>; + mclk_pad = <1>; /* 0: mclk_0; 1: mclk_1 */ }; tdmlb: tdm@3 { @@ -1358,8 +1378,10 @@ &usb3_phy_v2 { status = "okay"; - portnum = <1>; - otg = <0>; + portnum = <0>; + otg = <1>; + gpio-vbus-power = "GPIOH_6"; + gpios = <&gpio GPIOH_6 GPIO_ACTIVE_HIGH>; }; &dwc2_a { diff --git a/arch/arm64/boot/dts/amlogic/mesong12a-bifrost_sti6130d3x0.dtsi b/arch/arm64/boot/dts/amlogic/mesong12a-bifrost_sti6130d3x0.dtsi index 33bd2806ccc9..b36f2e71d6ce 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12a-bifrost_sti6130d3x0.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12a-bifrost_sti6130d3x0.dtsi @@ -41,8 +41,7 @@ &dvfs400_cfg &dvfs500_cfg &dvfs666_cfg - &dvfs850_cfg - &dvfs850_cfg>; + &dvfs666_cfg>; dvfs125_cfg:clk125_cfg { clk_freq = <125000000>; diff --git a/arch/arm64/boot/dts/amlogic/mesong12a_sti6130d3x0.dtsi b/arch/arm64/boot/dts/amlogic/mesong12a_sti6130d3x0.dtsi index b37ab8b15f61..9744d2b646b1 100644 --- a/arch/arm64/boot/dts/amlogic/mesong12a_sti6130d3x0.dtsi +++ b/arch/arm64/boot/dts/amlogic/mesong12a_sti6130d3x0.dtsi @@ -26,7 +26,7 @@ #include #include #include -#include "mesong12a-bifrost.dtsi" +#include "mesong12a-bifrost_sti6130d3x0.dtsi" / { cpus:cpus { @@ -343,6 +343,29 @@ gpio-controller; #gpio-cells = <2>; }; + + jtag_apao_pins:jtag_apao_pin { + mux { + groups = "jtag_ao_tdi", + "jtag_ao_tdo", + "jtag_ao_clk", + "jtag_ao_tms"; + function = "jtag_a"; + }; + }; + remote_pins:remote_pin { + mux { + groups = "remote_input_ao"; + function = "remote_input_ao"; + }; + }; + + irblaster_pins:irblaster_pin { + mux { + groups = "remote_out_ao"; + function = "remote_out_ao"; + }; + }; }; pinctrl_periphs: pinctrl@ff634480{ @@ -779,7 +802,7 @@ pinctrl-names = "default"; pinctrl-0 = <&irblaster_pins>; interrupts = ; - status = "disabled"; + status = "okay"; }; };/* end of aobus */ @@ -845,7 +868,7 @@ dev_name = "meson-remote"; reg = <0x0 0xff808040 0x00 0x44>, /*Multi-format IR controller*/ <0x0 0xff808000 0x00 0x20>; /*Legacy IR controller*/ - status = "okay"; + status = "disabled"; protocol = ; led_blink = <1>; led_blink_frq = <100>; @@ -862,119 +885,18 @@ map1 = <&map_1>; map2 = <&map_2>; map_0: map_0{ - mapname = "amlogic-remote-1"; - customcode = <0xfb04>; + mapname = "askey-remote-1"; + customcode = <0x7f00>; release_delay = <80>; - size = <50>; /*keymap size*/ - keymap = ; + size = <39>; /*keymap size*/ + keymap = <0x13000b 0x1a0002 0x1f0003 0x580004 0x160005 0x1b0006 0x540007 0x120008 0x170009 0x50000a 0x4c009e 0x5f0061 0x30067 0x5e006c 0x20069 0x40006a 0x420066 0x7008b 0x5b0068 0x18006d 0x5d00cf 0x4a0077 0x4b0080 0x800a7 0x51019c 0x520197 0x400d0 0x5300a8 0x1e0074 0x1c009e 0x5a0071 0x7a00fd 0x7c00fa 0x7700fb 0x7b00fc 0x790246 0x840246 0xa0192 0x60193>; }; map_1: map_1{ - mapname = "amlogic-remote-2"; - customcode = <0xfe01>; + mapname = "askey-remote-2"; + customcode = <0x7f>; release_delay = <80>; - size = <53>; - keymap = ; + size = <33>; + keymap = <0x13000b 0x1a0002 0x1f0003 0x580004 0x160005 0x1b0006 0x540007 0x120008 0x170009 0x50000a 0x4c000f 0x5f0061 0x30067 0x5e006c 0x20069 0x40006a 0x420066 0x7008b 0x5b0068 0x18006d 0x5d00cf 0x4a0077 0x4b0080 0x800a7 0x51019c 0x520197 0x400d0 0x5300a8 0x1e0074 0x1c009e 0x5a0071 0xa0192 0x60193>; }; map_2: map_2{ mapname = "amlogic-remote-3"; @@ -1130,7 +1052,7 @@ /* Refer to the following URL at: * http://standards.ieee.org/develop/regauth/oui/oui.txt */ - vendor_id = <0x000000>; + vendor_id = <0x88de7c>; product_desc = "G12A"; /* Max Chars: 16 */ cec_osd_string = "AML_MBOX"; /* Max Chars: 14 */ cec_version = <5>;/*5:1.4;6:2.0*/ @@ -1318,7 +1240,6 @@ &clkc CLKID_DEMUX &clkc CLKID_AHB_ARB0 &clkc CLKID_DOS - &clkc CLKID_CLK81 &clkc CLKID_VDEC_MUX &clkc CLKID_HCODEC_MUX &clkc CLKID_HEVC_MUX @@ -1327,7 +1248,6 @@ "demux", "ahbarb0", "vdec", - "clk_81", "clk_vdec_mux", "clk_hcodec_mux", "clk_hevc_mux", @@ -1415,7 +1335,7 @@ }; sd_emmc_c: emmc@ffe07000 { - status = "disabled"; + status = "okay"; compatible = "amlogic, meson-mmc-g12a"; reg = <0x0 0xffe07000 0x0 0x800>; interrupts = <0 191 1>; diff --git a/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_sti6130d3x0.dtsi b/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_sti6130d3x0.dtsi index 051b2a322474..540c0f2523ca 100644 --- a/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_sti6130d3x0.dtsi +++ b/arch/arm64/boot/dts/amlogic/partition_mbox_dynamic_sti6130d3x0.dtsi @@ -19,7 +19,7 @@ part-4 = <&cri_data>; part-5 = <¶m>; part-6 = <&boot>; - part-7 = <&frp>; + part-7 = <&factory>; part-8 = <&rsv>; part-9 = <&metadata>; part-10 = <&vbmeta>; @@ -40,12 +40,12 @@ }; misc:misc{ pname = "misc"; - size = <0x0 0x800000>; + size = <0x0 0x200000>; mask = <1>; }; dtbo:dtbo{ pname = "dtbo"; - size = <0x0 0x800000>; + size = <0x0 0x200000>; mask = <1>; }; cri_data:cri_data @@ -54,14 +54,14 @@ size = <0x0 0x800000>; mask = <2>; }; - frp:frp{ - pname = "frp"; - size = <0x0 0x200000>; - mask = <1>; + factory:factory{ + pname = "factory"; + size = <0x0 0x800000>; + mask = <17>; }; rsv:rsv{ pname = "rsv"; - size = <0x0 0x600000>; + size = <0x0 0x1000000>; mask = <1>; }; metadata:metadata{ @@ -93,7 +93,7 @@ super:super { pname = "super"; - size = <0x0 0x7C400000>; + size = <0x0 0x64000000>; mask = <1>; }; cache:cache