From patchwork Fri Jul 26 19:49:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 1965409 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=h0IPe2r5; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-88454-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WVz1T5z4Dz1yXx for ; Sat, 27 Jul 2024 05:52:29 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B9F5E1C22F6C for ; Fri, 26 Jul 2024 19:52:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6378961FCF; Fri, 26 Jul 2024 19:52:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="h0IPe2r5" X-Original-To: devicetree@vger.kernel.org Received: from mail-ot1-f45.google.com (mail-ot1-f45.google.com [209.85.210.45]) (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 CFD693BBC1; Fri, 26 Jul 2024 19:52:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722023540; cv=none; b=AFopdWFF5BAvfwknE453qipqaMLiB3tIVfzWJ2dGJ33m8hBzJldY+dWh9tEB5573wMojEsyjckYgp6MujDpN4SrY4fl9tn9JJRsxlTq5p34VNDcu2Y7QCAEKI85V8vevgU4TwyfIM5nJQoy7sKetX4JN2JGOfxL+cpOLMM0UC4w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722023540; c=relaxed/simple; bh=5562yB6GG582jQ2FjweWBJG9xmyG/AzopD+FehW3LLA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ck3kXwN4OHVEDmH+IuayMBCkvdszFfmrAhh3FkohCWcISjxdbHUZsURx0l8vTKtgg3esDyiYKlAwnuF6SxkscaQpSiLVomIRJ2g1baT9Iy1nbXn+s9eJGVTDMoW8k3Iw5lOH6rNCsg08v4SwkAmrtCGkR+gzn9+mpMsnF/abWCo= 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=h0IPe2r5; arc=none smtp.client-ip=209.85.210.45 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 Received: by mail-ot1-f45.google.com with SMTP id 46e09a7af769-709340bd54dso675310a34.1; Fri, 26 Jul 2024 12:52:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722023538; x=1722628338; 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=4+k3gjF8BoooWUfXQn49JWorftRpntAb8sxIAYpbdwo=; b=h0IPe2r5YA74DcOnYwXCzAFXj46uJsGSvmpfXnH0VNtnGTQGREGXAScPSUWoi7jF3s +mZhdoigLhR2pzlRqgpuNzqO1bVZ4XC3DymeQIbcaaifOxI0cJ7seBnVkPJJfpj0MkqJ LoQOGHdbgoGZuGnWiLlWEK75wwpA54Ervk8zrEXiG4L9sUCiP/5my/BxPYwQknwxr/yD T3DFTr16gp3+WKgXKpGVt9695m09qScBCUj3+bjeP6YYxyDJl50HX2dKScamUild02z6 9KuVdVBDmmZJoyx2UEYcBTV3VcX70zDBffEim86MluyPPsPazZwpkcSY5DfMuTn+Jg10 AUsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722023538; x=1722628338; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4+k3gjF8BoooWUfXQn49JWorftRpntAb8sxIAYpbdwo=; b=V1QY9TFRia16MBm9WPscofXU0yO7aEJ/J3utsic36yA1pExUzp+eJne0r0vVygsd7v JhkSlv50Ys2tFnNDcZjYYhMikmGfAZYgxC/nHRHjTZjUDIl+OZkR+yhSGUUdG3RrJuSC OXDjUWBwbMXtCtNvQzRlJoOuyKAeXJdK2Ajb41g7lbwrap5Kbf9+3Pq5/CFRQO9x4EB8 x67p0AO9yOpELB9Ey4PVSCrRORpBp8ZrmGCOQUk4xN/ThxmcIobJzx4kLvWel1RHRwdD eFms3Dit4xVdlz9Kq1Gs45TBAxDOTueEiTwPPq1xtRnVijBwc4+HqxRIUk8TuRGx736A IHYw== X-Forwarded-Encrypted: i=1; AJvYcCWN/PmQW4XKuSYRrtVT/QnKPslKZREsuPHko4IacvR6d2cGyEiGWI8hWiazX8QRrEOFW8334HPGYK7E9fpkCujg3kqdMb5kZodFXA== X-Gm-Message-State: AOJu0YzyoXUjpp/I1ApmJFTWQ2pSZyvdve4J4JPF6fP7KNwnN7X2exw3 fJbNrdLhu3clYgTYEIj+WGmR3SDdLLos+7KvSRUHaPjGC5EsvABK X-Google-Smtp-Source: AGHT+IHuz8TrULo3PxDivHC7WO52EaKTYugZpCRax3nUL6uYgAUk3XLu9b73tQtTCA8ceOKeHGVvbQ== X-Received: by 2002:a05:6830:350b:b0:709:41c4:6a5 with SMTP id 46e09a7af769-70941c40c40mr158952a34.3.1722023537867; Fri, 26 Jul 2024 12:52:17 -0700 (PDT) Received: from localhost.localdomain ([2600:1700:fb0:1bcf:c1f3:7caa:bc8b:ab10]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70930778069sm889972a34.59.2024.07.26.12.52.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 12:52:17 -0700 (PDT) From: Chris Morgan To: linux-rockchip@lists.infradead.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, jagan@edgeble.ai, andyshrk@163.com, jonas@kwiboo.se, sre@kernel.org, t.schramm@manjaro.org, heiko@sntech.de, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, Chris Morgan Subject: [PATCH 1/5] dt-bindings: power: supply: add dual-cell for cw2015 Date: Fri, 26 Jul 2024 14:49:44 -0500 Message-Id: <20240726194948.109326-2-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240726194948.109326-1-macroalpha82@gmail.com> References: <20240726194948.109326-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan According to the datasheet for the cw2015 the device supports dual-cell configurations. Add a new device tree property for this condition so that the voltage values reported to userspace are correct. Signed-off-by: Chris Morgan Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/power/supply/cw2015_battery.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml index dc697b6147b2..0e7866d42cca 100644 --- a/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml +++ b/Documentation/devicetree/bindings/power/supply/cw2015_battery.yaml @@ -34,6 +34,12 @@ properties: minItems: 64 maxItems: 64 + cellwise,dual-cell: + description: | + This property specifies if the battery is used in a dual-cell series + configuration so that the correct voltage is presented to userspace. + type: boolean + cellwise,monitor-interval-ms: description: Specifies the interval in milliseconds gauge values are polled at From patchwork Fri Jul 26 19:49:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Morgan X-Patchwork-Id: 1965410 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=G7XcyCSf; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-88457-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WVz1d1J3dz1yXx for ; Sat, 27 Jul 2024 05:52:37 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9877285228 for ; Fri, 26 Jul 2024 19:52:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5129F14386B; Fri, 26 Jul 2024 19:52:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="G7XcyCSf" X-Original-To: devicetree@vger.kernel.org Received: from mail-ot1-f44.google.com (mail-ot1-f44.google.com [209.85.210.44]) (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 BC2833BBC1; Fri, 26 Jul 2024 19:52:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722023542; cv=none; b=s/0WlYMt7z0oC+pLbQ2NOeS2uC19D5Z3D8mo3MRSa1ES1fmKDT4RPdho8AMQ9a3W9FEi1MJGcwQMmxR4pDuh5oXUimRcTtjQDnszhA8zjwMQK9NxKdQVp+d/52RUj+EwxrVWNe8bipr9IvPG+ENotCuFJ+Dl9tF+JihQMA7Pz9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1722023542; c=relaxed/simple; bh=gIetfDeVvAKFROU3FU4BaYItI5DB23RvX5/OVYo/aqQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lY+WXNt8UMhT/KU81eb8xXmzGrotUU2/uXYUHMXXFi9sgwdWWfSRThDoY3qfUBqbjNR/JfTyyQGH1CkFBKjd4+IOJnWokm8mAN43oadEOzhNqf/3QBvaj9/NOLqEjSgxLTattj0QfThcNV6OCJ1ihEBz5AB40jE9BkJd9Gv4QOw= 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=G7XcyCSf; arc=none smtp.client-ip=209.85.210.44 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 Received: by mail-ot1-f44.google.com with SMTP id 46e09a7af769-7093f3a1af9so358377a34.1; Fri, 26 Jul 2024 12:52:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722023540; x=1722628340; 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=h1/2W8RcQjiqKYDLwnvQA5GcanCOKJKq8/U5bOmJErk=; b=G7XcyCSf1JXLLVKMnUAx80Kl6wsjATra2OJU9iLl6vRWTRcpJLZBEYyK/uk/IwMMia 7tCRPveGWaEPCXa4HYuNaDmbZSs/cxdpc6QpqoQQbQHQ879HcqJ9+kT2/inJcQxoupeb cj9rl/Ag56RgxPaIPhuLRHH7orcUVpBKQOsN78rlkt7CVbNULPBMMAVEuhWEsTbbl4r4 /zki9N7YsR3aoQbcGIqgZRoMBj+3XDJNOSFS/QqbFiSF6mbnPZulGdZORyJHlGu6cVH7 x3LeeHYadezwSc2Zv/s2/l4rZ1yh3F+wf5AKWe+Y3zADl75juQEHS6a7Rol2DLb1nUhf dr4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722023540; x=1722628340; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h1/2W8RcQjiqKYDLwnvQA5GcanCOKJKq8/U5bOmJErk=; b=PPBoWpIz4Y811V/3z/4N8FnmqrxM+I3zU/GRMr8gmpy0rKLAOPRyEU0eGz/JUomsod nAS+jCrVpbppHkwwX1smB/Ls8cihrjKn2XYCofYQaSaZfJf/hVGOL9qwCyLVq0r15P8p 8qSuR2Wn7y+XB8uiDkVx9Ww30M8d9hLx6cOEoItJfV4bpmgTIdVo1ofAqAVf9tnncREI HFpSLI5CUQndS5bo/iCOny8ovmyxPw3pxVkjh6mMNRWegGDu1pD+LFBYpP8O505dmHlm 6fnzLWMs5nJEPdXARHJQHUTpzIZyidfc0uhUptGRUP/U8Jn97Dk6vkiqoE6abIWBX24j MlLQ== X-Forwarded-Encrypted: i=1; AJvYcCU66kdBhTtLmSQZHVTzN9UhOQ4k98JBjcn2rk9sKQ+QtzU3Cav3pIoEyJ1RCY3jyfEJqRtoJN/1ao6H1HpxtseV/8Z2jL1Gp6Ixtw== X-Gm-Message-State: AOJu0YxDJiP4KaxejcbPb7ZIbHIktAgw/HdVihGRO72ffL77VWB1Y9rM xbxAQgy0ghlxAMgCcFeSPHC0xzBNUA3Sw70Urb1VudTEbHg5M0AF X-Google-Smtp-Source: AGHT+IGFD8UcnUWfAtOrktYS3XPLNwRusDiWDkC1Xvsjj1zIrmYzOL1G4rpSrpvg425XDPJUWhxSfQ== X-Received: by 2002:a05:6830:6e04:b0:707:e28:58d2 with SMTP id 46e09a7af769-70940c0b3d6mr919254a34.2.1722023539885; Fri, 26 Jul 2024 12:52:19 -0700 (PDT) Received: from localhost.localdomain ([2600:1700:fb0:1bcf:c1f3:7caa:bc8b:ab10]) by smtp.gmail.com with ESMTPSA id 46e09a7af769-70930778069sm889972a34.59.2024.07.26.12.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jul 2024 12:52:19 -0700 (PDT) From: Chris Morgan To: linux-rockchip@lists.infradead.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, jagan@edgeble.ai, andyshrk@163.com, jonas@kwiboo.se, sre@kernel.org, t.schramm@manjaro.org, heiko@sntech.de, conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org, Chris Morgan Subject: [PATCH 4/5] dt-bindings: arm: rockchip: Add GameForce Ace Date: Fri, 26 Jul 2024 14:49:47 -0500 Message-Id: <20240726194948.109326-5-macroalpha82@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240726194948.109326-1-macroalpha82@gmail.com> References: <20240726194948.109326-1-macroalpha82@gmail.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Chris Morgan Add devicetree binding for the GameForce Ace. Signed-off-by: Chris Morgan Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/rockchip.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml index 1ef09fbfdfaf..a5a2621404ae 100644 --- a/Documentation/devicetree/bindings/arm/rockchip.yaml +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -255,6 +255,11 @@ properties: - const: friendlyarm,cm3588 - const: rockchip,rk3588 + - description: GameForce Ace + items: + - const: gameforce,ace + - const: rockchip,rk3588s + - description: GameForce Chi items: - const: gameforce,chi