Received: by 2002:a05:6520:4211:b029:f4:110d:56bc with SMTP id o17csp737217lkv; Tue, 18 May 2021 18:42:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzODs1owE4MmaxzFCyPuYi3oG67LamsCbw1KtWbKZ7rPBSwJ5B7H5d81lC41Zq/VXDoyCry X-Received: by 2002:a5d:8c82:: with SMTP id g2mr7030678ion.34.1621388523969; Tue, 18 May 2021 18:42:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621388523; cv=none; d=google.com; s=arc-20160816; b=yqDNcfoP9mguXwYPzm7sqXXDlaKh/p1ySl/+9rlfi5IIS0OPJpbe/e2flr9HzWLgll ojsgntrWNBWpKXqpUY2NEFaaxB0pmxwl62kHkSgdse3Di0X1I/oqAuz/WDLn1n5bIth2 Xc4VPoQ8vq9s4cA3GEYhACRIbVbR2e7CTfWmvOm5ceupPbVew7FtBCNmtEnZ4TX/5Edv 8A6fFIw7MQ9AYxqKBxl8rKuDKy/4h7arIC6X0s4YZbzLEAUsssk9FbZShftMr7ShGFVA NPA5TAFoR1S3RxVXbo06DhJP+ZiQRy98004aVlPj3WTXyGKf2V46OAuHDrgROgCxClIH JcEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=st+Q1TTctqUoxIlgrLDaGZoZTbZ7PzpMgveVrps9ljc=; b=fpoiQnGxtriMgfqiIMXPXGH1b2QoUkjyVu0DeztsvO3CORtcynxSP2vaxitArbMhfL WXnAsYSYEvD78zI/SyKw1f8wlYH+Kv+f95UpMjy+TN4wQ5Y3IeqDsQal0u97mjMKLfwd dMMLq4GYcAqu3AL/0S153/ueYe5jj4nzuhIqa0JfQvGvgESwo4WAoYThwWxN5hhxxi/8 19mP/A2v+25228gGpYgRsQldhAQfmXBJJMVkxnbgjfx3iXX7HPg40gA7fHQrr1l7XwHv U41Q00J5xJ86Sc6Nf7E8Duoby6Ia3qTE6/IRRWT/QKCD/IexCwBsO7mnaVWxI6S/fs9M 9NQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@svanheule.net header.s=mail1707 header.b=nLP6b6oG; 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=svanheule.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d1si25282751ilg.93.2021.05.18.18.41.51; Tue, 18 May 2021 18:42:03 -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=@svanheule.net header.s=mail1707 header.b=nLP6b6oG; 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=svanheule.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234508AbhEQTeI (ORCPT + 99 others); Mon, 17 May 2021 15:34:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234531AbhEQTeE (ORCPT ); Mon, 17 May 2021 15:34:04 -0400 Received: from polaris.svanheule.net (polaris.svanheule.net [IPv6:2a00:c98:2060:a004:1::200]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024B1C061763 for ; Mon, 17 May 2021 12:32:46 -0700 (PDT) Received: from [IPv6:2a02:a03f:eafb:ee01:404a:340a:91cb:c07b] (unknown [IPv6:2a02:a03f:eafb:ee01:404a:340a:91cb:c07b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: sander@svanheule.net) by polaris.svanheule.net (Postfix) with ESMTPSA id 18E871FFC02; Mon, 17 May 2021 21:32:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=svanheule.net; s=mail1707; t=1621279965; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=st+Q1TTctqUoxIlgrLDaGZoZTbZ7PzpMgveVrps9ljc=; b=nLP6b6oGufhmxBpGQxRsjukWfzXBhxL8zwdqca7Alswn8ITr6vh2fMJbf5uYtl+eatpuPy tn9uCRc370VoZ7vNIXdMyQUEC1IH+yTKH4ZbjENtqfsSIB74OloYuWv9OsB2x/6Qa+lEJN r7KpKwQkOLx9WvFzSSEbnjpdumOrk67leuwPqD/47RAevUz2ZL9GVfeuLRXmJHw/ie5uyZ p+spOXZrCil4HbsEAvnBkGEgFjNZtvyhL4pExnzYbKR2yeyS+wFCk7Ol/2FqVK11doZw5F CxQHhAdiScYX5CAXYT0o21saTdp5xTPZeQ/FQQpyipNPZThJ8lWk/rdHzTG6dQ== Message-ID: Subject: Re: [PATCH 0/5] RTL8231 GPIO expander support From: Sander Vanheule To: Andy Shevchenko Cc: Pavel Machek , Rob Herring , Lee Jones , Linus Walleij , "linux-leds@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Date: Mon, 17 May 2021 21:32:43 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.4 (3.38.4-1.fc33) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 2021-05-16 at 23:40 +0200, Sander Vanheule wrote: > > 2. Please, switch to fwnode API in LED driver > > Since you had the same comment on my previous patch set, I had already tried to > this this into account as much as possible. > > There's a few things I couldn't find the fwnode-equivalent for: >  * I use of_node_name_prefix to enforce the naming required by the binding. I >    could just walk over all (available) child nodes, which would be mostly >    equivalent. >  * To get the address of an LED child node, I use of_get_address, since this >    appeared to provide what I want to do: get the address of the node. I know >    next to nothing about ACPI. Does the equivalent exist there? Or am I taking >    the wrong approach? Hi Andy, I found this: https://www.kernel.org/doc/html/latest/firmware-guide/acpi/dsd/leds.html So instead of of_address, I now just read the "reg" property. The v2 I just sent should be fwnode-only. Best, Sander