From nobody Sun Feb 8 15:57:53 2026 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AE5F33168E3 for ; Mon, 12 Jan 2026 20:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768249561; cv=none; b=de3a3xsdUdoA3mwmgW/Hd3sBRIBYTJKkmpMJEuX0Or/asoaxG7Dl6o1OSYAztI5Bx7vJAdA5a5FxS/6X/IWBi1hXJNjWpzNSEiJ6z1EOK55ocrnfo6RdY7H1xLMDY/5ZT9InsxGSqPJRR4/QDY3FkLfL/UBcRdXvLikL/8Porok= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768249561; c=relaxed/simple; bh=FJzcSHDXluO4dUb76g2nKqIIglQO2UJtt5G2NIwIGRI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=mus9v5PWwe8bVSb5LAQwOwtK5+JUOI1VotGuN1GgH8I7hFQ3WUrwUH/KZHsQ/21Cvo7oaMZJByRj+gZ4iiWD/X4+ZFddRurugPyRqJdTzpoI9CsrI8alq7CsVZk4W8Vl4BYyG8eBtMnIr3c5KwClgo2TyawEJJQnXdnlvAtoegQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=YVLtHgsg; arc=none smtp.client-ip=209.85.167.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YVLtHgsg" Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-459fa8b6044so4552546b6e.2 for ; Mon, 12 Jan 2026 12:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768249558; x=1768854358; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HcdvqbOz52LfBLxCMSffSYUjax3JQUZoLUuen8kKWUc=; b=YVLtHgsgZTiSun5YrYsiWXP6fsVe0167wVeD+ITHXB8Zji0AHvQEVigSwIR8lLGCd8 7wcY1zUAZjUNB+1OHoBViIYEhBLO5xxPUJeL5aZYDsJGe2l+L5BnMQ+Pol1rt56w3kY3 nXu/DMtnNdZlrALWP5kv4d5/gEDurNRNlKvhgc/KuWR63HDORcOcO9KitgY6Yc+MxkUU T2DRPsbE15YyaKPKJjQMdFBDe7OgP7gfcuFFelm8Niig4t6+ynimMGgDRsb5dS8LlKy1 I31S9heYiNkRrU6LX5BrmpbpX942gloaLgWtQ9b9hXUX9rRuKYvuaYimB7UJrfUUKRZ4 /Cog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768249558; x=1768854358; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HcdvqbOz52LfBLxCMSffSYUjax3JQUZoLUuen8kKWUc=; b=RLud3JXYf33KAPgdbAA1YFOVRIZaTnSZbavxzcU7Vk7fmVVXn32ahhKLRRtavSKL2w joEZJwdAr75q8uJMG3QIJb618WCx22GPt482q16DjXPUwod7Oh0qpeUfWzY1k7Ju32t8 HU02PCouk3FUpbkQbIQL84+G/6FU4kEvNH9hAVMJFeDBIRUTJ63EqB2izgfREnz+/vcz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9389:b0:364:13ca:3702 with SMTP id adf61e73a8af0-3898f987e4dmr16296668637.42.1768243926226; Mon, 12 Jan 2026 10:52:06 -0800 (PST) Received: from visitorckw-work01.c.googlers.com.com (25.118.81.34.bc.googleusercontent.com. [34.81.118.25]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-c4cca06b16fsm18874197a12.31.2026.01.12.10.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jan 2026 10:52:05 -0800 (PST) From: Kuan-Wei Chiu To: airlied@gmail.com, simona@ffwll.ch, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, dmitry.torokhov@gmail.com, sre@kernel.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, lgirdwood@gmail.com, broonie@kernel.org Cc: jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-pm@vger.kernel.org, linux-serial@vger.kernel.org, linux-sound@vger.kernel.org, Kuan-Wei Chiu Subject: [PATCH v3 4/6] dt-bindings: power: supply: google,goldfish-battery: Convert to DT schema Date: Mon, 12 Jan 2026 18:50:42 +0000 Message-ID: <20260112185044.1865605-5-visitorckw@gmail.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog In-Reply-To: <20260112185044.1865605-1-visitorckw@gmail.com> References: <20260112185044.1865605-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 --- Changes in v3: - Use decimal format for interrupts in the example. .../devicetree/bindings/goldfish/battery.txt | 17 -------- .../power/supply/google,goldfish-battery.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/goldfish/battery.txt create mode 100644 Documentation/devicetree/bindings/power/supply/google,g= oldfish-battery.yaml diff --git a/Documentation/devicetree/bindings/goldfish/battery.txt b/Docum= entation/devicetree/bindings/goldfish/battery.txt deleted file mode 100644 index 4fb613933214..000000000000 --- a/Documentation/devicetree/bindings/goldfish/battery.txt +++ /dev/null @@ -1,17 +0,0 @@ -Android Goldfish Battery - -Android goldfish battery device generated by android emulator. - -Required properties: - -- compatible : should contain "google,goldfish-battery" to match emulator -- reg : -- interrupts : - -Example: - - goldfish_battery@9020000 { - compatible =3D "google,goldfish-battery"; - reg =3D <0x9020000 0x1000>; - interrupts =3D <0x3>; - }; diff --git a/Documentation/devicetree/bindings/power/supply/google,goldfish= -battery.yaml b/Documentation/devicetree/bindings/power/supply/google,goldf= ish-battery.yaml new file mode 100644 index 000000000000..634327c89c88 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/google,goldfish-batter= y.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/google,goldfish-battery.ya= ml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Android Goldfish Battery + +maintainers: + - Kuan-Wei Chiu + +allOf: + - $ref: power-supply.yaml# + +description: + Android goldfish battery device generated by Android emulator. + +properties: + compatible: + const: google,goldfish-battery + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + battery@9020000 { + compatible =3D "google,goldfish-battery"; + reg =3D <0x9020000 0x1000>; + interrupts =3D <3>; + }; --=20 2.52.0.457.g6b5491de43-goog