dtsi: meson-g12a: add all pwm pinmux definitions
authorBo Yang <bo.yang@amlogic.com>
Sat, 3 Feb 2018 09:59:26 +0000 (17:59 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 5 Mar 2018 06:22:13 +0000 (14:22 +0800)
PD#156734: dtsi: meson-g12a: add all pwm pinmux definitions

Replace pinctrl used by wifi and cpufreq.
Aand remove repetitive definitions.

Change-Id: Ia2eb89fac9fe6e960333ff3d3e691f7e7f1cfaa1
Signed-off-by: Bo Yang <bo.yang@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_pxp.dts
arch/arm64/boot/dts/amlogic/g12a_skt.dts
arch/arm64/boot/dts/amlogic/mesong12a.dtsi

index afc740a..06dbcf8 100644 (file)
        };
        /* Audio Related end */
 
-               cpufreq-meson {
+       cpufreq-meson {
                compatible = "amlogic, cpufreq-meson";
                pinctrl-names = "default";
-               pinctrl-0 = <&pwmcpu_pins>;
+               pinctrl-0 = <&pwm_ao_d_pins3>;
                status = "okay";
        };
 
index 85374dd..476418b 100644 (file)
                power_on_pin = <&gpio       GPIOX_6       GPIO_ACTIVE_HIGH>;
                dhd_static_buf; //if use bcm wifi, config dhd_static_buf
                pinctrl-names = "default";
-               pinctrl-0 = <&wifi_32k_pins>;
+               pinctrl-0 = <&pwm_e_pins>;
                pwm_config = <&wifi_pwm_conf>;
        };
 
        cpufreq-meson {
                compatible = "amlogic, cpufreq-meson";
                pinctrl-names = "default";
-               pinctrl-0 = <&pwmcpu_pins>;
+               pinctrl-0 = <&pwm_ao_d_pins3>;
                status = "okay";
        };
 
index 936e358..4492923 100644 (file)
                };
        };
 
-       pwmcpu_pins:pwmcpus {
-               mux {
-                       groups = "pwm_ao_d_e";
-                       function = "pwm_ao_d";
-               };
-       };
-
        ao_i2c_master_pins1:ao_i2c_pins1 {
                mux {
                        groups = "i2c_ao_sck",
                };
        };
 
+       pwm_ao_a_pins: pwm_ao_a {
+               mux {
+                       groups = "pwm_ao_a";
+                       function = "pwm_ao_a";
+               };
+       };
+
+       pwm_ao_a_hiz_pins: pwm_ao_a_hiz {
+               mux {
+                       groups = "pwm_ao_a_hiz";
+                       function = "pwm_ao_a";
+               };
+       };
+
+       pwm_ao_b_pins: pwm_ao_b {
+               mux {
+                       groups = "pwm_ao_b";
+                       function = "pwm_ao_b";
+               };
+       };
+
+       pwm_ao_c_pins1: pwm_ao_c_pins1 {
+               mux {
+                       groups = "pwm_ao_c_4";
+                       function = "pwm_ao_c";
+               };
+       };
+
+       pwm_ao_c_pins2: pwm_ao_c_pins2 {
+               mux {
+                       groups = "pwm_ao_c_6";
+                       function = "pwm_ao_c";
+               };
+       };
+
+       pwm_ao_c_hiz_pins: pwm_ao_c_hiz {
+               mux {
+                       groups = "pwm_ao_c_hiz_4";
+                       function = "pwm_ao_c";
+               };
+       };
+
+       pwm_ao_d_pins1: pwm_ao_d_pins1 {
+               mux {
+                       groups = "pwm_ao_d_5";
+                       function = "pwm_ao_d";
+               };
+       };
+
+       pwm_ao_d_pins2: pwm_ao_d_pins2 {
+               mux {
+                       groups = "pwm_ao_d_10";
+                       function = "pwm_ao_d";
+               };
+       };
+
+       pwm_ao_d_pins3: pwm_ao_d_pins3 {
+               mux {
+                       groups = "pwm_ao_d_e";
+                       function = "pwm_ao_d";
+               };
+       };
+
        aocec_a: ao_ceca {
                mux {
                        groups = "cec_ao_a";
                };
        };
 
+       pwm_a_pins: pwm_a {
+               mux {
+                       groups = "pwm_a";
+                       function = "pwm_a";
+               };
+       };
+
+       pwm_b_pins1: pwm_b_pins1 {
+               mux {
+                       groups = "pwm_b_x7";
+                       function = "pwm_b";
+               };
+       };
+
+       pwm_b_pins2: pwm_b_pins2 {
+               mux {
+                       groups = "pwm_b_x19";
+                       function = "pwm_b";
+               };
+       };
+
+       pwm_c_pins1: pwm_c_pins1 {
+               mux {
+                       groups = "pwm_c_c4";
+                       function = "pwm_c";
+               };
+       };
+
+       pwm_c_pins2: pwm_c_pins2 {
+               mux {
+                       groups = "pwm_c_x5";
+                       function = "pwm_c";
+               };
+       };
+
+       pwm_c_pins3: pwm_c_pins3 {
+               mux {
+                       groups = "pwm_c_x8";
+                       function = "pwm_c";
+               };
+       };
+
+       pwm_d_pins1: pwm_d_pins1 {
+               mux {
+                       groups = "pwm_d_x3";
+                       function = "pwm_d";
+               };
+       };
+
+       pwm_d_pins2: pwm_d_pins2 {
+               mux {
+                       groups = "pwm_d_x6";
+                       function = "pwm_d";
+               };
+       };
+
+       pwm_e_pins: pwm_e {
+               mux {
+                       groups = "pwm_e";
+                       function = "pwm_e";
+               };
+       };
+
+       pwm_f_pins1: pwm_f_pins1 {
+               mux {
+                       groups = "pwm_f_x";
+                       function = "pwm_f";
+               };
+       };
+
+       pwm_f_pins2: pwm_f_pins2 {
+               mux {
+                       groups = "pwm_f_h";
+                       function = "pwm_f";
+               };
+       };
+
        a_uart_pins:a_uart {
                mux {
                        groups = "uart_tx_a",
                };
        };
 
-       wifi_32k_pins:wifi_32k_pins {
-               mux {
-                       groups = "pwm_e";
-                       function = "pwm_e";
-               };
-       };
-
-       c_i2c_master_pin1:c_i2c_pin1 {
-               mux {
-                       groups = "i2c3_sck_a",
-                               "i2c3_sda_a";
-                       function = "i2c3";
-               };
-       };
-
        eecec_a: ee_ceca {
                mux {
                        groups = "cec_ao_a_ee";