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