Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2492077rdb; Wed, 4 Oct 2023 02:59:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJ9Fjel36jsjGEmhrmnlPhjGmv8jKDIeCTUP5ptKIDMgORfKVHX0BVU9gb0r3EQkax+YcG X-Received: by 2002:a05:6a20:1611:b0:15a:13f3:49ca with SMTP id l17-20020a056a20161100b0015a13f349camr2355868pzj.9.1696413557859; Wed, 04 Oct 2023 02:59:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696413557; cv=none; d=google.com; s=arc-20160816; b=YHibDlsDXCwB0A65cueErLvFJOSBhlCmygiS3KfKs5M6ZdesC0EM0TZCCdGtvzPj+i xXc3XIPU94wT2gN8Lo/kWlyxchkt5vnYjmIy2U7ECKE0UgG8iTuKqCLaXz6VfDXu8/JO 1MxUSq5jHdEYsFsSDZSHQM6C/OF/48NC976OtOIKF3O5BkQ+sphg7omfBqr8xRqXEo4o lxBev2uebjPvwn+OWi/uNoW/dqZqlq8ItEybZb2NKD7z+/scbAV7mv0+2TGM7IprVqij GafxOpXybHraTe9NHSsxZ1r5FfmEtDEfYsUxouM7i36e86d14A57W9QIDCeJ00v1+Kco o8Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=2zQurfJPbiuUjWnuhOpNrLMV2pgMXd/ebBa042cwmYc=; fh=/VC3+P35Hyqc6SVMTFn0iEFWgn+I5X2jQRRnug/EFO8=; b=wkqYZegpmW2XARGIvvGDZ1lNJ+/b06n+F7D1jJ7ovJEScBlzq9PAtsHu/AP6ta7/Rv MBTyoF2ghFxl8ebC9TACZAlXxWyFYQEF0gCcNHzKTdsxX8M+Pb/yUjTsJbPJQcz6IMs4 W12q+AfeI9jby2RSjUFTnx4F+khettS0hxI89WdYRDZ+4Dfp256Hy+oPgzP5/9vPVPiL BCIBlWc+IQqIsRoM4Q3mymuk0uLM23LsxyRhh3CXPXZ7rnYt7EelwhTWYaNVub+fD41H 3PARIULbRLdhKxgd0u1mHeEO8JqY26mlmQU2IWeLxzaelVzz6S3kr3IkbdyOCpxRB9O9 G8kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ssznBkeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id s2-20020a632c02000000b005852a35afeesi3458744pgs.186.2023.10.04.02.59.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:59:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ssznBkeL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DD9648130FBF; Wed, 4 Oct 2023 02:59:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232984AbjJDJ7B (ORCPT + 99 others); Wed, 4 Oct 2023 05:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbjJDJ67 (ORCPT ); Wed, 4 Oct 2023 05:58:59 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF8DAA7 for ; Wed, 4 Oct 2023 02:58:55 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-50567477b29so2252422e87.3 for ; Wed, 04 Oct 2023 02:58:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1696413534; x=1697018334; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=2zQurfJPbiuUjWnuhOpNrLMV2pgMXd/ebBa042cwmYc=; b=ssznBkeL/RtBv2O86Jzp7gM4CHOPBqfAjN34MlY19kgtSgGWZjBXllFFsgGQDBOCA2 F3olrFY6DYdYUho5Q+ce6CRl9WqSToVLcN1Rc4jacv84tTE4PrRCl93ZXxOlaXSqlFfl AZUlRJJV/L8+uHAdfp/9BPGXjwlaEltpw6Z2lek500lrSEdWfOsaqf7D5vIWCsYreZ5z 5HF0vZ87+g7wVXRbvGfd8YzzZ172+bJDVlZ6yBsEOonPDFbgwRNHHQ71NIKKfniJBfdt 4tJBUf8PqObkc8KF/5pNByTUs1TBQrRIgREiisD5wCzFf4g2hsNqdQ7up+G3Jmqowmnb zWcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696413534; x=1697018334; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=2zQurfJPbiuUjWnuhOpNrLMV2pgMXd/ebBa042cwmYc=; b=BInMkn51BocTh4c8QXwqTdf6NRNvdQtg6GIeoOQjSscK/sNPXV+hb24BjhMdV+B+6G 7UKrC+Mr2c7IOmCtPtJkpMomFhxTujpdxvdTG0eUlOGOGgyGSjzbuRolnvFrN0V+MInA 7y7QxzCj4YTtUk3/LCxhd4VtLnTFOhaq7iYTTSo666bFi3tgSmt+MzH6sW0hqU4bZoTz UT5FHT9glCUeUoTWcmVxj4w6BoqpH9G5A+M09lerIsI+JlMV4hHe88c2CreeaM6wWrjz GRQnq7Q7LeUo7ktndhAJ0SPdZI+ym4Vq90kBP03CDMAofcMJI82/+xIEkWzEjwdyHATu 0eoQ== X-Gm-Message-State: AOJu0YxcTDSLlfX4PayGulLuxh/TOJNIrbCA8651gNdGSUNj3vtSwJxe GTnanIiV/Ym9AvttjFFKqPfCFw== X-Received: by 2002:a05:6512:1052:b0:503:fee:5849 with SMTP id c18-20020a056512105200b005030fee5849mr1827173lfb.53.1696413533806; Wed, 04 Oct 2023 02:58:53 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:d9fc:647c:aca8:fc21]) by smtp.gmail.com with ESMTPSA id x2-20020a1c7c02000000b003fe23b10fdfsm1086938wmc.36.2023.10.04.02.58.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 02:58:53 -0700 (PDT) References: <20231002141020.2403652-1-jbrunet@baylibre.com> <20231002141020.2403652-3-jbrunet@baylibre.com> <2248b34e-d755-4142-986c-0ead80796e13@linaro.org> User-agent: mu4e 1.8.13; emacs 29.1 From: Jerome Brunet To: Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Kevin Hilman , Da Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org Subject: Re: [PATCH 2/2] arm64: dts: amlogic: add libretech cottonwood support Date: Wed, 04 Oct 2023 11:49:00 +0200 In-reply-to: <2248b34e-d755-4142-986c-0ead80796e13@linaro.org> Message-ID: <1jleciyahv.fsf@starbuckisacylon.baylibre.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 02:59:15 -0700 (PDT) On Wed 04 Oct 2023 at 11:20, Neil Armstrong wrote: > On 02/10/2023 16:10, Jerome Brunet wrote: >> Add support for the Libretech cottonwood board family. >> These 2 boards are based on the same PCB, with an RPi B form factor. >> The "Alta" board uses an a311d while the "Solitude" variant uses an >> s905d3. >> Co-developed-by: Da Xue >> Signed-off-by: Da Xue >> Signed-off-by: Jerome Brunet >> --- >> arch/arm64/boot/dts/amlogic/Makefile | 2 + >> .../amlogic/meson-g12b-a311d-libretech-cc.dts | 133 ++++ >> .../amlogic/meson-libretech-cottonwood.dtsi | 610 ++++++++++++++++++ >> .../amlogic/meson-sm1-s905d3-libretech-cc.dts | 89 +++ >> 4 files changed, 834 insertions(+) >> create mode 100644 arch/arm64/boot/dts/amlogic/meson-g12b-a311d-libretech-cc.dts >> create mode 100644 arch/arm64/boot/dts/amlogic/meson-libretech-cottonwood.dtsi >> create mode 100644 arch/arm64/boot/dts/amlogic/meson-sm1-s905d3-libretech-cc.dts >> > > > >> + >> + leds-pwm { >> + compatible = "pwm-leds"; >> + >> + led-green { >> + color = ; >> + function = LED_FUNCTION_STATUS; >> + linux,default-trigger = "default-on"; >> + panic-indicator; >> + max-brightness = <255>; >> + pwms = <&pwm_cd 1 1250 0>; >> + active-low; >> + }; >> + >> + led-blue { >> + color = ; >> + function = LED_FUNCTION_ACTIVITY; >> + linux,default-trigger = "activity"; > > "activity" isn't documented, perhaps heartbeat instead ? > The trigger does exist though. The other way is to extend the DT doc. I don't really care one way or the other I'll defer to Da on this one >> + max-brightness = <255>; >> + pwms = <&pwm_ab 1 1250 0>; >> + active-low; >> + }; > > leds subnodes should be named as led(-[0-9a-f]+) > > see Documentation/devicetree/bindings/leds/leds-pwm.yaml That I do care. The schematics refer to the leds by name. There is no number assigned, much less hex. Making one up makes no sense. User should be able to quickly (and easily) link what they see in the schematics with DT. So I'd prefer to submit a change for the regex rather than changing this > >> + }; >> + >> + leds-gpio { >> + compatible = "gpio-leds"; >> + >> + led-orange { >> + color = ; >> + function = LED_FUNCTION_STANDBY; >> + gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; >> + }; > > Ditto, but you can simply use "led" since it's the only one. > > See Documentation/devicetree/bindings/leds/leds-gpio.yaml > > Neil > > >