From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 3D764399A58 for ; Thu, 8 Jan 2026 08:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767859778; cv=none; b=EqUBGCOr32jm1GIf7t7sInhhFdmlg9OXTHRlw3mYnJnZkILvf94yjzBVMxYRboxEYnk3O4qxf/QkjRbnNM1HjzeDYaIeyl4tUXqAeqHxVIX0fnn/I01UROs+U9Ka26aLFP5lMNR8ubciSnWNofxfDFEPVf/xsQdNjZT1cMO+EdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767859778; c=relaxed/simple; bh=BkuzIM+xJSw6D9gd0ClP6IeKUS3iAxeuX1yHGi4chXw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Yy4ZhKDxcjkys97sOMUri/k6mhwoDLc2+i105Qm7G31d9tv6SbZhyiJtO1MJhZ7e6WzWVO5Hn/1XnUltjHv31R8SHnd6TICI99xvL5eFBAFVhXRX9zVV85wFPg4BogTpJdHXaDI5N5OwIKZNERj+68R6+BRXev7DIcX6rZDPpp0= 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=WbMtxix7; arc=none smtp.client-ip=209.85.210.173 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="WbMtxix7" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7fc0c1d45a4so1784896b3a.0 for ; Thu, 08 Jan 2026 00:09:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767859767; x=1768464567; 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=cM8S9Nf7P6gRpX7oKCBS4znehPOLHvbNE32ZCa5tCAA=; b=WbMtxix77iyRiMu/v6TL6S3OE4lOZf0DwNv0JOtIuj0UWdibRbv7EvHx/rC4SrGzEI j8FIUcuUbWNqf3OHvvwnjp16n/ZVsN3Zqqo2u/sPVCPcDY7KRQCIPkCfqBx+MSCgeNrj FhglvRwKieoa43KClvFE1X8AXiHAqWN1u2qcBtrQyxADPdHHAp5J7G0PeJ+VGcmzc16H Qr6mlPaoK+3KHnALV+6lbtMfVlf8sNcOAUz9K0VWPh1zGndJCuKoGfn46pYcTUej8gWW wn3jYiiY6+sQPI/3ufuLrH77ZZvcplgWmNlX601WCLYmsP8NVyDteo8AjjAUd5uAhraR OnKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767859767; x=1768464567; 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=cM8S9Nf7P6gRpX7oKCBS4znehPOLHvbNE32ZCa5tCAA=; b=XAV9SEC6G+n3bLOCDheEcFUeXCytxlTP400Ickt4Gwa+Sf1Y+nlyVCGuNrLyyD/uan 9Vkm7hqpLOij8SzIhDE24+U6qoKxgIum9H/Y/DmOOhW94irwTj/eWVHmM2KyvKOxam/0 bXtw8X7C3k7SVFB9Kzj53ZpwVWvjrWjKSIB/11oOAE0S2WugWsAfknddRZaawbEXY6jP 8EHyokNQU8A9F0Am+I376YS4JFlnNKYm5Y71e/6vV2ZLL+Njmom2pNddu6KFyQ9NRKGK qkwIGukg1X8AZHP89LaaVxUORG1uJAy6m1eCRmZBe+7UgYuveDwMtgN5zrImPB5Jy4no 91Dw== X-Forwarded-Encrypted: i=1; AJvYcCUzg56/BA6J2m8ruMl/ku1Q+ZlUK6GdQu4qSgqieZxxAUtAZFsnfhu2itmLT2itN5U45uLJlzOlcw==@vger.kernel.org X-Gm-Message-State: AOJu0YzfN+uTCzG2Ioj5hUiFEYv67X41praFqYd/bS5KhvjSG8ki+FlA GeTGZewpa+ZDUftm6l2DcEweAEOC3y7Ml+hM+IVeSgNSx97Q8qyYw+Ul X-Gm-Gg: AY/fxX5L4KG7OWMhfGyg8dt/RcfD5zEbhKJe8LRQAwIB8B5/q3qnR4eVJyw3JRyHnHz 93WCB+W4VXoJ5RmaMHWglimr8awjgCx6bbMqLK0C+6pXjF4mlJSNvdaBpN1idFj1f3F2rX9IpaZ oRryGN9rcUS9CQesVvqmBLnF5+9yjJJ8p2OzNqcKxfIY6OWxOyoMYJWYNd6j8n8PRzdeoEEBgap mQtRAFa942zBoXEUtyVSn0AJ6xPtrvuWMhrnxSIzsOWhO4vq/lYoyvuDA4J/7Gw/cVAea+/xPMe HvWxcsUpT3i807TX38YAANIVjZ2WHIsISjrcQA0EloozH7jPlliWE+863Q4XFIUqpIzqDkRl9cY fNfuVMUMIf8NxMEEX5Gl0XROZ3R2CvAp99RtK6korfx+D55C8v5R8ru9OUqHSg4OqSibstjTmN1 h2F8wY9j12TEn4mIPskV+zXP6pVpBVmcFsBVj66avUYn8JjamJw4YSmLFTewDNE2dcnydoZ4d5Y mZwjMPdXDcMyy6JA/3g9KotzGRaZlyB X-Google-Smtp-Source: AGHT+IHkLLcdy5t5w8lcYwpa7aN5PM2YSQikFaFZHwIq35VG+97ooL0I8Sxc+NQu2jzK08rf+aGvdA== X-Received: by 2002:a05:6a00:1f09:b0:781:16de:cc1a with SMTP id d2e1a72fcca58-81b806c7544mr4661904b3a.32.1767859766947; Thu, 08 Jan 2026 00:09:26 -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 d2e1a72fcca58-819bafe991dsm6900582b3a.16.2026.01.08.00.09.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 00:09:26 -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, krzysztof.kozlowski@oss.qualcomm.com, Kuan-Wei Chiu Subject: [PATCH v2 4/6] dt-bindings: power: supply: google,goldfish-battery: Convert to DT schema Date: Thu, 8 Jan 2026 08:08:34 +0000 Message-ID: <20260108080836.3777829-5-visitorckw@gmail.com> X-Mailer: git-send-email 2.52.0.457.g6b5491de43-goog In-Reply-To: <20260108080836.3777829-1-visitorckw@gmail.com> References: <20260108080836.3777829-1-visitorckw@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 v2: - Add reference to power-supply.yaml schema. - Change additionalProperties to unevaluatedProperties: false. .../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,goldfish-battery.yaml diff --git a/Documentation/devicetree/bindings/goldfish/battery.txt b/Documentation/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 = "google,goldfish-battery"; - reg = <0x9020000 0x1000>; - interrupts = <0x3>; - }; diff --git a/Documentation/devicetree/bindings/power/supply/google,goldfish-battery.yaml b/Documentation/devicetree/bindings/power/supply/google,goldfish-battery.yaml new file mode 100644 index 000000000000..909252d91c16 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/google,goldfish-battery.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.yaml# +$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 = "google,goldfish-battery"; + reg = <0x9020000 0x1000>; + interrupts = <0x3>; + }; -- 2.52.0.457.g6b5491de43-goog