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 audio_mclock: audio_mclock { >> 36 compatible = "fixed-clock"; >> 37 #clock-cells = <0>; >> 38 clock-frequency = <11289600>; >> 39 }; >> 40 35 snd_rzg2l: sound { 41 snd_rzg2l: sound { 36 compatible = "simple-audio-car 42 compatible = "simple-audio-card"; 37 simple-audio-card,format = "i2 43 simple-audio-card,format = "i2s"; 38 simple-audio-card,bitclock-mas 44 simple-audio-card,bitclock-master = <&cpu_dai>; 39 simple-audio-card,frame-master 45 simple-audio-card,frame-master = <&cpu_dai>; 40 simple-audio-card,mclk-fs = <2 46 simple-audio-card,mclk-fs = <256>; 41 47 42 simple-audio-card,widgets = "M 48 simple-audio-card,widgets = "Microphone", "Microphone Jack"; 43 simple-audio-card,routing = 49 simple-audio-card,routing = 44 "L2", "Mic Bias", 50 "L2", "Mic Bias", 45 "R2", "Mic Bias", 51 "R2", "Mic Bias", 46 "Mic Bias", "Micro 52 "Mic Bias", "Microphone Jack"; 47 53 48 cpu_dai: simple-audio-card,cpu 54 cpu_dai: simple-audio-card,cpu { 49 }; 55 }; 50 56 51 codec_dai: simple-audio-card,c 57 codec_dai: simple-audio-card,codec { 52 clocks = <&versa3 2>; !! 58 clocks = <&audio_mclock>; 53 sound-dai = <&wm8978>; 59 sound-dai = <&wm8978>; 54 }; 60 }; 55 }; 61 }; 56 62 >> 63 usb0_vbus_otg: regulator-usb0-vbus-otg { >> 64 compatible = "regulator-fixed"; >> 65 >> 66 regulator-name = "USB0_VBUS_OTG"; >> 67 regulator-min-microvolt = <5000000>; >> 68 regulator-max-microvolt = <5000000>; >> 69 }; >> 70 57 vccq_sdhi1: regulator-vccq-sdhi1 { 71 vccq_sdhi1: regulator-vccq-sdhi1 { 58 compatible = "regulator-gpio"; 72 compatible = "regulator-gpio"; 59 regulator-name = "SDHI1 VccQ"; 73 regulator-name = "SDHI1 VccQ"; 60 regulator-min-microvolt = <180 74 regulator-min-microvolt = <1800000>; 61 regulator-max-microvolt = <330 75 regulator-max-microvolt = <3300000>; 62 gpios-states = <1>; 76 gpios-states = <1>; 63 states = <3300000 1>, <1800000 77 states = <3300000 1>, <1800000 0>; 64 }; << 65 << 66 x1: x1-clock { << 67 compatible = "fixed-clock"; << 68 #clock-cells = <0>; << 69 clock-frequency = <24000000>; << 70 }; 78 }; 71 }; 79 }; 72 80 73 &audio_clk1 { 81 &audio_clk1 { 74 clock-frequency = <11289600>; 82 clock-frequency = <11289600>; 75 }; 83 }; 76 84 77 &audio_clk2 { 85 &audio_clk2 { 78 clock-frequency = <12288000>; 86 clock-frequency = <12288000>; 79 }; 87 }; 80 88 81 &canfd { 89 &canfd { 82 pinctrl-0 = <&can0_pins &can1_pins>; 90 pinctrl-0 = <&can0_pins &can1_pins>; 83 pinctrl-names = "default"; 91 pinctrl-names = "default"; 84 status = "okay"; 92 status = "okay"; 85 93 86 channel0 { 94 channel0 { 87 status = "okay"; 95 status = "okay"; 88 }; 96 }; 89 97 90 channel1 { 98 channel1 { 91 status = "okay"; 99 status = "okay"; 92 }; 100 }; 93 }; 101 }; 94 102 95 &ehci0 { 103 &ehci0 { 96 dr_mode = "otg"; 104 dr_mode = "otg"; 97 status = "okay"; 105 status = "okay"; 98 }; 106 }; 99 107 100 &ehci1 { 108 &ehci1 { 101 status = "okay"; 109 status = "okay"; 102 }; 110 }; 103 111 104 &hsusb { 112 &hsusb { 105 dr_mode = "otg"; 113 dr_mode = "otg"; 106 status = "okay"; 114 status = "okay"; 107 }; 115 }; 108 116 109 &i2c0 { 117 &i2c0 { 110 pinctrl-0 = <&i2c0_pins>; 118 pinctrl-0 = <&i2c0_pins>; 111 pinctrl-names = "default"; 119 pinctrl-names = "default"; 112 120 113 status = "okay"; 121 status = "okay"; 114 }; 122 }; 115 123 116 &i2c1 { 124 &i2c1 { 117 pinctrl-0 = <&i2c1_pins>; 125 pinctrl-0 = <&i2c1_pins>; 118 pinctrl-names = "default"; 126 pinctrl-names = "default"; 119 127 120 status = "okay"; 128 status = "okay"; 121 }; 129 }; 122 130 123 &ohci0 { 131 &ohci0 { 124 dr_mode = "otg"; 132 dr_mode = "otg"; 125 status = "okay"; 133 status = "okay"; 126 }; 134 }; 127 135 128 &ohci1 { 136 &ohci1 { 129 status = "okay"; 137 status = "okay"; 130 }; 138 }; 131 139 132 &phyrst { 140 &phyrst { 133 status = "okay"; 141 status = "okay"; 134 }; 142 }; 135 143 136 &scif0 { 144 &scif0 { 137 pinctrl-0 = <&scif0_pins>; 145 pinctrl-0 = <&scif0_pins>; 138 pinctrl-names = "default"; 146 pinctrl-names = "default"; 139 status = "okay"; 147 status = "okay"; 140 }; 148 }; 141 149 142 &sdhi1 { 150 &sdhi1 { 143 pinctrl-0 = <&sdhi1_pins>; 151 pinctrl-0 = <&sdhi1_pins>; 144 pinctrl-1 = <&sdhi1_pins_uhs>; 152 pinctrl-1 = <&sdhi1_pins_uhs>; 145 pinctrl-names = "default", "state_uhs" 153 pinctrl-names = "default", "state_uhs"; 146 154 147 vmmc-supply = <®_3p3v>; 155 vmmc-supply = <®_3p3v>; 148 vqmmc-supply = <&vccq_sdhi1>; 156 vqmmc-supply = <&vccq_sdhi1>; 149 bus-width = <4>; 157 bus-width = <4>; 150 sd-uhs-sdr50; 158 sd-uhs-sdr50; 151 sd-uhs-sdr104; 159 sd-uhs-sdr104; 152 status = "okay"; 160 status = "okay"; 153 }; 161 }; 154 162 155 &spi1 { 163 &spi1 { 156 pinctrl-0 = <&spi1_pins>; 164 pinctrl-0 = <&spi1_pins>; 157 pinctrl-names = "default"; 165 pinctrl-names = "default"; 158 166 159 status = "okay"; 167 status = "okay"; 160 }; 168 }; 161 169 162 &usb2_phy0 { 170 &usb2_phy0 { 163 pinctrl-0 = <&usb0_pins>; 171 pinctrl-0 = <&usb0_pins>; 164 pinctrl-names = "default"; 172 pinctrl-names = "default"; 165 173 166 vbus-supply = <&usb0_vbus_otg>; 174 vbus-supply = <&usb0_vbus_otg>; 167 status = "okay"; 175 status = "okay"; 168 }; 176 }; 169 177 170 &usb2_phy1 { 178 &usb2_phy1 { 171 pinctrl-0 = <&usb1_pins>; 179 pinctrl-0 = <&usb1_pins>; 172 pinctrl-names = "default"; 180 pinctrl-names = "default"; 173 181 174 status = "okay"; 182 status = "okay"; 175 }; 183 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.