Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 /*
0003  * Device Tree Source for the RZ/{G2L,G2LC,V2L} SMARC EVK common parts
0004  *
0005  * Copyright (C) 2022 Renesas Electronics Corp.
0006  */
0007 
0008 #include <dt-bindings/gpio/gpio.h>
0009 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
0010 
0011 /*
0012  * SSI-WM8978
0013  *
0014  * This command is required when Playback/Capture
0015  *
0016  *      amixer cset name='Left Input Mixer L2 Switch' on
0017  *      amixer cset name='Right Input Mixer R2 Switch' on
0018  *      amixer cset name='Headphone Playback Volume' 100
0019  *      amixer cset name='PCM Volume' 100%
0020  *      amixer cset name='Input PGA Volume' 25
0021  *
0022  */
0023 
0024 / {
0025         aliases {
0026                 serial0 = &scif0;
0027                 i2c0 = &i2c0;
0028                 i2c1 = &i2c1;
0029         };
0030 
0031         chosen {
0032                 stdout-path = "serial0:115200n8";
0033         };
0034 
0035         audio_mclock: audio_mclock {
0036                 compatible = "fixed-clock";
0037                 #clock-cells = <0>;
0038                 clock-frequency = <11289600>;
0039         };
0040 
0041         snd_rzg2l: sound {
0042                 compatible = "simple-audio-card";
0043                 simple-audio-card,format = "i2s";
0044                 simple-audio-card,bitclock-master = <&cpu_dai>;
0045                 simple-audio-card,frame-master = <&cpu_dai>;
0046                 simple-audio-card,mclk-fs = <256>;
0047 
0048                 simple-audio-card,widgets = "Microphone", "Microphone Jack";
0049                 simple-audio-card,routing =
0050                             "L2", "Mic Bias",
0051                             "R2", "Mic Bias",
0052                             "Mic Bias", "Microphone Jack";
0053 
0054                 cpu_dai: simple-audio-card,cpu {
0055                 };
0056 
0057                 codec_dai: simple-audio-card,codec {
0058                         clocks = <&audio_mclock>;
0059                         sound-dai = <&wm8978>;
0060                 };
0061         };
0062 
0063         usb0_vbus_otg: regulator-usb0-vbus-otg {
0064                 compatible = "regulator-fixed";
0065 
0066                 regulator-name = "USB0_VBUS_OTG";
0067                 regulator-min-microvolt = <5000000>;
0068                 regulator-max-microvolt = <5000000>;
0069         };
0070 
0071         vccq_sdhi1: regulator-vccq-sdhi1 {
0072                 compatible = "regulator-gpio";
0073                 regulator-name = "SDHI1 VccQ";
0074                 regulator-min-microvolt = <1800000>;
0075                 regulator-max-microvolt = <3300000>;
0076                 gpios-states = <1>;
0077                 states = <3300000 1>, <1800000 0>;
0078         };
0079 };
0080 
0081 &audio_clk1{
0082         clock-frequency = <11289600>;
0083 };
0084 
0085 &audio_clk2{
0086         clock-frequency = <12288000>;
0087 };
0088 
0089 &canfd {
0090         pinctrl-0 = <&can0_pins &can1_pins>;
0091         pinctrl-names = "default";
0092         status = "okay";
0093 
0094         channel0 {
0095                 status = "okay";
0096         };
0097 
0098         channel1 {
0099                 status = "okay";
0100         };
0101 };
0102 
0103 &ehci0 {
0104         dr_mode = "otg";
0105         status = "okay";
0106 };
0107 
0108 &ehci1 {
0109         status = "okay";
0110 };
0111 
0112 &hsusb {
0113         dr_mode = "otg";
0114         status = "okay";
0115 };
0116 
0117 &i2c0 {
0118         pinctrl-0 = <&i2c0_pins>;
0119         pinctrl-names = "default";
0120 
0121         status = "okay";
0122 };
0123 
0124 &i2c1 {
0125         pinctrl-0 = <&i2c1_pins>;
0126         pinctrl-names = "default";
0127 
0128         status = "okay";
0129 };
0130 
0131 &ohci0 {
0132         dr_mode = "otg";
0133         status = "okay";
0134 };
0135 
0136 &ohci1 {
0137         status = "okay";
0138 };
0139 
0140 &phyrst {
0141         status = "okay";
0142 };
0143 
0144 &scif0 {
0145         pinctrl-0 = <&scif0_pins>;
0146         pinctrl-names = "default";
0147         status = "okay";
0148 };
0149 
0150 &sdhi1 {
0151         pinctrl-0 = <&sdhi1_pins>;
0152         pinctrl-1 = <&sdhi1_pins_uhs>;
0153         pinctrl-names = "default", "state_uhs";
0154 
0155         vmmc-supply = <&reg_3p3v>;
0156         vqmmc-supply = <&vccq_sdhi1>;
0157         bus-width = <4>;
0158         sd-uhs-sdr50;
0159         sd-uhs-sdr104;
0160         status = "okay";
0161 };
0162 
0163 &spi1 {
0164         pinctrl-0 = <&spi1_pins>;
0165         pinctrl-names = "default";
0166 
0167         status = "okay";
0168 };
0169 
0170 &usb2_phy0 {
0171         pinctrl-0 = <&usb0_pins>;
0172         pinctrl-names = "default";
0173 
0174         vbus-supply = <&usb0_vbus_otg>;
0175         status = "okay";
0176 };
0177 
0178 &usb2_phy1 {
0179         pinctrl-0 = <&usb1_pins>;
0180         pinctrl-names = "default";
0181 
0182         status = "okay";
0183 };