1 // SPDX-License-Identifier: (GPL-2.0-only OR B 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /* 2 /* 3 * Device Tree Source for the RZ/{G2L,G2LC,V2L 3 * Device Tree Source for the RZ/{G2L,G2LC,V2L} SMARC EVK common parts 4 * 4 * 5 * Copyright (C) 2022 Renesas Electronics Corp 5 * Copyright (C) 2022 Renesas Electronics Corp. 6 */ 6 */ 7 7 8 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 9 #include <dt-bindings/pinctrl/rzg2l-pinctrl.h> 10 10 11 /* 11 /* 12 * SSI-WM8978 12 * SSI-WM8978 13 * 13 * 14 * This command is required when Playback/Capt 14 * This command is required when Playback/Capture 15 * 15 * 16 * amixer cset name='Left Input Mixer L2 16 * amixer cset name='Left Input Mixer L2 Switch' on 17 * amixer cset name='Right Input Mixer R2 17 * amixer cset name='Right Input Mixer R2 Switch' on 18 * amixer cset name='Headphone Playback V 18 * amixer cset name='Headphone Playback Volume' 100 19 * amixer cset name='PCM Volume' 100% 19 * amixer cset name='PCM Volume' 100% 20 * amixer cset name='Input PGA Volume' 25 20 * amixer cset name='Input PGA Volume' 25 21 * 21 * 22 */ 22 */ 23 23 24 / { 24 / { 25 aliases { 25 aliases { 26 serial0 = &scif0; 26 serial0 = &scif0; 27 i2c0 = &i2c0; 27 i2c0 = &i2c0; 28 i2c1 = &i2c1; 28 i2c1 = &i2c1; 29 }; 29 }; 30 30 31 chosen { 31 chosen { 32 stdout-path = "serial0:115200n 32 stdout-path = "serial0:115200n8"; 33 }; 33 }; 34 34 35 snd_rzg2l: sound { 35 snd_rzg2l: sound { 36 compatible = "simple-audio-car 36 compatible = "simple-audio-card"; 37 simple-audio-card,format = "i2 37 simple-audio-card,format = "i2s"; 38 simple-audio-card,bitclock-mas 38 simple-audio-card,bitclock-master = <&cpu_dai>; 39 simple-audio-card,frame-master 39 simple-audio-card,frame-master = <&cpu_dai>; 40 simple-audio-card,mclk-fs = <2 40 simple-audio-card,mclk-fs = <256>; 41 41 42 simple-audio-card,widgets = "M 42 simple-audio-card,widgets = "Microphone", "Microphone Jack"; 43 simple-audio-card,routing = 43 simple-audio-card,routing = 44 "L2", "Mic Bias", 44 "L2", "Mic Bias", 45 "R2", "Mic Bias", 45 "R2", "Mic Bias", 46 "Mic Bias", "Micro 46 "Mic Bias", "Microphone Jack"; 47 47 48 cpu_dai: simple-audio-card,cpu 48 cpu_dai: simple-audio-card,cpu { 49 }; 49 }; 50 50 51 codec_dai: simple-audio-card,c 51 codec_dai: simple-audio-card,codec { 52 clocks = <&versa3 2>; 52 clocks = <&versa3 2>; 53 sound-dai = <&wm8978>; 53 sound-dai = <&wm8978>; 54 }; 54 }; 55 }; 55 }; 56 56 57 vccq_sdhi1: regulator-vccq-sdhi1 { 57 vccq_sdhi1: regulator-vccq-sdhi1 { 58 compatible = "regulator-gpio"; 58 compatible = "regulator-gpio"; 59 regulator-name = "SDHI1 VccQ"; 59 regulator-name = "SDHI1 VccQ"; 60 regulator-min-microvolt = <180 60 regulator-min-microvolt = <1800000>; 61 regulator-max-microvolt = <330 61 regulator-max-microvolt = <3300000>; 62 gpios-states = <1>; 62 gpios-states = <1>; 63 states = <3300000 1>, <1800000 63 states = <3300000 1>, <1800000 0>; 64 }; 64 }; 65 65 66 x1: x1-clock { 66 x1: x1-clock { 67 compatible = "fixed-clock"; 67 compatible = "fixed-clock"; 68 #clock-cells = <0>; 68 #clock-cells = <0>; 69 clock-frequency = <24000000>; 69 clock-frequency = <24000000>; 70 }; 70 }; 71 }; 71 }; 72 72 73 &audio_clk1 { 73 &audio_clk1 { 74 clock-frequency = <11289600>; 74 clock-frequency = <11289600>; 75 }; 75 }; 76 76 77 &audio_clk2 { 77 &audio_clk2 { 78 clock-frequency = <12288000>; 78 clock-frequency = <12288000>; 79 }; 79 }; 80 80 81 &canfd { 81 &canfd { 82 pinctrl-0 = <&can0_pins &can1_pins>; 82 pinctrl-0 = <&can0_pins &can1_pins>; 83 pinctrl-names = "default"; 83 pinctrl-names = "default"; 84 status = "okay"; 84 status = "okay"; 85 85 86 channel0 { 86 channel0 { 87 status = "okay"; 87 status = "okay"; 88 }; 88 }; 89 89 90 channel1 { 90 channel1 { 91 status = "okay"; 91 status = "okay"; 92 }; 92 }; 93 }; 93 }; 94 94 95 &ehci0 { 95 &ehci0 { 96 dr_mode = "otg"; 96 dr_mode = "otg"; 97 status = "okay"; 97 status = "okay"; 98 }; 98 }; 99 99 100 &ehci1 { 100 &ehci1 { 101 status = "okay"; 101 status = "okay"; 102 }; 102 }; 103 103 104 &hsusb { 104 &hsusb { 105 dr_mode = "otg"; 105 dr_mode = "otg"; 106 status = "okay"; 106 status = "okay"; 107 }; 107 }; 108 108 109 &i2c0 { 109 &i2c0 { 110 pinctrl-0 = <&i2c0_pins>; 110 pinctrl-0 = <&i2c0_pins>; 111 pinctrl-names = "default"; 111 pinctrl-names = "default"; 112 112 113 status = "okay"; 113 status = "okay"; 114 }; 114 }; 115 115 116 &i2c1 { 116 &i2c1 { 117 pinctrl-0 = <&i2c1_pins>; 117 pinctrl-0 = <&i2c1_pins>; 118 pinctrl-names = "default"; 118 pinctrl-names = "default"; 119 119 120 status = "okay"; 120 status = "okay"; 121 }; 121 }; 122 122 123 &ohci0 { 123 &ohci0 { 124 dr_mode = "otg"; 124 dr_mode = "otg"; 125 status = "okay"; 125 status = "okay"; 126 }; 126 }; 127 127 128 &ohci1 { 128 &ohci1 { 129 status = "okay"; 129 status = "okay"; 130 }; 130 }; 131 131 132 &phyrst { 132 &phyrst { 133 status = "okay"; 133 status = "okay"; 134 }; 134 }; 135 135 136 &scif0 { 136 &scif0 { 137 pinctrl-0 = <&scif0_pins>; 137 pinctrl-0 = <&scif0_pins>; 138 pinctrl-names = "default"; 138 pinctrl-names = "default"; 139 status = "okay"; 139 status = "okay"; 140 }; 140 }; 141 141 142 &sdhi1 { 142 &sdhi1 { 143 pinctrl-0 = <&sdhi1_pins>; 143 pinctrl-0 = <&sdhi1_pins>; 144 pinctrl-1 = <&sdhi1_pins_uhs>; 144 pinctrl-1 = <&sdhi1_pins_uhs>; 145 pinctrl-names = "default", "state_uhs" 145 pinctrl-names = "default", "state_uhs"; 146 146 147 vmmc-supply = <®_3p3v>; 147 vmmc-supply = <®_3p3v>; 148 vqmmc-supply = <&vccq_sdhi1>; 148 vqmmc-supply = <&vccq_sdhi1>; 149 bus-width = <4>; 149 bus-width = <4>; 150 sd-uhs-sdr50; 150 sd-uhs-sdr50; 151 sd-uhs-sdr104; 151 sd-uhs-sdr104; 152 status = "okay"; 152 status = "okay"; 153 }; 153 }; 154 154 155 &spi1 { 155 &spi1 { 156 pinctrl-0 = <&spi1_pins>; 156 pinctrl-0 = <&spi1_pins>; 157 pinctrl-names = "default"; 157 pinctrl-names = "default"; 158 158 159 status = "okay"; 159 status = "okay"; 160 }; 160 }; 161 161 162 &usb2_phy0 { 162 &usb2_phy0 { 163 pinctrl-0 = <&usb0_pins>; 163 pinctrl-0 = <&usb0_pins>; 164 pinctrl-names = "default"; 164 pinctrl-names = "default"; 165 165 166 vbus-supply = <&usb0_vbus_otg>; 166 vbus-supply = <&usb0_vbus_otg>; 167 status = "okay"; 167 status = "okay"; 168 }; 168 }; 169 169 170 &usb2_phy1 { 170 &usb2_phy1 { 171 pinctrl-0 = <&usb1_pins>; 171 pinctrl-0 = <&usb1_pins>; 172 pinctrl-names = "default"; 172 pinctrl-names = "default"; 173 173 174 status = "okay"; 174 status = "okay"; 175 }; 175 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.