From nobody Sun Feb 8 16:31:17 2026 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.170]) (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 E9D0739902F for ; Thu, 8 Jan 2026 08:09:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767859790; cv=none; b=LSq9e66DcUyFIU/Isp0XmbIBj/HbHA3obRExHwA+hyc8OaAArmnBGKrir63u7TXRcoXGJ60gqkmcteRNfq/hT+aucxILPUJUKeFa9VcLgYRRAZR2Opk/8EXY74HDkgGCjirXoiKYY3kuvnj2O6tkIvq9m04B1oAvyJhBTmUIP9o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767859790; c=relaxed/simple; bh=BkuzIM+xJSw6D9gd0ClP6IeKUS3iAxeuX1yHGi4chXw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Fsx7sac+/NCr+EoeKomrOOirXHwJbp8wsjuTYWMAZ8kN70wApeBEkri5ey7QfgD/t/qhNzKrxmbZ2Vl7hlQuIzzKju8MD81foPFCl6sLHoLghrxptKFctdANrAziFBSXhtT3ealUQ3nsx15rz8HBQLUJVC6GMmIrUL0gVRKTq8s= 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.170 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-f170.google.com with SMTP id d2e1a72fcca58-7d26a7e5639so2144744b3a.1 for ; Thu, 08 Jan 2026 00:09:29 -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=C7TOBtjfZID+3kwWT52gATK9kmUfy8PfQCRspw+LoNhsem7kIpuf6BQqBYtlOJbwAb 8YmfxYguJ44vUEv2Br7FLK5wIDt3deO1I/48OaJzSqjaXitGXaZiLKGPZgoaDH4kum9a myc1F62fQWhGr+3O937vaV+cIlab+h6SN6uOMVsV8eP13OImJzm48YXm14md873uoesm F6jRuKNoZgSMGl6I/VXiHZTGeKpFCwc6MQVmcWTjfYrMnbbqDwDL5LzZvnMcDIHiAiCG JM0fbN77PFzTkfl3nbIVxaUfogfSmLQnJSQVva+p0fmMg4OFKe8l9F2DEtgt/qIumMKn Q0qQ== X-Forwarded-Encrypted: i=1; AJvYcCUnGuq/vZU7dQUZ+/Zj0dZf019k6VVazemWFdv/we00OqGCbUIgNr626+TrD6EX+uvIarLf2/G9FUUHgcA=@vger.kernel.org X-Gm-Message-State: AOJu0YwxTUMi+6VTTIb4Fj84Yn8MErsnSjnnUutdQrY5HhpOrFp3K5aq KyqhkWO49gslGwYSsvkOhiqqJHV30/okbNNT5Fdev8mnuz/72hRZAvWe X-Gm-Gg: AY/fxX4nqkhWGeMXSgebFE+1H4OZqugfLsLqUqzwNPa0iwb9TXFSIaY+rPZpAXttpnW I+flpmfwQd5Nkh2L0jSr6jZ2XdywSDLpSnb9eONagSgZLiD4pwtw+xDkENCIv63KeWfSlM7Tk+M gJDaECrDk5amwIUTkgxafGgvvGTLJImiJa1AfssKj+54bpdEQktbCofiywbfjgxDnZEs+kNSg0U AyFK17WLrJDgzLDwbQK+iklsQLvCKN2nSVAUlmuiTIi6vZNwRDO+ZUosByqlQuN+XyHr391ukbS jEoIdxxjQzINc6H4N34PYJfTL7LCjTRuOXojWtUQZSsjwGeOxkxO0lSl8RFD7oHKXN5biNcixc1 yWA+nIFAtJ7jOowLoW0NY+vFyKA22MjagkOxM5ncscZYOyI7Lh8Gns+MWj+deLz4K6iZi8ArQfi 0DJXdd+icACTWYMoJn3hS5wxis52g+pw53/3k4OpanxtvV5wO+8Lcec0upQsGoc0syWITO6aEQ7 RDZUORjZ77+59yDrLXJVl4RtzTIC0Lf 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-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 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,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..909252d91c16 --- /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 <0x3>; + }; --=20 2.52.0.457.g6b5491de43-goog