From patchwork Fri Jan 19 10:06:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 13523520 X-Patchwork-Delegate: mail@conchuod.ie 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 1776EC4725D for ; Fri, 19 Jan 2024 10:07:10 +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=wADQAO9RUnmWSJB7Q2aD0ZZvvpL2FFtCia+neQqMhMw=; b=nwQcuFR895k442 demcCUgJqW+bxCPjz7bLG7f02DdcPdv3LBJJJpCN/VbmtpvoLO+m3wMFwei/ogIkdDzCeNl5vhi+5 pXIdfKEXizLUphc9LoutPb142YBrxZRUCvFf1Z85SIqH0ojNAtZ/ukjZr9j7Sb1gF+vj7z7ZtdEFD N8+7Q5qPSfZJxqjXLeBIEIvSzkAwai1s0D4Zn9z4XZG/LAGIw2kE7EXulsv1CseN1MPNMeU4kW33L T9CdsaAv0zJZFIu2YSEm5x13cf4tT4sIfD0pAWmx8E6q0RH84F0A7w/Jtqlbr8iPepiWxLjklQzI1 H3VjS2OChB4n6Vh3bpdw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQlm9-0052jC-10; Fri, 19 Jan 2024 10:07:01 +0000 Received: from mail-sh0chn02on20615.outbound.protection.partner.outlook.cn ([2406:e500:4420:2::615] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQlm5-0052hN-0Z for linux-riscv@lists.infradead.org; Fri, 19 Jan 2024 10:06:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lvyOKeJe6oX/QJgi9/eKZzJRtcExFn3ajqt5hni3CqA0KqbGbmW5dQ0G2g2u4SGdwtmDGPb1/7WV3hp1TaX/Yjr7oH8lLBLuavkJMmL4z/q0mPXBBWKj1O3k1U+JON7KPG9/sgtiJifnrVkJ5Gyh7ULuoTI+11QUuv+ncqmaZ6BCbKGNiOBxx8P4mJcTdwwGFfOIoEZiHljh3a0ZfC2YcYI6wQtDlSwCZ9rwOEe7QLe9BNvv5Q6EwNgq5UxMft6Swj1UhdcL0MGxPpDEtlNkR4jjCpJox7yNEON/Bn83si3gWPqGGauSnNCusm5T1NTKFo5vKrV7hUU1xJfszAQXsQ== 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=Nuq6DMHG+gQtUK2jN9u+8NXVXG39IIeDA/ptEob6S8Q=; b=ANzmmzXC/LMiBz72Q0fF7E4YkGwkfYchFiRDvJ0d16uKAyJjnXdTosnOaishtEWjEj2gZ3SULqCOB9YEZ5ezDI4cxCnzNqirz97sPbzK72oGVlYFLz2TUukUJU4mR0y9icNPHPSeaQYhe9Oz7LqvxV5Oitwu0FvZu6g8pw1GYSU8qevKk4ecsPkV+IIe1CA+KzCAp/WM/2CHvAvwnk2Jz6m+AB1nQeLjRSuih+/g7RXc2GzcBIqrzWxz3lXnus0H+lsQjMQROXaYzHp0vGTlHEcGiYuHbQds+Dk+mEag6ZBjnJ8TxaxkiOZlgoSlUhMYPKuhRRYUAt/Z3pEVedWv+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::10) by SHXPR01MB0558.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.32; Fri, 19 Jan 2024 10:06:46 +0000 Received: from SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn ([fe80::148c:e1dd:302a:196b]) by SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn ([fe80::148c:e1dd:302a:196b%6]) with mapi id 15.20.7135.033; Fri, 19 Jan 2024 10:06:46 +0000 From: Changhuang Liang To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jack Zhu , Changhuang Liang , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v1 1/2] dt-bindings: media: starfive: Match driver and yaml property names Date: Fri, 19 Jan 2024 02:06:38 -0800 Message-Id: <20240119100639.84029-2-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240119100639.84029-1-changhuang.liang@starfivetech.com> References: <20240119100639.84029-1-changhuang.liang@starfivetech.com> X-ClientProxiedBy: NT0PR01CA0021.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:c::9) To SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SHXPR01MB0671:EE_|SHXPR01MB0558:EE_ X-MS-Office365-Filtering-Correlation-Id: ee4da847-879f-432b-58e4-08dc18d65853 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uY52Nz575HapAElcpacSYW2jAIIHBY2TjcmLj5RAZZxHLopLUHCRTGhvBh70ZdRNLI7W6ayY9EPDGphN7xCIsV3aHw52J53ounr+pmFwTmm3bV48jYR6GFwa4Rryawb9gz+6WeE+j8R/9WKwgT3SXjR/yFvEGZXyPAZnUFa3fCO2KZF8DMHv1H7ONjQvs04m7lDGA3sLYC9UXEDvdPGUAOnTq6MCYB+UfQJ5pNBe1ywW9N+v/fOL/RN0jVOO3+X04Ct7mOJsa+AzQbN1FhKcPaOeI2HehpJVaogenMoNz74nVazNctTzQaycTnGZZGJpRR6Hefv+9cq1yGSin8tY7TCAASebMF4Mcg8JCZqRlq8xKFpwjQWGi9RPA1mKgPkN+iYORxDzCRJX3DYuqyCquYTEmIBLlbxhxyOa+76LPtQ7TYPQ/R8WmpMAMXZIYA5x8AXVwKWYhYfwtx4hIzVFIhE9C3D42nTjYlEvZQxkua7LWSff3AT900EnImfZWkCq4bgF8UjYfi8npncLbUfXe9lBhq0DaPpcZ+96/fEAirC2YhGfJ88EVoByzio0VX3Q X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(396003)(39830400003)(136003)(366004)(346002)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(38350700005)(8676002)(6666004)(966005)(8936002)(83380400001)(5660300002)(4326008)(508600001)(66946007)(66476007)(110136005)(66556008)(54906003)(2616005)(44832011)(26005)(1076003)(52116002)(38100700002)(41320700001)(40160700002)(2906002)(7416002)(41300700001)(36756003)(86362001)(40180700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IXUbulth/UBr+b3lbp1N2ZIskiOlKvz93tKouXQeGw0+mjpxzmU1TmsiYWbjVECYyfxkSwySnlabrDdE/dEkg8Cmy2hIqHpUTIe2P3lt+avYQmWhwYXj2uCii6ncZ0N6kmxXbYlBs3YFm94+FnO69h8BG5pgoR/rtRfijLrJGpJ5AUxOR1t2eKDMrwQp1RiI0ru4Xdu2lE8qp7bJ3aBKFFCZWyJZGfKedKOq3sjxSRsdXHpPO2Tix5fNSgZsC9ZNoBU91nufDHy1m6+mbVitSGWv5Y2r31KFkY4n3GoVe5JODSs7/j2geHzNWvgaStxOaH6zf9Kl6jOiE3tMRkJs5fTl1V03d02rSHSeix0iHWE5jWrzRgfLdj1AR3SqD9Y1L9YyN1YlhqCLBsu//BL8Q4D+f87GV3i7wm2Pi3Spi55UoORtydibtYwy9Cn9jT8FVIkgAluBeRwegyqECbpQ2iI8cSB8bStoJIWSeYOPBH5nbyHluTVObHYlSAB9stjAK7UGrpnOHLADQKzjEPzZh12QY1BT+1O92XAzGdVSbGTbJrqVZwnghi6WkErH2eqBRGXxvP4bmvN/68B99Kg06eG1w/y+9aYIRGJiYoCrf+lh7Q8kSQEhu09Y3H/gxqidWeww7EMdv0iC2mlasmjHrU8cFe167UpBYxXMcj+sNNcHMoNxiuniuFZfQuZaJ/BrTuDnemJMYRaBtkDGpn48h7oaaXYkUDeBMwaSNOJ7MGXjxrI9XeeBPB6EzlAjn6E9DLdhRJbtK66MWgDOdvXsR/EseBypnXppYsshJ5BY09VLv+xIiE8kA4eSo8OWoEuHxb9nPhGvIPDIPLEpQ94P5Dp6tu1TcZ7rAC3BcYxHq4lH/xgUgjJOKFsCwd0pAx6b2cpm3LyET5Y6FdeVY18+ojSMDW9KtMsHElHlvI8FTrRKE/nmRmIx7yTRsOpSc2hY+wSsxz4FnwV+L4bf4eC+tjRR40avSDPyw4LwB6fZIah38FMrNNJPTn2xGx9msbZVWME/VEbEDFcAjLZspEwIqvZ5x9XytFTr6H/cTvqStgMVHi8xlBhpa+zbSKvoQxLioYqMSAoUfGR8MOqwZyzZ945o6cXE9dRH68d6hoYtGcP8338PEtULsTju4dU3HlcnyVDPXpUG68c+bG07mD8fM7VgRW0gIYuHU984TCIRXtLqWlXbayUfX+Zs3Ls0PvHwt5U+fzA9dvM14/0TvZapxinCrw7x1siGlQJGFUJSGtxXGyzWmqPemKbjTZGh/MRi3lwiD1ChJwNyHxvQcmPSH7NNcYc30Elrrj2ESRtcDdvGDNaBi9fijPZ1rQVTGqwSF5sdWxSWJkLy1ViGZ32tonLcIRSNHgMTad4ZLmmWcd2RK+4T7t9z7EutUnAwJ0NQId1Gs8qD198k+tofefyTKbQgMcjkaXhu08xWLE/R2Q5u7F8v4TSwlsKBsguFY+fY3eCnA70QXdQUu8k/pD9PdI89yWWgCGBUDS4l+fKxEv+mcr3zFmMDByWGljMlfdEVMpRsdwm+tH4paXp/zHGdMtqEbyuo2k1s17oOizK9JOBhezg/dDp2J38dAFKIVnC3GeNaEjnOxfMbHByNxygTkgv8uSSobfhtZ5XrFMJN/1E= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: ee4da847-879f-432b-58e4-08dc18d65853 X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2024 10:06:46.4864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FFP+KU/PizCKzPAQ6mPl9zdMxB2ekaS+967ylR+R+rkimMTWBgGJ/hGtqOIU0w96MUUEVq4TE5EqOgD2HJU8ygcdq0FeTQBR3TqNM+/JR68R0IvjSjkAMfhPJqzgx68d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0558 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_020657_215681_AE4D3210 X-CRM114-Status: UNSURE ( 8.11 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Drop some unused properties for clocks, resets and interrupts for StarFive JH7110 camera subsystem. Reviewed-by: Hal Feng Reviewed-by: Jack Zhu Signed-off-by: Changhuang Liang --- .../bindings/media/starfive,jh7110-camss.yaml | 31 +++++-------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml index c66586d90fa2..2504381058b3 100644 --- a/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml +++ b/Documentation/devicetree/bindings/media/starfive,jh7110-camss.yaml @@ -4,14 +4,14 @@ $id: http://devicetree.org/schemas/media/starfive,jh7110-camss.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Starfive SoC CAMSS ISP +title: StarFive SoC CAMSS ISP maintainers: - Jack Zhu - Changhuang Liang description: - The Starfive CAMSS ISP is a Camera interface for Starfive JH7110 SoC. It + The StarFive CAMSS ISP is a Camera interface for StarFive JH7110 SoC. It consists of a VIN controller (Video In Controller, a top-level control unit) and an ISP. @@ -28,26 +28,21 @@ properties: - const: isp clocks: - maxItems: 7 + maxItems: 3 clock-names: items: - - const: apb_func - const: wrapper_clk_c - - const: dvp_inv - - const: axiwr - - const: mipi_rx0_pxl - const: ispcore_2x - const: isp_axi resets: - maxItems: 6 + maxItems: 5 reset-names: items: - const: wrapper_p - const: wrapper_c - - const: axird - const: axiwr - const: isp_top_n - const: isp_top_axi @@ -57,7 +52,7 @@ properties: - description: JH7110 ISP Power Domain Switch Controller. interrupts: - maxItems: 4 + maxItems: 3 ports: $ref: /schemas/graph.yaml#/properties/ports @@ -125,34 +120,24 @@ examples: reg = <0x19840000 0x10000>, <0x19870000 0x30000>; reg-names = "syscon", "isp"; - clocks = <&ispcrg 0>, - <&ispcrg 13>, - <&ispcrg 2>, - <&ispcrg 12>, - <&ispcrg 1>, + clocks = <&ispcrg 13>, <&syscrg 51>, <&syscrg 52>; - clock-names = "apb_func", - "wrapper_clk_c", - "dvp_inv", - "axiwr", - "mipi_rx0_pxl", + clock-names = "wrapper_clk_c", "ispcore_2x", "isp_axi"; resets = <&ispcrg 0>, <&ispcrg 1>, - <&ispcrg 10>, <&ispcrg 11>, <&syscrg 41>, <&syscrg 42>; reset-names = "wrapper_p", "wrapper_c", - "axird", "axiwr", "isp_top_n", "isp_top_axi"; power-domains = <&pwrc 5>; - interrupts = <92>, <87>, <88>, <90>; + interrupts = <92>, <87>, <90>; ports { #address-cells = <1>; From patchwork Fri Jan 19 10:06:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Changhuang Liang X-Patchwork-Id: 13523521 X-Patchwork-Delegate: mail@conchuod.ie 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 3F650C47DAF for ; Fri, 19 Jan 2024 10:07:11 +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=zAw3k6xn39nvznXI8lBWZD6BpGcFy3aa7zFqK2hS2SA=; b=FgHhYacYdPo54m WHXsZGFBZQr+Zkt4vLFLyVCWIKPH4hKOd44BaSjsigehAfYYcgPae66cDqcfdRT0UEXNsVqOEiAUG hOErf9R8lUaNquq8OTd1zz/78IHt83hEdLzeSAOqH2SGg/cwrMuT9hsiJOHyN6B+aaRIHAVgnYLYK lZaSgCWWJVxLG2UtnEmmt1Mbz5r+WPaUZJeBnm38OZGtqj6tPnVnCOrcxBWEtBeDY5XRYko0IyxXO nWttMdzdTEpoA1f5W0hIswmm6MmagHXwrZ7ihcENEo/aHwFnIPT7yx/3FLs6TDfZuyBolL9l1HGKC 7JfSniBCe7mvJ6mIUORw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQlmC-0052kO-05; Fri, 19 Jan 2024 10:07:04 +0000 Received: from mail-sh0chn02on20615.outbound.protection.partner.outlook.cn ([2406:e500:4420:2::615] helo=CHN02-SH0-obe.outbound.protection.partner.outlook.cn) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQlm7-0052hN-0C for linux-riscv@lists.infradead.org; Fri, 19 Jan 2024 10:07:00 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fEQq41WyyQ9IbdowWBCf4jA98V5oYpLaOezc31MC1kekdjjMeVmpUwIgLoQcPbLB07veu2vOKXoBHdqAiEeVaPe3gQ5vhhRmzNKlbC+tEM3JxtOCubPosecpR7mq6ACDjI8EpEiYHwHMpcfeBa5EnOw7q+IgRd6t+xUA2QhJqEWO5nIWv99BO+yqOvwloVCAlmKNhgoyzsD++94eeMt7Oxn4diqs3MgjikQWDvgAVCuUqCB4RP0em3tsyx8pDLcisrt36ZHt5P7ruyloagVGlbWF9AHMwB/9N1rByNGwvdSVPNTxAzYZdGomytAl3Ia75HgxSmpay+32Ak4hPp+4yw== 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=fQt+NPjW3aqssO2np4PS9UsVpWxFELpa4F/+LcEAmq0=; b=k/YdM4M38EUQJDQCN9R0HeXhJ7RYxG99DlWNZh4ZdL9DL8B7/jvFq5CeaoibYGiisqGwgfKnzqv1mNGW0ufeHRWbsb6faMRj7JwPGGwU8HjRdg1MCwE+O/iydcwhkYHPxVIG4OZtLOZqWMipkBi+ZJWz01S4uuAJN3kpYUPblNaLUrykRYMdx0//QySx4sPlUAG+Vgd5Oa5Mc1CCSc2qCP52+zR0cn3e2QhJ3o5ZkOGQPszJcsvvPRPpumIdKjLTGilUyM80kiD7+TPm85RNi3DWNMqMvEkv4VosCkfaRD03MngAF1JxQYEFjXCoweu6wlP14KNzQ6jKbmHaY/TZeg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::10) by SHXPR01MB0558.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:1c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.32; Fri, 19 Jan 2024 10:06:47 +0000 Received: from SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn ([fe80::148c:e1dd:302a:196b]) by SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn ([fe80::148c:e1dd:302a:196b%6]) with mapi id 15.20.7135.033; Fri, 19 Jan 2024 10:06:47 +0000 From: Changhuang Liang To: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jack Zhu , Changhuang Liang , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH v1 2/2] riscv: dts: starfive: jh7110: Add camera subsystem nodes Date: Fri, 19 Jan 2024 02:06:39 -0800 Message-Id: <20240119100639.84029-3-changhuang.liang@starfivetech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240119100639.84029-1-changhuang.liang@starfivetech.com> References: <20240119100639.84029-1-changhuang.liang@starfivetech.com> X-ClientProxiedBy: NT0PR01CA0021.CHNPR01.prod.partner.outlook.cn (2406:e500:c510:c::9) To SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:25::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SHXPR01MB0671:EE_|SHXPR01MB0558:EE_ X-MS-Office365-Filtering-Correlation-Id: fd94a6bb-5837-4038-29ee-08dc18d658c8 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: YjgWAaEPPV8IlB6k+fO7Ihtb6jUngTRJ6Te3iczEjxWGSE0q4gT4CVRej4vLPaO3ALQDTnzj4po6i8D3p2bwqK7ngKVsBMkddxggy9Y6CK2uTtx9nFqaGPbYBvZDNPoGDYPCzZIRWcNBtcwcRqaVRBrxLh5p+Ynej0b5pUGHyPbOrGjQDPi3s2mFwh4UqHO2rebhLb00e5W0QuPSw4bAcqDDz7560lqX/YDMzm73Oj0VzZosdOBx6HOLXIxIU8RdtsGeK4Qs1v05lcxxGYWfzFgPauVEJlqILYoUQ1BSJDE3MBN39XKU933xvAJ+WShAaXGFwBNlAEEZ7GRuQ4sR2GYpI2LFdjQxUWcBv0Y47Olo5dkZtdNPBmrBswKweeukM3ywJ3Z8+BfliJN6ZxZ6MJVTeCNGeyRs9ZyVUL1u9AIhv2YG7CW4At3VGhFmm6MafsrZoY1nBucOp+OgFZdfI+wChSI42IGghJxjoNiwBc5hWwpt8ESbZvYsll93YqQTUJOy3dDVs2hRlk+VOLx0sZISi1EAYTYW757mB6onUTJALL2W5otSA9nTDXdRefjr X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn;PTR:;CAT:NONE;SFS:(13230031)(396003)(39830400003)(136003)(366004)(346002)(230922051799003)(186009)(451199024)(64100799003)(1800799012)(38350700005)(8676002)(6666004)(8936002)(83380400001)(5660300002)(4326008)(508600001)(66946007)(66476007)(110136005)(66556008)(54906003)(2616005)(44832011)(26005)(1076003)(52116002)(38100700002)(41320700001)(40160700002)(2906002)(7416002)(41300700001)(36756003)(86362001)(40180700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: t0bHsBD12CT5wrNAR+ed4AwfycqLH8sHATnUNQR3RftN/+2HnSbJF14e30nTG7bOADZ1h9MYSddZJTQIJRg4EgfqQ7DQXyE3O68L+YF4u9djQ8Emn1E3bu8OeKbZwZZE2gBkl3HjhKtRAlgiGjYZM91/5fNWcVePKczAOypbefSjfO+9uvYrPXOV/TsZmH9pdjQ+5Zm9drO36IUruZGrlx59BkpkRZUztE8gbUi9E4WR0z53FU6kmGeoEz8+C3WCg6qoQlTIMMaTL5Zb+lobi7V9O100AYskk0y4APY8Z9/FsC5RQ3X1Z7gJDS8gAZbcP8LSLKZAbzDg2gK4L+75H31s4VVeMuvic3Twsj/czvKNoclC6SbrRZ00amkjrDoVrDirK9SN2+SbYNLE2sREMnZVPh9Jksd4nc8ILE4H2SHEhP942WWSjPexCJhd5r0jMtjNhFRInsvPkZV8NThy5DgKCaF4bIeQu3RzeSTneOC2VeXsotTTJxtEns6jaGUx93N+VmKdGQ9PQV5Yw28Z/iKXDy6ZOl/KtmUgzgJXYYid/qzOnYmlDJIP6AVp1XWbrV7v4wlqW4VqyRFSZLya4znyNkdq8EDMuU2x//t3R8XSHjZ66eT5D3BZJ6mLDV7dVhPRHPQGjO8YKk09qVfoGI+iiNqz+mCHhYFXpegsLbJ7Gw4lVqL5YzECLews+wKIh5yQIuO2DLqdkSFHDIf00dSUFb3mXSOogz7K9IOcmGpUteZe7O9prTUsc2z4Qh/VSDZ07bxQf0oytS0ET6GJLYrFxo5y8mw68F65tnTbSMIt6q8qDQXsntwRnRaVENjm5k/WS06sZXH98FAsDJJ7kZHkz22BZqNAf7K/gE+CYTpkevfkoVNyz601QRotTI84W0dqKP8R0wZq3wYuluxH15Tld6h3TXo8eQjtTX2ijKtOShf59PYFE53divZTHoBp/Q1cN8TJ424TKN5GZvE5b+BymEVA3MSSzUcJEEoWZ/D/9RxPylchWgN3rRZH8qFgy13JXbkSRVBSIFsNOIft8hh/I/H074dCS4YH+/ye+ra8Ctyj36bdyj+rGd7YMxjC6NFWjJTJRh8lVThcZ3jAf8hEHw95xN/Waev0GiaK+CzKZVItZvIbz/arG4sDpzqDw+UjdS4Ze45oQgN6neNLhNG80MrPRw0Z9n0H6ULJZTBscyLPtwgMQr4jZkeCl4ySCL97j3YjecslJgzqn8xgsrU+II/BL+lV2uRW4vZsEEneHSjhsu7Vbsz5Nigs5nXELZLMUKtMpH9Eib1idQKPvp2cyOPhD39U75geFyPBxhavQ44qRfREj5A8z1uYHAkLlcGra9D7e1pokQPU1wJM3XpbUCLui0VsqbndAjSP7r3jBHxN2+o7ndh493ZyJAm0mp2l8PCo8Lc+J7Nh4oKicCf1B3p5ZhqnNVG5Pz7FWMMBJturG4aAULPsQCHVKrXDt5l4h18kpLXxJ4J5NkgfigLWsV6Tz/zRzh7vrhW7fAiBZjrY0o70+D389MnAJFEB049PBQk6P4YvUdcXrOiG2KScv8AY/PK230u86SgCAh0x/3YxCYPiZ1gfE6qmwB5ohHUifR0X4u6f+KNvAjySweSc80bTcVLLEYFyMNj18rc= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd94a6bb-5837-4038-29ee-08dc18d658c8 X-MS-Exchange-CrossTenant-AuthSource: SHXPR01MB0671.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2024 10:06:47.2660 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 3R/qQR67wUh4NLhqWsIZOpEX4jqOkesZiGE2cCT83UOJILEHnTbn2yYJTjz27V9PXl8CeXW1kaAQNeYqISSZVALkifxO3LTF6l/W+/gzAvP8TMUPQ0id1k+LiSCn3hl3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SHXPR01MB0558 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_020659_101367_BEA4BF8F X-CRM114-Status: UNSURE ( 8.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add camera subsystem nodes for the StarFive JH7110 SoC. They contain the imx219, dphy-rx, csi2rx, camss node. Signed-off-by: Changhuang Liang --- .../jh7110-starfive-visionfive-2.dtsi | 103 ++++++++++++++++++ arch/riscv/boot/dts/starfive/jh7110.dtsi | 60 ++++++++++ 2 files changed, 163 insertions(+) diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi index b89e9791efa7..e0027bb379ef 100644 --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi @@ -30,6 +30,37 @@ cpus { timebase-frequency = <4000000>; }; + imx219_clk: imx219-clock { + compatible = "fixed-clock"; + clock-output-names = "imx219_clk"; + clock-frequency = <24000000>; + #clock-cells = <0>; + }; + + imx219_vana_2v8: 2p8v { + compatible = "regulator-fixed"; + regulator-name = "camera_vana"; + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + }; + + imx219_vdig_1v8: 1p8v { + compatible = "regulator-fixed"; + regulator-name = "camera_vdig"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <1500000>; + regulator-always-on; + }; + + imx219_vddl_1v2: 1p2v { + compatible = "regulator-fixed"; + regulator-name = "camera_vddl"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + memory@40000000 { device_type = "memory"; reg = <0x0 0x40000000 0x1 0x0>; @@ -125,6 +156,59 @@ &tdm_ext { clock-frequency = <49152000>; }; +&camss { + assigned-clocks = <&ispcrg JH7110_ISPCLK_DOM4_APB_FUNC>, + <&ispcrg JH7110_ISPCLK_MIPI_RX0_PXL>; + assigned-clock-rates = <49500000>, <198000000>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + }; + + port@1 { + reg = <1>; + + camss_from_csi2rx: endpoint { + remote-endpoint = <&csi2rx_to_camss>; + }; + }; + }; +}; + +&csi2rx { + assigned-clocks = <&ispcrg JH7110_ISPCLK_VIN_SYS>; + assigned-clock-rates = <297000000>; + status = "okay"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + csi2rx_from_imx219: endpoint { + remote-endpoint = <&imx219_to_csi2rx>; + clock-lanes = <0>; + data-lanes = <1 2>; + }; + }; + + port@1 { + reg = <1>; + + csi2rx_to_camss: endpoint { + remote-endpoint = <&camss_from_csi2rx>; + }; + }; + }; +}; + &gmac0 { phy-handle = <&phy0>; phy-mode = "rgmii-id"; @@ -228,6 +312,25 @@ &i2c6 { pinctrl-names = "default"; pinctrl-0 = <&i2c6_pins>; status = "okay"; + + imx219: sensor@10 { + compatible = "sony,imx219"; + reg = <0x10>; + clocks = <&imx219_clk>; + reset-gpios = <&sysgpio 18 GPIO_ACTIVE_HIGH>; + VANA-supply = <&imx219_vana_2v8>; + VDIG-supply = <&imx219_vdig_1v8>; + VDDL-supply = <&imx219_vddl_1v2>; + + port { + imx219_to_csi2rx: endpoint { + remote-endpoint = <&csi2rx_from_imx219>; + data-lanes = <1 2>; + clock-noncontinuous; + link-frequencies = /bits/ 64 <456000000>; + }; + }; + }; }; &i2srx { diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi index 45213cdf50dc..b4d1564c123c 100644 --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi @@ -1104,6 +1104,32 @@ pwrc: power-controller@17030000 { #power-domain-cells = <1>; }; + csi2rx: csi@19800000 { + compatible = "starfive,jh7110-csi2rx", "cdns,csi2rx"; + reg = <0x0 0x19800000 0x0 0x10000>; + clocks = <&ispcrg JH7110_ISPCLK_VIN_SYS>, + <&ispcrg JH7110_ISPCLK_VIN_APB>, + <&ispcrg JH7110_ISPCLK_VIN_PIXEL_IF0>, + <&ispcrg JH7110_ISPCLK_VIN_PIXEL_IF1>, + <&ispcrg JH7110_ISPCLK_VIN_PIXEL_IF2>, + <&ispcrg JH7110_ISPCLK_VIN_PIXEL_IF3>; + clock-names = "sys_clk", "p_clk", + "pixel_if0_clk", "pixel_if1_clk", + "pixel_if2_clk", "pixel_if3_clk"; + resets = <&ispcrg JH7110_ISPRST_VIN_SYS>, + <&ispcrg JH7110_ISPRST_VIN_APB>, + <&ispcrg JH7110_ISPRST_VIN_PIXEL_IF0>, + <&ispcrg JH7110_ISPRST_VIN_PIXEL_IF1>, + <&ispcrg JH7110_ISPRST_VIN_PIXEL_IF2>, + <&ispcrg JH7110_ISPRST_VIN_PIXEL_IF3>; + reset-names = "sys", "reg_bank", + "pixel_if0", "pixel_if1", + "pixel_if2", "pixel_if3"; + phys = <&csi_phy>; + phy-names = "dphy"; + status = "disabled"; + }; + ispcrg: clock-controller@19810000 { compatible = "starfive,jh7110-ispcrg"; reg = <0x0 0x19810000 0x0 0x10000>; @@ -1121,6 +1147,40 @@ ispcrg: clock-controller@19810000 { power-domains = <&pwrc JH7110_PD_ISP>; }; + csi_phy: phy@19820000 { + compatible = "starfive,jh7110-dphy-rx"; + reg = <0x0 0x19820000 0x0 0x10000>; + clocks = <&ispcrg JH7110_ISPCLK_M31DPHY_CFG_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_REF_IN>, + <&ispcrg JH7110_ISPCLK_M31DPHY_TX_ESC_LAN0>; + clock-names = "cfg", "ref", "tx"; + resets = <&ispcrg JH7110_ISPRST_M31DPHY_HW>, + <&ispcrg JH7110_ISPRST_M31DPHY_B09_AON>; + power-domains = <&aon_syscon JH7110_AON_PD_DPHY_RX>; + #phy-cells = <0>; + }; + + camss: isp@19840000 { + compatible = "starfive,jh7110-camss"; + reg = <0x0 0x19840000 0x0 0x10000>, + <0x0 0x19870000 0x0 0x30000>; + reg-names = "syscon", "isp"; + clocks = <&ispcrg JH7110_ISPCLK_ISPV2_TOP_WRAPPER_C>, + <&syscrg JH7110_SYSCLK_ISP_TOP_CORE>, + <&syscrg JH7110_SYSCLK_ISP_TOP_AXI>; + clock-names = "wrapper_clk_c", "ispcore_2x", "isp_axi"; + resets = <&ispcrg JH7110_ISPRST_ISPV2_TOP_WRAPPER_P>, + <&ispcrg JH7110_ISPRST_ISPV2_TOP_WRAPPER_C>, + <&ispcrg JH7110_ISPRST_VIN_P_AXI_WR>, + <&syscrg JH7110_SYSRST_ISP_TOP>, + <&syscrg JH7110_SYSRST_ISP_TOP_AXI>; + reset-names = "wrapper_p", "wrapper_c", "axiwr", + "isp_top_n", "isp_top_axi"; + power-domains = <&pwrc JH7110_PD_ISP>; + interrupts = <92>, <87>, <90>; + status = "disabled"; + }; + voutcrg: clock-controller@295c0000 { compatible = "starfive,jh7110-voutcrg"; reg = <0x0 0x295c0000 0x0 0x10000>;