1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 2 /* 2 /* 3 * Copyright (C) 2021 MediaTek Inc. 3 * Copyright (C) 2021 MediaTek Inc. 4 * Author: Seiya Wang <seiya.wang@mediatek.com> 4 * Author: Seiya Wang <seiya.wang@mediatek.com> 5 */ 5 */ 6 /dts-v1/; 6 /dts-v1/; 7 #include "mt8195.dtsi" 7 #include "mt8195.dtsi" 8 8 9 / { 9 / { 10 model = "MediaTek MT8195 evaluation bo 10 model = "MediaTek MT8195 evaluation board"; 11 compatible = "mediatek,mt8195-evb", "m 11 compatible = "mediatek,mt8195-evb", "mediatek,mt8195"; 12 12 13 aliases { 13 aliases { 14 serial0 = &uart0; 14 serial0 = &uart0; 15 }; 15 }; 16 16 17 chosen { 17 chosen { 18 stdout-path = "serial0:921600n 18 stdout-path = "serial0:921600n8"; 19 }; 19 }; 20 20 21 memory@40000000 { 21 memory@40000000 { 22 device_type = "memory"; 22 device_type = "memory"; 23 reg = <0 0x40000000 0 0x800000 23 reg = <0 0x40000000 0 0x80000000>; 24 }; 24 }; 25 }; 25 }; 26 26 27 &auxadc { 27 &auxadc { 28 status = "okay"; 28 status = "okay"; 29 }; 29 }; 30 30 31 &i2c0 { 31 &i2c0 { 32 pinctrl-names = "default"; 32 pinctrl-names = "default"; 33 pinctrl-0 = <&i2c0_pin>; 33 pinctrl-0 = <&i2c0_pin>; 34 clock-frequency = <100000>; 34 clock-frequency = <100000>; 35 status = "okay"; 35 status = "okay"; 36 }; 36 }; 37 37 38 &i2c1 { 38 &i2c1 { 39 pinctrl-names = "default"; 39 pinctrl-names = "default"; 40 pinctrl-0 = <&i2c1_pin>; 40 pinctrl-0 = <&i2c1_pin>; 41 clock-frequency = <400000>; 41 clock-frequency = <400000>; 42 status = "okay"; 42 status = "okay"; 43 }; 43 }; 44 44 45 &i2c4 { 45 &i2c4 { 46 pinctrl-names = "default"; 46 pinctrl-names = "default"; 47 pinctrl-0 = <&i2c4_pin>; 47 pinctrl-0 = <&i2c4_pin>; 48 clock-frequency = <400000>; 48 clock-frequency = <400000>; 49 status = "okay"; 49 status = "okay"; 50 }; 50 }; 51 51 52 &i2c6 { 52 &i2c6 { 53 pinctrl-names = "default"; 53 pinctrl-names = "default"; 54 pinctrl-0 = <&i2c6_pin>; 54 pinctrl-0 = <&i2c6_pin>; 55 clock-frequency = <400000>; 55 clock-frequency = <400000>; 56 status = "okay"; 56 status = "okay"; 57 }; 57 }; 58 58 59 &nor_flash { 59 &nor_flash { 60 status = "okay"; 60 status = "okay"; 61 pinctrl-names = "default"; 61 pinctrl-names = "default"; 62 pinctrl-0 = <&nor_pins_default>; 62 pinctrl-0 = <&nor_pins_default>; 63 63 64 flash@0 { 64 flash@0 { 65 compatible = "jedec,spi-nor"; 65 compatible = "jedec,spi-nor"; 66 reg = <0>; 66 reg = <0>; 67 spi-max-frequency = <50000000> 67 spi-max-frequency = <50000000>; 68 }; 68 }; 69 }; 69 }; 70 70 71 &pio { 71 &pio { 72 i2c0_pin: i2c0-pins { 72 i2c0_pin: i2c0-pins { 73 pins { 73 pins { 74 pinmux = <PINMUX_GPIO8 74 pinmux = <PINMUX_GPIO8__FUNC_SDA0>, 75 <PINMUX_GPIO9 75 <PINMUX_GPIO9__FUNC_SCL0>; 76 bias-pull-up = <MTK_PU 76 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; >> 77 mediatek,drive-strength-adv = <0>; 77 drive-strength = <6>; 78 drive-strength = <6>; 78 }; 79 }; 79 }; 80 }; 80 81 81 i2c1_pin: i2c1-pins { 82 i2c1_pin: i2c1-pins { 82 pins { 83 pins { 83 pinmux = <PINMUX_GPIO1 84 pinmux = <PINMUX_GPIO10__FUNC_SDA1>, 84 <PINMUX_GPIO1 85 <PINMUX_GPIO11__FUNC_SCL1>; 85 bias-pull-up = <MTK_PU 86 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; >> 87 mediatek,drive-strength-adv = <0>; 86 drive-strength = <6>; 88 drive-strength = <6>; 87 }; 89 }; 88 }; 90 }; 89 91 90 i2c4_pin: i2c4-pins { 92 i2c4_pin: i2c4-pins { 91 pins { 93 pins { 92 pinmux = <PINMUX_GPIO1 94 pinmux = <PINMUX_GPIO16__FUNC_SDA4>, 93 <PINMUX_GPIO1 95 <PINMUX_GPIO17__FUNC_SCL4>; 94 bias-pull-up = <MTK_PU 96 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 95 drive-strength-microam !! 97 mediatek,drive-strength-adv = <7>; 96 }; 98 }; 97 }; 99 }; 98 100 99 i2c6_pin: i2c6-pins { 101 i2c6_pin: i2c6-pins { 100 pins { 102 pins { 101 pinmux = <PINMUX_GPIO2 103 pinmux = <PINMUX_GPIO25__FUNC_SDA6>, 102 <PINMUX_GPIO2 104 <PINMUX_GPIO26__FUNC_SCL6>; 103 bias-pull-up = <MTK_PU 105 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 104 }; 106 }; 105 }; 107 }; 106 108 107 i2c7_pin: i2c7-pins { 109 i2c7_pin: i2c7-pins { 108 pins { 110 pins { 109 pinmux = <PINMUX_GPIO2 111 pinmux = <PINMUX_GPIO27__FUNC_SCL7>, 110 <PINMUX_GPIO2 112 <PINMUX_GPIO28__FUNC_SDA7>; 111 bias-pull-up = <MTK_PU 113 bias-pull-up = <MTK_PUPD_SET_R1R0_01>; 112 }; 114 }; 113 }; 115 }; 114 116 115 nor_pins_default: nor-pins { 117 nor_pins_default: nor-pins { 116 pins0 { 118 pins0 { 117 pinmux = <PINMUX_GPIO1 119 pinmux = <PINMUX_GPIO142__FUNC_SPINOR_IO0>, 118 <PINMUX_GPIO1 120 <PINMUX_GPIO141__FUNC_SPINOR_CK>, 119 <PINMUX_GPIO1 121 <PINMUX_GPIO143__FUNC_SPINOR_IO1>; 120 bias-pull-down; 122 bias-pull-down; 121 }; 123 }; 122 124 123 pins1 { 125 pins1 { 124 pinmux = <PINMUX_GPIO1 126 pinmux = <PINMUX_GPIO140__FUNC_SPINOR_CS>, 125 <PINMUX_GPIO1 127 <PINMUX_GPIO130__FUNC_SPINOR_IO2>, 126 <PINMUX_GPIO1 128 <PINMUX_GPIO131__FUNC_SPINOR_IO3>; 127 bias-pull-up; 129 bias-pull-up; 128 }; 130 }; 129 }; 131 }; 130 132 131 uart0_pin: uart0-pins { 133 uart0_pin: uart0-pins { 132 pins { 134 pins { 133 pinmux = <PINMUX_GPIO9 135 pinmux = <PINMUX_GPIO98__FUNC_UTXD0>, 134 <PINMUX_GPIO9 136 <PINMUX_GPIO99__FUNC_URXD0>; 135 }; 137 }; 136 }; 138 }; 137 }; 139 }; 138 140 139 &u3phy0 { 141 &u3phy0 { 140 status = "okay"; !! 142 status="okay"; 141 }; 143 }; 142 144 143 &u3phy1 { 145 &u3phy1 { 144 status = "okay"; !! 146 status="okay"; 145 }; 147 }; 146 148 147 &u3phy2 { 149 &u3phy2 { 148 status = "okay"; !! 150 status="okay"; 149 }; 151 }; 150 152 151 &u3phy3 { 153 &u3phy3 { 152 status = "okay"; !! 154 status="okay"; 153 }; 155 }; 154 156 155 &uart0 { 157 &uart0 { 156 pinctrl-names = "default"; 158 pinctrl-names = "default"; 157 pinctrl-0 = <&uart0_pin>; 159 pinctrl-0 = <&uart0_pin>; 158 status = "okay"; << 159 }; << 160 << 161 &ssusb0 { << 162 status = "okay"; << 163 }; << 164 << 165 &ssusb2 { << 166 status = "okay"; << 167 }; << 168 << 169 &ssusb3 { << 170 status = "okay"; 160 status = "okay"; 171 }; 161 }; 172 162 173 &xhci0 { 163 &xhci0 { 174 status = "okay"; 164 status = "okay"; 175 }; 165 }; 176 166 177 &xhci1 { 167 &xhci1 { 178 status = "okay"; 168 status = "okay"; 179 }; 169 }; 180 170 181 &xhci2 { 171 &xhci2 { 182 status = "okay"; 172 status = "okay"; 183 }; 173 }; 184 174 185 &xhci3 { 175 &xhci3 { 186 /* This controller is connected with a 176 /* This controller is connected with a BT device. 187 * Disable usb2 lpm to prevent known i 177 * Disable usb2 lpm to prevent known issues. 188 */ 178 */ 189 usb2-lpm-disable; 179 usb2-lpm-disable; 190 status = "okay"; 180 status = "okay"; 191 }; 181 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.