|
发表于 2021-9-8 08:47:16
|
显示全部楼层
您可以在设备树里可以查看:
OKT507-linux-sdk/kernel/linux-4.9/arch/arm64/boot/dts/sunxi/sun50iw9p1.dtsi
- 1165 spi0: spi@05010000 {
- 1166 #address-cells = <1>;
- 1167 #size-cells = <0>;
- 1168 compatible = "allwinner,sun50i-spi";
- 1169 device_type = "spi0";
- 1170 reg = <0x0 0x05010000 0x0 0x1000>;
- 1171 interrupts = <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>;
- 1172 clocks = <&clk_pll_periph0>, <&clk_spi0>;
- 1173 clock-frequency = <100000000>;
- 1174 pinctrl-names = "default", "sleep";
- 1175 pinctrl-0 = <&spi0_pins_a &spi0_pins_b>;
- 1176 pinctrl-1 = <&spi0_pins_c>;
- 1177 spi0_cs_number = <1>;
- 1178 spi0_cs_bitmap = <1>;
- 1179 status = "disabled";
- 1180 };
- 1181
- 1182 spi1: spi@05011000 {
- 1183 #address-cells = <1>;
- 1184 #size-cells = <0>;
- 1185 compatible = "allwinner,sun50i-spi";
- 1186 device_type = "spi1";
- 1187 reg = <0x0 0x05011000 0x0 0x1000>;
- 1188 interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
- 1189 clocks = <&clk_pll_periph0>, <&clk_spi1>;
- 1190 clock-frequency = <100000000>;
- 1191 pinctrl-names = "default", "sleep";
- 1192 pinctrl-0 = <&spi1_pins_a &spi1_pins_b>;
- 1193 pinctrl-1 = <&spi1_pins_c>;
- 1194 spi1_cs_number = <1>;
- 1195 spi1_cs_bitmap = <1>;
- 1196 status = "disabled";
- 1197 };
复制代码 |
|