2 * Pisound Linux kernel module.
3 * Copyright (C) 2016-2017 Vilniaus Blokas UAB, https://blokas.io/pisound
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; version 2 of the
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #include <dt-bindings/gpio/gpio.h>
26 compatible = "brcm,bcm2835";
55 pisound_spi: pisound_spi@0{
56 compatible = "blokaslabs,pisound-spi";
58 pinctrl-names = "default";
59 pinctrl-0 = <&spi0_pins>;
60 spi-max-frequency = <1000000>;
69 #sound-dai-cells = <0>;
70 compatible = "ti,pcm5102a";
79 compatible = "blokaslabs,pisound";
80 i2s-controller = <&i2s>;
83 pinctrl-0 = <&pisound_button_pins>;
86 <&gpio 13 GPIO_ACTIVE_HIGH>,
87 <&gpio 26 GPIO_ACTIVE_HIGH>,
88 <&gpio 16 GPIO_ACTIVE_HIGH>;
91 <&gpio 12 GPIO_ACTIVE_HIGH>,
92 <&gpio 24 GPIO_ACTIVE_HIGH>;
94 data_available-gpios = <&gpio 25 GPIO_ACTIVE_HIGH>;
96 button-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
103 pinctrl-names = "default";
104 pinctrl-0 = <&pisound_button_pins>;
106 pisound_button_pins: pisound_button_pins {
108 brcm,function = <0>; // Input
109 brcm,pull = <2>; // Pull-Up