查看F1C的源代码
←
F1C
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
=== Notes === 查看 DTS 中对应的设备用了哪些关键字: <source lang=bash> $ grep -r of_property drivers/spi/ | grep spi-max-frequency </source> '''SPI:''' SPI_SCLK: 3KHz ~ 100MHz * SPI Nor Flash: spi-max-frequency = <50000000>; (50MHz) * SPI 127x: spi-max-frequency = <10000000>; <source lang=bash> # CONFIG_SPI_SUN4I is not set CONFIG_SPI_SUN6I=y </source> <source lang=bash> drivers/spi/spi-bitbang.o drivers/spi/spidev.o drivers/spi/spi-gpio.o drivers/spi/spi.o drivers/spi/spi-sun6i.o </source> <br> '''I2C:''' <source lang=bash> i2c0: i2c@1C27000 { compatible = "allwinner,sun6i-a31-i2c"; reg = <0x01C27000 0x400>; interrupts = <7>; clocks = <&ccu CLK_BUS_I2C0>; resets = <&ccu RST_BUS_I2C0>; pinctrl-names = "default"; pinctrl-0 = <&i2c0_pins>; status = "disabled"; #address-cells = <1>; #size-cells = <0>; }; /* 在 pio 节点下,添加 i2c 引脚定义 */ i2c0_pins: i2c0 { pins = "PE11", "PE12"; function = "i2c0"; }; </source> pcf8563@0x51: <source lang=bash> # i2cdetect -y 0 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- UU -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- </source> <br> '''GPIO:''' <source lang=bash> leds { compatible = "gpio-leds"; blue_led { label = "licheepi:blue:usr"; gpios = <&pio 4 4 GPIO_ACTIVE_LOW>; /* PE4 */ }; green_led { label = "licheepi:green:usr"; gpios = <&pio 4 5 GPIO_ACTIVE_LOW>; /* PE5 */ default-state = "on"; }; red_led { label = "licheepi:red:usr"; gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PE6 */ }; }; </source> <br>
返回到
F1C
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面