Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1730258rdb; Sun, 19 Nov 2023 08:04:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUFifHcn7BLp34MGRjRkZjLt85VU9NkZEY4iTpztDEFOcPToOsyN+j7q27R6fmvBBuGtee X-Received: by 2002:a05:6a20:3cab:b0:18a:5593:3ca3 with SMTP id b43-20020a056a203cab00b0018a55933ca3mr497993pzj.26.1700409872985; Sun, 19 Nov 2023 08:04:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700409872; cv=none; d=google.com; s=arc-20160816; b=RR3qG+4ZCVIf97afLfce54DqSYMidViDcghHZ09ddIz1CeTaBMSsNiGKshEgThujjW 7IgU5kAuK/0/wedwuxJ/FJc1zM7edxWnDuyr1TieKE+ey6pgMCB7u6JKhs/8RU2gI8Sm 4rdIkJG4Fq79cLdv4fQS9IATmwFLFYTc2oeG3QHv3lJNFUlGLi0A3oytQk09gJ0hz5AM JuC6S5vC52UJsEGt+0iCky4MXY3wvoyZ226GfyNOVDUNTeZ8zAuhlJh6CzBy62CB2HnI 2SxGAnsFKm9fgf5Pcnzirt1EacGuBmhS2fhSG7i0a57vDk8p0SaV3mvJ9dpx80OoNDGI jiGg== 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; bh=IhoBsgcYCPoMOyBClZKCjJFuGRHuuw4KSHpd/ceIW1o=; fh=myctE4tuqCwmB/5nmRQK3Zwicx0DEDov1itunp3k+Jo=; b=XVvqsvFq/eLSWmPQcZZSqid2CQvuMsL10UPIqgKO/ql51aVw0xQ+0cg42jG1Z2ZpMJ WOB67CktecNiRCtvxOxhaMVuhMY5lRenWYtirM08D9ORnRGipoFUCCdok7d8aCY6hBSM TBt98P+gSvoL4in7rkgNn3rUfreyLZJSiVVzyB5cRW6jKXJayT/GPCRFh9HZarNkjO+Z 4/CpixeEvKyJilO/IVUhiqXywjGXX2peMfXGLvofqDceuhlVw6EPgqbFAtR9WDh/Isic rJLBfz0Y2SfvI/ldePHuvL+suu+TBzWhCcJF3Sxy+whkup1OxNOqFxkm/L+1jHdptkgp 6jAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i18-20020a17090332d200b001bf5c12ea06si6949645plr.404.2023.11.19.08.04.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:04:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 53B5D8061B4E; Sun, 19 Nov 2023 08:04:31 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229703AbjKSQEb (ORCPT + 99 others); Sun, 19 Nov 2023 11:04:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjKSQEa (ORCPT ); Sun, 19 Nov 2023 11:04:30 -0500 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47677115; Sun, 19 Nov 2023 08:04:26 -0800 (PST) Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3b6c31e604cso2547763b6e.2; Sun, 19 Nov 2023 08:04:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700409865; x=1701014665; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IhoBsgcYCPoMOyBClZKCjJFuGRHuuw4KSHpd/ceIW1o=; b=rRCXRoBlxx3Gik3/RoUeghO8iBvus608AFa0azfAwBm1vWxKOeGPIilrdAHLLSUfVt EKkvzQ0bQRBv4YdnabeHgtgZlDqAWf47YV4JIyN7tmcIN7Tf2bvzEk+ZNoep0tPP1E5i tDe1+dvl3p3SftJaKjyhgDBdqBmmWuo3hN6Y8LRlQEDJ/oldtcXWIiqTfXCvusWNQkwr SxATBEgfOlFtOVBT4MTLUSuCdnJ7HnlhzhjT1pcYvm9Ql9XCHvZKliotUk/Q9AKkv6Br k1xuvBuSRK3B3SpYcVNem0hVvE0LtCdrU0X19ktc9cq8hlRnX/Cg0ZWUvbM1NqoKlBYS yKTQ== X-Gm-Message-State: AOJu0YwMsmTz+qmHyfLXuKeqjQs83badY8yONg+CjoV2PsCLQRgmoWa4 oqgmGBkvPxVRCHGH1ksmAQ== X-Received: by 2002:a05:6808:bcc:b0:3b2:f431:e029 with SMTP id o12-20020a0568080bcc00b003b2f431e029mr8622231oik.26.1700409865587; Sun, 19 Nov 2023 08:04:25 -0800 (PST) Received: from herring.priv ([2607:fb90:45e3:889f:15b4:1348:6d64:224b]) by smtp.gmail.com with ESMTPSA id i16-20020aca2b10000000b003af642cf646sm998621oik.37.2023.11.19.08.04.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 08:04:24 -0800 (PST) Received: (nullmailer pid 267899 invoked by uid 1000); Sun, 19 Nov 2023 16:04:22 -0000 Date: Sun, 19 Nov 2023 10:04:22 -0600 From: Rob Herring To: Jerome Brunet Cc: Conor Dooley , Neil Armstrong , devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, Krzysztof Kozlowski , linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, Kevin Hilman , Rob Herring , Thierry Reding , JunYi Zhao Subject: Re: [PATCH v2 1/6] dt-bindings: pwm: amlogic: fix s4 bindings Message-ID: <170040986161.267844.16868927442799371234.robh@kernel.org> References: <20231117125919.1696980-1-jbrunet@baylibre.com> <20231117125919.1696980-2-jbrunet@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117125919.1696980-2-jbrunet@baylibre.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Sun, 19 Nov 2023 08:04:31 -0800 (PST) On Fri, 17 Nov 2023 13:59:11 +0100, Jerome Brunet wrote: > s4 has been added to the compatible list while converting the Amlogic PWM > binding documentation from txt to yaml. > > However, on the s4, the clock bindings have different meaning compared to > the previous SoCs. > > On the previous SoCs the clock bindings used to describe which input the > PWM channel multiplexer should pick among its possible parents. > > This is very much tied to the driver implementation, instead of describing > the HW for what it is. When support for the Amlogic PWM was first added, > how to deal with clocks through DT was not as clear as it nowadays. > The Linux driver now ignores this DT setting, but still relies on the > hard-coded list of clock sources. > > On the s4, the input multiplexer is gone. The clock bindings actually > describe the clock as it exists, not a setting. The property has a > different meaning, even if it is still 2 clocks and it would pass the check > when support is actually added. > > Also the s4 cannot work if the clocks are not provided, so the property no > longer optional. > > Finally, for once it makes sense to see the input as being numbered > somehow. No need to bother with clock-names on the s4 type of PWM. > > Fixes: 43a1c4ff3977 ("dt-bindings: pwm: Convert Amlogic Meson PWM binding") > Signed-off-by: Jerome Brunet > --- > .../devicetree/bindings/pwm/pwm-amlogic.yaml | 69 ++++++++++++++++--- > 1 file changed, 60 insertions(+), 9 deletions(-) > Reviewed-by: Rob Herring