2015-10-02 09:56:12 +07:00
|
|
|
/*
|
|
|
|
* Device Tree Source for the Salvator-X board
|
|
|
|
*
|
|
|
|
* Copyright (C) 2015 Renesas Electronics Corp.
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
|
|
* kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
2015-11-25 13:39:13 +07:00
|
|
|
/*
|
|
|
|
* SSI-AK4613
|
|
|
|
*
|
|
|
|
* This command is required when Playback/Capture
|
|
|
|
*
|
|
|
|
* amixer set "DVC Out" 100%
|
|
|
|
* amixer set "DVC In" 100%
|
|
|
|
*
|
|
|
|
* You can use Mute
|
|
|
|
*
|
|
|
|
* amixer set "DVC Out Mute" on
|
|
|
|
* amixer set "DVC In Mute" on
|
|
|
|
*
|
|
|
|
* You can use Volume Ramp
|
|
|
|
*
|
|
|
|
* amixer set "DVC Out Ramp Up Rate" "0.125 dB/64 steps"
|
|
|
|
* amixer set "DVC Out Ramp Down Rate" "0.125 dB/512 steps"
|
|
|
|
* amixer set "DVC Out Ramp" on
|
|
|
|
* aplay xxx.wav &
|
|
|
|
* amixer set "DVC Out" 80% // Volume Down
|
|
|
|
* amixer set "DVC Out" 100% // Volume Up
|
|
|
|
*/
|
|
|
|
|
2015-10-02 09:56:12 +07:00
|
|
|
/dts-v1/;
|
|
|
|
#include "r8a7795.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "Renesas Salvator-X board based on r8a7795";
|
|
|
|
compatible = "renesas,salvator-x", "renesas,r8a7795";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
serial0 = &scif2;
|
|
|
|
serial1 = &scif1;
|
2015-11-02 11:31:48 +07:00
|
|
|
ethernet0 = &avb;
|
2015-10-02 09:56:12 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
chosen {
|
2015-11-02 11:31:46 +07:00
|
|
|
bootargs = "ignore_loglevel rw root=/dev/nfs ip=dhcp";
|
2015-10-02 09:56:12 +07:00
|
|
|
stdout-path = "serial0:115200n8";
|
|
|
|
};
|
|
|
|
|
|
|
|
memory@48000000 {
|
|
|
|
device_type = "memory";
|
|
|
|
/* first 128MB is reserved for secure area. */
|
|
|
|
reg = <0x0 0x48000000 0x0 0x38000000>;
|
|
|
|
};
|
2015-11-25 13:37:49 +07:00
|
|
|
|
|
|
|
x12_clk: x12_clk {
|
|
|
|
compatible = "fixed-clock";
|
|
|
|
#clock-cells = <0>;
|
|
|
|
clock-frequency = <24576000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
rsnd_ak4613: sound {
|
|
|
|
compatible = "simple-audio-card";
|
|
|
|
|
|
|
|
simple-audio-card,format = "left_j";
|
|
|
|
simple-audio-card,bitclock-master = <&sndcpu>;
|
|
|
|
simple-audio-card,frame-master = <&sndcpu>;
|
|
|
|
|
|
|
|
sndcpu: simple-audio-card,cpu {
|
|
|
|
sound-dai = <&rcar_sound>;
|
|
|
|
};
|
|
|
|
|
|
|
|
sndcodec: simple-audio-card,codec {
|
|
|
|
sound-dai = <&ak4613>;
|
|
|
|
};
|
|
|
|
};
|
2015-10-02 09:56:12 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&extal_clk {
|
|
|
|
clock-frequency = <16666666>;
|
|
|
|
};
|
|
|
|
|
|
|
|
&pfc {
|
|
|
|
scif1_pins: scif1 {
|
|
|
|
renesas,groups = "scif1_data_a", "scif1_ctrl";
|
|
|
|
renesas,function = "scif1";
|
|
|
|
};
|
|
|
|
scif2_pins: scif2 {
|
|
|
|
renesas,groups = "scif2_data_a";
|
|
|
|
renesas,function = "scif2";
|
|
|
|
};
|
2015-11-02 11:31:45 +07:00
|
|
|
|
2015-10-28 06:05:28 +07:00
|
|
|
i2c2_pins: i2c2 {
|
|
|
|
renesas,groups = "i2c2_a";
|
|
|
|
renesas,function = "i2c2";
|
|
|
|
};
|
|
|
|
|
2015-11-02 11:31:45 +07:00
|
|
|
avb_pins: avb {
|
|
|
|
renesas,groups = "avb_mdc";
|
|
|
|
renesas,function = "avb";
|
|
|
|
};
|
2015-11-25 13:37:49 +07:00
|
|
|
|
|
|
|
sound_pins: sound {
|
|
|
|
renesas,groups = "ssi01239_ctrl", "ssi0_data", "ssi1_data_a";
|
|
|
|
renesas,function = "ssi";
|
|
|
|
};
|
|
|
|
|
|
|
|
sound_clk_pins: sound_clk {
|
|
|
|
renesas,groups = "audio_clk_a_a", "audio_clk_b_a", "audio_clk_c_a",
|
|
|
|
"audio_clkout_a", "audio_clkout3_a";
|
|
|
|
renesas,function = "audio_clk";
|
|
|
|
};
|
2015-10-02 09:56:12 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
&scif1 {
|
|
|
|
pinctrl-0 = <&scif1_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&scif2 {
|
|
|
|
pinctrl-0 = <&scif2_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
};
|
2015-11-02 11:31:45 +07:00
|
|
|
|
2015-10-28 06:05:28 +07:00
|
|
|
&i2c2 {
|
|
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
status = "okay";
|
2015-11-25 13:37:49 +07:00
|
|
|
|
|
|
|
clock-frequency = <100000>;
|
|
|
|
|
|
|
|
ak4613: codec@10 {
|
|
|
|
compatible = "asahi-kasei,ak4613";
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
reg = <0x10>;
|
|
|
|
clocks = <&rcar_sound 3>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&rcar_sound {
|
|
|
|
pinctrl-0 = <&sound_pins &sound_clk_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
|
|
|
|
/* Single DAI */
|
|
|
|
#sound-dai-cells = <0>;
|
|
|
|
|
|
|
|
/* audio_clkout0/1/2/3 */
|
|
|
|
#clock-cells = <1>;
|
|
|
|
clock-frequency = <11289600>;
|
|
|
|
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
rcar_sound,dai {
|
|
|
|
dai0 {
|
2015-11-25 13:39:13 +07:00
|
|
|
playback = <&ssi0 &src0 &dvc0>;
|
|
|
|
capture = <&ssi1 &src1 &dvc1>;
|
2015-11-25 13:37:49 +07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
&ssi1 {
|
|
|
|
shared-pin;
|
|
|
|
};
|
|
|
|
|
|
|
|
&audio_clk_a {
|
|
|
|
clock-frequency = <22579200>;
|
2015-10-28 06:05:28 +07:00
|
|
|
};
|
|
|
|
|
2015-11-02 11:31:45 +07:00
|
|
|
&avb {
|
|
|
|
pinctrl-0 = <&avb_pins>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
renesas,no-ether-link;
|
|
|
|
phy-handle = <&phy0>;
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
phy0: ethernet-phy@0 {
|
|
|
|
rxc-skew-ps = <900>;
|
|
|
|
rxdv-skew-ps = <0>;
|
|
|
|
rxd0-skew-ps = <0>;
|
|
|
|
rxd1-skew-ps = <0>;
|
|
|
|
rxd2-skew-ps = <0>;
|
|
|
|
rxd3-skew-ps = <0>;
|
|
|
|
txc-skew-ps = <900>;
|
|
|
|
txen-skew-ps = <0>;
|
|
|
|
txd0-skew-ps = <0>;
|
|
|
|
txd1-skew-ps = <0>;
|
|
|
|
txd2-skew-ps = <0>;
|
|
|
|
txd3-skew-ps = <0>;
|
|
|
|
reg = <0>;
|
|
|
|
interrupt-parent = <&gpio2>;
|
|
|
|
interrupts = <11 IRQ_TYPE_LEVEL_LOW>;
|
|
|
|
};
|
|
|
|
};
|