Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3815050pxk; Tue, 29 Sep 2020 07:01:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLmwOY/hHZsG7Wso97KNA/1XaamoEJ3qlWLQMAzsrEyZA1DRUv5BxNKzssZ4T3uip9RywP X-Received: by 2002:a5d:4fcc:: with SMTP id h12mr4514310wrw.199.1601388082451; Tue, 29 Sep 2020 07:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601388082; cv=none; d=google.com; s=arc-20160816; b=tPl1XCwuxhrNJ3wc6WdsCLuJEkYZT5lHoKul7uFekmafB/mYrpMQ1F2zvfQSuTzxdI Nmp29434ylJN2LYDe0SnqFKbtBCliYVP/IvNFMRjR11wJ5AeHcYvhkx7mi3DsmCLUb6Z lVOmFScy2xQkURHk7uxgh/j1QB/tcrcEqTzw1vldL8pO8m16Qf5rlz1XAZKc9TZogyU0 CnUXb/yVqVhbDXKgEZLHVG364PVVZZ9VjhW8yBKDljaJ/JfIjVt900jPnlb/hDAE0wXw yM5R/8Ycolhuh3APQiePogqij1fCqUhuKoL9RXZB3LRZkpX/tsJEdDjQ4j8ghl3sFsZ4 9HgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=LB3Ym0yOm9KPtH1blcni2GOgQLYWmitk026reOw/4os=; b=DZYLp35Ir3B4GQ8QzXaIAIzPLOYKnoMES3ZMO6xbniFQpAum3jnOKctGPYTbefe/dg x72/qosm+KkBUCqvtAqkdNFoxJRk1S2H9cc+2+7Y4dP6yxoDLimRmfY1QsWLuYTClsIg 1/qKS8mMI1SgTxtrKEwOiS7j6q6nMmYWHU+zGTkXK4GRMuOe9DAN1whR0ysdwO4nVCN6 vgQ/s7kqmqnj5HSaczTtmng648vDu3TG0d1688VINQH50ikUGhKZaAzQKJkoZ3i7AQWw 1GJ0SCLDbNU6kaAeOUqbjYj82BNat3wWyQOZy+JtEPFRCAuGMRa5PVwUO+KL8uYit9qL pGBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pERYnnps; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si2890820edx.248.2020.09.29.07.00.57; Tue, 29 Sep 2020 07:01:22 -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=@kernel.org header.s=default header.b=pERYnnps; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731326AbgI2N6i (ORCPT + 99 others); Tue, 29 Sep 2020 09:58:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:44118 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731265AbgI2N61 (ORCPT ); Tue, 29 Sep 2020 09:58:27 -0400 Received: from mail-oi1-f171.google.com (mail-oi1-f171.google.com [209.85.167.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 66FA621D46; Tue, 29 Sep 2020 13:58:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601387905; bh=ZfFWzKaQTELYwaowWT+nxgqvHBHuAqvdqFBwu7lGebo=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pERYnnpsZdy4ZJOch3jWlcvjcjATbfaENV5K7hqDnNfNKcWhHAQNm5URh2u1B8M97 Sc5FrDvMmoMg/0L8ugpuPoyzHexmjLs8wFSiEACRz3znoWb1eodNokj/oDov/m/6uO 0wNxTbriN9AiDGVgPxwnmWQOeZ96YvrSYqDLyBEM= Received: by mail-oi1-f171.google.com with SMTP id v20so5564424oiv.3; Tue, 29 Sep 2020 06:58:25 -0700 (PDT) X-Gm-Message-State: AOAM533MVfbIlyPJdGRl5ZgZYLaRvYYie+ekutKrAHwN3VD+IJn0thfL Pj8ZUqYxEvvb10klv0wx99Av6v4Bc7pJVYTphQ== X-Received: by 2002:a05:6808:10e:: with SMTP id b14mr2740132oie.152.1601387904518; Tue, 29 Sep 2020 06:58:24 -0700 (PDT) MIME-Version: 1.0 References: <20200919053145.7564-1-post@lespocky.de> <20200919053145.7564-4-post@lespocky.de> <20200922155747.GA2734659@bogus> <23920329.U7EUVLB22C@ada> In-Reply-To: <23920329.U7EUVLB22C@ada> From: Rob Herring Date: Tue, 29 Sep 2020 08:58:13 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 3/3] dt-bindings: leds: Convert pwm to yaml To: Alexander Dahl Cc: Alexander Dahl , Linux LED Subsystem , devicetree@vger.kernel.org, Jacek Anaszewski , Pavel Machek , Dan Murphy , "linux-kernel@vger.kernel.org" , Peter Ujfalusi , =?UTF-8?B?TWFyZWsgQmVow7pu?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 2:39 AM Alexander Dahl wrote: > > Hei hei, > > Am Dienstag, 22. September 2020, 17:57:47 CEST schrieb Rob Herring: > > Use generic node names: > > > > led-controller { > > > > > + compatible =3D "pwm-leds"; > > > + > > > + led-1 { > > > + label =3D "omap4::keypad"; > > > + pwms =3D <&twl_pwm 0 7812500>; > > > + max-brightness =3D <127>; > > > + }; > > > + > > > + led-2 { > > > + color =3D ; > > > + function =3D LED_FUNCTION_CHARGING; > > > + pwms =3D <&twl_pwmled 0 7812500>; > > > + max-brightness =3D <255>; > > > + }; > > > + }; > > > + > > > +... > > This is clear for the "one led-controller" case. However, when trying to= fix > those node names in existing .dts files, I wondered how those should be n= amed > for multiple, different led-controllers, e.g. one using "pwm-leds" and an= other > one using "gpio-leds"? > > See arch/arm/boot/dts/at91-kizbox3-hs.dts for example, the nodes are call= ed > "pwm_leds" and "leds" currently. If both were part of a .dtsi and both n= amed > the same, you could not overwrite/complement those in a .dts file includi= ng > that .dtsi due to a name conflict. > > Just append a numerical index like this? > > led-controller-1 { > =E2=80=A6 > }; > > led-controller-2 { > =E2=80=A6 > }; Yes, that's generally what we've been doing. Rob