Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1171273pxp; Wed, 9 Mar 2022 23:25:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTwHIaVZELx7xNwLQkmOYsLsclt2Mh0kIsiOnOiXMMa01NRXCpRyd7ckXr0xbuN0JkSApE X-Received: by 2002:a17:902:7805:b0:151:b8ec:202b with SMTP id p5-20020a170902780500b00151b8ec202bmr3627814pll.111.1646897105419; Wed, 09 Mar 2022 23:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646897105; cv=none; d=google.com; s=arc-20160816; b=QnfGoaiwzobVOt6m6OItSnujaXsJd/MxlP3OjfXnaPXZtHqeUfXZjrhiC/0ol5NVNn +Yhfq365hA6LY16bP7sConrdXTFTUoF9cCGYzOH86E6r0NLfWtb1fdWT2u4uvAt2Qx5X vTM0aPv1YkFyueWO1UuZhbt4Eb0hp0hsWXdh+hOByzaBH+8pHITDYwKFEUKqPizzpCNM O49IadWI+RspMykmq8NHB8gBRrcnIqhe4It8XPyAkpS4Xb5apAiSzB+lJJTmKknmNcaV eACXb3+Rz/KNqDMVT9/HqGiDeneo2XYppcz2mocunawS4TN69MUXCG35SZVNOE5xmMN4 R9qQ== 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:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=Q9p+Z9UIcIGH1r1Gh/2P/Icl9JR4XR5mVLpW26wd83A=; b=YwbvBamJHugt7FQHnr06CfaalcvPfUk+vuWnkdduFZA9vPIXPlh9dBc3oH8w5RZYgy WNvEy9ZLqWzM4Kx9wvQpKD3m575DC8M4xjEntTQn729nsoQJ9+CYiW5Adeig9TSfuUtF hNExzf1ZvzQ5OLzn8pY0KV4BTD/i/eqIyLZaS1lTH6yLv3Pjp80ZE/YGdz+MsG1c0JM5 zrMM67+5xfePKCXZSBgXdyXnLcHCK8pKgFkkE6ByQ5MIQxtdChQVMA9/paPpZlewd6Vy OKTLSW9wtqOnZ9SaYx7UAamTNUNSJ7cv5WZErEq/zfeWrVvF8TuEyyYDjTrFX5Qo6pil 44oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=1ensALa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e12-20020a656bcc000000b003809d3dac56si4587844pgw.844.2022.03.09.23.24.49; Wed, 09 Mar 2022 23:25:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20210112.gappssmtp.com header.s=20210112 header.b=1ensALa6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239856AbiCJHIK (ORCPT + 99 others); Thu, 10 Mar 2022 02:08:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240035AbiCJHIH (ORCPT ); Thu, 10 Mar 2022 02:08:07 -0500 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0D421301AA for ; Wed, 9 Mar 2022 23:07:04 -0800 (PST) Received: by mail-pg1-x529.google.com with SMTP id z4so3960391pgh.12 for ; Wed, 09 Mar 2022 23:07:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20210112.gappssmtp.com; s=20210112; h=date:subject:in-reply-to:cc:from:to:message-id:mime-version :content-transfer-encoding; bh=Q9p+Z9UIcIGH1r1Gh/2P/Icl9JR4XR5mVLpW26wd83A=; b=1ensALa6NEV3XM+LxptzcfH3PBBd3WFu2n6BMxaHryCWcybRSB3h6tjXdxp1VfRurI ycyktmI7KTt8Ohj3v+W4Eit/1TC3O1GSFz6xoQtMmGIeZAS1nceUEzkUuBkehqMT+Vh3 aoPAbTU/VAQc8uW/0oxz7aqGrEmMaEaQjA6MJHceZ+tiVD33UZnhnbio71bGpFjOlklD Z4uFwKT38g9aSpe08Xfwp44wqTT0ZcJEOq4dbZoef+7zyQHR5GJmcuh4uze0K6i5yV7W fup0LfNzFvSQbf/dtJK5k4QWApZgeCHgij1HBB4j0tKCZhuIWyywRHzi1UkARFh4GpC2 fjgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=Q9p+Z9UIcIGH1r1Gh/2P/Icl9JR4XR5mVLpW26wd83A=; b=SrYTuZMFqk0Q9EjaKan17nHedExcMuPbpvvxFi0o6WkC3KTq+GDnanGNnNgiBCOScC 9TdiJEPBHF+Y3s6W9wLLS9tnMSxeTgrGdFL65UMDx3ym0dQ4Wf5KwIloo78CWPVpcjr+ +k9anfywXCNp4IJsgXX7r1wVWsAZZG+1hsQNemQoSL+jCRPqT/kTJeJ3ddTkVJcAC308 X4ejkvDvrUiejeHcRgZUROCUP2Rup7Ah7DbVvYBpRdQU+sGT4RwEGOqw0rIPb/De82lI +lGjfrDmKDPI81C4RHjiEiVEBHW7K77D7yKAEg8hNFxwv//HPk0vBIWSC8qSzTdL6QdG n2Ow== X-Gm-Message-State: AOAM5318ImeM6P2Km2AkM9Co1Dhqxp+y6GndYihOh0vo8Y5XXPf50IVL sDf/NAHq+LYhPWWrs5cbuObz1Q== X-Received: by 2002:a63:d44c:0:b0:380:8c48:e040 with SMTP id i12-20020a63d44c000000b003808c48e040mr3020117pgj.14.1646896023993; Wed, 09 Mar 2022 23:07:03 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id c3-20020a056a00248300b004f6f729e485sm5955166pfv.127.2022.03.09.23.07.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Mar 2022 23:07:03 -0800 (PST) Date: Wed, 09 Mar 2022 23:07:03 -0800 (PST) X-Google-Original-Date: Wed, 09 Mar 2022 22:57:17 PST (-0800) Subject: Re: [PATCH v7 00/11] Update the Icicle Kit device tree In-Reply-To: CC: lewis.hanly@microchip.com, daire.mcnamara@microchip.com, ivan.griffin@microchip.com, Atish Patra , conor.dooley@microchip.com, linus.walleij@linaro.org, brgl@bgdev.pl, robh+dt@kernel.org, jassisinghbrar@gmail.com, thierry.reding@gmail.com, u.kleine-koenig@pengutronix.de, lee.jones@linaro.org, a.zummo@towertech.it, alexandre.belloni@bootlin.com, Paul Walmsley , aou@eecs.berkeley.edu, geert@linux-m68k.org, krzysztof.kozlowski@canonical.com, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, linux-rtc@vger.kernel.org, linux-riscv@lists.infradead.org From: Palmer Dabbelt To: mail@conchuod.ie, sboyd@kernel.org Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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 On Wed, 23 Feb 2022 12:48:16 PST (-0800), mail@conchuod.ie wrote: > On 14/02/2022 13:58, conor.dooley@microchip.com wrote: >> From: Conor Dooley >> >> This series updates the Microchip Icicle Kit device tree by adding a >> host of peripherals, and some updates to the memory map. In addition, >> the device tree has been split into a third part, which contains "soft" >> peripherals that are in the fpga fabric. >> >> Several of the entries are for peripherals that have not get had their >> drivers upstreamed, so in those cases the dt bindings are included where >> appropriate in order to avoid the many "DT compatible string appears >> un-documented" errors. >> >> Depends on mpfs clock driver binding (on clk/next) to provide >> dt-bindings/clock/microchip,mpfs-clock.h for the device tree >> and on the other changes to the icicle/mpfs device tree from geert >> that are already in linux/riscv/for-next. So that's causing this to not build, as I can't build without the header. I went ahead and put these on top of that patch, resulting in * 48e8641c2bf0 - (HEAD -> riscv-microchip, palmer/riscv-microchip) MAINTAINERS: update riscv/microchip entry (2 minutes ago) * 528a5b1f2556 - riscv: dts: microchip: add new peripherals to icicle kit device tree (2 minutes ago) * 5b28df37d311 - riscv: dts: microchip: update peripherals in icicle kit device tree (2 minutes ago) * c5094f371008 - riscv: dts: microchip: refactor icicle kit device tree (2 minutes ago) * 72560c6559b8 - riscv: dts: microchip: add fpga fabric section to icicle kit (2 minutes ago) * 6546f920868e - riscv: dts: microchip: use clk defines for icicle kit (2 minutes ago) * df77f7735786 - dt-bindings: pwm: add microchip corepwm binding (2 minutes ago) * 735806d8a68e - dt-bindings: gpio: add bindings for microchip mpfs gpio (2 minutes ago) * 4cbcc0d7b397 - dt-bindings: rtc: add bindings for microchip mpfs rtc (2 minutes ago) * b435a1728c9f - dt-bindings: soc/microchip: add info about services to mpfs sysctrl (2 minutes ago) * 213556235526 - dt-bindings: soc/microchip: update syscontroller compatibles (2 minutes ago) * 2145bb687e3f - (clk/clk-microchip) dt-bindings: clk: microchip: Add Microchip PolarFire host binding (6 weeks ago) * e783362eb54c - (tag: v5.17-rc1) Linux 5.17-rc1 (7 weeks ago) sboyd: IIRC it's OK to consider clk-microchip as a stable branch? If not I can just wait until you send your PR to Linus and send this later in the merge window, no big deal on my end. I've put this on for-next. If that's a problem let me know and I'll delay it. Thanks! >> >> Additionally, the interrupt-extended warnings on the plic/clint are >> cleared by [1] & [2]. >> >> [1] https://lore.kernel.org/linux-riscv/cover.1639744468.git.geert@linux-m68k.org/ >> [2] https://lore.kernel.org/linux-riscv/cover.1639744106.git.geert@linux-m68k.org/ > > Hey Palmer, > > dt-bindings should be set now, so if you're still happy to take the > series via riscv, that'd be great. i2c, spi & usb patches ended going > via the sub-system trees (and have been dropped from the series), in > case those generate warnings for you. Something went off the rails in email land and #0 and #2 didn't end up in my patch queue but the rest did. Luckily enough made it through that it didn't get lost, and lore's pretty great so this sort of thing isn't that big of a deal these days. That said, email is a bit of a black box so figured I'd give you a heads up. > > Thanks, > Conor. >> >> Changes from v6: >> - Dropped i2c patch, as its in i2c-next >> - Added ack on gpio, reviewed-by on rtc >> - Dropped child nodes from sysctrl binding entirely, added a link to >> the online documenation for the services the system controller can >> provide >> - Dropped the #pwm-cells and replaced with a ref, a la Krzysztof's >> series >> >> Changes from v5: >> - reworded the descriptions in the pwm binding to (hopefully) add >> clarity >> - added -mask to the custom properties and made them 32 bit >> - renamed the i2c binding to corei2c, since it is not mpfs specific >> - removed the child nodes of the system controller in example/dts & >> will create them in the driver. >> @Rob, I assume keeping them documented is the correct thing to do? >> - removed the dependancy on the clock binding from the examples >> - reformatted rtc interrupts as per Rob's suggestion >> >> Changes from v4: >> - dont include icicle_kit_defconfig, accidentally added in v3 >> - drop prescaler from mpfs-rtc & calculate the value instead >> - use corei2c as a fallback device for mpfs-i2c >> - drop spi dt-binding (on spi-next) >> commit 2da187304e556ac59cf2dacb323cc78ded988169 >> - drop usb dt-binding (on usb-next) >> >> Changes from v3: >> - drop "mailbox: change mailbox-mpfs compatible string", already upstream: >> commit f10b1fc0161cd99e ("mailbox: change mailbox-mpfs compatible string") >> - fix copy paste error in microchip,mpfs-mailbox dt-binding >> - remove whitespace in syscontroller dt entry >> >> Changes from v2: >> - dropped plic int header & corresponding defines in dts{,i} >> - use $ref to drmode in mpfs-musb binding >> - split changes to dts{,i} again: functional changes to existing >> elements now are in a new patch >> - drop num-cs property in mpfs-spi binding >> - dont make the system controller a simple-mfd >> - move the separate bindings for rng/generic system services into the >> system controller binding >> - added an instance corei2c as i2c2 in the fabric dtsi >> - add version numbering to corepwm and corei2c compat string (-rtl-vN) >> >> Conor Dooley (11): >> dt-bindings: soc/microchip: update syscontroller compatibles >> dt-bindings: soc/microchip: add info about services to mpfs sysctrl >> dt-bindings: rtc: add bindings for microchip mpfs rtc >> dt-bindings: gpio: add bindings for microchip mpfs gpio >> dt-bindings: pwm: add microchip corepwm binding >> riscv: dts: microchip: use clk defines for icicle kit >> riscv: dts: microchip: add fpga fabric section to icicle kit >> riscv: dts: microchip: refactor icicle kit device tree >> riscv: dts: microchip: update peripherals in icicle kit device tree >> riscv: dts: microchip: add new peripherals to icicle kit device tree >> MAINTAINERS: update riscv/microchip entry >> >> .../bindings/gpio/microchip,mpfs-gpio.yaml | 79 ++++++ >> ...ilbox.yaml => microchip,mpfs-mailbox.yaml} | 6 +- >> .../bindings/pwm/microchip,corepwm.yaml | 81 ++++++ >> .../bindings/rtc/microchip,mfps-rtc.yaml | 58 ++++ >> .../microchip,mpfs-sys-controller.yaml | 40 +++ >> ...icrochip,polarfire-soc-sys-controller.yaml | 35 --- >> MAINTAINERS | 2 + >> .../dts/microchip/microchip-mpfs-fabric.dtsi | 25 ++ >> .../microchip/microchip-mpfs-icicle-kit.dts | 115 ++++++-- >> .../boot/dts/microchip/microchip-mpfs.dtsi | 254 ++++++++++++++---- >> 10 files changed, 591 insertions(+), 104 deletions(-) >> create mode 100644 Documentation/devicetree/bindings/gpio/microchip,mpfs-gpio.yaml >> rename Documentation/devicetree/bindings/mailbox/{microchip,polarfire-soc-mailbox.yaml => microchip,mpfs-mailbox.yaml} (82%) >> create mode 100644 Documentation/devicetree/bindings/pwm/microchip,corepwm.yaml >> create mode 100644 Documentation/devicetree/bindings/rtc/microchip,mfps-rtc.yaml >> create mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,mpfs-sys-controller.yaml >> delete mode 100644 Documentation/devicetree/bindings/soc/microchip/microchip,polarfire-soc-sys-controller.yaml >> create mode 100644 arch/riscv/boot/dts/microchip/microchip-mpfs-fabric.dtsi >>