[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <md45rp2dmv7aibez2sxwzyjayfi4wbujshlc46hxi6v4jzlhfr@tpbtqv46hrlh>
Date: Mon, 6 Jan 2025 08:11:54 +0100
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Pengyu Luo <mitltlatltl@...il.com>
Cc: Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley <conor+dt@...nel.org>,
Bjorn Andersson <andersson@...nel.org>, Konrad Dybcio <konradybcio@...nel.org>,
Hans de Goede <hdegoede@...hat.com>, Ilpo Järvinen <ilpo.jarvinen@...ux.intel.com>,
Bryan O'Donoghue <bryan.odonoghue@...aro.org>, Sebastian Reichel <sre@...nel.org>,
Heikki Krogerus <heikki.krogerus@...ux.intel.com>, Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jean Delvare <jdelvare@...e.com>, Guenter Roeck <linux@...ck-us.net>, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
platform-driver-x86@...r.kernel.org, linux-pm@...r.kernel.org, linux-usb@...r.kernel.org,
linux-hwmon@...r.kernel.org, Dmitry Baryshkov <dmitry.baryshkov@...aro.org>
Subject: Re: [PATCH v2 1/5] dt-bindings: platform: Add Huawei Matebook E Go EC
On Mon, Jan 06, 2025 at 01:41:55AM +0800, Pengyu Luo wrote:
> +maintainers:
> + - Pengyu Luo <mitltlatltl@...il.com>
> +
> +description:
> + Different from other Qualcomm Snapdragon sc8180x and sc8280xp-based
> + machines, the Huawei Matebook E Go tablets use embedded controllers
> + while others use a system called PMIC GLink which handles battery,
> + UCSI, USB Type-C DP Alt Mode. In addition, Huawei's implementation
> + also handles additional features, such as charging thresholds, FN
> + lock, smart charging, tablet lid status, thermal sensors, and more.
> +
> +properties:
> + compatible:
> + items:
> + - enum:
> + - huawei,gaokun2
> + - huawei,gaokun3
Missing "-ec", because gaokun2/3 is the name of the board, apparently. You cannot
duplicate compatibles with different meanings and if you tested this you
would see errors.
I think I might mislead you during last talk, where I questioned what is
"gen2" etc.
> + - const: huawei,gaokun-ec
There is no support for gaokun2 here, so I assume you checked and you
know these are compatible. What's more, you claim there is a generic
piece of hardware called gaokun-ec and everything in this family will be
compatible with it. Well, that's my standard disclaimer and disapproval
of using generic compatibles.
So in general what you want here is *only one* compatible called
huawei,gaokun3-ec
> +
> + reg:
> + const: 0x38
> +
> + '#address-cells':
> + const: 1
> +
> + '#size-cells':
> + const: 0
> +
> + interrupts:
> + maxItems: 1
> +
> +patternProperties:
> + '^connector@[01]$':
> + $ref: /schemas/connector/usb-connector.yaml#
> +
> + properties:
> + reg:
> + maxItems: 1
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> + - |+
Drop +
Best regards,
Krzysztof
Powered by blists - more mailing lists