From patchwork Wed Feb 22 20:38:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Foster X-Patchwork-Id: 13149567 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 8753FC636D6 for ; Wed, 22 Feb 2023 20:40:29 +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: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:In-Reply-To:References: List-Owner; bh=JTdFQyo7gA/dRdzLSivrKXCui1k4jq0tM1/b8N4900k=; b=S3rPEnDEbAhP+F 94+MofS4cpK+AMtVU9etpzW1CZf+hnmxswPCA3drR/lvjwozH2gjtUkwZ7o2qgeOOTNtKgxvAxbF2 26vz+4KJngDYCxAiJaK1LQJ97tAq8iE3IuP5JrYkhcljnF1CS7W1bNCJ5vb2g5CzCXCdNknO9NjuH Npo9gYKaaEl5syaHXJHunvMVMS771uNfcZLXQEhBgxTgsKGokotLbCuouegGpCEvvdDXIivOX56jK HnFHe/lCSsZbv56XRq6kXn6jHOvqgdk0pLrHi7p/22RsG9o13BAbI9XQju3j6UAJi1rhly+LLPQ5F yIhKx43KTLjrW2SUQ8Rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUvtY-00E1hO-Jw; Wed, 22 Feb 2023 20:39:20 +0000 Received: from mail-bn7nam10on2072c.outbound.protection.outlook.com ([2a01:111:f400:7e8a::72c] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pUvtT-00E1ez-Gu for linux-arm-kernel@lists.infradead.org; Wed, 22 Feb 2023 20:39:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aBuxrH1p46+UsUtbPnviY3/tHe1mbxx57caVXUrfIiE9oOLgBeP6zUvoI85dZ/Bz7CtWp5XUhow2xTn9ejTo+tvpqeZg3ZpnozNuGbzLTmG9VlB2iKFR3/XWkbHvyLvdRrcQmll2pNAj1vu+C0xsbyDZMvqXPgWAkjLJbp9hJgq3mTQPxsTb58JXMmUeF2BWdTqv5esqBP40Krjx5WHuP4EncdGOP8nUHYkeRJ9wfC2katUHSU3OU+33u0gf2GTD18N6oTwKRqo4JBd+AvvORqyoKayIemRcvrdO2WnaX183fI7rZNY5aBcXPAFDrHbUtX3NlXg+th/H3iGPCC+Nnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=RkTx4cHQjuRWhXhLahAxIk5wncsfmsph6laianD1e78=; b=Bau8lbOUdarACJdT53ZG78Z1pBlGrWLTLhLiulBwb4F+aIILhzCaUvpYKlzh4hujI4u98h1lvvZX05NGZDyL9gEJG4bgs4JtDpQQ1CoBY7XIcBrqTKt5VX6O3hr9E4Rr+g3wkyVegFam09ioT9M+HoQKRz/AF+p2B8vFWVKZLQw3Y4ORxBlxUHWxNAuEltflnrDdR/luNVtCXcvkLUlx75xVbIPhM7yzci6PTSBm8Acm5KI+hrhLugrH4fU6cZ08mQlPfv6c6RfnR2SD8HCdf/aK2mzy44uIs1q6yoo5rRZg6Pi9DSjav6UyjHBW4zjB5DihZiFJ9HQngoYAvkGTWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=in-advantage.com; dmarc=pass action=none header.from=in-advantage.com; dkim=pass header.d=in-advantage.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inadvantage.onmicrosoft.com; s=selector2-inadvantage-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RkTx4cHQjuRWhXhLahAxIk5wncsfmsph6laianD1e78=; b=smcxLoceM7njTFfBLlG0MpU9+DlAfUCQTBs1CaUa9tmPfV0CbcklmGNNzkX9mV+2KRjr/u9ywYVz3ihjTxTdRPg0MCFnEqxD9MVBXbF7KuRoJL2vVJNSAte1BOVygP1KSZ8mLu59s/12UGK/BR2B6EpMyAmsrDBADe6eRGSvBSc= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=in-advantage.com; Received: from MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) by PH7PR10MB6033.namprd10.prod.outlook.com (2603:10b6:510:1ff::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.19; Wed, 22 Feb 2023 20:39:06 +0000 Received: from MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::1897:6663:87ba:c8fa]) by MWHPR1001MB2351.namprd10.prod.outlook.com ([fe80::1897:6663:87ba:c8fa%4]) with mapi id 15.20.6111.010; Wed, 22 Feb 2023 20:39:05 +0000 From: Colin Foster To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Tony Lindgren , =?utf-8?q?Beno=C3=AEt_Cousson?= , soc@kernel.org, Olof Johansson , Arnd Bergmann , Krzysztof Kozlowski , Rob Herring , Andrew Davis Subject: [PATCH v4 0/2] add support for Phytec PCM-049 and PCM-959 Date: Wed, 22 Feb 2023 12:38:45 -0800 Message-Id: <20230222203847.2664903-1-colin.foster@in-advantage.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: BYAPR02CA0042.namprd02.prod.outlook.com (2603:10b6:a03:54::19) To MWHPR1001MB2351.namprd10.prod.outlook.com (2603:10b6:301:35::37) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWHPR1001MB2351:EE_|PH7PR10MB6033:EE_ X-MS-Office365-Filtering-Correlation-Id: 02e879b0-c7d6-4269-5af7-08db1514d724 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ++WUTLGlciiI9eh0RctBw6clrzNQXVWPl74d+r/rhNuaz0cA4KiYXdEb2CpvQz3MzlYqNyi5ISrtPBxJPQedhvVNuSZXJaA23d3TKBUo5i4foxLP+aGecwd95B691a7gD++3tEzL+DzPF6r+NW+JD4dskcTi0YJ8WGa3/ceSst3kpvXZQy6doxbzqMy9uaX32FmqnlfuSqU8yBYpck6k++lnpy0jCfCvBXat0W1Cjb9eSSptInUMt/XqXvaNSYoOfi6Bt6GdcOmctJRVJWI2wLwAmWEcM+BeK59bmQEBolc12rJ8QTlXkMIjPR8c53Rf/p7ZCyHhhdole8B+DPUsl24osA4Xf36e2lEHX2itR/WM5yvATEGWIO8V7D09KAsjA1IiS0rEC6K62SApI7lIaLx2eeCi/drk8hdkeJQhQ4pGU9jNN/l4Co0so+o45nQMMpj90iuiV4aa/cZLpFtMGWxLtdKCni4U34Ke6YEp4LNZDBT+qPk1LTA9sEKkkKzPZxsNgMbMefALHW5tis/zyqdyqJYgTcypu3k+E3XpNks9ldB3NF7Z3yS7XdTyt8hAJuTwOlKLkTTQncA/5q0t3xd8q8yohBZhZs55RempNSJJJdrnmsxLrUogmxwvADUdSStqo3y8PLZj+Q5MFBpJNgID2NylSD3SbQsekQQ9zpJx9aUffjV7mBurUK4K+VHj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR1001MB2351.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230025)(346002)(396003)(39830400003)(366004)(376002)(136003)(451199018)(478600001)(38100700002)(38350700002)(86362001)(2906002)(44832011)(316002)(54906003)(41300700001)(36756003)(8936002)(7416002)(4326008)(66556008)(8676002)(66946007)(66476007)(83380400001)(5660300002)(966005)(26005)(66899018)(6486002)(186003)(1076003)(6506007)(6666004)(2616005)(6512007)(52116002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QYV4EATQi1AKM0L8MaGQ9mGKjrZlTbeYcYbM/u+yi5KZqe/Z7iQHUotRDg/mxDasEnfk3p/UaJaw44h0T1WHTCJ3eXZWdB5TpF8qI/bF90PuMok8K75o0Qyi/7yt2DdheVzmtPpMwONLAFZl2ugK5lz88S0VbMNg0laKGNB9hprYPPzmRES8tTS4dCmgluK7vGutAkreSReZYjalSVT5r89bD0JF31kFuMcZfu0Cg0EUHAF+OhuJtvH4chQQEuJbAdBnx5uDzdPDUjWIP+v6aX1SdhZ7W5/VCCYLL79esNpz05nT8TQSBo0FGST2ByNSdLnej6wA2aQDTlcfTA4dPl4Cx/kFO1fVyUiiFWmyNbz8siq88JMa+/WXC6tboOii5cMTjOjoiwh/mNf/KbV8fxmlGD3Fq2PKliPGZd+H1DmyMTIOaoZ9fqzjk8D2Oh0QFR0lrARUk8tdRPjU0ZoHypZVUP+jV8R17hviiB5C4sSMB7O92sKzIZIcp2LG4fhhl81oETlbm4o0sMi3UE37CvTTxhvqpStxLBkqspObu2wDcPySknItz13oP9qKCltFoRlf3/y0/9g2BNjlUbdv803kZ5cg+On2yT+N9Ye16xbhBwhCmR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-4269-5af7-08db1514d724 X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2351.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2023 20:39:05.9351 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 48e842ca-fbd8-4633-a79d-0c955a7d3aae X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: N8l0A8PgFiTLLGkFA5XqUHjbmwDHt/why35nCIZpwioNSGt/3us+C1gsB2zklRRQAfgTuQhHZlH357pw/nDzFY5vFyaGCq2eNoPVYdAW9w0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR10MB6033 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230222_123915_688318_B1FE14BE X-CRM114-Status: GOOD ( 16.65 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org As should be clear for the title and patch title, this is adding initial support for the OMAP 4460 SOM and dev kit for Phytec's PCM959 evaluation kit. The PCM049 is a legacy SOM offered by Phytec: https://www.phytec.com/legacy-soms/ There was a vendor BSP offered by Phytec, but that never entered the Device Tree era. This patch is meant to change that. My development bootloader has moved to U-Boot, but I have verified Barebox works in the past. When booting from SD card, either bootloader should work. When booting from Barebox, the NAND OOB layout is incompatible between the bootloader and the kernel. I haven't had any OOB / ECC errors in the NAND at all, which was my main concern. Due to that, I'm submitting this as a patch instead of an RFC. Hardware ECC correction seems to be fully functional. v3->v4 * Add initial .yaml documentation instead of omap.txt Thanks to Andrew Davis for posting their WIP patch set, which was the basis for patch 1, with Rob's feedback. * Removed Rob's "Acked-by" because the patch is completely different * Removed unnecessary "omap-4430" from compatible in .dts v2->v3 * Acked-by on patch 1 * Code review changes (see patch 2 for details) * Fix intermittent NAND failures (patch 2) v1->v2 * Almost everything moved into the SOM (PCM-049) .dtsi. Only the LED chip is dev-board specific. * Fix pinmux associations (*pmx_core was applying *pmx_wkup entries... I'm surprised that didn't cause more issues) * Documentation added * Updates from review: * Board compatible strings added * Hyphen / underscore changes * Remove unnecessary status="okay" entries * Generic names used (regulator, led-1, etc.) Colin Foster (2): dt-bindings: arm: omap: add phytec pcm-049 som and pcm-959 dev board arm: dts: omap4: pcm959: add initial support for phytec pcm959 .../devicetree/bindings/arm/ti,omap.yaml | 29 ++ arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi | 400 ++++++++++++++++++ arch/arm/boot/dts/omap4-phytec-pcm-959.dts | 48 +++ 4 files changed, 478 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/ti,omap.yaml create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-049.dtsi create mode 100644 arch/arm/boot/dts/omap4-phytec-pcm-959.dts