From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 36993C4332F for ; Mon, 7 Nov 2022 19:35:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ya9bJ22bbmuEzgTw5VRsDhFnG6CaWgFUJIIGZ0SBTQk=; b=LFYaL56R8rimXz faQMcz1kbfhbxMTcEatr86XqKmDBzsFfWmruuWktFqoa5m1y+bfeb/ZPFKAmm2++dIoJkIt8LNJ0I UFHsnDW/CRCo2md17S9ElEuCaszcTO1MA9ItxNziVUQRGyXLcauXjwtycR3V//r9unqJSGPzTDo+r DeFVCk1xATwKEIC7rD250ZXnPr5gOpqC7MUEAymCQ9xyYcnqZM+STnNEMfUlkBMhefGa3YL63mk+u 1K5TsX1wHd8nD40QRf4HIORQYkAkeY9syZ3Nc1CS4ND4GmyOYsKswGqDjky1ntTTe5dOAQRMk2aid HXdOYUlz7GITX55jaWTA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os7sa-0002EU-6V; Mon, 07 Nov 2022 19:33:56 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os7sX-0002D2-3k for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 19:33:54 +0000 Received: by mail-ed1-x52b.google.com with SMTP id u24so19175959edd.13 for ; Mon, 07 Nov 2022 11:33:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8Jh56uS5OpsbPqPiitl7Ap2+9nXxAh9f7kXC7MUEZBQ=; b=cWn9KYubQBG1K/4Ts/RP1KT0kIY/kkgyMcf0LUTFfBbNdL7htrBQe9nPdvivNqXqVg gf8UdWSX1t7m9FYhu1DPctzNJQeptjuGMKJ+qERQys6A5Kud+P39MPWEUa31af80uVC6 ku+fG75tg6zjOh/rBFOFKTcoNO4sliQ09/lO5uTT2Fg9o6wsbWOJiDbWqGB4oOpOteLj GtDgDur4g9R3cFGXitKXsdwalqqI5eQQjYfHjP88BhCLz6Mctppxv99wPSmgParLnT0v PAMTjUZcOojbKfA/2ypYPTO18ZECoagzoRgeugOzU/joZXvwW48xfs2FWE/+5x7UiLHi duiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Jh56uS5OpsbPqPiitl7Ap2+9nXxAh9f7kXC7MUEZBQ=; b=Cgyz5othb+/V0Iq9el33huhafRVqUmyGYnOpNuWVi9kec1pZfG/m90RMrQV21ciUmK GIBnrF64ycv+UzrOZiHPWojlF+7m4VzgJgmAGUpOOeoPmAhPNHcnRqlCGejfjtzLOAsi he/2ttITcCUO+wWmIyXjYOpoi2UcqvUXWjY54CJrWqBNRfgeUAJqik2OlFKzQ+oSAtie JrpEf/FBfx0sT0yb4PIIaSTVX6O5oF1gw3fPxGIq49BPOLBY6TilY7a65JAReh66c7gE rU6Mq+YQPnumFoXtBRMbcibxUEFOkBk45lAbPKfgIUL03CipdArYZGCRyQrW/0IFYxhR XqXQ== X-Gm-Message-State: ACrzQf1WACPteYtDLFrAXwxC3vh0ArxZfg0pR9O275xxHvGY5NeuP3NF X9p2/6PBb08CPAlQ1l3h5VA= X-Google-Smtp-Source: AMsMyM5Nn7m5677obEnnXKWdQzX/gsikzr3kzz2CYLsMon01HCuqeOTTAwz4ISU9LXjUzLE2/ovk1A== X-Received: by 2002:aa7:d506:0:b0:461:565e:8673 with SMTP id y6-20020aa7d506000000b00461565e8673mr52202316edq.416.1667849629292; Mon, 07 Nov 2022 11:33:49 -0800 (PST) Received: from kista.localnet (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id w19-20020a1709064a1300b007ad9adabcd4sm3749095eju.213.2022.11.07.11.33.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 11:33:48 -0800 (PST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Chen-Yu Tsai , Samuel Holland , Rob Herring , Krzysztof Kozlowski , Andre Przywara Cc: =?ISO-8859-1?Q?Cl=E9ment_P=E9ron?= , Icenowy Zheng , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: Re: [PATCH v2 00/10] ARM: dts: suniv: F1C100s: add more peripherals Date: Mon, 07 Nov 2022 20:33:47 +0100 Message-ID: <1920557.yKVeVyVuyW@kista> In-Reply-To: <20221107005433.11079-1-andre.przywara@arm.com> References: <20221107005433.11079-1-andre.przywara@arm.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_113353_184879_DBC50613 X-CRM114-Status: GOOD ( 31.84 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Dne ponedeljek, 07. november 2022 ob 01:54:23 CET je Andre Przywara napisal(a): > This is a fixed version of the initial post. I dropped the two patches > that were already applied by the respective maintainers, and fixed the > smaller issues mentioned in the review. > This adds v2 of the series enabling the "Lctech Pi F1C200s" board on top, > also with the comments addressed. Please don't combine series if not agreed upon before. Now whole series will be delayed until USB is sorted out. Best regards, Jernej > The whole series goes on top of v3 of Icenowy's F1C100s USB support > series [1]. There is no real conflict, but the lctech-pi.dts file > references the new USB DT nodes from the .dtsi. > > I put a git repo with all those patches up here: > https://github.com/apritzel/linux/commits/f1c100s-devices-v2 > > For a changelog see below. > > [1] > https://lore.kernel.org/linux-arm-kernel/20221106154826.6687-1-andre.przywa > ra@arm.com/T/#t > > ================= > The Allwinner F1C100s series of SoCs shares many peripherals with other > Allwinner SoCs. Since they are compatible, we can use the existing > drivers, and just need to enable the devices in the DT. > > This series adds the I2C controllers, the PWM device, the CIR (infrared) > device and the LRADC (aka. KEYADC, low res ADC) to the F1C100s .dtsi, so > boards can just use them by setting 'status = "okay";'. > > The only thing missing driver-wise is the IR mod clock, which was not > modeled in our CCU driver. Patch 4/10 fixes that. > > For every device there is one patch that adds the new compatible string > to the DT binding, and another patch to add the DT node. > > This has been tested on the Lctech Pi F1C200s board, by: > - Connecting an LED to PE6, and configuring this as the PWM pin in the DT. > Doing a sweep on /sys/class/pwm/pwm1/duty_cycle made the LED fade out. > - Configuring PD0/PD12 as I2C0, and letting i2c-detect find the on-board > NS2009 I2C chip. > - Connecting two resistors to the "ADC" pin, and configuring them as two > buttons in the DT. /dev/input/event0 properly reported button presses. > - Connecting an infrared receiver to PE11, configured as CIR. > ir-keytable reported key presses on a remote control. > > All those (basic) tests were successful, and prove that the peripherals > do work and are compatible. > > The final three patches add the binding docs and the .dts file for the > Lctech Pi F1C200s development board. > > Please have a look and test on your hardware, if possible. > > Cheers, > Andre > > Changelog v1 ... v2: > - dropped former patch 3/9 and 8/9: already applied > - increase register frame size in DT for PWM and LRADC > - drop I2C1 pins from pinctroller DT node > - increase IR mod clock mux to 2 bits > - fix mistyped comma in vendor prefix name > - drop unneeded mmc0 and spi0 aliases from Lctech Pi DT > - add /omit-if-no-ref/ tag to UART1 pins > - add ACKs and Reviewed-by tags > > > Andre Przywara (10): > dt-bindings: pwm: allwinner,sun4i-a10: Add F1C100s compatible > ARM: dts: suniv: f1c100s: add PWM node > ARM: dts: suniv: f1c100s: add I2C DT nodes > clk: sunxi-ng: f1c100s: Add IR mod clock > dt-bindings: media: IR: Add F1C100s IR compatible string > ARM: dts: suniv: f1c100s: add CIR DT node > ARM: dts: suniv: f1c100s: add LRADC node > dt-bindings: vendor-prefixes: add Lctech name > dt-bindings: arm: sunxi: add compatible strings for Lctech Pi > ARM: dts: suniv: Add Lctech Pi F1C200s devicetree > > .../devicetree/bindings/arm/sunxi.yaml | 6 ++ > .../media/allwinner,sun4i-a10-ir.yaml | 1 + > .../bindings/pwm/allwinner,sun4i-a10-pwm.yaml | 4 +- > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > arch/arm/boot/dts/Makefile | 1 + > arch/arm/boot/dts/suniv-f1c100s.dtsi | 76 ++++++++++++++++++ > arch/arm/boot/dts/suniv-f1c200s-lctech-pi.dts | 78 +++++++++++++++++++ > drivers/clk/sunxi-ng/ccu-suniv-f1c100s.c | 11 ++- > drivers/clk/sunxi-ng/ccu-suniv-f1c100s.h | 2 +- > include/dt-bindings/clock/suniv-ccu-f1c100s.h | 2 + > 10 files changed, 180 insertions(+), 3 deletions(-) > create mode 100644 arch/arm/boot/dts/suniv-f1c200s-lctech-pi.dts > > -- > 2.35.5 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel