2 * This file is part of the coreboot project.
4 * Based on the example of Mika Westerberg: https://lwn.net/Articles/612062/
6 * Copyright (C) 2015 Tobias Diedrich, Mika Westerberg
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; version 2 of the License.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
22 Scope (\_SB.PCI0.SBUS)
26 Name (_HID, "PRP0001")
28 Name (_CRS, ResourceTemplate () {
29 GpioIo (Exclusive, PullUp, 0, 0, IoRestrictionOutputOnly,
30 "\\_SB.PCI0.SBUS.GPIO", 0, ResourceConsumer) {189, 190, 191}
33 Name (_DSD, Package () {
34 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
36 Package () {"compatible", Package () {"gpio-leds"}},
42 Name (_DSD, Package () {
43 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
46 * From Linux Documentation/leds/leds-class.txt:
48 * Is currently of the form:
49 * "devicename:colour:function"
51 Package () {"label", "apu1:green:led1"},
52 Package () {"gpios", Package () {^^LEDS, 0, 0, 1 /* low-active */}},
53 Package () {"default-state", "keep"},
58 Name (_DSD, Package () {
59 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
61 Package () {"label", "apu1:green:led2"},
62 Package () {"gpios", Package () {^^LEDS, 0, 1, 1 /* low-active */}},
63 Package () {"default-state", "keep"},
70 Name (_DSD, Package () {
71 ToUUID("daffd814-6eba-4d8c-8a91-bc9bbf4aa301"),
73 Package () {"label", "apu1:green:led3"},
74 Package () {"gpios", Package () {^^LEDS, 0, 2, 1 /* low-active */}},
75 Package () {"default-state", "keep"},