Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
258f3676
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
258f3676
编写于
12年前
作者:
A
Andrew Lunn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ARM: Kirkwood: Describe iConnects LEDs in DT.
Signed-off-by:
N
Andrew Lunn
<
andrew@lunn.ch
>
上级
48135a66
无相关合并请求
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
46 deletion
+34
-46
arch/arm/boot/dts/kirkwood-iconnect.dts
arch/arm/boot/dts/kirkwood-iconnect.dts
+34
-0
arch/arm/mach-kirkwood/board-iconnect.c
arch/arm/mach-kirkwood/board-iconnect.c
+0
-46
未找到文件。
arch/arm/boot/dts/kirkwood-iconnect.dts
浏览文件 @
258f3676
...
...
@@ -31,4 +31,38 @@
status
=
"ok"
;
};
};
gpio
-
leds
{
compatible
=
"gpio-leds"
;
led
-
level
{
label
=
"led_level"
;
gpios
=
<&
gpio1
9
0
>;
linux
,
default
-
trigger
=
"default-on"
;
};
power
-
blue
{
label
=
"power:blue"
;
gpios
=
<&
gpio1
11
0
>;
linux
,
default
-
trigger
=
"timer"
;
};
usb1
{
label
=
"usb1:blue"
;
gpios
=
<&
gpio1
12
0
>;
};
usb2
{
label
=
"usb2:blue"
;
gpios
=
<&
gpio1
13
0
>;
};
usb3
{
label
=
"usb3:blue"
;
gpios
=
<&
gpio1
14
0
>;
};
usb4
{
label
=
"usb4:blue"
;
gpios
=
<&
gpio1
15
0
>;
};
otb
{
label
=
"otb:blue"
;
gpios
=
<&
gpio1
16
0
>;
};
};
};
This diff is collapsed.
Click to expand it.
arch/arm/mach-kirkwood/board-iconnect.c
浏览文件 @
258f3676
...
...
@@ -19,7 +19,6 @@
#include <linux/mtd/partitions.h>
#include <linux/mv643xx_eth.h>
#include <linux/gpio.h>
#include <linux/leds.h>
#include <linux/input.h>
#include <linux/gpio_keys.h>
#include <asm/mach/arch.h>
...
...
@@ -31,50 +30,6 @@ static struct mv643xx_eth_platform_data iconnect_ge00_data = {
.
phy_addr
=
MV643XX_ETH_PHY_ADDR
(
11
),
};
static
struct
gpio_led
iconnect_led_pins
[]
=
{
{
.
name
=
"led_level"
,
.
gpio
=
41
,
.
default_trigger
=
"default-on"
,
},
{
.
name
=
"power:blue"
,
.
gpio
=
42
,
.
default_trigger
=
"timer"
,
},
{
.
name
=
"power:red"
,
.
gpio
=
43
,
},
{
.
name
=
"usb1:blue"
,
.
gpio
=
44
,
},
{
.
name
=
"usb2:blue"
,
.
gpio
=
45
,
},
{
.
name
=
"usb3:blue"
,
.
gpio
=
46
,
},
{
.
name
=
"usb4:blue"
,
.
gpio
=
47
,
},
{
.
name
=
"otb:blue"
,
.
gpio
=
48
,
},
};
static
struct
gpio_led_platform_data
iconnect_led_data
=
{
.
leds
=
iconnect_led_pins
,
.
num_leds
=
ARRAY_SIZE
(
iconnect_led_pins
),
.
gpio_blink_set
=
orion_gpio_led_blink_set
,
};
static
struct
platform_device
iconnect_leds
=
{
.
name
=
"leds-gpio"
,
.
id
=
-
1
,
.
dev
=
{
.
platform_data
=
&
iconnect_led_data
,
}
};
static
unsigned
int
iconnect_mpp_config
[]
__initdata
=
{
MPP12_GPIO
,
MPP35_GPIO
,
...
...
@@ -140,7 +95,6 @@ void __init iconnect_init(void)
kirkwood_ge00_init
(
&
iconnect_ge00_data
);
platform_device_register
(
&
iconnect_button_device
);
platform_device_register
(
&
iconnect_leds
);
}
static
int
__init
iconnect_pci_init
(
void
)
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部