Skip to content

Commit 4c3f02f

Browse files
visitorckwsre
authored andcommitted
dt-bindings: power: supply: google,goldfish-battery: Convert to DT schema
Convert the Android Goldfish Battery binding to DT schema format. Move the file to the power/supply directory to match the subsystem. Update the example node name to 'battery' to comply with generic node naming standards. Signed-off-by: Kuan-Wei Chiu <visitorckw@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://patch.msgid.link/20260113092602.3197681-5-visitorckw@gmail.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent c655f45 commit 4c3f02f

2 files changed

Lines changed: 41 additions & 17 deletions

File tree

Documentation/devicetree/bindings/goldfish/battery.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/power/supply/google,goldfish-battery.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Android Goldfish Battery
8+
9+
maintainers:
10+
- Kuan-Wei Chiu <visitorckw@gmail.com>
11+
12+
allOf:
13+
- $ref: power-supply.yaml#
14+
15+
description:
16+
Android goldfish battery device generated by Android emulator.
17+
18+
properties:
19+
compatible:
20+
const: google,goldfish-battery
21+
22+
reg:
23+
maxItems: 1
24+
25+
interrupts:
26+
maxItems: 1
27+
28+
required:
29+
- compatible
30+
- reg
31+
- interrupts
32+
33+
unevaluatedProperties: false
34+
35+
examples:
36+
- |
37+
battery@9020000 {
38+
compatible = "google,goldfish-battery";
39+
reg = <0x9020000 0x1000>;
40+
interrupts = <3>;
41+
};

0 commit comments

Comments
 (0)