File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
arch/arm64/boot/dts/renesas Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 8
8
/dts-v1/;
9
9
10
10
/* Switch selection settings */
11
+ #define SW_GPIO8_CAN0_STB 0
12
+ #define SW_GPIO9_CAN1_STB 0
11
13
#define SW_LCD_EN 0
12
14
#define SW_PDM_EN 0
13
15
#define SW_SD0_DEV_SEL 0
42
44
#if (!SW_PDM_EN)
43
45
channel1 {
44
46
status = "okay";
47
+ #if (!SW_LCD_EN) && (SW_GPIO9_CAN1_STB)
48
+ phys = <&can_transceiver1>;
49
+ #endif
45
50
};
46
51
#endif
47
52
48
53
#if (!SW_LCD_EN)
49
54
channel4 {
50
55
status = "okay";
56
+ #if (SW_GPIO8_CAN0_STB)
57
+ phys = <&can_transceiver0>;
58
+ #endif
51
59
};
52
60
#endif
53
61
};
54
62
63
+ #if (!SW_LCD_EN) && (SW_GPIO8_CAN0_STB)
64
+ &can_transceiver0 {
65
+ standby-gpios = <&pinctrl RZG3E_GPIO(5, 4) GPIO_ACTIVE_HIGH>;
66
+ status = "okay";
67
+ };
68
+ #endif
69
+
70
+ #if (!SW_LCD_EN) && (SW_GPIO9_CAN1_STB)
71
+ &can_transceiver1 {
72
+ standby-gpios = <&pinctrl RZG3E_GPIO(5, 5) GPIO_ACTIVE_HIGH>;
73
+ status = "okay";
74
+ };
75
+ #endif
76
+
55
77
&pinctrl {
56
78
canfd_pins: canfd {
57
79
can1_pins: can1 {
Original file line number Diff line number Diff line change 12
12
* SW_SDIO_M2E:
13
13
* 0 - SMARC SDIO signal is connected to uSD1
14
14
* 1 - SMARC SDIO signal is connected to M.2 Key E connector
15
+ *
16
+ * Please set the switch position SW_GPIO_CAN_PMOD on the carrier board and the
17
+ * corresponding macro SW_GPIO8_CAN0_STB/SW_GPIO8_CAN0_STB on the board DTS:
18
+ *
19
+ * SW_GPIO8_CAN0_STB:
20
+ * 0 - Connect to GPIO8 PMOD (default)
21
+ * 1 - Connect to CAN0 transceiver STB pin
22
+ *
23
+ * SW_GPIO9_CAN1_STB:
24
+ * 0 - Connect to GPIO9 PMOD (default)
25
+ * 1 - Connect to CAN1 transceiver STB pin
15
26
*/
16
27
17
28
/ {
27
38
serial3 = &scif0;
28
39
mmc1 = &sdhi1;
29
40
};
41
+
42
+ can_transceiver0: can-phy0 {
43
+ compatible = "ti,tcan1042";
44
+ #phy-cells = <0>;
45
+ max-bitrate = <8000000>;
46
+ status = "disabled";
47
+ };
48
+
49
+ can_transceiver1: can-phy1 {
50
+ compatible = "ti,tcan1042";
51
+ #phy-cells = <0>;
52
+ max-bitrate = <8000000>;
53
+ status = "disabled";
54
+ };
30
55
};
31
56
32
57
&canfd {
You can’t perform that action at this time.
0 commit comments