Krzysztof Kozlowski | cc4637f | 2017-12-25 11:40:09 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Hardkernel Odroid XU/XU3 LED device tree source |
| 4 | * |
| 5 | * Copyright (c) 2015,2016 Krzysztof Kozlowski |
| 6 | * Copyright (c) 2014 Collabora Ltd. |
| 7 | * Copyright (c) 2013 Samsung Electronics Co., Ltd. |
| 8 | * http://www.samsung.com |
Krzysztof Kozlowski | cc4637f | 2017-12-25 11:40:09 +0100 | [diff] [blame] | 9 | */ |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 10 | |
| 11 | #include <dt-bindings/gpio/gpio.h> |
| 12 | |
| 13 | / { |
Alexander Dahl | 4a6dbc6 | 2020-10-05 22:34:46 +0200 | [diff] [blame] | 14 | led-controller-1 { |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 15 | compatible = "pwm-leds"; |
| 16 | |
Alexander Dahl | 4a6dbc6 | 2020-10-05 22:34:46 +0200 | [diff] [blame] | 17 | led-1 { |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 18 | label = "green:mmc0"; |
| 19 | pwms = <&pwm 1 2000000 0>; |
| 20 | pwm-names = "pwm1"; |
| 21 | /* |
| 22 | * Green LED is much brighter than the others |
| 23 | * so limit its max brightness |
| 24 | */ |
Krzysztof Kozlowski | 75121e1 | 2021-05-05 09:59:39 -0400 | [diff] [blame] | 25 | max-brightness = <127>; |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 26 | linux,default-trigger = "mmc0"; |
| 27 | }; |
| 28 | |
Alexander Dahl | 4a6dbc6 | 2020-10-05 22:34:46 +0200 | [diff] [blame] | 29 | led-2 { |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 30 | label = "blue:heartbeat"; |
| 31 | pwms = <&pwm 2 2000000 0>; |
| 32 | pwm-names = "pwm2"; |
Krzysztof Kozlowski | 75121e1 | 2021-05-05 09:59:39 -0400 | [diff] [blame] | 33 | max-brightness = <255>; |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 34 | linux,default-trigger = "heartbeat"; |
| 35 | }; |
| 36 | }; |
| 37 | |
Alexander Dahl | 4a6dbc6 | 2020-10-05 22:34:46 +0200 | [diff] [blame] | 38 | led-controller-2 { |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 39 | compatible = "gpio-leds"; |
Alexander Dahl | 4a6dbc6 | 2020-10-05 22:34:46 +0200 | [diff] [blame] | 40 | |
| 41 | led-3 { |
Krzysztof Kozlowski | 8c2bd87 | 2016-05-03 14:35:51 +0200 | [diff] [blame] | 42 | label = "red:microSD"; |
| 43 | gpios = <&gpx2 3 GPIO_ACTIVE_HIGH>; |
| 44 | default-state = "off"; |
| 45 | linux,default-trigger = "mmc1"; |
| 46 | }; |
| 47 | }; |
| 48 | }; |