Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1946153AbbGaVMT (ORCPT ); Fri, 31 Jul 2015 17:12:19 -0400 Received: from mail-bn1bon0077.outbound.protection.outlook.com ([157.56.111.77]:15523 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1945909AbbGaVKg (ORCPT ); Fri, 31 Jul 2015 17:10:36 -0400 Authentication-Results: spf=fail (sender IP is 66.35.236.227) smtp.mailfrom=opensource.altera.com; arm.com; dkim=none (message not signed) header.d=none; Authentication-Results: pengutronix.de; dkim=none (message not signed) header.d=none; From: To: CC: , , , , , , , , , Dinh Nguyen Subject: [PATCHv2 0/4] reset: socfpga: Add reset driver support for Arria10 platform Date: Fri, 31 Jul 2015 16:03:07 -0500 Message-ID: <1438376591-22100-1-git-send-email-dinguyen@opensource.altera.com> X-Mailer: git-send-email 2.4.5 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [64.129.157.38] X-ClientProxiedBy: BLUPR05CA0048.namprd05.prod.outlook.com (10.141.20.18) To BY1PR03MB1371.namprd03.prod.outlook.com (25.162.109.29) X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1371;2:znQEJM8cDGt9kYv/gm76G4hZT1vC+k7l547652quuXcBjSRhcImHvS84YuZyD8vqvoLjxMV9gQnefgAy+guTStxQ80sLlrjUQmn1g7yIzkni7obtFoby5LAwKwmXPgfAhuebZ2k1df/YErRb0RgdyW8uC8CwCpsNPINWq2pVEn0=;3:FhHIBPwcvV9ZtLfIjinNfapXN3aQ1XQ660acppQDKen6FxgnUPQFzYSLxxmg1ixR2QOVSGXNlWazq3piq5FWfdkOSvQChYL9OBIZlYFOb6Lbn9V1+KlmB5fC/154744/6ZIJ2joTg6q2p9IPD2Ib0g==;25:Br3jfhoFoBKzVfySQ3CK3Zlumr4BmrMq2pDGKeu54FUuCVhCsYCM8UjR8U/igUMRA7m5z+TNRqwxowGteKpPnCEwI6/LiOP8IlZAs5XpZ93/DMplFnj6zV0H5AgSWWVFXXxxJRcjqxV/0aVhnneG0iRgj4onAl5+Q9Bwz8l2YS602Ny+3VuWSMD2KqntbjkLJoGrLx1Yq+8Vt9DuytXao7NikAQ6qX0eFF9rR1AcAipb3keZgpyLWJyK+gFGSarCZszUZbLN+sCDmlN28NFLQQ==;20:iMnYnofhjYGf6hY5OUbqdKLXwo9MqeCRf32EohKUZFljcVJf3RY+y4JXS15YWWcYSsOzh+nOSP1P1rlnG7x0Tfm/ldYHVX9/Qj7//koaNrhU/B+awsbfVPqeleOlSXz6UDLUiF5P/szial5NeTiwZjWMkIs2qRyr/dLZaghTd+s= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1371;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB034;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB358; BY1PR03MB1371: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:;UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BY1PR03MB1371;BCL:0;PCL:0;RULEID:;SRVR:BY1PR03MB1371;BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:BLUPR03MB034;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB034; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1371;4:RRfLJSY8Tv/zPeHahs8aXCIs76YYMr30kU0Ur6QjdohXC6h9XA7PftHk02N6rdx9jZil8OpPwPQlmLeg92I9ABR6FV4iyputrdIOHLQQRI32vgGK2BMBDICkllqHj1dNvJBLG4QHcJSZu3/5wyjYU08GIhBuV1RY5eZCbUnRIXpkiOjEAOeWeWQE6rFdDrcmKErzyEPNpYXbLNV5Y5gOgcJDANCVaj95vU4iFEsJiXJSZA4sAcEYLCVTxUKdhTU4posScHqIjfeDrChcbbq5NNv2RFKTYFO5eUITR4sSLf0= X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report-Untrusted: SFV:NSPM;SFS:(10009020)(6009001)(164054003)(86152002)(19580395003)(19580405001)(47776003)(33646002)(5001960100002)(2351001)(50466002)(40100003)(86362001)(77156002)(107886002)(50986999)(50226001)(92566002)(229853001)(66066001)(62966003)(122386002)(42186005)(110136002)(46102003)(77096005)(48376002)(189998001)(53416004)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BY1PR03MB1371;H:linux-builds1.altera.com;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1371;23:EGFUesaJP/EFrTKaYSXaFAiSM+scXaovhUuApCJ0reUgwV3lNJLcmgnx2YhXsQnZN2018p/g747iR0kOHD2fNQf54d09rLQXo05YXqe5Lj8ykNzuSwmgn9aHcqPKkUTpz78AcaxcMIaDQ9Kh5ZiPZOk2ECeSHac5oFZvKoeEizrYxk9qYtFLM51evkCk5fGLBBEWSyGlk6Bbyicun/8Ir1IB73j+oRATdUYZBMO6GygXKg1n1kSd1iokT20ehfaBzFRQEqfYmpo0IvrMSNCM3qmfLmaKWhOV5zcKgwbgCtif0P2d7gtfIMznhdYxkXcjTzFfRJ1VBjVjcsAH7pbjbF2VqvE/jq9Agv8FqUa+NrhSjSqlCqnGMEcc9lfpKv/9D99+J4zW0YprWb47TvfeS1ijaz9fyPY/nsFWYiiMIgdY3egZWIEQg3fu1bdCmOSWRpcsRAjk57aYYodiVd9eey5ufHF52a48Muco9WVVO8chqzEZdZ4pEjvnFrz214Ei6seRG4Dl5tWsnbTWu1CM0ZuZT6+4a8P2IXF1+dYvyi/r2sUP2BG2ftfpTpi3k4hW4aMOlOlBtnuJqfPUj6ezBWR6QOeNy5PywhKLj5+gwbWqLoPzVyHk89Bmy9FuMIKQWUvBsy2+7ia6ObOzuJs4bXhuaZ0PQWHpGmOvF3TpzYOom0sLmFMlantiWI3rRAIMLF6UbTWr18Ea0Uuu8AlJwvVvcIgRY7dZSX4PD4ZEfSsZ9/kiY+GvJvYWRtjKgI4MnpV2GrV+9VrxWA2f+UtTJR8ep0ur5jyajnumA+iW1p27XAjLt2b98KiJtsff3SjQ X-Microsoft-Exchange-Diagnostics-untrusted: 1;BY1PR03MB1371;5:KUATfSg2IVbn+sweWWAgbhyHFaXBMajMBzwrDR7wYlp8ILSJlkvOY/5mNbMQaIm+XMwHI0A/EtGzKzAYt3BfkM6dQ0n3z2bDd1/LcKiS4Vp8whD3Ep6iTraLYX3UM5T0Dp5trkBEKejYonnWCu3hoA==;24:fYZ7HO41VYZBQHKehA93ORDUKZd8XJifcbjXN66X/XSXoB1j7prm28GbJRSR4VRGR0VVm68mIapETUgL2DdHczIZrZptxDzs+ftxuvgTclk=;20:enMRmsfyXAwMlNdZ8ruDpPFcb9uWuOaXWHBlr0thpoyyZ1jGB8y2xkffojnkWwYFBtq1voSUOvCzRh70IBn+KMGVp6BYM0jBtlxNXh6VPaPxBqo/WhLYA4D7QWRzUg21KHsmhY0wjPvP7gxFFBVHzBER9Sx4RX5PgI5iP8+0xVU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR03MB1371 X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: BN1BFFO11FD024.protection.gbl X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD024;1:3TBaDLGz9Q5n2gvou9dv0ry0/a4PRkVwLpnOgA4/Q5C5my5TeRQMJoPJwCCq4PtPsi4cmO4zlk9X9NYOGF5/f3vvnMD3MvZqvXK1vbav3sDmY1heEF1B8vuWSufLur1hUeV3ejmixtLqotfyYxPTqQTdanirvU5A+t4LDI3DtxDWCFdSjRuPVQJM00exzRnEvVaE6Pf6C9TVyurMmpifEYGF0tfQmfCEcp2jgBFLiD8S8rI9kE9faJhkZt+2H+fv70DP6jwPkOKlyq/ZTcwOdWd7Pw3aPp0DWBQHMw0tzMuYvNPrB95V20S9sU7Hh2qD X-Forefront-Antispam-Report: CIP:66.35.236.227;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(339900001)(164054003)(189002)(199003)(53416004)(92566002)(5001960100002)(46102003)(122386002)(62966003)(40100003)(229853001)(33646002)(2351001)(77096005)(77156002)(85426001)(50986999)(87936001)(66066001)(50226001)(86152002)(19580405001)(6806004)(106466001)(16796002)(19580395003)(86362001)(105606002)(107886002)(110136002)(48376002)(189998001)(50466002)(47776003)(7099028)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR03MB034;H:sj-itexedge03.altera.priv.altera.com;FPR:;SPF:Fail;MLV:sfv;MX:1;A:0;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB034;2:ALpJ84zmrk0eF8AsjpnhZXiNcpOUyBpDzDf3XwrNMa+cqGowe/XZlY9hkKmWVjGUYJAy29ujYNOu+c6Efwt26WhyPYHKR5AYKvpsLvK2zDIhKYNOii2/kNfTLdlxqPCo7G90ZUnMeZ6TCKhemKw0slH3q8ZPXlE5MflP2ABTVps=;3:A6NkgD7WXUXhn4D3XdpfREjIZW6gcRKWeXI/r3EOLcxUn9Se/97B6MaKX52Iq7uL86ZHk72c5Ra9rPoK5g2Ew22+rqmSlA8AMQQul2rxd+o8IT9N4w874Gh9INt+FpxIIgO0XUs0mmGtNgUptn3KzB6vq87UdQDbGxe0DmiFxbuWOJT74swlpJnvswvJhX+99sdfQ1QUTiL+bRtEFUd/LVpzRo3YFzj4MTkxuZF/vpY=;25:CwQvftNEjiA5M+h7WSwTEH0jzj2gtAi3xXCug5NgSUrjkZEw118TGcAfsQ5lXnAydRYtlpfqQU6ojly/BHTtilbNXCN1ZZpEN/Vudvb3A4Cp7JJpKP8Aju/JVVOw6fJz72gMrSM1UAPon3uNrIJQuZ7F9zSbCDdrkRgp+pOSJiewULctUsWhqMcU4rxXmKbW7C3QoIVanA/doCGXxjT01S65ZcTzFlc9ec0BCwqY34rVcYME0dwzzTVlOxUzxU7a6XU6D3H90j4OX5tQDNOS2w==;20:cQrNp6hm/c0G78HPrXF6HGewYppeZNedftSOnKNcPHl+40xNtVo+xP59gj9sz5fVm938mrcdw4ZNJ6rk+xgNRjfiuKz1HM8wbLGIFpZh5vBcUXaP81o6A+Yv7vZ/CICqmLAS+A1382ydDocqxNlS09agmayT4piwEtUlf6YD3bM= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB034;4:+mrV2bVHbtAg4mm7iCeNWa/qS18HxdTllPtPKmXjth9PJjizUnFXcp116BBciO9z1Bd3gwtx9OHljTyegS4znSz2ItitbZtnNvWjHkstJemTmTBvVu+jwpZk3K1QnkM7PnzhxUDo131azVvVP+GG/9bXTIUebN3wKDsz9TUb3hPdX/26eTMAAYvqem8xhOjGI3lvoGR2MKuJ0iYqEKGlX13y/xxZ4KcazzCe2o6bGWA9EAp8bT5VOBb+jBoOA05xy+jbSn/F7sDj50pSVckF0m7IK7ZDmJ7HameJiVeTqaQ= X-Forefront-PRVS: 0654257CF5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB034;23:EiYka7yqSBWhFgFW5u5iw+pGojY+HhMqO2WmdGc3DG?= =?us-ascii?Q?ZKCQ3WoKHyzBO1p/P3v425KFDp3E0VMWHfMZbDDU6gCcCI84MRy1TDCY/2u/?= =?us-ascii?Q?ZdQD+iuPTLzF+R23ezuX6KFfuCPomuWyOc9wUs0LlLFWmEauqYshQ3RXY67Y?= =?us-ascii?Q?u5vNH4TdA0LMr4azTrEQYa0/C1IDg9eADTDSrhxss2wl7oZcdBVR8v/3l2JZ?= =?us-ascii?Q?T8gkgoDPQfjcQUoaFVYSKeWk2IjK4m+KR6dTr3k3TypGbdYOhaDZk+Uk0l86?= =?us-ascii?Q?m6eX29rJKJBzUgtVCNH4aJZUDbSuqB5VQkIVqcd03WBs6UgjOh8AVjT9vOp3?= =?us-ascii?Q?Y3zpD8Aj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czxC0PV4edRlRnXZR7PbLvmQrSex4m265ivh9ytzuAxkrywGA=;20:AGR7Az7sxBUw83LvvUgzWl5Ry4mXcXjRQ11/GEuowGkigQeUxWqkJXYBGJMuLWYiUJjOllMLLGFrJVoyKb3N5I7e+Meq7NRmUGYELhnBLP9bCi7UxdHFwfkju4L113cQqK7m/YF7GHq+if73EiU6NqIRJFLghONpD5xQWx3QhKc= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 Jul 2015 21:10:33.2784 (UTC) X-MS-Exchange-CrossTenant-Id: fbd72e03-d4a5-4110-adce-614d51f2077a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fbd72e03-d4a5-4110-adce-614d51f2077a;Ip=[66.35.236.227];Helo=[sj-itexedge03.altera.priv.altera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB034 X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB358;2:G/L2suxIxCA4z987vzh2xl6znf0Snez2J1gVl9UCHHdJShUbYezvb73qoGh+Cj04OS1xGk/ykUFpY49oQKyUdBnp8Qx+iMvh7ExuLwpa6BlCgzk9zxTDCxHr+DkUZsiTFg2LqiRO8/RSlSgngzVIwBka8rHwLBBxsHAxgGKCn0Q=;3:IORIf2o+I8pNCOsyNupI4aLXkOfUFYtierGXC/ngHnPJHjNYuz0kIr6hpeWxM/7+5PXog8eUg/o2uFjssecK7p4Vxvxpg4BoFwdqDpSfVl95SGF/7nFePlkwHMcO+mfSIXni7hqdcXscqo7i1KmQ5Tk9hO6QDTH/v9V5UCuZS/2HUJlvOUVB3+Z3rMUg0xU3lp7fqjPMpKRx6wwUDMKUaktCz4zzj1JLvYpoxKzp7IM=;25:KlDWbW+eENIEIWsNdl8a4GbYWhVYvTwT2bb2h1nDaDCfujWRnFrnzu9epG2YwRmb8/KduQYEaoGqkiqr+PbcYzonoxW5paj7ZDOq8TVQdmgDJ0Y6H43P1KBeLwUP7BBNASinYSffolpjZYsFKUpsN26vkxyMX1HnehgOEtj9ILnKKL7qArtPIqmg5XHv2wEPZqqNgQ4ss3fxmPipAnYZxZi4gFRBexOQjScgu6Ue44QtXVA5xMIaBNGGD7DENdk2l1T37s5Nfl7fxVp2X2H0ew==;23:7S2MiMKjXRvNQLVVIVU8j/fflRcqV5RbwDhbUadsjmpBBANy9CAMlTdOgXAI8fUlxy9jyNaPUY4dUtE8n/rX+JYpvuQU787C0LvdZr/pUiKMcgi/fcCdzvkfrccaL8rF6VZNfm2SZ0os8FyKp5QPwrqbyb0lzwVnqQqifBBRw4O96kVkovrHjNDCnxk9bzUJ X-OriginatorOrg: opensource.altera.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2070 Lines: 50 From: Dinh Nguyen v2: For the reset driver, assume a modrst-offset of 0x10 in order to support legacy boards that do have the property.. v1: This patch series adds reset driver support for the SoCFPGA Arria10 SOC. The reset manager on the Arria10 is very similar to the one on Cyclone5/Arria5, thus I think it's best to try to re-use the same reset driver. The biggest difference between the reset manager on Arria10 and Cyclone is the addition of security features. Since the driver does not support these security features, it winds down to just a driver that will release IPs from reset. The other difference between Arria10 and Cyclone5 are register offsets, and register bits for different IPs. For the register offset, the main register offset is the very first register that is needed by the driver for releasing IPs from reset. To handle this difference, I've introduced a new DTS property, "altr,modrst-offset", that will represent this register. The register bits for all the resets are in a new file: include/dt-bindings/reset/altr,rst-mgr-a10.h Thanks, Dinh Nguyen (4): dt-bindings: Add reset manager offsets for Arria10 ARM: socfpga: dts: add "altr,modrst-offset" property reset: socfpga: Update reset-socfpga to read the altr,modrst-offset property ARM: socfpga: dts: Add resets for EMACs on Arria10 .../devicetree/bindings/reset/socfpga-reset.txt | 2 + arch/arm/boot/dts/socfpga.dtsi | 1 + arch/arm/boot/dts/socfpga_arria10.dtsi | 6 ++ drivers/reset/reset-socfpga.c | 19 ++-- include/dt-bindings/reset/altr,rst-mgr-a10.h | 110 +++++++++++++++++++++ 5 files changed, 132 insertions(+), 6 deletions(-) create mode 100644 include/dt-bindings/reset/altr,rst-mgr-a10.h -- 2.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/