From f2fcb5e09dab7b58aae37f40829a2d63bf5f7724 Mon Sep 17 00:00:00 2001 From: Stricted Date: Tue, 6 Jul 2021 17:42:39 +0000 Subject: [PATCH] arm64: dts: sm1_s905y3_bananapim5: Apply changes for bananapim5 Change-Id: If09571483ae6f68f52c86041669f1054cd216b20 --- .../dts/amlogic/sm1_s905y3_bananapim5.dts | 70 ++++++++++--------- 1 file changed, 38 insertions(+), 32 deletions(-) diff --git a/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts index b8b527f101d5..59eed02d85c4 100644 --- a/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts +++ b/arch/arm64/boot/dts/amlogic/sm1_s905y3_bananapim5.dts @@ -171,23 +171,11 @@ gpioleds { compatible = "gpio-leds"; - status = "disabled"; - - net_red { - label="net_red"; - /*gpios=<&gpio GPIOA_14 GPIO_ACTIVE_LOW>;*/ - default-state ="on"; - }; - - net_green { - label="net_green"; - /*gpios=<&gpio GPIOA_15 GPIO_ACTIVE_HIGH>;*/ - default-state ="on"; - }; + status = "okay"; remote_led { label = "remote_led"; - gpios = <&gpio_ao GPIOAO_10 GPIO_ACTIVE_LOW>; + gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_LOW>; default-state = "off"; linux,default-trigger = "rc_feedback"; }; @@ -196,6 +184,7 @@ label="sys_led"; gpios=<&gpio_ao GPIOAO_11 GPIO_ACTIVE_LOW>; default-state ="on"; + linux,default-trigger = "timer"; }; }; @@ -638,12 +627,30 @@ };//End unifykey efusekey:efusekey{ - keynum = <1>; + keynum = <4>; key0 = <&key_0>; + key1 = <&key_1>; + key2 = <&key_2>; + key3 = <&key_3>; key_0:key_0{ - keyname = "uuid"; + keyname = "mac"; offset = <0>; - size = <32>; + size = <6>; + }; + key_1:key_1{ + keyname = "mac_bt"; + offset = <6>; + size = <6>; + }; + key_2:key_2{ + keyname = "mac_wifi"; + offset = <12>; + size = <6>; + }; + key_3:key_3{ + keyname = "usid"; + offset = <18>; + size = <16>; }; };//End efusekey @@ -682,7 +689,7 @@ reg = <0x0 0xFF632000 0x0 0x2000>; is_auge_used = <1>; /* meson or auge chipset used */ tocodec_inout = <1>; - tdmout_index = <1>; + tdmout_index = <2>; ch0_sel = <0>; ch1_sel = <1>; @@ -787,11 +794,12 @@ /* master mode */ bitclock-master = <&tdmc>; frame-master = <&tdmc>; + continuous-clock; /* slave mode */ //bitclock-master = <&tdmccodec>; //frame-master = <&tdmccodec>; /* suffix-name, sync with android audio hal used for */ - //suffix-name = "alsaPORT-tdm"; + suffix-name = "alsaPORT-tdm"; cpu { sound-dai = <&tdmc>; dai-tdm-slot-tx-mask = <1 1>; @@ -1469,18 +1477,18 @@ }; tdmb_mclk: tdmb_mclk { - mux { - groups = "mclk0_a"; - function = "mclk0"; + mux { /* GPIOAO_9 */ + groups = "mclk0_ao"; + function = "mclk0_ao"; drive-strength = <2>; }; }; tdmout_b: tdmout_b { - mux { /* GPIOA_1, GPIOA_2, GPIOA_3 */ - groups = "tdmb_sclk", - "tdmb_fs", - "tdmb_dout0"; - function = "tdmb_out"; + mux { /* GPIOAO_8, GPIOAO_7, GPIOAO_4 */ + groups = "tdmb_sclk_ao", + "tdmb_fs_ao", + "tdmb_dout0_ao"; + function = "tdmb_out_ao"; drive-strength = <2>; }; }; @@ -1573,9 +1581,9 @@ }; spdifout: spdifout { - mux { /* GPIOH_4 */ - groups = "spdif_out_h"; - function = "spdif_out"; + mux { /* gpiao_10 */ + groups = "spdif_out_ao"; + function = "spdif_out_ao"; }; }; @@ -1613,8 +1621,6 @@ status = "okay"; portnum = <1>; otg = <1>; - gpio-vbus-power = "GPIOAO_2"; - gpios = <&gpio_ao GPIOAO_2 GPIO_ACTIVE_HIGH>; }; &dwc2_a { -- 2.20.1