Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1490246pxb; Sat, 30 Oct 2021 15:03:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxERTxXGILmoKxYZrp3rrQY5rKNlwu8TB/BQDyGbYgeREnsyC8csrKWPs32o60Q7FFIubzT X-Received: by 2002:a50:d49c:: with SMTP id s28mr2038324edi.174.1635631401069; Sat, 30 Oct 2021 15:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635631401; cv=none; d=google.com; s=arc-20160816; b=ZAVUPjmu+x2m8CaKCZjAu9HYDrrMgxTl5CavyPzEJnOzEE4b+1/IwED3IHCsqJOr0r MQ9/8W2+vQgKT4PsFB5WwAiiEYDFOS3k43xNS8/ASoFb5E/JUmo37fXK1SXFo2Ppfg/a ewypfe7XcI2rbUj4y0Klp2OQDJnoat5mKIMN4A7X/XmalaJVwZ3RI9IS3R9qOQeNDf5S VjJpK6BCF9BfSy2Y/lY4C20+DNfLWAeuIUcu1MQ69w097oty5F7QHMtVMghx7XtEyVMj QWKNYHXb6ieQrlTF8JaWaPVlAydLwJbczMK+/mZgG5m3ZGL91OB86ZSh8H2blfQUFT3R Q1iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ShCdtHGtTJX3k7s3o60+cmi18j6hz5z0Vi8NYUkIn24=; b=jDdw247S0WpHhM5Nl64Y6UkYQ1RDw1QKx1eewecUnSQZfY3QeQzfXEGkG5syc6RteE XwudXOIgcG3fKYrHBxiLHjo0Q1I12bCSbqmmzwYIc6KaNJ05SOOW763ufRTUzKQASV1j xeTQZDXFlgI+yWfzYh3oRkRRIa+jlmYmj1eSA6qhXl+fAfpqHk/SzceMK65XamATyxEN j2JzP4op+4Jt3HPz0VUawdCDYty+G/Nt1GdI2021TotrgL4HRC4iYZqYA/5V44TT80KE hBiM7V0/WJbsRNYZE2JXr3YnINn9sVWXhYsurJeoZZxg3FLNsu4Io5zihZ4MjQ7IMHDm pJfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eLQCPdP9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y1si18219535eda.279.2021.10.30.15.02.55; Sat, 30 Oct 2021 15:03:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eLQCPdP9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231531AbhJ3WAJ (ORCPT + 99 others); Sat, 30 Oct 2021 18:00:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230338AbhJ3WAI (ORCPT ); Sat, 30 Oct 2021 18:00:08 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7DF6CC061570; Sat, 30 Oct 2021 14:57:37 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id h7so51407751ede.8; Sat, 30 Oct 2021 14:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ShCdtHGtTJX3k7s3o60+cmi18j6hz5z0Vi8NYUkIn24=; b=eLQCPdP9OFb/rD9LSPbbiZEZ6TlLA0crMUHK/pdacd7cKTwOhnwpGMMDx1/UEto3CS ykdlyeGtEqye76FGX15ie+KnBVXoFkOV221xzOGK3DjDlv9HvYNyIClwt5BVa76lTtve vLIsZd0yMgWLKh7AjT7duZxrP26N0qColaMHO0oLbcsBrw+X43KJ5r/cmwZFk5v61yOU B0RJUF5kxvUuVHHcrvkT7qIo6yZ/1mSWsEzUU5aAZBv5W/LlkG1voLQdQ4Pl0iq2xS8r +M/hjrgXW/mCkTKIvPg7AzjK/Fnf0061C7ISadeox7KmKfHenHNA2AhJLsvusSnz9Xae 3GeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ShCdtHGtTJX3k7s3o60+cmi18j6hz5z0Vi8NYUkIn24=; b=ofa/hJE58WjFMl9WxCy2rWBl/IVaDbOslKd+g2i5h+pjsT9Wr+MGluuPn3F2vzb67Q yw4ex+VNyTFmX8I66h0BZRB5udTa7nEXRPf43o0mhdierDyj4GJFn+M0/KNOpMZ6ck5j kcs0UtoHotsLMNNYm73avZK4W7aTxPQ6hUg1s1mvluGUEeGnNoiwH5XmmzSCrGvR+xJV u/nKKIgg+PBypr3e0n1uvP/S29/LQP1VRX0VBT4UvMTqMOGsgdX52Vv8uwuwFq5D8vT9 I3ZvytE04l1nzgBmhlvuCG3vWtZueqDYpzAhC0AAVYEPurGi8YMI7qhu7wbUisR4gfMG 9Gpg== X-Gm-Message-State: AOAM530jkFJkGxvJm16BQaj9bWOHtzs0wOA14TKyc3OjpVQalbidYnHI Z2rnDqDWKdHlF1DHfFcYPZhMkJnbNvPyJM5F8JE= X-Received: by 2002:a17:907:7601:: with SMTP id jx1mr24286203ejc.69.1635631055885; Sat, 30 Oct 2021 14:57:35 -0700 (PDT) MIME-Version: 1.0 References: <20211030182813.116672-1-hdegoede@redhat.com> <20211030182813.116672-3-hdegoede@redhat.com> In-Reply-To: <20211030182813.116672-3-hdegoede@redhat.com> From: Andy Shevchenko Date: Sun, 31 Oct 2021 00:56:59 +0300 Message-ID: Subject: Re: [PATCH 02/13] platform/x86: dmi_device_properties: Add setup info for boards with a CHT Whiskey Cove PMIC To: Hans de Goede Cc: Mark Gross , Andy Shevchenko , Wolfram Sang , Sebastian Reichel , MyungJoo Ham , Chanwoo Choi , Ard Biesheuvel , Yauhen Kharuzhy , Tsuchiya Yuto , platform-driver-x86@vger.kernel.org, linux-i2c@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 30, 2021 at 9:28 PM Hans de Goede wrote: > > Add a new "intel,cht-wc-setup" string property to the "INT34D3:00" > i2c_client for the Whiskey Cove PMIC found on several Cherry Trail > based devices. At least 3 setups are known: > > 1. The WC PMIC is connected to a TI BQ24292i charger, paired with > a Maxim MAX17047 fuelgauge + a FUSB302 USB Type-C Controller + > a PI3USB30532 USB switch, for a fully functional Type-C port > > 2. The WC PMIC is connected to a TI BQ25890 charger, paired with > a TI BQ27520 fuelgauge, for a USB-2 only Type-C port without PD > > 3. The WC PMIC is connected to a TI BQ25890 charger, paired with > a TI BQ27542 fuelgauge, for a micro-USB port > > Which setup is in use cannot be determined reliably from the ACPI tables > and various drivers (extcon-intel-cht-wc.c, i2c-cht-wc.c, ...) need > to know which setup they are dealing with. If it's internal property only, I would rather expect it to start with 'linux,' as DWC3 does. And it's also USB related. ... > + PROPERTY_ENTRY_STRING("intel,cht-wc-setup", "bq24292i,max17047,fusb302,pi3usb30532"), > + PROPERTY_ENTRY_STRING("intel,cht-wc-setup", "bq25890,bq27520"), Besides that I'm not sure about the name of the property, maybe 'linux,cht-wc-usb-chips' or alike? And since it's a list, can we make it a string array? -- With Best Regards, Andy Shevchenko