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/G2UL Type-1 SMARC EVK parts
0004  *
0005  * Copyright (C) 2022 Renesas Electronics Corp.
0006  */
0007 
0008 /*
0009  * DIP-Switch SW1 setting
0010  * 1 : High; 0: Low
0011  * SW1-2 : SW_SD0_DEV_SEL       (0: uSD; 1: eMMC)
0012  * SW1-3 : SW_ET0_EN_N          (0: ETHER0; 1: CAN0, CAN1, SSI1, RSPI1)
0013  * Please change below macros according to SW1 setting
0014  */
0015 #define SW_SW0_DEV_SEL  1
0016 #define SW_ET0_EN_N     1
0017 
0018 #include "rzg2ul-smarc-som.dtsi"
0019 #include "rzg2ul-smarc-pinfunction.dtsi"
0020 #include "rz-smarc-common.dtsi"
0021 
0022 #if (!SW_ET0_EN_N)
0023 &canfd {
0024         /delete-property/ pinctrl-0;
0025         /delete-property/ pinctrl-names;
0026         status = "disabled";
0027 };
0028 #endif
0029 
0030 &cpu_dai {
0031         sound-dai = <&ssi1>;
0032 };
0033 
0034 &i2c1 {
0035         wm8978: codec@1a {
0036                 compatible = "wlf,wm8978";
0037                 #sound-dai-cells = <0>;
0038                 reg = <0x1a>;
0039         };
0040 };
0041 
0042 #if (SW_ET0_EN_N)
0043 &ssi1 {
0044         pinctrl-0 = <&ssi1_pins>;
0045         pinctrl-names = "default";
0046 
0047         status = "okay";
0048 };
0049 #else
0050 &snd_rzg2l {
0051         status = "disabled";
0052 };
0053 
0054 &spi1 {
0055         /delete-property/ pinctrl-0;
0056         /delete-property/ pinctrl-names;
0057         status = "disabled";
0058 };
0059 
0060 &ssi1 {
0061         /delete-property/ pinctrl-0;
0062         /delete-property/ pinctrl-names;
0063         status = "disabled";
0064 };
0065 #endif
0066 
0067 &vccq_sdhi1 {
0068         gpios = <&pinctrl RZG2L_GPIO(6, 1) GPIO_ACTIVE_HIGH>;
0069 };