Robin Peng | fe02f71 | 2021-11-15 10:35:37 +0800 | [diff] [blame] | 1 | // 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 Liao | c053995 | 2022-05-10 22:41:10 +0800 | [diff] [blame] | 14 | aoc-board-id = <0x20501>; |
| 15 | aoc-board-rev = <0x10000>; |
Robin Peng | fe02f71 | 2021-11-15 10:35:37 +0800 | [diff] [blame] | 16 | }; |
| 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 Peng | fe02f71 | 2021-11-15 10:35:37 +0800 | [diff] [blame] | 60 | 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 Kuo | 51b6c15 | 2022-05-06 19:17:40 +0800 | [diff] [blame] | 70 | cirrus,pwle-zero-cross-en; |
Tai Kuo | 1d3c3ac | 2022-02-15 12:16:28 +0800 | [diff] [blame] | 71 | cirrus,bst-expl-mode-disable; |
Tai Kuo | fec36ce | 2021-10-21 17:06:36 +0800 | [diff] [blame] | 72 | cirrus,vpbr-enable; |
| 73 | cirrus,vpbr-thld-mv = <2800>; /* 2.8V */ |
| 74 | cirrus,bst-ipk-microamp = <4000000>; /* 4A */ |
Tai Kuo | 56b26e2 | 2022-04-14 17:22:07 +0800 | [diff] [blame] | 75 | cirrus,boost-ctl-microvolt = <10000000>;/* 10V */ |
| 76 | cirrus,f0-default = <0x2A8000>; /* 170 Hz */ |
| 77 | cirrus,redc-default = <0x68000>; /* 13 Ohm */ |
Robin Peng | fe02f71 | 2021-11-15 10:35:37 +0800 | [diff] [blame] | 78 | |
| 79 | status = "okay"; |
| 80 | cs40l26_codec: cs40l26_codec@snd { |
| 81 | #sound-dai-cells = <1>; |
| 82 | compatible = "cs40l26-codec"; |
| 83 | status = "okay"; |
| 84 | }; |
| 85 | }; |
| 86 | }; |