From patchwork Thu May 30 08:55:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Artur Weber X-Patchwork-Id: 13679974 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4A20CC25B74 for ; Thu, 30 May 2024 08:57:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=I09gLlHaxRSlrc5XZmCBf5GkvRbZhV9xlvoAfJ04VZc=; b=qTP1v5jAa5iOlX UYG09M5mfiUze7JMx+4Oo3H4ZvT3fKLazLDP2+1ZF4h1OFtgeXpFtApWieoicK/D8AOQ4+D8M4A1Y RNAF8qFYhYQDZ1liUCZLBHF2r5Y8jM5bjbXxYS3NN7cnKKZZsGg2aGGvxyrEsRnIbs6kJGyGpgELI awhZRQLISkvFMyO4cTb4uDYo+UhLO4tRSD/AUjwNitoIKq2VKR0PKb4HvI3iAGsd/p1cMDsylBDQJ 7OPRO5eqouWRS+P3ANvGKThlaSIwTNxZkGeR6MRpYKtOOdLFsBoO3bp892zyI7chi2Vy8BaZDdCHp vO+5OkPmgRAAzTbG27AQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCbb4-00000006hr1-2283; Thu, 30 May 2024 08:57:18 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCbaL-00000006hZb-1pm9 for linux-arm-kernel@lists.infradead.org; Thu, 30 May 2024 08:56:35 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-57857e0f45cso574257a12.1 for ; Thu, 30 May 2024 01:56:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717059391; x=1717664191; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=qZFoX5IVFjLuki9v4dFBiplrNUJ5RoBfw9AZQOx6kgQ=; b=Rer7TgE0mIfTZud79Fh3sGZmmQgKw6RVKsbpjPuN98kNEfO16rGVQvPhaBlV7aNBP+ ZyfNSFyAevg0UEjAFuaUUmCV3MlQfhs5tgXpa0PbJKQdKJykZa1A3p6W3aTT6P1Sd4Jy rylGHa31JJU/XPhWqT2MSR5OpeurdVAN49d32ApTJTkhyGLzFDNa0OhLp2Ds/6hHeKZr Um6eACBr5WEXmt6w5f7BXmDzU0xhEfBHSefIUeDjlgRMwm3BTRuMvXHPGO0ATc/5MGcl 9l0CVImc/abZkwGyEBgyjjMeTXY938tsw2H4F5SBASCfuiW1RZIxn5WpHo56rQSGzLdF MPAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717059391; x=1717664191; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qZFoX5IVFjLuki9v4dFBiplrNUJ5RoBfw9AZQOx6kgQ=; b=h0rpZXUOODxItS6K3EJle5poXw+0rZXgP4NIxzeBldU2uABEBdPkePHuaYktCeaZJC 7bnWewIcCGanUOf500U9/8PrNHslOy/w7xsMCzSxHS7QzrA8Abag2I7ZfJ6vVF8bFdqs DZPBvHwutluLSyLcXFOR1FJEKigzind2PeD+oQ9LX/i3cDQkbeKBKTS/r/0X4gMm75HW BanJNqNylgL/fuOlIuUh2l2+vb4dmy65nQKfADOwJfuMLdKK9+Sw8iPAnXoXw10CZA+7 ZeR3lamKzDNKyuen0L8Y0V+QdcYiriDdI5C5kWDwsLtOTgCHoC4OeTvDQLw43j5aQgmu 4Ung== X-Forwarded-Encrypted: i=1; AJvYcCWgPyHCq4U7gsrwUrbndHTnDt7iSLm8BMW2mN7PoxzKUvX0L0sMs/MAGx4awHX3dbyMJPKUISB1IBUdUa1trvrk6rtVw2SsYI/ixZ0b7vWkCimBAKc= X-Gm-Message-State: AOJu0Ywzx0+Ni6ciUpX4eOQBg5jrn7Dkva//pzj2WZU0NC+WbbygX3HR IHwKn3YPXFdMSxFluGFYKWUBqivKZfok94/tmPmFTy0WzRn84D9D X-Google-Smtp-Source: AGHT+IE0ZII4vqAKRbQMevN6HtZeVsEyP6AMudu0nYCEDWQluKinx7Ti4QrR8CVjHKxX2kcm6XF30Q== X-Received: by 2002:a17:906:fb0c:b0:a59:ef75:5382 with SMTP id a640c23a62f3a-a65e8f6f478mr88907466b.43.1717059391213; Thu, 30 May 2024 01:56:31 -0700 (PDT) Received: from hex.my.domain (83.8.128.191.ipv4.supernova.orange.pl. [83.8.128.191]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a626cc500a1sm798430166b.125.2024.05.30.01.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 01:56:30 -0700 (PDT) From: Artur Weber Date: Thu, 30 May 2024 10:55:54 +0200 Subject: [PATCH RFC 04/11] mfd: max77693: Add defines for OTG control MIME-Version: 1.0 Message-Id: <20240530-max77693-charger-extcon-v1-4-dc2a9e5bdf30@gmail.com> References: <20240530-max77693-charger-extcon-v1-0-dc2a9e5bdf30@gmail.com> In-Reply-To: <20240530-max77693-charger-extcon-v1-0-dc2a9e5bdf30@gmail.com> To: Krzysztof Kozlowski , Chanwoo Choi Cc: Sebastian Reichel , Rob Herring , Conor Dooley , Lee Jones , Krzysztof Kozlowski , Alim Akhtar , linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht, Henrik Grimler , Wolfgang Wiedmeyer , Denis 'GNUtoo' Carikli , Artur Weber X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1717059384; l=880; i=aweber.kernel@gmail.com; s=20231030; h=from:subject:message-id; bh=fdFCdouFtABSDklI2okYjmv8ltu44PsbFfLaKdFasJM=; b=8aX85TIyQjQICfocT2JKEutODUeUhtAi6tDWjBrIvXV+CLc35vHCgMqCX6obQhvgLowcjr6wS xa0Bz58phthB5z7BfcbkPIzTsiXTRMm/UD8Ml2DTD9NspcfNzLJPJu8 X-Developer-Key: i=aweber.kernel@gmail.com; a=ed25519; pk=RhDBfWbJEHqDibXbhNEBAnc9FMkyznGxX/hwfhL8bv8= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240530_015633_933496_FCBC4C39 X-CRM114-Status: GOOD ( 11.10 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org These three bits are used to enable OTG control in the charger driver. Add them in preparation for an updated driver. Signed-off-by: Artur Weber --- include/linux/mfd/max77693-private.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/mfd/max77693-private.h b/include/linux/mfd/max77693-private.h index 4570646e2f33..4448b024255d 100644 --- a/include/linux/mfd/max77693-private.h +++ b/include/linux/mfd/max77693-private.h @@ -209,7 +209,10 @@ enum max77693_charger_battery_state { /* MAX77693 CHG_CNFG_00 register */ #define CHG_CNFG_00_CHG_MASK 0x1 +#define CHG_CNFG_00_OTG_MASK 0x2 #define CHG_CNFG_00_BUCK_MASK 0x4 +#define CHG_CNFG_00_BOOST_MASK 0x8 +#define CHG_CNFG_00_DIS_MUIC_CTRL_MASK 0x20 /* MAX77693_CHG_REG_CHG_CNFG_01 register */ #define CHG_CNFG_01_FCHGTIME_SHIFT 0