Received: by 2002:a05:6520:1682:b0:147:d1a0:b502 with SMTP id ck2csp213296lkb; Tue, 5 Oct 2021 21:15:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHW5WykkMVOIrJ1Pvo0fd6Xv7MP8pIQVFrKBFIKxtfaej0ZO63M6jQw5WXil9jcUpcDCSN X-Received: by 2002:a50:da83:: with SMTP id q3mr31122895edj.20.1633493709953; Tue, 05 Oct 2021 21:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633493709; cv=none; d=google.com; s=arc-20160816; b=B9Nd1ChV8mZPYiv3RGzK6jTXlXV9v+yj62f80seQ4/mVoRfk2l61zh+DQwrJBY2p8I G7+n7MTvKiGXAPcwwRyx4+iosDVngo+UUi+eP2crlmEkg2JhZIc3N8Dawx5UihXbheAO m7twBeNK19+QJkWAd+LRr/gyOsAsI8XkAt052jl+ZOpqAxSMg8GDts6JjdfvIlUBWr1L vahv+GT+t1+4sWJOEKFfsFXVjw0K+v+lsWx8g++AVVJrZZ1JhVO60SZhKHaQ4z556E6J ZKPAbhdBI2jVZ/cjD1rVJ7+D2qM4ou9XMjnlarSGV+5moBVwL85bMKTCx6iB7/HFAkaS SSgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JeqQPQlkPMyybH7Ylv9LL4C+2+30wYTv9mWLfCOyW68=; b=TyHk33gO1/rGVnMlGhq1fnYLZ9PkM+cex/GYd1IEzggoZCdo4M35lT+VEX8DZKncRt H39dMoI/UufSDe0Fz1DZ3vOsc6Ba0Ce+IX7d2Qj/A+aTpiNk16ai8D1RgPQMNAXEzi/R Er6kpQ1cGDE8meO4AEcehRILcOera9r+/GPgTfO5f9/ldH8wWhP3gRd1yI3A9bSNrlbh EEiBiFmWuN1aVRKeGLGahp6yOybQIhRlvECzhoEQbxy7/wgJdSrmoEvXyaQpDFrFz3Sq s3wFQBdbNgotYyqnTsAlyQ2MHmrP2+PB1XIQ37p5V8m+9E8oey9gTV+2EdoE1GUyn1vS Y+Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XEjeIZfN; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk4si7005165ejb.8.2021.10.05.21.14.21; Tue, 05 Oct 2021 21:15:09 -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=@linaro.org header.s=google header.b=XEjeIZfN; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230358AbhJFEOS (ORCPT + 99 others); Wed, 6 Oct 2021 00:14:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230331AbhJFEON (ORCPT ); Wed, 6 Oct 2021 00:14:13 -0400 Received: from mail-ot1-x32f.google.com (mail-ot1-x32f.google.com [IPv6:2607:f8b0:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8EB9C06174E for ; Tue, 5 Oct 2021 21:12:21 -0700 (PDT) Received: by mail-ot1-x32f.google.com with SMTP id 77-20020a9d0ed3000000b00546e10e6699so1620898otj.2 for ; Tue, 05 Oct 2021 21:12:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JeqQPQlkPMyybH7Ylv9LL4C+2+30wYTv9mWLfCOyW68=; b=XEjeIZfNuBmJTMi6wtAtetYggf2aHs3GPhHg1KwJz1egGXL5njhCRw3DDPgbsH7cJv OUWOA1oOvi2LLIVGnWT3wGH+TmJA95TyM0M6gC2kao6MWJu+bZzC5cnO84s06z3CI1AA XVvMCCFyDHcpCO8U8QelLmZi7fD9CRI8OYcPo6qSRxfBbT/AxB2YjYAxUJ6hV57S0w7A tv9MugLiCri9LD2ijJPmIfSvtHSZYv6q8bsMiyIMxl6jokP6DoYrt1m4hdtVohghtVTl EEr+bbftzq4eN6V4Bov3juUBbxPCEkxk4V/sQTSbb+6ENfzMeMK65PcTxz1DE8SImzIX +iKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JeqQPQlkPMyybH7Ylv9LL4C+2+30wYTv9mWLfCOyW68=; b=Ns5ZqCWpuslnsRLyC6H8df+5VHSY/Cl+TKDSkZDbFUZL+H0+ZinUVOnRWXGIyGsFy6 GoPdCgrdDQLwBbt5yNKgBZ8nMA4q3ExbfaOPpElSsiumqn+/YC5CC/wX5aXTIxo0Ln7x imN1Usye6NU3BN5vvz+QxEx6ttof2p5IUSh6xRDDxuH0twYV2r5w/BoXwLokhHux4cYJ blZsg9QxOhsQ18Xj+1JvtZwF4SdMZ5ry1pn/r6L3EMwutbP+1SixtwxApABePpn/ow2Z 5/9LlHvbec2JGgB7dIOfymT2wkqXfBvbF2lkWWj3vb344WWfNAdcw1qWEO6lUgIFWB69 3swA== X-Gm-Message-State: AOAM532MpmO1YUgbjqG4s939E/GuSgLnxNCif5ESEN7rrVsaOIcgYP/M opLdy8sQCnWwm6K6qMrXM4SHNJ+Piw2sFg== X-Received: by 2002:a9d:12c8:: with SMTP id g66mr276609otg.7.1633493541062; Tue, 05 Oct 2021 21:12:21 -0700 (PDT) Received: from yoga ([2600:1700:a0:3dc8:c84c:8eff:fe1e:256f]) by smtp.gmail.com with ESMTPSA id u12sm4009329otq.20.2021.10.05.21.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Oct 2021 21:12:20 -0700 (PDT) Date: Tue, 5 Oct 2021 23:12:18 -0500 From: Bjorn Andersson To: Matthias Kaehlcke Cc: Pavel Machek , Rob Herring , Andy Gross , Thierry Reding , Uwe Kleine-K?nig , Lee Jones , linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org, Marijn Suijten , Yassine Oudjana , Luca Weiss , Subbaraman Narayanamurthy Subject: Re: [PATCH v9 1/2] dt-bindings: leds: Add Qualcomm Light Pulse Generator binding Message-ID: References: <20210623035039.772660-1-bjorn.andersson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 09 Sep 10:18 CDT 2021, Matthias Kaehlcke wrote: > On Tue, Jun 22, 2021 at 08:50:38PM -0700, Bjorn Andersson wrote: [..] > > + - | > > + #include > > + > > + lpg { > > + compatible = "qcom,pmi8994-lpg"; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + qcom,power-source = <1>; > > + > > + multi-led { > > + color = ; > > + function = LED_FUNCTION_STATUS; > > + > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + led@1 { > > + reg = <1>; > > + color = ; > > + }; > > + > > + led@2 { > > + reg = <2>; > > + color = ; > > + }; > > + > > + led@3 { > > + reg = <3>; > > + color = ; > > + }; > > + }; > > + }; > > + - | > > + lpg { > > nit: should the node be named 'lpg-pwm'? > > IIUC a PMIC .dtsi could have both a 'lpg' and a 'lpg-pwm' node, even though > only one of them can be enabled at any time. > No, there's only the one "LPG", with N channels. The lpg exposes a pwm chip and the child nodes may describe LEDs connected to the channels. So this example is the configuration where there's no LEDs attached. The compatible is "pwm", because the PM8916 lacks the pattern and RGB blocks that makes up the LPG - and is hence named "PWM" in the datasheet instead. So perhaps the example should be generically named "pwm" instead. In all other PMICs I know of the hardware block is named "lpg". Regards, Bjorn > > + compatible = "qcom,pm8916-pwm"; > > + #pwm-cells = <2>; > > + };