From patchwork Mon Nov 6 10:32:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 16287 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2563779vqu; Mon, 6 Nov 2023 02:33:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGNO5rA8rLgTEeU6Ls6cQydu6vT/AtFOWvSZfILEONCaHI53idHqxA4KtVP5Mi/hK/2J7FQ X-Received: by 2002:a17:902:d512:b0:1cc:4b1b:2759 with SMTP id b18-20020a170902d51200b001cc4b1b2759mr21186882plg.63.1699266816129; Mon, 06 Nov 2023 02:33:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699266816; cv=none; d=google.com; s=arc-20160816; b=ktJ1WxVnzejPL0OHdFq8KW9/BBHewJEba0hGiEpBuRd57DyMf2+RrvYS7D/5jk3v6t 1ejnLZfwy+6ssadgqyL5/Cg8ISYHLG/jtZClzsEtnzqu156fxf18ASz516oIQaAzBWo+ U8B8soPAqN93DzceGL88kGae5e89SJUoaXtgohlqT/d4a5HeVOEyu7IkZtRY5kiW6aQH RvkYhvMEDYJyrGYZSn7VHi70F15AvsLvemE3qh2DYCY94b9PCAFGMzP6e0EdanjoLiDW ROMdw3Fpo8YcL/g4e3DVig14qGvsm4fU2SGOLMgmR7FrrKADyScW2CAo+FBBJNljZ/HA U1UQ== 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=jlw5HxIULTW6/Y+wZ7qEz5z78H/my/JnN6AqQuvllNo=; fh=njdjvPz/8fUgTR5XHfg4rgXpBE+Eb+Wz3ojami6fduM=; b=zPFyIW3xVL0SCKBSk7XMnk6flakuMjwrAMEBxAGuFjVCzDvfkNRNmqSNmyp8YZiOQy K9SgYcd+qtvPmFO0mqqq/WyTcotjYHvyb+Z4GsbG9UuWHKtOX5PVLwAkaxfxT7hjEHSo 2psRT6KKWumStRNo5TUgXT6PA6B9cNQMYKAHh966uccGa3pLeuYGNW1r5Nwjt6/om+T/ d2UUriAK4rG48Md5wV/feqJW1xMv+Qc/r659AcTgTovyojfqzR1rk5dVZhDIovDuQqO3 X1oeWg89pLfb9CbaePNDrdRQOFHdllRSCu211F8axIgNfEGY2lvdUY7u4rddU+Rbao9n /KtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WPRBBWX3; 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 Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id i3-20020a170902c94300b001bc674914b0si8287977pla.472.2023.11.06.02.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:33:36 -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; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=WPRBBWX3; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4630B806CC3A; Mon, 6 Nov 2023 02:33:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229583AbjKFKda (ORCPT + 36 others); Mon, 6 Nov 2023 05:33:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230284AbjKFKd0 (ORCPT ); Mon, 6 Nov 2023 05:33:26 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27E1699 for ; Mon, 6 Nov 2023 02:33:21 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-32fb190bf9bso2168200f8f.1 for ; Mon, 06 Nov 2023 02:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1699266799; x=1699871599; 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=jlw5HxIULTW6/Y+wZ7qEz5z78H/my/JnN6AqQuvllNo=; b=WPRBBWX3uYXHjnG4cN1t9SOL7xnD2U4rn66tf52L1f9zcPESNEgcvuk6ZHNBr+5sxp 45ilXqSiWLq48TV9Sou5eTKFGe1o3JjI23wNZu52vLpIGxYR539tz1Bl5DY/Aa0l7XMk napLjUxiZ8VIcHTQVUX35UcpvSB2rX1Y3hYgqzBNkQ6P98P27PEHXU2LdJSXqiFznWgt tRqMTb/M18rMiH1SroqfH3usviStWu6j6ayBqSkiQtTjBpfke+8vYLwziJ2UpOZswMn/ +sLXot5U7Ikj1GFI4PzeHdA7nMpmHU0gsNHKbm9zntCkkXCq1QXgzQy396DsxYsvyQYc MmfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699266799; x=1699871599; 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=jlw5HxIULTW6/Y+wZ7qEz5z78H/my/JnN6AqQuvllNo=; b=FL9wexUojQdggELCJQLF4JHJjbpGdUFKgr5KtpkXqlSIptb220s4TcqHUuc85VyeE7 6JIDeCfwALR4aQ4Bq0O9xfwkt+QGmiw3eYzThdktGcYzXnJdlKFTjRMV19KfMP4zUHUW fQvsdWanGX/FC5A5jFQJEg2xyOF6/FIeswmfEc+Jjr82uWAySTHoU+TPnu9ujPjsXKh2 J8mo+HY3P8WsEWYAdVo7vCK8gaEcQqYdtiQQcuDD0B9fUfdczR0zzJcfjLZ8vPFJAwhw X+yVn359E+9/TC77i0HNxq6iyQJMd6+/rYSt/cb1GPknryCXM9tcTxoxIqE7UEhFs1LL kNFA== X-Gm-Message-State: AOJu0YzoE2W+6msgGwHiJBXm1LJ0PSb94lBLkwxzA6K7IfFMNQE2kUFA uuX715XpysAiFVha3uuvcCo0Rw== X-Received: by 2002:adf:ed4f:0:b0:32d:a366:7073 with SMTP id u15-20020adfed4f000000b0032da3667073mr9251507wro.14.1699266799485; Mon, 06 Nov 2023 02:33:19 -0800 (PST) Received: from toaster.lan ([2a01:e0a:3c5:5fb1:fabf:ec8c:b644:5d3]) by smtp.googlemail.com with ESMTPSA id d1-20020a056000114100b0032415213a6fsm9033602wrx.87.2023.11.06.02.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 02:33:19 -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 0/6] pwm: meson: dt-bindings fixup Date: Mon, 6 Nov 2023 11:32:47 +0100 Message-ID: <20231106103259.703417-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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,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 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]); Mon, 06 Nov 2023 02:33:35 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781810400963280975 X-GMAIL-MSGID: 1781810400963280975 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. 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 | 101 +++++- 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, 407 insertions(+), 267 deletions(-)