@@ -20,6 +20,19 @@ / {
qcom,msm-id = <0x124 0x20000>, <0x124 0x20001>; /* 8998v2, v2.1 */
qcom,board-id = <8 0>;
+ clocks {
+ compatible = "simple-bus";
+
+ div1_mclk: divclk1 {
+ compatible = "gpio-gate-clock";
+ pinctrl-0 = <&audio_mclk_pin>;
+ pinctrl-names = "default";
+ clocks = <&rpmcc RPM_SMD_DIV_CLK1>;
+ #clock-cells = <0>;
+ enable-gpios = <&pm8998_gpio 13 GPIO_ACTIVE_HIGH>;
+ };
+ };
+
board_vbat: vbat-regulator {
compatible = "regulator-fixed";
regulator-name = "VBAT";
@@ -307,6 +320,12 @@ cam_snapshot_pin_a: cam-snapshot-btn-active {
input-enable;
qcom,drive-strength = <PMIC_GPIO_STRENGTH_NO>;
};
+
+ audio_mclk_pin: audio-mclk-pin-active {
+ pins = "gpio13";
+ function = "func2";
+ power-source = <0>;
+ };
};
&pmi8998_gpio {