From patchwork Fri Nov 17 12:59:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 16700 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp507097vqn; Fri, 17 Nov 2023 05:01:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7AxCOXUCLIvfePsshXSqAup0vScVojFI7SsABTzX0kbBq1C3WfyPzX4ZGgQZPdbeQMsXA X-Received: by 2002:a05:6870:4998:b0:1ef:b588:94b5 with SMTP id ho24-20020a056870499800b001efb58894b5mr24691260oab.27.1700226073724; Fri, 17 Nov 2023 05:01:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700226073; cv=none; d=google.com; s=arc-20160816; b=FOCZrsgbCdJCOo5CXr7v8STPNvheO82NgrMXXpAUmnhYTTiBesP7xcolc3JnIeY1DY hBik3IW4FRw0CJIT/ajHOiOgZyj5C9tBWfvOyaPiAqZyxP22ZrkUOJ+Xy8zPkjKeAdH8 WfhNhsoAGuFUD7XUshPLHkDyWjeoEHP1/uJjtU5GcUdq5/kDZzl5KJdWv5M9Em7uC9Ao jO05r0fqbi64sGMtlQ6yfnz+N71KPzIhiYNQb9z47wU8IAxg7AgvLRfY7/in+2Y3QSmd ssY75H+xRaWe8xmPox6/ol1aijNeIZS2MjIhyrbQwR6N5vmqzH60U2YhV4w8tKcHMOR5 GF6Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lbSFal9UZ0Rgq/J7gXvQGlHm4p2HKjc2Wn5KsakkeeE=; fh=njdjvPz/8fUgTR5XHfg4rgXpBE+Eb+Wz3ojami6fduM=; b=oj4QAqEs0smutEVtqMUAtD/TI+O61KuwvEN9+nvrDztcHQ1IOld9fTYO7lBExh8ZUZ u/2HZsc29Nd2+tSssgAPMZZujKGv6oq0fpyfLigMW+IikIIOo5R9Kz5TZVRBEUfF+aX0 ovtMKO72gycYEh2Phy8vOBye/Ie7/JgNHQiVoNpTn/WORyiZGSiSF/bQ0AuJQoxLcjuV k0Axgoh0iErf0k+/rPZIPE0aEfQMa28OP2Il0G7VowwIp+Mmqv0VZGHurt9RxtEeBsVo RRTifAD7AuDVJENLT2D8GYqO0fi2MTPA/TynTcoPHgvCzN3Z/A31UNqkRYTyj29KJ6uQ +WRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="V5xr/6E0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x39-20020a056870a7a700b001f52b0c773asi562957oao.21.2023.11.17.05.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 05:01:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b="V5xr/6E0"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id D30C58057E13; Fri, 17 Nov 2023 05:01:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345745AbjKQM7k (ORCPT + 30 others); Fri, 17 Nov 2023 07:59:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230419AbjKQM7i (ORCPT ); Fri, 17 Nov 2023 07:59:38 -0500 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93D79D55 for ; Fri, 17 Nov 2023 04:59:33 -0800 (PST) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4083f613275so15969865e9.2 for ; Fri, 17 Nov 2023 04:59:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1700225972; x=1700830772; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=lbSFal9UZ0Rgq/J7gXvQGlHm4p2HKjc2Wn5KsakkeeE=; b=V5xr/6E0+ApLDoEZ3maxDQ3XOTB/bxuWBtTM1LHBJOnbWRvX8+zqvNAhMNm5sQH1cH ET4fnASGazT+S3c9hKrM2bUZnLpw99BqwQ1R+JAJaHfxkWCZGWXSldZZgR17zNV/K2NJ lSwUFU+QRGHvdXoJRcfKo+hwM4vxqVpqQXKgylnlYry8H/Vui9PxSWwgqrgqTMqZ24dI 9D4tFGFcp59Mv83oI3q8k1Bdnldvb8Z99TP/kv1B1YieytxeLAnWyKPi/NyvqH9XLjjL z1lLqNw9H9o+J7/mNMfoPXs4KJxAbnO6Fo7kwh7MfeDrG+sSe+dJcVsC8c721CTAdJvY 9UrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700225972; x=1700830772; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=lbSFal9UZ0Rgq/J7gXvQGlHm4p2HKjc2Wn5KsakkeeE=; b=G/acMZThNDSHrqQ7Ac8ZONqfVEx0yXnjaJseIc/uBvgTYy9OyWa97UkigjIWwbLqnK dhXlT3WwLQt24MX9/zoZYUKrE+0HOdcPPXlGFQ5g86ZHz01DUsZ+QomrdQLvfcxi8Am6 rkCt/wYvVz8MfmEDsXbbfrdPZpZA7aXvjO8oOl5JKjNMlO/ay5dbBQzx4AnsKm68oJ/y d++fGrxcKj11T+OkBNbF/yJ2yJ4f243fcIuHACfMOlX6wSIzrVoO+SIudCOn2Z7wsJ6+ ULMETwmCWzaW6xK/GcCa8c0uValzpDV52ApG2BYgvFDQhSrPxXC3E82UCF4+aE7zisvd h4zg== X-Gm-Message-State: AOJu0Yy6ldTQqA0iDJ+gY6u6A5K9AKvBTvQSQXLrGv1QQSza+QXKMNSK ELh3I9n09fKi9CjtoV3QsU+3oi1s1ZxJV0VFKLY= X-Received: by 2002:a1c:790b:0:b0:409:7aa9:a903 with SMTP id l11-20020a1c790b000000b004097aa9a903mr4404700wme.19.1700225971858; Fri, 17 Nov 2023 04:59:31 -0800 (PST) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:8196:e423:38cb:9a09]) by smtp.googlemail.com with ESMTPSA id k21-20020a05600c1c9500b0040a487758dcsm2671343wms.6.2023.11.17.04.59.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 04:59:30 -0800 (PST) From: Jerome Brunet To: Thierry Reding , Neil Armstrong , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Jerome Brunet , Kevin Hilman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-pwm@vger.kernel.org, JunYi Zhao Subject: [PATCH v2 0/6] pwm: meson: dt-bindings fixup Date: Fri, 17 Nov 2023 13:59:10 +0100 Message-ID: <20231117125919.1696980-1-jbrunet@baylibre.com> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Patchwork-Bot: notify 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Fri, 17 Nov 2023 05:01:06 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782816254414789619 X-GMAIL-MSGID: 1782816254414789619 This patchset aims to: * Fix the incorrect bindings for the s4 type of pwm that was introduced while converting the documentation from txt to yaml format. * Introduce a new compatible for the existing PWMs to better describe the HW in DT, instead of describing settings. * Make the introduction of a new pwm variant (s4) slightly easier. * Migrate the supported SoCs to the new compatible. Usually, I prefer to send to dts patches separately. This time it seemed important to illustrate the change. I don't mind splitting this out and re-spinning if this is annoying for the maintainers. Changes since v1 [1]: * Fix typo in the new binding compatible documentation * Disallow clock-names for the new compatibles in the schema documenation [1]: https://lore.kernel.org/linux-amlogic/20231106103259.703417-1-jbrunet@baylibre.com Jerome Brunet (6): dt-bindings: pwm: amlogic: fix s4 bindings dt-bindings: pwm: amlogic: add new compatible for meson8 pwm type pwm: meson: prepare addition of new compatible types pwm: meson: add generic compatible for meson8 to sm1 arm: dts: amlogic: migrate pwms to new meson8 v2 binding arm64: dts: amlogic: migrate pwms to new meson8 v2 binding .../devicetree/bindings/pwm/pwm-amlogic.yaml | 103 +++++- arch/arm/boot/dts/amlogic/meson.dtsi | 4 +- arch/arm/boot/dts/amlogic/meson8.dtsi | 16 +- arch/arm/boot/dts/amlogic/meson8b-ec100.dts | 2 - arch/arm/boot/dts/amlogic/meson8b-mxq.dts | 2 - .../arm/boot/dts/amlogic/meson8b-odroidc1.dts | 2 - arch/arm/boot/dts/amlogic/meson8b.dtsi | 16 +- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 24 +- .../boot/dts/amlogic/meson-g12-common.dtsi | 28 +- .../dts/amlogic/meson-g12a-radxa-zero.dts | 4 - .../boot/dts/amlogic/meson-g12a-sei510.dts | 4 - .../boot/dts/amlogic/meson-g12a-u200.dts | 2 - .../boot/dts/amlogic/meson-g12a-x96-max.dts | 4 - .../amlogic/meson-g12b-a311d-libretech-cc.dts | 2 - .../dts/amlogic/meson-g12b-bananapi-cm4.dtsi | 7 - .../boot/dts/amlogic/meson-g12b-bananapi.dtsi | 4 - .../dts/amlogic/meson-g12b-khadas-vim3.dtsi | 4 - .../boot/dts/amlogic/meson-g12b-odroid.dtsi | 4 - .../dts/amlogic/meson-g12b-radxa-zero2.dts | 8 - .../boot/dts/amlogic/meson-g12b-w400.dtsi | 6 - .../dts/amlogic/meson-gx-libretech-pc.dtsi | 6 - .../boot/dts/amlogic/meson-gx-p23x-q20x.dtsi | 2 - arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 8 +- .../boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 2 - .../dts/amlogic/meson-gxbb-nexbox-a95x.dts | 2 - .../boot/dts/amlogic/meson-gxbb-p20x.dtsi | 2 - .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 2 - .../boot/dts/amlogic/meson-gxbb-wetek.dtsi | 2 - arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi | 26 ++ .../boot/dts/amlogic/meson-gxl-s805x-p241.dts | 2 - .../meson-gxl-s905w-jethome-jethub-j80.dts | 2 - .../meson-gxl-s905x-hwacom-amazetv.dts | 2 - .../amlogic/meson-gxl-s905x-khadas-vim.dts | 2 - .../amlogic/meson-gxl-s905x-nexbox-a95x.dts | 2 - .../dts/amlogic/meson-gxl-s905x-p212.dtsi | 2 - arch/arm64/boot/dts/amlogic/meson-gxl.dtsi | 26 ++ .../dts/amlogic/meson-gxm-khadas-vim2.dts | 4 - .../boot/dts/amlogic/meson-gxm-rbox-pro.dts | 2 - .../amlogic/meson-libretech-cottonwood.dtsi | 6 - .../boot/dts/amlogic/meson-sm1-ac2xx.dtsi | 6 - .../dts/amlogic/meson-sm1-khadas-vim3l.dts | 2 - .../boot/dts/amlogic/meson-sm1-odroid.dtsi | 2 - .../boot/dts/amlogic/meson-sm1-sei610.dts | 6 - drivers/pwm/pwm-meson.c | 312 +++++++++++------- 44 files changed, 409 insertions(+), 267 deletions(-)