| // Copyright 2026 The Fuchsia Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| { |
| name: "buttons", |
| include: [ |
| ], |
| program: { |
| }, |
| capabilities: [ |
| { |
| service: "fuchsia.hardware.buttons.Service", |
| metadata: { |
| id: "fuchsia.buttons.GpioButtonsMetadata" |
| } |
| } |
| ], |
| use: [ |
| { |
| service: "fuchsia.driver.compat.Service" |
| }, |
| { |
| service: "fuchsia.hardware.platform.device.Service", |
| name: "pdev", |
| primary: true, |
| bind: { |
| one_of: [ |
| { compat: "fuchsia,gpio-buttons" }, |
| { |
| did: "fuchsia.platform.BIND_PLATFORM_DEV_DID.BUTTONS" |
| } |
| ] |
| } |
| }, |
| { |
| service: "fuchsia.gpio.Init", |
| name: "gpio-init", |
| availability: "optional" |
| }, |
| { |
| service: "fuchsia.hardware.gpio.Service", |
| name: "mic-mute", |
| availability: "optional", |
| bind: { |
| rules: { |
| "fuchsia.NAME": "\"mic-mute\"" |
| } |
| } |
| }, |
| { |
| service: "fuchsia.hardware.gpio.Service", |
| name: "volume-up", |
| availability: "optional", |
| bind: { |
| rules: { |
| "fuchsia.NAME": "\"volume-up\"" |
| } |
| } |
| }, |
| { |
| service: "fuchsia.hardware.gpio.Service", |
| name: "volume-down", |
| availability: "optional", |
| bind: { |
| rules: { |
| "fuchsia.NAME": "\"volume-down\"" |
| } |
| } |
| }, |
| { |
| service: "fuchsia.hardware.gpio.Service", |
| name: "volume-both", |
| availability: "optional", |
| bind: { |
| rules: { |
| "fuchsia.NAME": "\"volume-both\"" |
| } |
| } |
| }, |
| { |
| service: "fuchsia.hardware.gpio.Service", |
| name: "power", |
| availability: "optional", |
| bind: { |
| rules: { |
| "fuchsia.NAME": "\"power\"" |
| } |
| } |
| }, |
| { |
| service: "fuchsia.hardware.pin.PinStatesService", |
| name: "pin-states-0", |
| availability: "optional" |
| }, |
| { |
| config: "fuchsia.power.SuspendEnabled", |
| key: "suspend_enabled", |
| type: "bool", |
| availability: "transitional", |
| default: false |
| }, |
| { |
| protocol: "fuchsia.power.system.ActivityGovernor", |
| availability: "optional" |
| } |
| ] |
| } |