blob: d7d472303af82f4d9a1ff9b394f5d86fbd73868c [file] [log] [blame]
Robin Pengfe02f712021-11-15 10:35:37 +08001// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Google GS101 Bluejay audio device tree source
4 *
5 * Copyright (c) 2021 Google, LLC
6 * https://www.google.com
7 *
8*/
9
10#include "google-base/gs101-raviole-audio.dtsi"
11
12&aoc {
13 aoc-board-cfg = "b3";
Roger Liaoc0539952022-05-10 22:41:10 +080014 aoc-board-id = <0x20501>;
15 aoc-board-rev = <0x10000>;
Robin Pengfe02f712021-11-15 10:35:37 +080016};
17
18/* cs40l26 is different way, fix this later */
19/delete-node/ &cs40l2x_codec;
20/delete-node/ &cs40l2x_codec_clk;
21/delete-node/ &cs40l25a_haptics;
22
23&dai_be_haptic_rx_codec {
24 sound-dai = <&cs40l26_codec 0>;
25};
26
27&aoc_snd_card {
28 clks {
29 sys {
30 sys@cs40l26_codec {
31 comp = <&cs40l26_codec>;
32 src = "BCLK";
33 /* clk id */
34 id = <0>;
35 /* clk source */
36 srcid = <0>;
37 /* in clk multiple */
38 in_mul = <1>;
39 /* out clk multiple */
40 out_mul = <1>;
41 };
42 };
43 };
44};
45
46&hsi2c_8 {
47 #address-cells = <1>;
48 #size-cells = <0>;
49 status = "okay";
50
51 pinctrl-names = "default";
52 pinctrl-0 = <&hsi2c8_bus>;
53
54 clock-frequency = <400000>;
55
56 cs40l26a_haptics: cs40l26a@43 {
57 compatible = "cirrus,cs40l26a";
58 reg = <0x43>;
59
Robin Pengfe02f712021-11-15 10:35:37 +080060 input-device-name = "cs40l26_input"; /* input device name */
61 pinctrl-names = "default";
62 pinctrl-0 = <&hapt_amp_irq &hapt_amp_rst &hapt_amp_trig>;
63
64 interrupt-parent = <&gpa6>;
65 interrupts = <5 0 0>;
66
67 reset-gpios = <&gpp24 0 0>;
68
69 cirrus,bst-dcm-en = <0>;
Tai Kuo51b6c152022-05-06 19:17:40 +080070 cirrus,pwle-zero-cross-en;
Tai Kuo1d3c3ac2022-02-15 12:16:28 +080071 cirrus,bst-expl-mode-disable;
Tai Kuofec36ce2021-10-21 17:06:36 +080072 cirrus,vpbr-enable;
73 cirrus,vpbr-thld-mv = <2800>; /* 2.8V */
74 cirrus,bst-ipk-microamp = <4000000>; /* 4A */
Tai Kuo56b26e22022-04-14 17:22:07 +080075 cirrus,boost-ctl-microvolt = <10000000>;/* 10V */
76 cirrus,f0-default = <0x2A8000>; /* 170 Hz */
77 cirrus,redc-default = <0x68000>; /* 13 Ohm */
Robin Pengfe02f712021-11-15 10:35:37 +080078
79 status = "okay";
80 cs40l26_codec: cs40l26_codec@snd {
81 #sound-dai-cells = <1>;
82 compatible = "cs40l26-codec";
83 status = "okay";
84 };
85 };
86};